Sanyanggae LogoSanyanggae

🤖 AI & Tech

Predictive coding and generative models: useful parallels and their limits

Compare theories of the brain and machine learning through prediction and error-driven updating, while distinguishing their mechanisms.

사냥개 (Sanyanggae)Published Updated 10 min read

This is a translation of the Korean original. Korean original · Translation review: AI review

Predictive coding and generative models: useful parallels and their limits · Explanatory diagram · Prediction and error, Computational models, Limits of comparison.
Explanatory diagram by Sanyanggae · Prediction and error · Computational models · Limits of comparison.

Predictive coding is a theoretical approach that explains how the brain processes information by using differences between sensory information and internal predictions. This offers a point of comparison with prediction in generative AI. The comparison alone cannot establish that the two work in the same way.

1. The roles of prediction and error

In this account, the discrepancy between expected and actual sensory input helps update a representation. There are multiple implementations and interpretations within the theory, including which signals are processed at which levels. Describing the brain as a language model that simply generates the next word goes too far.

2. What a Bayesian formulation means

A probabilistic framework that combines prior information with new observations helps explain uncertainty. Being able to express two systems in the same mathematical form provides no evidence that biological cells and model weights share the same physiological structure.

3. How to read comparisons

Distinguish theoretical models, experimentally observed signals and a machine learning model’s actual training objective. A language model’s plausible explanation is insufficient evidence for consciousness or human-like understanding. Predictive coding and active inference are often discussed together. The terms are not interchangeable. Check the question and measurements in each study.

4. Reading a blurry sign

Imagine seeing blurry lettering on a rainy street. There is a bus stop nearby, and the lettering looks like the name of a familiar route. Past experience may influence the reading. The person walks closer, sees different letters and revises the interpretation. This analogy illustrates how previous information relates to new observations. The experience alone reveals neither which brain cells sent signals nor what those signals were.

In a Bayesian formulation, combine each candidate’s prior probability with the likelihood of the observation under that candidate to obtain a posterior probability. If signs A and B have equal priors and the observed pattern has probability 0.8 under A and 0.2 under B, the normalized posterior for A is 0.8. These invented values illustrate the calculation. They come from no experiment showing that people always feel 80 percent certain.

Change the priors to 0.1 for A and 0.9 for B. The same observation gives A a weight of 0.08 and B a weight of 0.18. After normalization, the probability of A is about 0.31. Previous information changes the interpretation of the same observation. Whether the brain stores these numbers and whether the mathematics explains a behavioral tendency are separate questions. Distinguish the computational account from its biological implementation.

5. Comparing hierarchical predictions with those of a language model

Rao and Ballard studied a hierarchical vision model that passes predictions downward and residual errors upward. Such research offers an account beyond the one-way transmission of sensory information from lower to higher levels. Friston’s theory of cortical responses also considers how causes of sensory inputs are inferred. Read what model the paper specifies and which observations it seeks to explain. A single model cannot be assumed to explain every neural phenomenon.

An autoregressive language model can be trained to learn the probability of the next token given preceding tokens. Prediction error here is defined by the objective function and training data. Although the term also appears in hypotheses about residual signals in sensory cortex, the subject, timescale and update mechanism may differ. Distinguish changes to weights during pretraining from using context to produce a response at inference time.

The parallels can still suggest useful questions. Do both systems compare candidates on incomplete information? Does context affect the output? New claims based on the comparison need separate evidence. A change in a language model’s answer after adding context cannot establish a human-like mechanism of perception or a sense of self. Analogies help formulate questions. Experiments test them.

6. Reading the evidence for a theory’s predictions

First note what a paper observed. Behavioral choice rates, nerve cell activity and imaging signals support different inferences. Then examine the model’s inputs and outputs. Finally, look for predictions that distinguish it from other models. Explaining an existing observation and predicting it better than a competing account are separate accomplishments.

A stronger response to an unexpected stimulus may have several causes. Attention to novelty, differences in adaptation and the demands of the task can all play a role. Check which comparisons the study used to address these alternatives. Treating every response to a surprise as direct evidence of prediction error obscures what could falsify the theory.

Read figures with the same care. Arrows separating prediction from error simplify the relationship between concepts. They convey a different kind of information from a photograph of real neural connections or a direct record of a specific model’s inner workings. Use the legend to see whether a line represents a biological link or a flow of computation. Similar-looking figures do not establish a shared mechanism.

In everyday life, the analogy suggests a modest question: could expectations have shaped what I saw, and should I check it again? As a reading exercise, separate fact from conjecture and revise the interpretation when more information arrives. This practice makes no promise of correcting the brain’s prediction errors or resolving health problems. A theory can be worthwhile without explaining every experience.

To understand generative models, start with each model’s training objective. For brain research, start with the experimental task and signal observed. Then look for probabilistic terms that apply to both, so similarities in vocabulary do not obscure differences in implementation. A comparison should specify where the resemblance holds and where independent evidence is needed.

Handling uncertainty is another point of comparison. If the lettering on the sign were fully covered, it would make sense to leave several candidates open. Requiring a model to output one answer does not supply missing observations. How probabilities are represented internally may also differ from how uncertainty is conveyed to the user. Fluent wording is a poor guide to the certainty of a computation. Check whether the input actually contained the information needed. This distinction is useful without assuming that the brain and AI operate identically.

Sources and further reading

This article explains information from public sources. Citing an organization does not imply its review or endorsement.

About the publisher and contact

Related articles