Predictive Coding | Does AI See the World by Making Predictions?

What is Predictive Coding?

The Brain as a Prediction Machine

Predictive coding is a neuroscientific theory stating that the brain does not passively receive sensory information from the outside world. Instead, it actively predicts it. The brain constructs an internal model of the world based on past experiences and uses this model to generate constant, top-down predictions about the causes of sensory input. For example, when you see an apple, your brain doesn't just process the light hitting your retina. It predicts "apple" based on the context, its shape, and color, and then matches this prediction against the incoming "bottom-up" sensory data from your eyes. This process is incredibly efficient. Instead of processing every single detail from the environment, the brain primarily focuses on the difference between its prediction and the reality. This difference is known as "prediction error." By continuously generating predictions and updating its internal models based on errors, the brain creates a stable and coherent perception of reality, allowing us to interact with a complex world seamlessly and efficiently.
notion image

How Does Prediction Error Work?

Prediction error is the core mechanism for learning and perception in the predictive coding framework. It is the mismatch between the brain's top-down prediction and the bottom-up sensory signal. If the prediction is accurate, the sensory signal is suppressed, and no error is generated, conserving neural energy. However, if there is a mismatch—for instance, a supposed apple is unexpectedly blue—a strong prediction error signal is generated. This error signal travels up the cortical hierarchy, forcing the brain to update its internal model. In this case, the model must be adjusted to acknowledge "this is a blue object, not a typical red apple." This constant process of minimizing prediction error is fundamental to learning. It allows the brain to refine its understanding of the world, making its future predictions more accurate and its responses more adaptive.

Predictive Coding in AI and Neuroscience

How Do AI Models Like Large Language Models (LLMs) Use Prediction?

Artificial intelligence, particularly in Large Language Models (LLMs), operates on a principle that is conceptually similar to predictive coding. The fundamental task of many LLMs is to predict the next word in a sequence. When given a phrase like "The sky is," the model uses its vast training data to predict the most probable next word, such as "blue." This is achieved through a complex neural network architecture, like the Transformer, which calculates probabilities for all possible next words. This predictive process is how AI generates coherent text, translates languages, and answers questions. It continually refines its internal parameters to minimize the error between its prediction and the correct next word in its training dataset.
notion image

What Are the Key Differences Between Brain and AI Predictions?

While both systems use prediction, the underlying mechanisms differ significantly. The brain's predictive coding is deeply integrated with the body, emotions, and consciousness, operating with remarkable energy efficiency. Its predictions are grounded in real-world sensory experiences. In contrast, AI's prediction is primarily a statistical and mathematical process based on patterns in data. It lacks genuine understanding or subjective experience. Furthermore, the brain's learning is flexible and continuous, whereas most current AI models require massive, distinct training phases and are less adaptable to entirely new contexts without retraining. The brain's hardware (neurons) and software (cognitive processes) are inextricably linked, a unity that AI has yet to replicate.

Implications and Future Directions

How Does Faulty Predictive Coding Relate to Mental Health Conditions?

The predictive coding framework provides a compelling model for understanding various mental and neurological disorders. These conditions can be seen as dysfunctions in the brain's predictive machinery. For example, anxiety disorders may be characterized by the brain's tendency to generate overly strong predictions of threat or to assign too much weight to minor prediction errors, leading to a constant state of alarm. In schizophrenia, hallucinations could arise from the brain failing to distinguish between self-generated predictions (internal thoughts) and external sensory reality. Conversely, in autism spectrum disorder, the brain might under-utilize top-down predictions, causing individuals to perceive the world as a cascade of overwhelming, unfiltered sensory details because prediction errors are not properly suppressed. This perspective shifts the focus from simple chemical imbalances to complex information processing disruptions, opening new avenues for therapeutic interventions.
notion image