Evidence of a predictive coding hierarchy in the human brain listening to speech
Paper · 2023 · Charlotte Caucheteux, Alexandre Gramfort and Jean-Rémi King
Summary
When someone listens to a story, how far ahead does the brain prepare for what comes next? It might anticipate the grammatical shape of the next phrase, the meaning of a later part of the sentence, or both. The authors ask whether these expectations vary systematically across the cortex. Their starting point is that a language model trained to predict the next token can already account for some brain activity during listening. They test whether giving a brain-response predictor access to representations of more distant words improves that account, and whether the best distance and type of representation depend on where in the brain they look.
The study uses functional magnetic resonance imaging, or fMRI, from 304 people listening to spoken stories in the Narratives dataset. The authors compare those recordings with the internal activity of GPT-2 as it processes the same stories in text. A linear mapping trained on part of each person's recording predicts brain activity in held-out portions. Adding a window of representations from later in the transcript improves these predictions. Across participants and cortical locations, the average gain peaks when the window ends 8 words ahead, equivalent to 3.15 s of speech at the average rate in these stories. The paper reports a 23% improvement in brain scores, with variation of ±9% across individuals.
The gain differs across regions. Parts of frontal and parietal cortex are better accounted for by windows ending farther ahead and by representations from deeper layers of GPT-2. Temporal areas generally favor closer windows and shallower representations. When the authors separate features associated with grammatical structure from a residual they use as a proxy for meaning, the grammatical features show a shorter average forecast distance. The meaning-related features show a longer one, with their strongest effects in frontal and parietal areas. These distances refer to the ends of windows whose contents help explain the recorded signal. They do not identify the exact word a listener expected.
The authors also test whether training GPT-2 to anticipate a distant internal representation changes how well its activity maps onto the brain. They add this objective to next-token training on Wikipedia, then return to the brain recordings for evaluation. The added objective improves scores most clearly in inferior frontal and inferior parietal areas. Together, the experiments support an account in which different parts of the language system anticipate different kinds of information over different spans. The recordings and the computational comparisons constrain that account without establishing the precise predictions, errors, or updates computed by each region.
Deep dive: Evidence of a predictive coding hierarchy in the human brain listening to speech
How brain recordings from people listening to stories reveal differences in how far ahead and what kinds of language different areas anticipate. · about 39 minutes to read
The problem and its context
What can a listener anticipate?
A story creates expectations at several levels. A phrase can prepare a listener for a kind of grammatical continuation while leaving the exact words open. A longer stretch of narrative can make a later development plausible without specifying how a speaker will describe it. The distinction matters because an expectation about wording, an expectation about grammatical structure, and an expectation about meaning can all influence a response to the same speech. A test of anticipation needs to distinguish which information is at stake and how far ahead it extends.
Predictive coding gives the authors a reason to expect these distinctions in the brain. In the account they discuss, the brain anticipates input, compares what arrives with what it expected, and uses the discrepancy to update its internal account of the input. A hierarchical version allows different cortical areas to predict at different levels. A region responsive to speech sounds could work with relatively local information. An association area that combines information across a wider context could anticipate something more abstract over a longer span. The paper takes that general proposal and asks which signatures of it can be found during ordinary story listening.
The distinction between predicting and integrating is important here. Earlier naturalistic studies discussed in the paper found that frontal and parietal areas integrate information over longer timescales than sensory and temporal areas. A long integration timescale describes how much of the preceding stimulus can affect a response. A long forecast concerns how much of the subsequent stimulus a current response can help account for. A listener who retains a great deal of earlier context is well placed to anticipate events, but evidence about retained context alone leaves the anticipation question open.
The authors also draw on earlier descriptions of cortical organization. The work they cite associates Heschl's gyrus with low-level acoustic information, superior temporal regions with speech sounds, and association areas across frontal, temporal, and parietal cortex with aspects of meaning. This provides a concrete anatomical question. If the representations associated with predictions also follow a hierarchy, features that help explain activity near auditory cortex should differ from those that help explain activity in association cortex. The study treats those descriptions as a basis for a comparison across regions, where regions can favor different features even when they respond to the same story.
Why use a next-token system?
The paper starts from an alignment found in earlier research. If a person hears a passage and a trained text predictor processes its transcript, a linear transformation of the predictor's internal activity can estimate part of the person's brain response. Prior studies also found that the quality of this alignment was related to how well the text system predicted upcoming words. Predictive training can therefore produce representations that are relevant to human language processing, even when the training material and the brain recordings are distinct.
The authors contrast this progress with difficulties reported in earlier studies of long text generation, summarization, dialogue, and retrieval. They also discuss errors in grammatical dependencies, such as selecting a verb form that agrees with a nearby noun while overlooking the subject to which it belongs. The account of repetitive or incoherent continuations in The Curious Case of Neural Text Degeneration gives another reason to ask what a local prediction objective leaves underspecified. The examples motivate a distinction between the usefulness of next-token training and the range of computations that would support sustained understanding or coherent generation.
A nearby prediction target can still reward the use of distant past context. A system choosing a word now may need an entity or event mentioned much earlier. The question in this paper concerns a different axis, the distance into the future of what the system is explicitly trained to anticipate. The authors ask whether an additional objective aimed at a later contextual representation produces a different relationship to brain activity. The choice of objective and the span of past input are independent features of that question.
The motivations from natural language processing and neuroscience meet at the level of representations. A continuation can vary in its exact form while conveying a similar development in the story. If the brain anticipates something common to several such continuations, the likelihood assigned to a particular next word would capture only part of the expectation. An internal representation with many features offers a way to ask which properties could remain predictable even as the exact wording becomes uncertain.
What earlier measures left open
In the psycholinguistics and neuroscience work described by the authors, a common measure of anticipation was surprisal. A probable word or speech sound has low surprisal under the predictor used to score it. An improbable one has high surprisal. Previous studies related such scores to activity measured with fMRI, electrical recordings, magnetic recordings, and recordings from electrodes placed on the cortex. The response to an unlikely event can reveal sensitivity to prior expectations.
A surprisal score compresses an estimate about the item that appeared into a single value. That is useful when the question is whether an event's expectedness relates to a neural response. It gives less information about the form of the underlying expectation. For instance, similar scores for two words could arise from different expectations about their grammatical role or meaning, and a score derived at the next position leaves open how the listener is preparing for later positions. The paper therefore works with vectors of features from multiple word positions and asks which of those vectors add evidence about the brain response.
This changes what the measurement is designed to explain. In a surprisal analysis, the event's probability is a feature associated with the reaction to its arrival. In the forecast-window analysis, the authors associate representations of later words with the current position, then ask whether the resulting time series helps predict recorded activity. A stronger association can show where and over what span future features add explanatory value in the setup. The training experiment addresses the related question of whether an explicit future-directed objective can improve the alignment when the later features are unavailable as input at that position.
The method, step by step
Align the recording with the story
The input comes in two forms. Participants heard recorded stories, and their fMRI scans contain a series of measurements during listening. GPT-2 receives the stories in writing. The Narratives dataset matches words in each transcript to their positions in the audio, so the authors can place the text system's internal representations on the clock used for the scans. That timing information lets them compare brain and text features without assuming that words arrive at a steady rate.
The unit of analysis is a participant and a cortical location. The paper calls these locations voxels, although the preprocessing projects the cortical data onto a surface and aligns them to the shared fsaverage template. The authors work with the existing preprocessed recordings, with spatial smoothing disabled and without temporal filtering. The common surface allows results from corresponding locations to be combined across participants, while the initial measurement of prediction quality is made separately for each participant and location.
On the text side, the authors normalize some punctuation and use the Hugging Face tokenizer, which performs tokenization by converting the text to units GPT-2 can process. The paper reports the representations on a word grid for alignment with audio, while the input context limit is expressed in tokens. Each word's representation is computed using the text available up to that word and at most 1,024 previous tokens. Early in a story, the available context is naturally shorter. This procedure yields a different vector for a word when it occurs in a different context.
GPT-2 uses stacked Transformer layers. Each layer transforms the sequence of internal vectors it receives from the preceding layer. An initial embedding supplies the representation before the contextual transformations, while deeper layers can combine information from the preceding text. The network is causal in the sense relevant to this study. At a given position, its activation can use that position and earlier input, with following positions withheld. A later word's vector can therefore contain information about earlier words. A current word's vector is computed without access to the actual continuation.
The authors describe the GPT-2 used for the main analysis as having 12 Transformer layers and a width of 768 features per layer. Unless the analysis varies depth, they take the eighth layer, using prior evidence about its usefulness for predicting brain activity as their starting point. The word-by-feature array from that layer is called X. The transcript w contains M words, and U denotes the number of features in each vector, so X has shape M × U. The scan array Y has shape T × V, with T scan samples and V cortical locations. The word alignment connects the M positions to the T scan samples.
Measuring how future language features explain brain activity
The steps in order.
Predict held-out brain responses from the current words
A scan and a word vector are recorded on different grids. To put the features on the scan grid, the authors sum the vectors for words presented within each repetition time, the interval between scans. The repetition time, or TR, is 1.5 s. Summation gives a scan interval with several words a different input from an interval with few or none. It also makes the word-rate control relevant, because some of the predictive signal could come from when speech occurs, irrespective of how a word is represented.
The measured blood-oxygen response is slow relative to the passage of words. The authors use a finite impulse response mapping, which supplies the linear readout with time-shifted versions of the features. The paper describes six delays spanning 0 to 9 s. With these shifted inputs, the regression can assign different weights to information from different delays and relate it to the later scan response. This lag handling concerns how neural activity is observed through fMRI. The forecast offset concerns which story positions contribute features to the predictor. Both affect temporal alignment, but they enter the procedure at different stages.
Before fitting the regression, the authors standardize features to a mean of 0 and a standard deviation of 1 in the analysis pipeline. Principal component analysis, or PCA, then summarizes variation across features with 20 components. Each component is a direction in feature space. The readout thereby works with a compact set of coordinates derived from many activation values. The last stage is ridge regression, a linear regression that penalizes large coefficients with an ℓ₂ penalty. This makes the fitted weights less sensitive to an abundance of correlated features.
For each participant and voxel, the paper expresses the evaluation of this mapping as follows.
ℛ⁽ˢ,ᵛ⁾(X) = corr(W ⋅ X, Y⁽ˢ,ᵛ⁾)
Here ℛ is the brain score, s identifies the participant, and v identifies the voxel. X is the feature input aligned to the scans, and W is the linear projection fitted on the training data. The centered dot indicates application of the projection to the prepared features. Y⁽ˢ,ᵛ⁾ is the measured fMRI time series at that participant and location. The function corr is Pearson correlation, computed between the predicted and recorded series on the held-out portion. A higher score means the prediction tracks the variation in the recording more closely.
The outer cross-validation divides the time series into five contiguous chunks. For each split, the authors fit on the portion described in the reporting summary as 80% and evaluate on the remaining 20%. They rotate the held-out chunk and average the correlations over the five test folds. The result is a brain score for a participant and voxel. A contiguous split keeps the withheld observations together in time, so the test assesses performance across a segment of the recording instead of scattering withheld scan samples throughout the training series.
Within each outer training fold, the authors use a separate leave-one-out procedure to tune the ridge penalty for each voxel. The search uses ten values spaced on a logarithmic scale from 10⁻¹ to 10⁸. The nested procedure gives the penalty search its own evaluation data within the training fold. The outer held-out segment then measures the performance of the resulting fit. The authors use the term brain score for that held-out measure and also write ℛ(X) when they have averaged it across people or locations as appropriate to the analysis.
The main computations use scikit-learn for the regression pipeline and the Hugging Face Transformers library for the text features. The paper names nilearn, MNE-Python, and FreeSurfer among the software used to analyze the recordings. The methodological distinction that matters for the results is between the fixed text network that supplies X and the separately fitted linear map W. The network need not change for the same text features to be read out differently across brain regions.
Add a window and move it through the transcript
The baseline assigns each position the vector GPT-2 computes when it gets to that word. To test whether representations associated with later words help, the authors append a window of features drawn from other positions. The network still processes the transcript causally. The additional information comes from looking up other rows of the activation array and giving them to the brain-response regression at the current position.
The main window contains 7 consecutive word vectors. The distance d specifies where it ends relative to the current word. A window ending at d = 8 contains words at offsets 2 through 8 in the paper's worked example. At d = 10, it instead covers offsets 4 through 10. Thus moving the window changes the group of words together. A distance at the peak of the resulting curve refers to the endpoint of that group. A window ending at d = 0 stops at the current word, and windows with negative endpoints draw on earlier words only.
The following notation follows the stated width and the paper's worked examples. The printed window equation starts at d − 7, whereas the procedure and examples start at d − 6.
X̃⁽ᵈ⁾ = (X[wₙ₊d₋₆] ⊕ … ⊕ X[wₙ₊d])ₙ∈[1,…,M]
Here X̃⁽ᵈ⁾ is the array of windows for offset d. The index n identifies the current word and runs from 1 to M, the number of words in the transcript. The notation w with a subscript identifies a word by its transcript position, and X in square brackets selects that position's activation vector. The offsets d − 6 through d give the successive positions in a window. The ellipsis stands for the intervening vectors, and ⊕ means concatenation, which places vectors side by side along the feature dimension.
A prediction made from those appended features could benefit simply because the window supplies many more measurements to the regression. The authors reduce the window and current-word streams separately before combining them, giving the compressed streams matching dimensionality. The comparison still increases the input dimensionality relative to the current-word baseline. The paper therefore also checks whether randomly constructed forecast features help and whether the main pattern persists without PCA.
For each participant and voxel, the forecast score is the gain from adding a window at a particular distance. The baseline regression and the regression with additional features are both evaluated on held-out data.
ℱ⁽ᵈ,ˢ,ᵛ⁾(X) = ℛ⁽ˢ,ᵛ⁾(X ⊕ X̃⁽ᵈ⁾) − ℛ⁽ˢ,ᵛ⁾(X)
Here ℱ is the forecast score for offset d, participant s, and voxel v. X supplies the current-word features. X̃⁽ᵈ⁾ supplies the window, and ⊕ denotes their concatenation after the separate reductions. ℛ evaluates the correlation for the readout fitted with the indicated features. The minus sign subtracts the current-word brain score from the augmented brain score. A positive ℱ indicates an improvement on the held-out scan data. It has the units of a difference in Pearson correlation.
The primary windows use the actual words that follow in the story. This lets the authors ask whether information in the forthcoming speech is related to activity at the reference position without committing to a single algorithm for producing a guess. In a supplementary comparison, they use words generated by GPT-2 instead. The true-continuation and generated-continuation analyses answer different questions. One measures how much the realized continuation can help once represented as a vector. The other tests whether a continuation supplied by the text predictor can provide similar information.
Find the distances and layers that fit best
Once a forecast score has been estimated across distances, the authors summarize the curve with the endpoint that gives the largest gain. They do this at the level of a participant and voxel before aggregating regional estimates.
d∗⁽ˢ,ᵛ⁾ = argmaxᵈ∈[−10,…,30] ℱ⁽ᵈ,ˢ,ᵛ⁾(X)
The quantity d∗⁽ˢ,ᵛ⁾ is the selected forecast distance for participant s and voxel v. The operator argmax returns the value of d that makes the forecast score ℱ largest. The candidate offsets run from −10 through 30 words. The features X determine the representation used for the test. A negative candidate indexes a window ending before the current word. A positive candidate indexes one ending after it.
A maximum exists even for a curve whose values barely vary. The authors address this in the distance map by comparing the gain at d = 8 with the gain at d = 0 across people. The map displays locations with a significant difference. This check compares a future window with one that stops at the present. It gives the map a criterion beyond the mere existence of a numerical maximum.
For the depth comparison, the authors replace the feature stream from the eighth layer with a stream from a selected layer. They use that layer for both the current features and the window, and calculate the increment relative to the current features from that same layer. They fix the window endpoint at d = 8, the overall peak in the distance analysis. Holding the distance fixed means the layer comparison asks which depth adds the most information for a common temporal offset.
k∗⁽ᵈ,ˢ,ᵛ⁾ = argmaxᵏ∈[0,…,12] ℱ⁽ᵈ,ˢ,ᵛ⁾(Xₖ)
Here k∗ identifies the depth yielding the highest forecast score at distance d for participant s and voxel v. The index k runs from 0, the representation before the contextual layers, through 12, the final layer. Xₖ denotes the current-word representations at depth k, from which the corresponding window is also built. The operator argmax selects the k with the highest ℱ. In the reported comparison, d is held at 8. The authors interpret network depth as an indicator of increasing contextualization, drawing on earlier work that includes What Does BERT Learn about the Structure of Language?.
Separate grammatical structure from the rest of the representation
A layer can contain information about grammar, meaning, and the particular words that express them. To distinguish these sources, the authors reuse a procedure from their earlier work. Starting with a word, its context, and its actual continuation, they generate 10 possible continuations with the same grammatical structure. The alternatives match the actual continuation in part of speech and in the tags that describe syntactic dependencies. The words and the meanings of the alternatives are allowed to vary.
The authors extract GPT-2 activations for those alternatives and average the vectors. A feature shared across alternatives can survive the averaging. A feature tied to a particular choice of wording or meaning has less reason to be common to the alternatives. The authors use the mean vector as their estimate of the syntactic component. In the earlier study, they probed that representation for information such as part of speech and syntactic tree depth, along with properties such as word frequency, word embeddings, and semantic category. In the current study, the construction gives them a grammatical feature stream that can be compared with the residual.
Xₛₑₘ = X − Xₛᵧₙ
Here X is the full activation for the true continuation. Xₛᵧₙ is the activation averaged over the syntax-matched alternatives. Xₛₑₘ is the residual obtained by subtracting that average, which the paper treats as its semantic component. The subtraction is between vectors in the same feature space. The operational definition matters because the residual can carry information other than meaning, and the average retains whatever the sampled continuations share.
The authors apply this separation to the representations used to build the forecast windows. The syntactic window contains the syntax-associated features for the consecutive words in the chosen span. The semantic window covers the same span with the residual features. The Methods express their contributions with parallel forecast scores.
ℱₛᵧₙ⁽ᵈ⁾ = ℛ(X ⊕ X̃ₛᵧₙ⁽ᵈ⁾) − ℛ(X)
Here ℱₛᵧₙ⁽ᵈ⁾ is the syntactic forecast score at endpoint d. X̃ₛᵧₙ⁽ᵈ⁾ is the associated syntactic window, and X is the current-position feature input in the baseline. The operator ⊕ appends the window features to X. The function ℛ measures the held-out brain correlation for the indicated input, and subtraction isolates the change relative to using the current-position features alone.
ℱₛₑₘ⁽ᵈ⁾ = ℛ(X ⊕ X̃ₛₑₘ⁽ᵈ⁾) − ℛ(X)
Here ℱₛₑₘ⁽ᵈ⁾ is the semantic forecast score at the same kind of offset d. X̃ₛₑₘ⁽ᵈ⁾ is the window formed from residual features. The remaining symbols have the same roles as in the syntactic score, with X as the current-position input, ⊕ as feature concatenation, and ℛ as the held-out brain score. This setup allows the authors to move the two kinds of window through the transcript and compare where each adds predictive value.
Estimate how much signal can be shared across listeners
The brain score is affected by how reliably a location responds to the story. Even a useful language representation may produce a modest correlation when the recording is noisy or when participants respond differently. To put the absolute correlations in context, the authors estimate a noise ceiling from other people who heard the same story. For a given participant, they average the relevant recordings from the other listeners and use the average as input to a readout of that participant's response.
Ȳ⁽ˢ⁾ = (∑ₛ′∈𝒮, ₛ′≠ₛ Y⁽ˢ′⁾) / |𝒮 ∖ {s}|
Here Ȳ⁽ˢ⁾ is the mean recording used to predict participant s. The set 𝒮 contains the participants who heard the same story, and s′ indexes a contributing participant. The summation adds the recordings Y⁽ˢ′⁾ of the other listeners. The symbol ≠ excludes the target participant, and ∖ removes that participant from the set. The vertical bars count the remaining listeners, giving the divisor for the mean.
The two readouts have comparable evaluation procedures. One uses language features, and the other uses the average of other listeners' recordings. The former needs the finite impulse response alignment described above. For the latter, the authors assume that the timing of the blood-oxygen response is comparable across participants and omit that additional transform.
Rᵦᵣₐᵢₙ⁽ˢ⁾ = corr(W⁽ˢ⁾ ⋅ X, Y⁽ˢ⁾)
Here Rᵦᵣₐᵢₙ⁽ˢ⁾ is the correlation obtained from the language features for participant s. W⁽ˢ⁾ is the fitted ridge readout, X is the prepared word-feature series for the stories that person heard, and Y⁽ˢ⁾ is that person's recording. The dot applies the readout and corr compares its predictions with the measured response at the relevant location on the held-out data.
R꜀ₑᵢₗᵢₙ𝓰⁽ˢ⁾ = corr(W⁽ˢ⁾ ⋅ Ȳ⁽ˢ⁾, Y⁽ˢ⁾)
Here R꜀ₑᵢₗᵢₙ𝓰⁽ˢ⁾ is the noise-ceiling estimate for participant s. The same notation W⁽ˢ⁾ describes a ridge readout in the same evaluation framework, fitted in this case with Ȳ⁽ˢ⁾ as input. The output is compared with Y⁽ˢ⁾ using Pearson correlation, represented by corr. The authors average the test correlations across the five folds for each readout. The ceiling estimates predictability from the response component available in other listeners. It gives the absolute brain score a reference scale tied to the recordings.
Train for a distant representation
The window experiment keeps GPT-2 fixed and supplies later representations to the readout. The training experiment changes what GPT-2 itself learns to anticipate. The authors start from a pretrained GPT-2, keep the ordinary next-token output, and attach another linear output to the last layer. The extra output takes the state at the current position and produces a vector intended to match a later word's contextual representation.
The target vector comes from a separate pretrained GPT-2 whose weights stay fixed. Its layer k = 8 yields the desired representation of the word at d = 8. The system being trained gets the current input when it makes its prediction. The frozen network can process up to the later word to construct the target. Keeping that network fixed gives a stable definition of the training target while the predicting network changes.
The authors call the adjustment of the pretrained network fine-tuning. They combine the losses for the immediate and distant targets. A loss is a quantity the training procedure tries to reduce.
ℒ = α′ℒhigh−level + (1 − α′)ℒlanguage modelling
Here ℒ is the total training loss. ℒhigh−level measures performance on the distant-representation target, and ℒlanguage modelling measures next-token performance. The coefficient α′ weights the former, while its complement, 1 − α′, weights the latter. The paper distinguishes this coefficient from the experimental setting α, which describes the intended contribution of the high-level objective. The coefficient α′ is adjusted during training because the numerical magnitudes of the losses can change.
α′ℒhigh−level = α(1 − α′)ℒlanguage modelling
This is the constraint as written in the paper. The left side is the weighted high-level loss. The right side multiplies the weighted next-token loss by α. The symbols ℒhigh−level, ℒlanguage modelling, and α′ have the roles given above, and α is the chosen high-level setting in the range from 0 to 1. Read literally, the displayed constraint makes α a ratio of weighted terms. The prose describes α as a share of the total, calling α = 0.5 an equal mixture with each term contributing 50%. The experimental conditions below use the authors' reported labels.
For the immediate target, the readout predicts the next token using cross-entropy, which penalizes assigning a low probability to the observed token.
ℒlanguage modelling = CE[hLM ∘ f(xₜ), xₜ₊₁]
Here ℒlanguage modelling is the next-token loss, and CE is cross-entropy. The function f is the trainable GPT-2 initialized from its pretrained weights. The sequence x is represented at input position t by xₜ, while xₜ₊₁ gives the corresponding succeeding token. The symbol hLM names the linear next-token output, and ∘ indicates that it is applied to the representation computed by f. The head maps 768 internal features to nᵥₒ꜀ₐᵦ outputs, where nᵥₒ꜀ₐᵦ is the vocabulary size.
ℒhigh−level⁽ᵏ,ᵈ⁾ = CPC[hhigh−level ∘ f(xₜ), Nₖ(xₜ₊d)]
Here ℒhigh−level⁽ᵏ,ᵈ⁾ is the loss for a target at layer k and distance d. The trainable function f receives the input xₜ at the current position t. The symbol hhigh−level denotes the linear forecasting output, mapping 768 features to 768, and ∘ indicates application of that output to the result of f. The fixed network Nₖ supplies its layer-k representation at xₜ₊d, the future position at offset d. CPC is the contrastive predictive coding loss. It rewards a prediction that is similar to the intended target relative to sampled alternatives.
CPC = −log(Exp[S(yₚᵣₑd, yₚₒₛ) / τ] / ∑ₙₑg Exp[S(yₚᵣₑd, yₙₑg) / τ])
Here yₚᵣₑd is the predicted vector, yₚₒₛ is the positive target vector, and yₙₑg denotes a negative comparison vector. The function S is cosine similarity, which compares vector directions. The temperature τ, set to 0.1, scales the similarities before Exp exponentiates them. The summation runs over the negatives as written in the paper. The outer −log takes the negative logarithm of the resulting ratio. Increasing the target's similarity relative to the negative similarities improves the objective in this formulation.
The training procedure draws 2,000 negatives from a queue of size 2,500. As batches are processed, the queue receives fixed-network features for non-target words. This exposes the forecasting output to alternatives without requiring every possible continuation to be considered. The authors update α′ every 100 gradient steps to adjust the contributions of the two objectives as training progresses.
Fine-tuning uses preprocessed English Wikipedia with 6M documents and 30 GB of text. The reported setup uses 2 graphics processing units, a context of 256 tokens, and a batch size of 4 per device. The paper gives the resulting batch as 1,024 tokens per gradient update. The implementation uses the Hugging Face Trainer and the Adam optimizer with a learning rate of 0.00005. Training updates layers 8 through 12 and keeps the lower layers frozen. A separate set of 1,000 Wikipedia documents is used to monitor losses. The paper reports that updating the whole network with the language-modelling objective under fixed training settings had reduced brain scores, which motivated restricting the layers that could change.
The authors train seven variants with different high-level weight settings. They save ≈15 checkpoints per variant, spaced on a logarithmic schedule between 0 and 10⁶ gradient updates. They then return to Narratives to assess brain scores at the checkpoints. The readout uses concatenated features from layers 0, 4, 8, and 12 because the location of relevant information within the network could shift during fine-tuning. The reported training-objective comparison averages the brain scores across steps. This makes it a comparison over the measured training trajectories, with the same story-listening task used to assess each trajectory.
Experiments and results
The recordings and the baseline
The original Narratives collection contains 345 participants and 27 spoken stories. Individual stories range from 7 to 56 min, and the original collection has 4.6 h of unique material. The Methods give the retained analysis set as 304 people, 622 participant–story pairs, and 4 h of unique audio after exclusions. The Results describe average listening time as 26 min per participant, with individual totals ranging from 7 to 99 min. The units matter because a story can be heard by many listeners, and a person can contribute more than one story.
The primary comparison uses each person's held-out scan segments, with a separate readout for each voxel. The same recording partitions support the current-word baseline and the augmented feature conditions. This makes the forecast score a gain over what GPT-2's contextual current-word features already explain. A second reference, word rate, measures how much can be captured from the timing and amount of speech. The paper also compares other pretrained language systems and lower-level speech features in supplementary analyses. The inter-listener ceiling puts the attainable correlations in the context of shared responses to the stories.
With the eighth-layer GPT-2 features, a distributed network in both hemispheres shows significant brain scores. The strongest scores occur in auditory and temporal regions, including anterior and superior temporal areas. The paper gives R = 0.23 in the superior temporal sulcus as an example of a peak held-out brain score. It reports that the highest scores represent 60% of the signal estimated to be explainable by the noise-ceiling comparison. That percentage refers to the ceiling derived from other listeners' recordings. The underlying score remains a correlation between predicted and observed time series.
On average, other pretrained language systems yield similar brain scores in the supplementary comparison. Adding lower-level speech features can further improve predictions in auditory regions. Word rate, the brain-to-brain reference, and GPT-2 all give strong scores in the language network. These results situate the richer features among controls that capture different aspects of the listening task. They also explain why the later comparisons focus on gains over a contextual baseline rather than on the spatial distribution of absolute scores alone.
How far ahead the windows help
When the forecast-window endpoint is varied, the mean held-out brain score peaks at d = 8. The curve at this distance comes from predictions using 7 successive word representations appended to the current-word features. The paper reports an average speech rate of 2.54 words per second and gives 3.15 s as the corresponding time for an offset of 8 words. The conversion describes the average pace of the stimulus. The windows are constructed in words, so their duration in seconds varies with the passage.
The authors report a 23% improvement in brain scores from the long-range forecast representations, with ±9% across individuals. The improvement is relative to the current-feature mapping. The forecast curves themselves use the difference between correlations. Both forms of reporting describe the effect of adding future features, but the percentage summarizes the relative gain and the plotted forecast score is an absolute increment in the correlation metric.
The gains are distributed across both hemispheres. The paper reports differences between hemispheres in the pars opercularis of the inferior frontal gyrus and in the supramarginal gyrus, with P < 0.001 after correction in the stated comparisons. The spatial organization of the distances that give the best scores is largely symmetric. A region can therefore participate in the broader hierarchy even if the strength of the gain differs across hemispheres.
The regional analysis selects the endpoint with the highest forecast score for each participant and voxel, then summarizes the selected endpoints within regions. Frontal areas tend to favor windows ending farther ahead than temporal areas. For the inferior frontal comparison with the anterior superior temporal sulcus, the paper gives Δd∗ = 0.9 ± 0.2 with P < 0.001. The plotted region is the pars opercularis of the inferior frontal gyrus. The difference is measured in word offsets, with the reported uncertainty attached to the difference between regional peak locations.
For a closer look at the curves, the authors show results for a group selected to have peaks in the 45–55 percentiles, with n = 30 individuals. These curves illustrate representative peak locations within the chosen regions. The participant-specific, voxelwise analysis and regional summaries use the main cohort. The paper provides 95% confidence intervals across individuals for its plotted averages, and it also summarizes variation over 10 random subdivisions of the dataset for regional comparisons.
Depth and linguistic content
At d = 8, deeper forecast representations give the largest gain in many association areas. The paper reports optimal depths k∗ > 6 for associative cortex and k∗ < 6 for regions such as Heschl's gyri and sulci and the anterior superior temporal sulcus. The difference between the angular gyrus and Heschl's gyri is Δk∗ = 2.5 ± 0.3, with P < 0.001. The regional ordering appears in both hemispheres. Because the comparison uses gains against each layer's own present-position features, the result concerns what forecasting with that layer adds.
Changing the content of the window yields another difference in temporal scope. The syntactic feature window peaks at d∗ = 5, and the semantic residual window peaks at d∗ = 8. These are endpoint positions of the maxima in the average forecast-score curves for Narratives, evaluated on held-out brain data. The chart compares horizon, with a higher value indicating a farther endpoint.
Peak forecast distance for syntactic and semantic features on Narratives
The meaning-related features reach their best held-out brain prediction with a window ending farther ahead.
The numbers
| System or setting | words to the window endpoint |
|---|---|
| Syntactic features | 5 |
| Semantic residual features (this paper) | 8 |
The shorter-range syntactic effect is concentrated in superior temporal and left frontal areas. The semantic residual produces a distributed effect whose strongest regions are frontal and parietal. The spatial maps for these feature types use each type's own best endpoint. They show where a window of that form helps at its characteristic distance. The distance curves establish the temporal difference, and the maps indicate the regions associated with each gain.
The comparison is meaningful even though both feature streams originate in the same pretrained network. It changes what part of each forecast vector is given to the readout while leaving the stories and the broad encoding procedure in place. The residual's longer reach is consistent with the authors' proposal that anticipating information about meaning can remain useful farther ahead than anticipating local grammatical structure. The study's interpretation depends on the way the feature decomposition operationalizes those terms.
The training objective comparison
Fine-tuning tests whether future-oriented training alone can improve the feature stream supplied to the readout. All variants start from GPT-2 and are fine-tuned on Wikipedia. The baseline variant uses only next-token language modelling, at α = 0. The figure's highlighted comparison adds the high-level target at α = 0.5. The training sweep also extends to α = 1, the setting described as full high-level prediction. Brain scores are evaluated with the same held-out approach on Narratives and combined across the saved training steps.
The mixed objective yields a gain of >2% on average in the inferior frontal gyrus and the angular and supramarginal gyri, with P < 0.001 for the reported comparisons. The lower-level auditory regions do not show a significant comparable benefit. The voxel map for the highlighted comparison applies a threshold of P < 0.05 after false discovery rate correction, while the paper's main forecast maps use P < 0.01 after correction. The regional curves summarize gains and 95% confidence intervals across the 304 listeners.
The two reported percentage gains refer to different interventions. The 23% improvement concerns giving a readout explicit window features from the story. The >2% result concerns changing the training objective and evaluating representations obtained from the resulting network against a fine-tuned next-token baseline. In the latter test, the distant target is used during Wikipedia training, and the readout is evaluated with the network's extracted features on the listening task. The correspondence between the regions favored by both tests is the important overlap.
What the ablations show
Which parts of the improvement depend on the window?
The paper uses supplementary controls to examine several choices behind the main forecast curve. One analysis tests contributions across individual positions and reports significant contributions from positions running from word zero through ten. This helps establish that the effect extends across a span of the story. The best endpoint of the main window captures a region of the curve where a group of word representations is especially useful, with evidence of a contribution from positions outside any single peak.
Another analysis changes the amount of information retained in the window. It reports the best capture of the forecast effect with a width of around 8 words. The distinction between width and endpoint is essential for interpreting this comparison. Width concerns how many adjacent vectors the regression has available at a particular reference position. Endpoint concerns where that span stops. A window can cover several words near the current position or cover the same number farther ahead. The width control supports using a stretch of context to probe the effect, while the endpoint comparison estimates where such a stretch helps most.
A random forecast representation does not produce the improvement. The control matters because adding a new input stream gives the regression more parameters to fit even after the streams are compressed. If expansion alone accounted for the apparent effect, random inputs could also help out of sample. The observed contrast favors an explanation tied to the information in the story-derived vectors. It leaves open which features within those vectors matter most.
The authors also repeat their main analysis without PCA. They report that dimensionality reduction slightly underestimates the brain scores and the forecast effect. This comparison checks whether the compressed feature space is responsible for the pattern. The effect survives when the regression can use the uncompressed representations, while the exact size of the gain depends partly on how the features are prepared.
What happens when the continuation must be generated?
The actual story gives the analysis a continuation that the participant really heard. It also gives the encoding procedure information that was unavailable to the listener as observed input at the reference word. The authors test a version of the method that substitutes generated words from GPT-2. This changes the origin of the window features while retaining the idea of representing a plausible continuation and measuring its relationship to the current brain response.
The generated continuations yield weaker scores with a similar pattern. The weaker fit indicates that the realized story provides useful information beyond what the generated continuation captures. The remaining effect shows that an approximate continuation can still contain features that help account for brain responses. This is compatible with expectations that preserve broad properties across several possible continuations, especially where exact wording is uncertain. The comparison measures gains in the encoding task and gives no record of the specific continuation any individual listener had in mind.
The fixed-distance layer comparison changes a different property of the window. It asks which layer supplies the most useful added features when every layer is tested at the same endpoint. Deeper layers helping more in association areas, together with shallower layers helping more in parts of temporal cortex, is consistent with different degrees of contextualization. Because the present-position stream changes with the window stream, it remains a comparison of layer-specific increments. The result is particularly informative about how much each layer gains from access to later representations beyond what its own current vectors provide.
Which forecast features carry the long-range gain?
The syntax and semantic residual analyses vary the content of the same kind of temporal window. The shorter syntactic peak and the longer semantic peak separate two properties that are mixed together in full GPT-2 activations. Matching grammatical structure across generated continuations gives the authors a way to preserve some information and average away some variation. The residual then captures what the true continuation contributes beyond that common structure. The displacement of the peaks shows that the longer-horizon effect is more closely associated with the residual under this decomposition.
The syntactic condition can give lower brain scores with a distant window than with the simpler baseline. The authors point out that extra input dimensions can reduce held-out accuracy when they carry little extra information for the readout. In that case the fitted regression has more opportunities to pick up unreliable associations. The negative gain at distant syntactic offsets is evidence about the detectability of a forecast under this setup. It does not show that a listener actively suppresses syntactic predictions at a particular distance, or that a different measure of syntactic structure would produce the same curve.
There is also a distinction between comparing the locations of the peaks and comparing their amplitudes. The peak distances describe where each feature stream offers its strongest improvement. A larger or smaller gain at that peak would additionally depend on the features' quality, on how much the baseline already captures, and on the variability of the brain response. The paper's central distinction is supported by a shift in the distance curves and by the spatial distribution of the corresponding gains.
What changing the learning objective adds
The training sweep controls for the possibility that additional training alone will produce the frontoparietal gain. Its reference system also starts from GPT-2, sees Wikipedia during fine-tuning, and continues next-token training. The authors vary the contribution assigned to the high-level objective and compare brain scores on the same recordings. That makes the benefit evidence about the package of changes associated with a future-representation target, within the layers and training schedule used in the paper.
The distant objective simultaneously changes when and what the network predicts. It uses a later word and replaces the token identity at that position with a contextual vector as the supervisory target. The experiment therefore shows what happens when those changes are combined. The window-distance sweep and the depth and feature comparisons provide separate evidence about those dimensions. The training comparison by itself cannot assign the gain uniquely to target depth, temporal distance, or their interaction.
Freezing lower layers is a stability choice with an empirical motivation. Under the authors' fixed training parameters, fine-tuning the whole network on next-token prediction reduced brain scores. The reported sweep consequently compares objectives in the upper portion of the network. The multidepth evaluation at the checkpoints addresses a further ambiguity: a representation can become easier to detect in a different layer through training. Reading from several depths reduces the extent to which the comparison hinges on an unchanged layer location.
Limitations
Limits identified by the authors
The authors explicitly identify the temporal resolution of the recordings as a limit. The fMRI sampling interval is 1.5 s, and the measured response has to be related to the stimulus through a lagged readout. The setup is suited to asking about differences over stretches of speech, which is the aim of the window comparisons. Sublexical predictions concern units smaller than a word and can unfold at a much finer timescale. The paper says that fMRI at this resolution is poorly suited to investigating them. Even when offsets are reported in words, the measurement remains tied to a slowly varying response.
A second limit concerns the content of the representations. The authors use GPT-2 layers, grammatical matches, and residual features to distinguish possibilities, but they say the precise computations in each region still need to be characterized. A preference for deeper features is evidence about which representation assists a linear readout. The individual properties within that representation are only partially characterized. The authors also leave open how the hierarchy of linguistic structures relates to functional organization across cortex and to depth in the network.
The paper describes its predictive coding training experiment as rudimentary. It assigns a particular distant contextual target and looks for gains in held-out brain prediction. The authors call for broader tests and evaluations on natural language processing benchmarks to establish practical utility. The study measures similarity to brain responses under a particular task and readout. It does not demonstrate gains in narrative coherence, grammatical generalization, or comprehension as a result of the training objective.
The authors also circumscribe the result for distant syntactic structure. They describe a long-range syntactic forecast as undetectable in these data. The cost of adding weak features to the regression gives one reason a distant window may lower the score. That leaves room for grammatical expectations that are subtler, represented differently, or only measurable under conditions outside this experiment.
Limits visible in the study design
A window made from later words can be informative for more than one reason. Language at different positions in the same narrative is correlated. A later feature vector may reflect the same topic, participants, or event as an earlier passage. It may also encode aspects of the earlier passage because GPT-2 forms that later vector with access to preceding text. The current-position baseline, past windows, random-feature control, and generated continuations narrow the interpretation. They cannot experimentally vary the future continuation while preserving everything the listener actually heard up to that point. The association leaves open a contribution from shared narrative context or an incomplete baseline representation of the present and past.
The measured quantity also limits the claim about predictive coding as a mechanism. A positive forecast score shows that future-related features help a linear readout predict the held-out signal. The experiment does not track a region's own guessed vector and compare it with a measured error vector after the next input arrives. It likewise does not determine the direction of communication between cortical areas. The spatial hierarchy gives evidence about how temporal and representational preferences differ across areas. A full account of predictive coding would additionally have to explain how expectations and errors are exchanged and how they update later processing.
The peak statistics are summaries of a particular set of candidate windows. The endpoint is not a direct measure of the farthest word or event that a listener can anticipate. Window width, feature choice, and the shape of the curve all affect where the maximum falls. The average regional differences are informative about relative preferences, but rankings of neighboring offsets can be sensitive when the curve is broad. The authors' significance filter addresses flat curves for the map. A significant difference between gains at the present and future endpoints still allows uncertainty about the exact location of a particular person's peak.
The syntax and semantic split also inherits the limits of its construction. Matching part-of-speech and dependency tags selects a specific description of grammatical structure. Averaging matched continuations removes some variation, while a residual can include word identity, properties of the generated alternatives, and other features unrelated to meaning alone. The paper's evidence supports a longer horizon for this meaning-related representation than for its syntax-associated counterpart. It cannot establish that the brain has isolated the same components or draws the same boundary between them.
The noise ceiling reflects predictable responses shared among people hearing the same story. Individual patterns can depart from the group average for reasons other than measurement noise. A high proportion of this estimated ceiling indicates that the feature set captures much of what is recoverable under that reference procedure. It gives no direct fraction of a listener's language processing explained. Similarly, holding out contiguous response segments tests temporal generalization within the recordings, whereas transfer to a different listening task, language, or participant population would require evidence from those settings.
Some quantitative details also warrant care when reconstructing the method. The paper's stated window width and examples agree with each other, while the printed indexing includes an additional position. The mixture labels describe a fractional contribution, while the written loss constraint expresses a ratio. The distance definition above follows the examples, and the fine-tuning results use the authors' labeled settings. These discrepancies matter for reproducing the exact implementation. The comparisons in the paper still give the reported directions and sizes for the conditions as labeled.
What came after
The later papers cite this study in connection with several different questions. Their titles identify the subjects of those connections. They do not establish which experiments or parts of the analysis each paper adopts, so the relationship can be described most precisely at the level of the question or application each work names.
Language acquisition: do children and language models follow similar learning stages? places human–machine comparison in a developmental setting. Caucheteux and colleagues compare representations from an already trained system with responses during story listening. The later paper asks whether children and computational systems show comparable stages as they acquire language. The earlier alignment gives this question a concrete point of comparison, while the developmental question concerns the path by which capabilities appear.
Large Language Models Are Human-Like Internally takes up the question of internal similarity. The connection is to the choice to compare representations, instead of relying solely on observable answers to language tasks. In the original study, similarity is measured through a readout from a particular representation to a particular brain signal. The later work's focus on internal organization puts the interpretation of such comparisons squarely at issue. A claim about internal likeness depends on the properties and level at which the likeness is assessed.
On the Proper Treatment of Tokenization in Psycholinguistics addresses the units used in computational accounts of human language processing. The original paper shows why this is relevant. GPT-2 processes tokens, while the forecast windows are indexed by words and the regressions operate on values grouped by scan interval. The later work makes the treatment of those computational units its subject. Its cited connection sits at the point where a quantity defined by the predictor is compared with a human measurement indexed on a different scale.
Language Reconstruction with Brain Predictive Coding from fMRI Data names language reconstruction as the application of predictive coding. This reverses the direction of the central mapping question. Here the original study supplies representations derived from language and asks how well they predict a brain recording. The later title points to a task in which the recording is the input and recovering language is the aim. The common issue is which features of language can be related to the fMRI signal when anticipation is part of the account.
A Review of Incorporating Psychological Theories in LLMs considers a broader class of connections between human cognition and computational design. The original study provides an example of how such a connection can be operationalized. A theory about the scope and content of human expectations motivates an additional objective, and the resulting representations are compared in a brain-prediction task. The later review takes the incorporation of psychological theories as its subject, placing that sort of translation from a theory to a learning objective within a wider question.
Memory efficiency and resource-rational encoding in sentence processing concerns how sentence information is encoded under resource demands. It connects to the original paper's question about which properties of a linguistic representation are useful at different distances. A forecast depends on the context available to support it, while a memory-efficiency account asks which information is retained for processing in the first place. Taken together as questions, they distinguish the information a listener carries forward from the information that listener can use to prepare for what follows.
Cite
Cite as Charlotte Caucheteux, Alexandre Gramfort and Jean-Rémi King. 2023. Evidence of a predictive coding hierarchy in the human brain listening to speech. Nature Human Behaviour.
@inproceedings{caucheteux2023evidence,
title = {{Evidence of a predictive coding hierarchy in the human brain listening to speech}},
author = {Charlotte Caucheteux, Alexandre Gramfort and Jean-Rémi King},
booktitle = {Nature Human Behaviour},
year = {2023},
doi = {10.1038/s41562-022-01516-2},
url = {https://doi.org/10.1038/s41562-022-01516-2}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/caucheteux-2023-evidence-predictive-coding-hierarchy-human/