Elamur Research

Deep language algorithms predict semantic comprehension from brain activity

Paper · 2022 · Charlotte Caucheteux, Alexandre Gramfort and Jean-Rémi King

Summary

Two people can listen to the same story and come away with different understandings of it. A recording of their brain activity might reveal some of that difference, but it also reflects processes such as hearing speech and recognizing familiar words. Caucheteux and colleagues ask whether the activity that a text-prediction algorithm can explain has anything to do with how much a listener understands. Their test brings together brain recordings, the text of each story, and answers to questions about it.

The authors study functional magnetic resonance imaging, or fMRI, from 101 people who listened to selections from seven short stories. The stories comprise 70 min of distinct audio. The authors give GPT-2 the transcripts and extract its internal representations as it processes each piece of text in order. They use those representations to estimate the recorded brain activity during the corresponding audio. The accuracy of that estimate on held-out portions of the recording is the brain score. Each listener also has a separate comprehension score for each story they heard, based on a questionnaire administered afterwards.

Across listener–story pairs, the whole-brain score correlates with questionnaire performance at R = 0.50, with p < 10⁻¹⁵. The association appears within individual stories as well, so differences between stories alone cannot account for it. Speech features such as word and phoneme rates also produce brain scores that track comprehension, although their association is weaker. Representations that allow the same word to take on different values in different contexts give a stronger association than fixed vectors for individual words.

The authors also vary how far GPT-2 can look back in the transcript. Distant context helps especially in its middle layers, and the strongest relationship with comprehension occurs in regions that include the angular and supramarginal gyri. Auditory regions can be easier to predict overall while showing a weaker link to questionnaire performance. Restricting the earliest layer to nearby words can even strengthen that layer’s association with comprehension. These findings give the authors a way to distinguish brain responses that track local speech from responses whose relationship with understanding is better captured by information drawn from across the story. The evidence comes from associations with questionnaire performance and leaves open which processes cause a listener to understand more.

Deep dive: Deep language algorithms predict semantic comprehension from brain activity

Caucheteux and colleagues use GPT-2 to test whether brain responses to spoken stories track how well individual listeners understand them. · about 34 minutes to read

The problem and its context

What a good prediction of brain activity can tell us

A story provides several kinds of information at the same time. The listener hears a sequence of speech sounds, identifies words, and connects their meanings to what has already happened. A passage can be clear at the level of individual words while remaining puzzling because the listener has missed an earlier event. For a study of comprehension, the challenge is to tell which parts of the recorded response are related to making sense of the story and which parts follow from other processes involved in listening.

The authors approach that challenge through work on natural language processing. GPT-2 learns from text by trying to predict what comes next. To do this, it forms intermediate numerical representations of the text it has seen. Those numbers can be used as predictors in an experiment with brain recordings. If they provide information about how a listener’s signal changes over time, then the two systems respond to some common properties of the story. The scientific question is what those properties have to do with understanding.

Earlier studies described by the paper had already shown that internal representations from deep networks could be used in linear predictions of brain responses to language. The authors discuss evidence from fMRI, from magnetoencephalography, which measures magnetic fields associated with neural activity, and from recordings made with electrodes inside the skull. The work covered both heard and written language. Other studies related the accuracy of these brain predictions to the linguistic information in the representations or to how well the underlying algorithm anticipated words. This gave the authors a reason to take the correspondence seriously, while leaving a behavioral question open. Does a stronger correspondence go with better understanding by the person whose brain was recorded?

The question mattered because the paper describes a gap between strong performance on language tasks and clear evidence about the processes behind that performance. It points to difficulties with subject–verb agreement, causal reasoning, and tasks such as generating a coherent story or answering questions about long passages. A system might make effective use of text statistics in one setting and still struggle when success depends on a specific relationship among words or events. This makes it important to test how the internal representations relate to behavior separately from testing their ability to follow a text or predict a brain recording.

The direction of the prediction also matters. The study starts with a known story and asks how well numerical features of that story can predict a measured response. It then asks whether the strength of the prediction varies with comprehension. In that design, the questionnaire supplies behavioral evidence from outside the brain prediction itself. A response pattern can be very predictable from the story for all listeners, yet tell researchers little about why some earned better questionnaire scores. A weaker correspondence may be more informative about comprehension if it varies systematically from listener to listener.

What earlier experiments changed in the speech

The paper describes earlier studies that made the input easier or harder to understand. In work by Lerner and colleagues, researchers compared ordinary narratives with material scrambled at different levels, such as words, sentences, or paragraphs. They measured how consistently brain activity varied across people exposed to the same input. Auditory areas could show agreement across listeners even under heavy scrambling. Agreement in parts of frontal, temporal, and parietal cortex depended more on preserving larger stretches of coherent material.

That approach uses agreement among listeners as its measure. It asks where people’s responses remain similar under different degrees of disruption. The present study starts from the related idea that a response to language can depend on how much surrounding material makes sense together. It changes the measurement by asking which numerical descriptions of the story predict an individual’s response and how that prediction relates to what the person understood. There is no need to make a new scrambled version of a story for that comparison. Listeners exposed to the same recording already vary in their answers.

The authors also discuss work by Broderick and colleagues. Those experiments related word vectors to electroencephalography, or EEG, which records electrical activity using electrodes. The studies used conditions that included reordered speech, speech played backward, and speech in noise. The connection between the vectors and the recordings varied with how comprehensible the speech was. That work supplied a precedent for measuring comprehension through the relationship between properties of the stimulus and responses to it. Caucheteux and colleagues extend the question to representations drawn from different layers of a single text-prediction system, with the length of available context under experimental control.

The earlier approaches and the new design therefore identify variation in different places. Reordering an audio recording changes what everyone in that condition receives. Noise can make some of the speech difficult to recover. A comparison within an intact story keeps the words, the sequence, and the recording fixed while allowing the questionnaire scores to differ. It is then possible to ask why a representation of the same stimulus predicts one listener’s response better than another’s. The setup does not specify the source of that variation in advance, which is part of both its usefulness and its difficulty.

From recognizing words to connecting a story

The paper situates the experiment alongside theories that give different roles to different parts of the language system. The Memory, Unification and Control account distinguishes access to linguistic information, its combination into larger units, and control over the process. As the authors describe it, the account relates these functions to the temporal lobe, Broca’s area, and other parts of prefrontal cortex, respectively. The extended Argument Dependency account draws a distinction between forms of combination that differ in their dependence on time and relates them to separate auditory pathways.

These theories motivate a practical question about timescale. To identify a sound in a word, a listener may depend heavily on speech from nearby moments. To understand the significance of a revelation in a story, the relevant information may have appeared much earlier. A study of brain responses can ask whether regions differ in their sensitivity to features that carry local or distant information. GPT-2 provides a way to vary that information while leaving the story itself intact.

In GPT-2, Transformer attention allows a representation at the current position to draw on preceding positions. An attention span is the distance over which the study permits that operation. Layer depth is a separate property. A later layer transforms representations that have already passed through earlier ones, so it can operate on text information that has been combined before. Varying depth and permitted distance independently gives the study a way to ask whether the behavioral association depends on repeated transformation, on access to farther context, or on the combination.

The method, step by step

Match each recording to a story and a questionnaire

The study begins with Narratives, a public dataset containing fMRI from 345 people listening to 27 narratives. The authors select the seven stories with a post-listening questionnaire and enough variation in the answers to analyze individual differences. Specifically, a story had to have more than ten distinct comprehension scores across listeners. The selected audio totals 70 min, with stories ranging from four to 19 minutes.

A participant did not have to listen to every story. The observation that connects the brain and behavior analyses is the recording of a particular person hearing a particular narrative. The authors use the dataset’s exclusions for noisy recordings. The resulting analysis covers 237 listener–story pairs involving 101 people. A participant who listened to several stories can contribute several pairs. The number of pairs therefore describes the amount of paired recording and questionnaire data, while the participant count describes how many people contributed them.

The authors use the comprehension scores already calculated in Narratives. The questionnaires included multiple-choice questions, items that asked the listener to supply missing information, and open questions with human-rated answers. Depending on the questionnaire, its score came from the proportion of correct responses or from summed human ratings, expressed on a scale from 0 to 1. The scale puts outcomes in a common numerical range. The items and the way they elicit an answer can still differ across narratives.

This score is attached to a complete listening session. It represents performance on the questions about that story as a whole. The method has no parallel comprehension label to match to each event or each brain scan. That distinction is central to the analysis. Prediction of the fMRI signal is evaluated over time within a session, and the relationship with comprehension is evaluated by comparing sessions using their resulting scores.

From a spoken story to the comprehension analysis

The steps in order.

From a spoken story to the comprehension analysisStep 1: Pair each recording with its questionnaire score1. Pair each recording with its questionnaire scoreStep 2: Prepare and tokenize the story transcript2. Prepare and tokenize the story transcriptStep 3: Extract representations using preceding text3. Extract representations using preceding textStep 4: Align and sum representations within scan intervals4. Align and sum representations within scan intervalsStep 5: Fit delayed predictors for each voxel5. Fit delayed predictors for each voxelStep 6: Score predictions on held-out recording segments6. Score predictions on held-out recording segmentsStep 7: Relate brain scores to questionnaire performance7. Relate brain scores to questionnaire performance

Produce a timed sequence of text representations

GPT-2 is a pretrained language prediction system that uses preceding text to estimate what comes next. At its input, a lookup table assigns the same vector to a vocabulary item wherever it occurs. This is the non-contextual part of the representation. Above this input are twelve Transformer layers. At each layer, the representation of an item can reflect preceding text as well as the identity of the item itself. For an engineer, a layer’s output for a story is a sequence of vectors in transcript order. The paper gives the vector dimension as 768.

A contextual representation can distinguish appearances of a word whose spelling is the same even when its role in the story differs. A fixed vector offers the same input for each appearance. The contextual version can change if the word follows a different subject, appears in a different part of a sentence, or comes after a passage that changes what the reader expects. These are ways context could affect an internal representation. Which of them matters for the brain association is a separate question.

The researchers prepare the transcripts before running GPT-2. Their formatting changes include converting some special or duplicated punctuation to periods. They then apply GPT-2’s tokenizer, which segments the text into the units the system handles. A token is one such unit. The relevant context limit is specified in tokens, even though the paper sometimes talks about words when describing context. They use the pretrained implementation distributed through the Hugging Face Transformers toolkit.

To obtain a representation for the current token, the authors present it together with as much of the immediately preceding text as the window permits. The window holds up to 1024 tokens including the current one, so it can contain up to 1023 preceding tokens. At the start of the story, the context consists of the earlier tokens available so far. Farther into the story, the window slides forward and text falls out of it. The researchers keep the representation corresponding to the current position and repeat the process across the transcript. Future text plays no role in forming that representation.

The paper’s example of the third token makes the procedure concrete. The input contains the first, second, and third tokens in sequence. From the resulting activations, the experiment retains the vector at the third position. At later positions the procedure is the same, with a longer stretch of past text available up to the limit. A listener who already knows the story could of course anticipate its later events for other reasons. The feature extraction supplies GPT-2 with the transcript prefix alone.

The principal brain analysis uses activations from the eighth layer. The authors choose this layer because it had the highest whole-brain prediction score in their comparison across layers. This choice is made on the performance of the fMRI prediction. The paper also reports that its conclusions persist for other intermediate and deep layers, described in the methods as the 6th to 12th layers. The design thus uses one representation for the main comparisons while checking how relevant the choice is to the conclusions.

Put the transcript and brain recordings on the same clock

The fMRI measurements are taken at intervals of 1.5 seconds, the repetition time, or TR, used for the selected stories. A voxel is a small volume in the scan. Over the course of a narrative, each voxel supplies a sequence of measurements, and the regression tries to estimate the values in that sequence. The transcript representation starts on a different clock, with a vector for each token. Several text units can be spoken between two scans, and the rate of speech can change as the story proceeds.

The dataset includes timings that connect spoken material to the transcript. The authors use these correspondences to assign activations to the relevant scan intervals. Within an interval, they sum the vectors. Consequently, the text information fed into the brain analysis has one vector per measurement interval, and its dimensions remain those of the original representation. This preserves the timing of the feature stream at the scan scale. The order among tokens within an interval can affect their contextual vectors before the sum, while the sum discards their separate within-interval positions.

Alignment alone leaves a timing problem. A scan can reflect speech from earlier intervals because the measured signal responds over time. The authors use a finite impulse response construction with 5 delays. In this use of the term, a delay supplies the regression with the feature sum from an interval at a specified position relative to the measurement. Together, the delayed predictors allow the fit to learn how information from different recent intervals contributes to a voxel’s response.

The design therefore has two distinct ways in which earlier information can enter a prediction. GPT-2 can draw on earlier text to create a vector at the current position. The fMRI regression can also draw on vectors assigned to preceding scan intervals. The former concerns what the text representation contains, such as information about an earlier part of the plot. The latter concerns when features in the stimulus help estimate the recorded signal. The analysis of attention distance changes the former while retaining the framework for the latter.

Fit a separate prediction at each voxel

For a given narrative and listener, the target is one voxel’s sequence of fMRI measurements. The inputs are the text features for that narrative after alignment and the addition of delays. The authors use ridge regression, a linear prediction that penalizes large weights. It estimates the voxel’s activity by taking a weighted combination of the input features. The penalty matters because the features are numerous and some can carry similar information. Without a penalty, a fit can assign large, unstable contributions to individual features that happen to work well on the training segment.

The paper uses an ℓ₂ penalty. Here, ℓ₂ denotes the type of regularization that penalizes a sum of squared coefficient values. The regularization strength sets how much those large weights cost the fit. Instead of setting a single strength for all brain locations, the authors choose it for each voxel independently. They use RidgeCV with leave-one-sample-out cross-validation inside the training data. The search uses ten strengths spaced logarithmically between 10⁻¹ and 10⁸. Nested selection means the choices about regularization are made before performance is assessed on the outer test segment.

The time series for each listener–story pair is split into five contiguous chunks. In each outer fold, the training part contains 80% of the scans and the held-out part contains 20%. The authors repeat the fit across the five disjoint test folds. The brain score for a fold is Pearson’s correlation between the predicted and measured values on that fold. Pearson’s correlation measures whether high and low values in one series tend to accompany high and low values in the other. It measures tracking of fluctuations, and a good correlation can coexist with a mismatch in the absolute scale of the estimates.

The paper writes the brain-score relationship as follows, with the voxel left implicit because the calculation is repeated separately at each location.

M⁽ˢ,ʷ⁾(I) = L(((f ∘ g)(X⁽ʷ⁾))ᵢ)ᵢ∈I, (Yᵢ⁽ˢ,ʷ⁾)ᵢ∈I)

Here, M is the brain score for the held-out portion I, the set of scan indices in a test fold. s identifies the listener and w identifies the story. L denotes Pearson’s correlation. X⁽ʷ⁾ is the feature sequence elicited by the story, and Yᵢ⁽ˢ,ʷ⁾ is the recorded voxel value at scan i for that listener and story. The notation i ∈ I selects the scans belonging to the test fold. The function g constructs the temporal predictors, and f is the fitted linear regression that combines them for the voxel. The composition sign ∘ means that g is applied before f. The first sequence supplied to L consists of the resulting predictions, restricted to the same scans as the observed sequence supplied second.

The authors average the test-fold correlations. This gives a score for a voxel, feature set, listener, and story. They then average voxel scores either across the whole brain or within a region of interest, a set of voxels assigned to an anatomical area. The regional approach uses a subdivision of the Destrieux atlas. A regional score summarizes how well the feature set predicts fluctuations in that area across the scan sequence. The whole-brain score asks a broader question about overall predictability.

The held-out data in this procedure are portions of a recording. The analysis can therefore test whether the fitted relationship generalizes to other portions of the same listening session. The story and listener remain the same when a fit is trained and tested. This matters when interpreting the later behavioral result. Cross-validation protects the brain score against some ways a regression could fit its training segment too closely. The comparison with questionnaire scores is a separate operation.

Compare speech features, fixed vectors, and contextual vectors

The brain-prediction pipeline can take different descriptions of the same narrative. The lowest-level comparison uses phonological features, which characterize speech structure at or below the word level. The authors use the word rate and phoneme rate, each of dimension d = 1. In this setting, a rate is represented by the number of occurrences in a scan interval. A phoneme is a speech unit used to distinguish words. The remaining speech features encode the phonetic categories, stress, and tone annotated for the recording. These annotations come from the Narratives dataset and were computed using Gentle.

The paper describes 40 English phonemes and 4 possible tones, giving 160 possible categories in its accounting. Only 117 occur in the materials used for this representation. The observed categories are encoded in 117 dimensions. The encoding assigns a separate coordinate to each observed category, so a particular category can contribute independently of the others in the fitted prediction. The counts for speech rate supply additional information about when and how densely words or sounds occur.

The next description uses GPT-2’s input lookup vectors. These word embeddings supply information about the identities of the vocabulary items. They give the same representation to an item wherever it occurs. The final description uses contextual vectors from higher layers, principally the eighth layer. These can vary with the preceding text. All of the alternatives are evaluated using the same basic procedure for predicting a voxel from the timed feature stream.

The comparisons ask progressively more specific questions about the behavioral association. If phonological timing and category features were enough to account for it, one would expect them to produce a relationship comparable to that of the contextual vectors. If the identity of individual words were the main ingredient, the fixed embeddings would offer a closer explanation. A stronger association for contextual vectors makes it reasonable to inspect what happens when the system has access to more or less of the previous text. The comparisons describe the performance of different feature sets, each of which can carry overlapping information.

Relate the recording scores to behavior

Once every session has a brain score, the authors can ask whether listeners with higher scores also tend to have higher questionnaire results. The main calculation uses brain scores averaged over voxels, and the regional version repeats the calculation with the average for one area at a time. A compact notation for this relationship is:

R = L((Mⱼ)ⱼ∈J, (Cⱼ)ⱼ∈J)

R is the reported correlation with comprehension, and L again denotes Pearson’s correlation. J is the set of listener–story observations included in the comparison. The index j identifies a pair in that set, and j ∈ J means that both sequences run over those same pairs. Mⱼ is the brain score for pair j after averaging across the voxels relevant to the analysis. Cⱼ is that pair’s questionnaire score. This equation compares sessions, whereas the first equation compares scans within a session.

The authors use a two-sided Wilcoxon test across pairs to assess whether regional brain scores differ from zero. They use Pearson significance tests to assess associations with comprehension. For the specified regional tests, they adjust p-values for the many regions examined with a false discovery rate procedure. The correction addresses the fact that checking numerous areas creates opportunities for apparently significant relationships to appear by chance. It applies to the regional statistical tests, while the correlations themselves describe the size and direction of the measured associations.

The study also changes the input representations through attention restrictions. It selects a readout layer and limits the access that layers up to that point have to preceding positions. The authors vary the readout depth and the maximum attention distance independently, rebuild the features, and use them in the same brain-prediction and behavioral analyses. The resulting coefficients summarize changes across settings. The paper calls attention distance d in this part of the analysis. In descriptions of the feature vectors, it uses the same letter for their dimensionality. Narratives is publicly available through OpenNeuro and DataLad.

Experiments and results

Where the recording is predictable

The initial experiment asks how well the internal representations follow the time course of the fMRI signal. Contextual representations predict brain activity in a distributed network in both hemispheres. Strong prediction appears in middle and superior temporal areas, the supramarginal region, and inferior frontal cortex. This provides a starting point for the behavioral question. A feature set must capture some reliable variation in a listener’s recording before the strength of that relationship can be compared meaningfully with the listener’s understanding.

The layer comparison puts the non-contextual input and each of the twelve contextual layers through the brain-score calculation. The middle of the stack gives higher scores than its ends. The eighth layer has the highest score averaged over voxels and is used for the main behavioral analyses. The error bars in the layer comparison describe standard errors across the 237 listener–story pairs. The observed layer ordering is a result about the prediction of fMRI measurements. It does not by itself identify which layer is best for distinguishing high and low questionnaire performance.

Individual scans supply the data for each prediction, and the central result uses a summary over voxels. Those design choices make a brain score sensitive to the time course of a person’s recording over a story while reducing the need to interpret every spatial location separately. The regional analysis then asks whether a particular geographic pattern becomes visible when those same scores are summarized within areas. The two views are complementary. A whole-brain effect can be driven by distributed changes, and a regional effect can be behaviorally informative even in an area that is not among the easiest to predict.

How prediction quality relates to comprehension

The main result uses the 237 retained observations from the selected Narratives stories. For each listener–story pair, the authors average the eighth-layer brain score across voxels and compare it with the questionnaire result for the same pair. Pearson’s correlation is R = 0.50, with p < 10⁻¹⁵. The scatter plot presents individual pairs along with the fitted line and a 95% confidence interval for the regression coefficient. The upward association shows that pairs with a closer match between predicted and measured brain activity generally had better comprehension scores.

This result concerns a relationship between two measurements taken on different scales. The brain score is obtained from the rise and fall of a voxel’s estimated and recorded responses over scan times. The questionnaire score describes how a person answered questions after listening. The reported R relates those measurements across sessions after voxel averaging. It is therefore possible for two listeners to display a broadly similar neural response to a story while differing in prediction quality enough to contribute to the behavioral association.

The regional correlations with comprehension extend across temporal, parietal, and prefrontal cortex in both hemispheres. The paper draws particular attention to the angular and supramarginal gyri and also identifies medial temporal regions in its account of the strongest behavioral effects. These areas are part of a map of how the quality of a prediction changes with the questionnaire score. The map of raw fMRI predictability answers a different question, and the two maps need not peak in the same places.

A point in the paper’s comparison of those maps illustrates the difference. Auditory cortex includes areas where responses are relatively well predicted from the transcript representations. Their prediction quality can still have a comparatively weak relationship with comprehension. In some association areas, the overall prediction of fMRI is more modest, yet it tends to improve with listeners’ questionnaire performance. The behavioral analysis can therefore bring out properties of a region that would be easy to miss if the evaluation stopped at the average brain score.

What the simpler feature sets explain

The speech-feature baseline includes phonemes, their annotations for stress and tone, and the rates of words and phonemes. For this baseline, the whole-brain mapping score correlates with questionnaire performance at R = 0.17, with p < 10⁻². The left superior temporal cortex shows the strongest regional effects for this comparison. The baseline establishes that the link with comprehension is visible even when the representation contains only relatively local properties of speech. Listeners who follow a story well may also differ in how reliably their responses track those properties.

Whole-brain score correlations with comprehension on the selected Narratives stories

Contextual transcript representations show a stronger association with questionnaire performance than phonological features.

Whole-brain score correlations with comprehension on the selected Narratives storiesPhonological features: 0.17Phonological features0.17GPT-2 eighth-layer representations (this paper): 0.50GPT-2 eighth-layer representations (thispaper)0.50
The numbers
System or settingPearson R
Phonological features0.17
GPT-2 eighth-layer representations (this paper)0.50

The fixed word vectors offer a comparison between speech structure and context-sensitive text features. Their whole-brain brain score has a correlation with comprehension that the paper reports as 0.12 lower than the correlation obtained with the contextual eighth-layer vectors. That difference concerns the behavioral correlations. It is separate from the differences in brain scores that the paper uses to map where particular kinds of representation make a stronger prediction.

When the authors compare fixed word vectors with the phonological predictors, the spatial contrast associated with lexical information peaks in superior temporal cortex and in the pars triangularis, a portion of the inferior frontal gyrus. When they compare the eighth-layer vectors with fixed word vectors, stronger effects appear in superior frontal cortex, posterior superior temporal cortex, the precuneus, and the triangular and opercular portions of the inferior frontal gyrus. The locations differ depending on which change in representation is being assessed. This supports the authors’ argument that features tied to recognizing words and features that depend on their context contribute differently to the brain–behavior relationship.

Regional contrasts use differences of scores. For instance, the authors can subtract a listener’s brain score for fixed vectors from the score for contextual vectors, then ask whether that difference is larger among listeners with stronger comprehension. This keeps the comparison tied to the same person and story. It gives the authors a way to locate the relation between the added predictability and behavior. It cannot assign a unique linguistic property to the difference, since context changes several kinds of information together.

Whether a few stories drive the result

The pooled comparison combines different stories, so one possibility is that some of the narratives are both easier for listeners and easier for GPT-2 to represent. To investigate this possibility, the authors fit a linear mixed-effects regression relating comprehension to brain scores while treating narrative as a random effect. The estimated brain-score slope shared across stories is β = 0.04, with p < 10⁻²⁹. The paper reports the story-specific slope effect as β < 10⁻², with p > 0.11. These coefficients are from the mixed-effects analysis. Their units and interpretation differ from the Pearson correlation in the scatter plot.

The authors also calculate the correlation separately within each story. For “Sherlock,” the within-story correlation reaches 0.76. Every story has a correlation above 0.40. Within a story, both the audio and its transcript are shared, as are the questions used to assess its comprehension. Listeners still vary in how well their fMRI responses can be predicted and how well they answer the questions. The authors interpret this as evidence that individual differences within stories account for most of the pooled effect. What distinguishes individual listeners remains open.

What the ablations show

Depth and context answer different questions

The choice of a contextual representation leaves two explanations for its stronger association with comprehension. It has passed through several rounds of transformation, and those transformations can draw on distant text. An effect attributed to either property could depend on the other. The authors therefore restrict attention distance at different depths. For a chosen readout layer, the restriction applies to the layers up to that readout. They can then examine several distances at a fixed depth, or examine multiple depths under a given distance limit.

The restriction is applied when extracting GPT-2’s activations. The story, the human recording, and the questionnaire are unchanged by this computational intervention. The authors train a new linear mapping on the resulting features and evaluate it with the same fMRI scoring procedure. A change in the brain score shows that the intervention changed how well the representation supported neural prediction. A change in the correlation with comprehension shows that it altered how closely the prediction quality tracked questionnaire performance across pairs.

The paper describes the changes through the coefficients β distance and β layer. The first measures how a score changes as attention reaches farther back. A positive value identifies a score that tends to increase with distance. The second measures how a score changes with readout depth. A positive value favors deeper layers in the tested comparison, and a negative one favors shallower layers. These coefficients can be calculated for brain scores or for the association with comprehension. In the latter case the score undergoing change is an association across listener–story pairs, which is why the authors assess variability using resampling of those pairs.

Across the settings, both outcomes generally improve as attention reaches farther. For the positive distance effect, the paper reports p < 10⁻¹⁴ for brain scores and p = 0.01 for the correlation with comprehension. It also reports positive depth effects, with p < 10⁻⁴ for brain scores and p = 0.001 for the behavioral correlations. These are trends across the settings examined. The authors’ original layer comparison still places the strongest overall prediction in a middle layer. A positive depth trend summarizes a general pattern and can coexist with a peak before the last layer.

Where longer context continues to matter

The longer attention windows can preserve information from stretches of the narrative well beyond the immediately preceding phrase. The paper gives a comparison between spans of approximately 1000 and 300 words. The longer setting improves the score, with p < 10⁻⁴ for the fMRI prediction comparison and p = 0.02 for the comprehension comparison. The result shows that the useful contribution of prior text extends beyond short context in this experiment. The manipulation does not identify which earlier passage or linguistic cue accounts for the gain.

The reported advantage of longer distance depends on where the representations are read out. The paper compares layer 8 with layer 12. For brain scores, the difference in their distance coefficients is 0.001, with p < 10⁻⁸. For the association with comprehension, the distance-coefficient difference is 0.03, with p = 0.005. The distance effect is stronger in the middle layer in both comparisons. This refines the view that increasing depth alone does the work. The effect depends in part on where progressively transformed features still make effective use of distant information.

In the attention analysis, the authors display average brain scores across people, stories, and voxels for combinations of readout depth and attention distance. They also examine the layer and distance effects by brain region. The regional brain-score effects use Wilcoxon tests across pairs. For the comprehension analysis, the paper reports a bootstrap with 1000 subsamples of listener–story pairs. This resampling procedure recalculates the effects on different selections of observations to assess how variable the estimates are. The brain maps display regional effects at p < 0.05 after false discovery rate correction.

A shorter span helps an early layer

One controlled comparison goes against the overall tendency toward larger scores at longer distances. In the first layer, the association with comprehension is stronger when attention is restricted to 10 words than when that layer has full attention. The paper reports a difference in R of 0.06, with p = 0.004. Distant text is therefore helpful in some representations and can make others less informative about the differences in comprehension measured here.

A useful way to read the first-layer result is to distinguish access to information from the form in which it becomes available to the linear prediction. Giving an early layer a farther reach changes its representation immediately. For the behavioral measure at that layer, the altered representation is less well suited to the analysis than the more local version. In the middle layers the authors find the opposite pattern. Those layers have repeatedly transformed the features and can make greater use of information from past text. The study demonstrates the difference in resulting scores, while the particular computation that produces the better representation remains an open question.

The authors suggest that an architecture with attention spans that grow with depth might make its representations more similar to the measured brain responses. That is a design implication of the intervention they performed. The tested procedure imposes restrictions when extracting features from an already trained system. It does not establish how a newly trained system with a depth-dependent attention span would perform on text prediction, on the fMRI analysis, or on other language tasks.

Auditory cortex and association cortex respond differently

The spatial analysis shows that the effects of depth and context vary among brain regions. In angular gyrus, the comprehension association has a positive depth coefficient of β = 0.14, with p = 0.002. Its distance coefficient is also positive, β = 0.03, with p = 0.016. In that area, deeper representations and wider attention spans both help the brain score track questionnaire performance. The area’s role in the study stands out when scores are assessed against behavior, even though its overall fMRI prediction can be modest.

Heschl’s gyrus illustrates the other pattern. For the association with comprehension there, the depth coefficient is β = −0.076, with p = 0.004, and the distance coefficient is β = −0.014, with p = 0.012. The negative direction favors shallower representations and more local attention in the tested comparison. The paper discusses this alongside strong overall brain scores in auditory cortex and comparatively weak behavioral effects. A region can respond consistently to properties of local speech, with relatively little change in that consistency as questionnaire performance varies.

The authors read these differences as evidence for a hierarchy of representations. Features that remain close to the sound and local word sequence help explain activity around auditory cortex. Contextual features drawn from a larger stretch of the story are more pertinent to the association with comprehension in areas that include frontal and parietal cortex. The attention intervention makes this account more specific than an observation that some layers happen to predict brain activity well. It shows that changing the information available to those layers changes the neural and behavioral scores in different ways across the brain.

The ablations also explain why the paper retains both evaluation measures. An intervention can be useful for predicting a large share of ordinary stimulus-driven fluctuations and still add little ability to distinguish listeners by comprehension. A regional predictor that responds to distant context can carry a pronounced behavioral association even if other parts of that region’s signal remain hard to predict. Judging both kinds of success makes the regional contrast visible.

Limitations

Limits the authors state

The paper defines semantic comprehension through performance on a questionnaire given after a spoken narrative. The authors acknowledge that comprehension includes many other activities and materials, such as understanding scientific writing or reading a newspaper. Even within stories, a questionnaire can probe only the aspects of understanding covered by its items. The experiment supports a relationship between a measured brain response and this particular behavioral outcome for naturalistic listening.

The authors emphasize that the findings about the people in the study are correlational. Attention, prior knowledge, working memory capacity, and the complexity of the language can influence comprehension, and these factors were not independently controlled. The paper’s supplementary analyses suggest that attention can partially account for the brain scores. The authors also identify vocabulary, cognitive control, and continuous measures of attention as ways to investigate the sources of variation. The existing result leaves multiple explanations available for why two listeners to the same story obtain different fMRI prediction scores and different questionnaire results.

The manipulation of attention distance concerns access to text inside GPT-2. It changes the input features to the fMRI prediction and has a measured effect on the resulting scores. Participants’ attentional states are a different variable. A listener might direct attention away from the story, fail to retain an earlier event, or rely on prior knowledge to fill in a gap. The analysis does not isolate those possibilities. The authors also leave open how cortical regions that combine distant context interact with the hippocampus or retrieve material from long-term memory.

The identity of the long-distance information remains uncertain. The paper notes previous work showing that contextual vectors can encode grammatical structure and semantic information. Both can be relevant to a narrative. A distant expression might help establish a grammatical dependency, clarify what a later mention refers to, or supply background for interpreting a new event. The study manipulates how much text the system can draw on, which changes all such opportunities together. The authors identify the distinction between syntactic and semantic information in the vectors as a question for further research.

The fMRI predictions themselves are modest in absolute terms. The authors relate this in part to the choice to evaluate individual scan measurements at individual voxels and summarize across the brain. The paper reports brain scores reaching up to 32% of the estimated noise ceiling. A noise ceiling estimates the attainable performance in view of variability in the measurements. The reported percentage is relative to that ceiling for predicting brain responses. It belongs to a different analysis from the association between brain scores and questionnaire performance.

Finally, the authors discuss characteristics of the text-prediction system that may constrain what its representations can explain. GPT-2 was trained on text alone. The paper points to difficulties with linguistic generalization, complex grammatical structures, and tasks involving the creation or interpretation of longer texts. Experience of the physical world can inform what a human listener understands about a story. A representation learned from text supplies one way to investigate the brain’s response to the story, with correspondences that reflect both the opportunities and the limits of that training.

Limits visible in the setup

The story selection conditions the scope of the behavioral result. To qualify, a story needed a questionnaire and more than ten different scores. The analysis is consequently concentrated on stories where the outcome had room to vary. This is appropriate for detecting a correlation across listeners, since a story on which nearly everyone answered alike would provide little leverage. It does leave open what researchers would find for narratives with questionnaires that show much less variation. Excluding noisy recordings also makes the resulting observations a subset of the full dataset.

The questionnaires differ in form. Choosing an answer, supplying a missing detail, and writing a free response offer different opportunities to demonstrate what one has understood. Scaling scores to a common range gives them numerical comparability for analysis, while questions can still differ in difficulty and in the kind of understanding they require. The within-story analyses address part of that issue by comparing people assessed with the same questions. They cannot distinguish whether a low score reflects missed meaning during the story, later difficulty recalling an event, or difficulty expressing an answer.

Cross-validation applies to the prediction of scans inside a listener’s recording, and the behavioral result is a correlation across the resulting listener–story pairs. That design provides evidence for an association in the analyzed sample. It leaves a separate empirical question about predicting questionnaire performance for a new listener or a new story using a procedure trained and validated for that purpose. The fact that the fMRI estimates were made on held-out scans does not answer how a comprehension estimate would generalize under those conditions. Likewise, the reported Pearson R describes the strength of a linear association. It should be read as a correlation coefficient for the specified comparison.

Some listeners contribute more than one observation. The simple pooled Pearson comparison is indexed by pairs, and the mixed-effects analysis described in the paper addresses varying slopes across narratives. A careful reading keeps that structure in view when interpreting significance. The within-story results show that the association recurs when the story is held fixed. They answer a different question from estimating how much each participant’s repeated contribution influences uncertainty in the pooled result.

The feature comparisons also have a practical limit. The low-level baseline covers specific phonological categories and rates. Contextual vectors can contain information related to those features and to many others. A difference in predictive performance between the two feature sets therefore tells us about the descriptions used here. It cannot isolate every possible influence from the audio. Likewise, the difference between prediction scores for contextual and fixed vectors is a difference of fitted outcomes. It does not measure an independently identified component of the recorded signal that can be labeled as semantic composition.

The reported region counts differ across descriptions. The results text gives n = 314 for regional averaging, while the figure caption describes 142 regions per hemisphere and the significance methods specify 2 × 142 regions for the correction. The discrepancy matters when reconstructing the regional analysis. The scope of the reported correction is clearer if read from the caption and methods, and the whole-brain correlation comes from averaging across voxels rather than counting regions.

Finally, the attention restriction defines local access inside a stack of layers. A representation at an earlier position can already include information from positions before it, which can then be passed through another layer. The imposed span should be interpreted in light of that layered computation. It offers a controlled comparison of how far individual attention operations can reach. Equating a GPT-2 attention setting with the amount of text held in a listener’s memory would require a separate test of the human process.

What came after

Predictive coding and language reconstruction

Language Reconstruction with Brain Predictive Coding from fMRI Data cites the study and places fMRI, language, and prediction together in a reconstruction task. The direction of the question differs from the main calculation by Caucheteux and colleagues. Their work starts with a known transcript and uses its representations to predict the recording. The later work’s stated subject is reconstruction from fMRI data. The connection is the use of a predictive account of language to relate text and measured brain activity. The citation establishes that connection in the literature, while the title identifies reconstruction as the later work’s task.

Meaning differences in apparently identical spoken words

Letters hide the truth from our eyes cites the study in work on the phonetic realization of English homophones. Its title states that homophones can have meaningfully different realizations in speech. That topic bears on the distinction between a transcript and the audio heard by a listener. Caucheteux and colleagues align text representations to spoken narratives and compare them with predictors made from phonological annotations. The homophone paper takes up a question at the boundary between those descriptions, where words treated as equivalent in pronunciation can be distinguished in their realized speech. The citation alone leaves open the role the narrative study played in its analysis.

Which cues guide retrieval

A Transparent Model of Syntactic and Semantic Cue-based Retrieval cites the study in work centered on syntactic and semantic cues to retrieval. Caucheteux and colleagues change access to distant text and measure the resulting change in the relationship with brain activity and comprehension. The cue-based retrieval work names a more specific object of inquiry: the kinds of linguistic information that serve as cues when something must be retrieved. That distinction is relevant to a question left open by the narrative experiment. Its attention manipulation shows when access to earlier text matters, while the contribution of particular grammatical or meaning-related cues remains unresolved.

Cite

Cite as Charlotte Caucheteux, Alexandre Gramfort and Jean-Rémi King. 2022. Deep language algorithms predict semantic comprehension from brain activity. Scientific Reports.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1038/s41598-022-20460-9

@inproceedings{caucheteux2022deep,
  title = {{Deep language algorithms predict semantic comprehension from brain activity}},
  author = {Charlotte Caucheteux, Alexandre Gramfort and Jean-Rémi King},
  booktitle = {Scientific Reports},
  year = {2022},
  doi = {10.1038/s41598-022-20460-9},
  url = {https://doi.org/10.1038/s41598-022-20460-9}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/caucheteux-2022-deep-language-algorithms-predict-semantic/