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

What is Predictive Coding?

How does the brain process information using predictions?

The human brain is not a passive receiver of information. Instead, it actively constructs its reality through a mechanism known as predictive coding. This theory posits that the brain constantly generates and updates a model of the world to predict sensory inputs. When you perceive something, you are essentially comparing incoming sensory data (e.g., the light hitting your retina) with the brain's prediction of that data. If there is a mismatch, a "prediction error" signal is generated. This error signal is then used to update the brain's internal model, allowing it to make better predictions in the future. This process is remarkably efficient. By prioritizing surprising or novel information—the prediction errors—the brain minimizes the amount of data it needs to process fully. It focuses its cognitive resources on what is new and informative, effectively ignoring predictable sensory streams that match its expectations. This constant cycle of prediction, error-checking, and updating is fundamental to perception, learning, and attention.
notion image

What are the roles of top-down and bottom-up processing?

Predictive coding relies on the interplay between two distinct neural pathways: top-down and bottom-up processing. Top-down processing is the source of predictions. It originates in higher-level cortical areas, such as the prefrontal cortex, which store our memories, knowledge, and goals. These areas send predictive signals down the cortical hierarchy to lower-level sensory areas. Bottom-up processing is the flow of raw sensory data from the external world. This data travels from our sensory organs (eyes, ears) up the hierarchy. The core of predictive coding occurs where these two streams meet. The top-down predictions attempt to explain away the bottom-up sensory input. If the prediction is accurate, the signal is canceled out, and no further processing is needed. If it's inaccurate, the resulting prediction error is sent up the hierarchy, compelling the higher-level areas to revise their model of the world.

Predictive Coding in AI

Do current AI models use predictive coding?

Many advanced AI systems, particularly large language models (LLMs) and generative models, are built on a principle that is conceptually similar to predictive coding. These models are trained to predict the next element in a sequence, such as the next word in a sentence or the next pixel in an image. This method, often called self-supervised learning, involves the model generating its own internal representations of data patterns. When the AI makes a prediction, it compares it to the actual data and calculates an "error" or "loss." This error is then used to adjust the model's internal parameters through a process called backpropagation, refining its predictive accuracy over time. While the underlying mathematics and architecture differ from the brain's biological hardware, the core idea of minimizing prediction error is a shared, fundamental principle.
notion image

What are the similarities and differences between the brain's and AI's prediction mechanisms?

The primary similarity lies in the hierarchical structure and the goal of minimizing error. Both systems build internal models to anticipate future input and learn by updating those models based on discrepancies. However, the differences are significant. The brain is vastly more energy-efficient and can learn continuously from a constant stream of real-world data. Most AI models require enormous datasets and are trained in discrete, energy-intensive phases. Furthermore, the brain's neural architecture is far more complex, involving diverse neuron types, intricate synaptic plasticity rules, and neuromodulators that regulate information flow in ways that current artificial neural networks do not replicate. AI is a simplified abstraction, whereas the brain is a dynamic, biological system shaped by evolution.

Implications and Related Concepts

How is predictive coding related to mental health conditions like anxiety or schizophrenia?

The predictive coding framework provides a powerful model for understanding certain mental health conditions as dysfunctions of this predictive mechanism. For instance, anxiety disorders may be characterized by an over-weighting of prediction errors related to potential threats. The brain may continuously predict worst-case scenarios and interpret ambiguous sensory information as confirming those fears, leading to a state of chronic hypervigilance. Conversely, conditions like schizophrenia may involve overly strong top-down predictions that are not adequately corrected by bottom-up sensory evidence. Hallucinations could be understood as the brain perceiving its own strong predictions as reality. Delusions can be seen as firmly held, incorrect beliefs at the top of the hierarchy that resist being updated by new evidence or prediction errors from lower levels, leading to a disconnect from shared reality.
notion image