PreprintCited by 165Neurobiology of Language and BilingualismReading and Literacy DevelopmentTopic Modeling

Incorporating Context into Language Encoding Models for fMRI

Open access
Jain, Shailee, Huth, Alexander G·2018·bioRxiv (Cold Spring Harbor Laboratory)

Abstract

Language encoding models help explain language processing in the human brain by learning functions that predict brain responses from the language stimuli that elicited them. Current word embedding-based approaches treat each stimulus word independently and thus ignore the influence of context on language understanding. In this work, we instead build encoding models using rich contextual representations derived from an LSTM language model. Our models show a significant improvement in encoding performance relative to state-of-the-art embeddings in nearly every brain area. By varying the amount of context used in the models and providing the models with distorted context, we show that this improvement is due to a combination of better word embeddings learned by the LSTM language model and contextual information. We are also able to use our models to map context sensitivity across the cortex. These results suggest that LSTM language models learn high-level representations that are related to representations in the human brain.

Integrity signals

Registry

Crossref · 10.1101/327601

Cites

25 of 25 references verified0 citation errors · 0 not checkable

Statistics

Nothing to recompute.

Claims the paper makes

0 of 19 cited sources checked · 0 supported · 0 flagged

  • Findingown data
    § 5.1 Language encoding performance for context representations · p. 5

    Model performance plateaus after 10-15 words of context.

    “However, model performance plateaus after 10-15 words, suggesting that the LSTM LM was unable to successfully incorporate contextual information beyond this timescale.”
    Quote in the paperSubstantial claim
  • Findingown data
    § 5.3 Model preference across cortex · p. 9

    Layer 2 provides the best predictions by a small margin.

    “Still, layer 2 provides the best predictions by a small margin, giving many voxels a green tint.”
    Quote in the paperSubstantial claim
  • Findingown data
    § 5.2 Distorting context representations · p. 7

    The impact of swapped context on encoding performance increases progressively across LSTM layers.

    “Additionally, we observe the same patterns of progressively greater impact across layers as in the random context models.”
    Quote in the paperSubstantial claim
  • Findingown data
    § 5.1 Language encoding performance for context representations · p. 5

    Model performance increases monotonically with context length for all layers.

    “Figure 2(A) shows that model performance increases monotonically with context length, for all layers.”
    • Also stated in: § 5 Results · p. 5 · plain
      “Increasing context length uniformly improves performance in every layer”
    Quote in the paperSubstantial claim
  • Findingown data
    § 5 Results · p. 5

    Swapped-context models perform worse than the original contextual models.

    “Swapped-context models also perform worse than the original, showing that linguistically plausible but wrong context also hurts the model.”
    • Also stated in: § 5.2 Distorting context representations · p. 7 · plain
      “The results in Figure 2(C) show that linguistically plausible but wrong contexts also greatly impact encoding performance.”
    Quote in the paperSubstantial claim
  • May combine two claims. 15
  • Classified as probably not a substantial claim. 4
  • May combine two claims.

    Findingown data
    § 5 Results · p. 5

    Random-context models perform worse than the original contextual models, and most perform worse than the embedding except in layer 1.

    “Random-context models perform worse than the original models, and most perform worse than the embedding, except in layer 1.”
    • Also stated in: § 5.2 Distorting context representations · p. 7 · boosted
      “It is obvious that the performance greatly suffers from the context distortion.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data
    § Supplement for Incorporating Context into Language Encoding Models for fMRI · p. 11

    The observed patterns in the supplementary material are consistent across subjects, proving that contextual representations from an LSTM language model are effective for language encoding.

    “The observed patterns are consistent across subjects, proving that the contextual representations extracted from an LSTM LM are effective for language encoding.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data
    § 5.1 Language encoding performance for context representations · p. 6

    Layer 2 predicts roughly the same as baseline with zero context, jumps sharply with one word of context, and is the best model thereafter.

    “Layer 2 predicts roughly the same as baseline with zero context, but jumps sharply with even one word of context and is the best model thereafter.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data
    § 5.3 Model preference across cortex · p. 9

    Overall performance of all LSTM layers is highly similar, rendering most voxels nearly white.

    “Overall the performance of all layers is highly similar, rendering most voxels nearly white.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data
    § 5.1 Language encoding performance for context representations · p. 6

    Layer 3 predicts worse than the embedding with short context, but sees the largest improvement with context length.

    “Layer 3 predicts worse than the embedding with short context, but sees the largest improvement with context length.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data
    § 5.3 Model preference across cortex · p. 8

    Most voxels prefer long context, but clusters of short-context-preferring voxels appear in auditory cortex, Broca's area, and left temporo-parietal junction.

    “Although most voxels prefer long context, clusters of short-context-preferring voxels appear in auditory cortex (AC), Broca's area, and left temporo-parietal junction (TPJ).”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingreasoning
    § 5.2 Distorting context representations · p. 7

    The impact of random context distortion on encoding performance increases progressively across LSTM layers, with layer 1 least affected and still beating baseline.

    “Further, the impact on performance progressively increases across LSTM layers with layer 1 being affected the least, and still beating the baseline.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data
    § 5.1 Language encoding performance for context representations · p. 6

    Layer 1 predicts substantially better than baseline even with short context, but improves only modestly with context length.

    “Layer 1 predicts substantially better than baseline even with short context, but only improves modestly with context length.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Findingreasoning
    § 5.2 Distorting context representations · p. 7

    The swapped contexts chosen for each successive context length are sometimes different, leading to increased variance across context lengths.

    “Thus, the swapped contexts picked for each successive length are sometimes different, leading to the increased variance across context lengths.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Interpretationown data
    § 5.3 Model preference across cortex · p. 9

    The finding that the middle LSTM layer learns highest-level representations contrasts with supervised networks where high-level cortical areas were best modeled by higher layers.

    “This finding is in stark contrast to experiments that used supervised networks (7; 5; 11).”
    Quote in the paperSubstantial claim0 of 3 sources checked
    • cites [7] source

      Not checked in the free run.

    • cites [5] source

      Not checked in the free run.

    • cites [11] source

      Not checked in the free run.

  • May combine two claims.

    Premisecitation
    § Abstract · p. 1

    Current word embedding-based language encoding approaches treat each stimulus word independently and ignore context.

    “Current word embedding-based approaches treat each stimulus word independently and thus ignore the influence of context on language understanding.”
    • Also stated in: § 1 Introduction · p. 1 · plain
      “Previous language encoding studies have successfully mapped word-level semantic representations using embedding vectors (15; 22; 9; 8), but this approach neglects the effect of context by assuming that the response to each word is independent.”
    Quote in the paperSubstantial claim0 of 4 sources checked
    • cites [15] source

      Not checked in the free run.

    • cites [22] source

      Not checked in the free run.

    • cites [9] source

      Not checked in the free run.

    • cites [8] de Heer, W.A. , Huth, A.G. , Griffiths, T.L. , Gallant, J.L. , Theunissen, F.E. : The hierarchical cortical organization of human speech processing. Journal of Neuroscience (2017), http://www.jneurosci.org/content/early/2017/06/06/JNEUROSCI.3267-16.2017

      Not checked in the free run.

  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Study design and conductown data
    § 5.3 Model preference across cortex · p. 8

    The context length preference analysis was repeated for other LSTM layers and yielded similar results.

    “Layer 2 is used because it has the best performance overall; this analysis was repeated for the other layers and yielded similar results.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Interpretationown data
    § 5.2 Distorting context representations · p. 7

    The LSTM successfully incorporates context, although there are differences across layers.

    “This demonstrates that the LSTM successfully incorporates context, although there are differences across layers.”
    Quote in the paperSubstantial claim
  • Classified as probably not a substantial claim.

    Premisecitation
    § 1 Introduction · p. 2

    A previous study suggests that representations learned by a language model can be useful for modeling MEG brain responses to reading.

    “Further, a previous study suggests that representations learned by an LM can be useful for modeling MEG brain responses to reading (23).”
    Quote in the paperSubstantial claim0 of 1 sources checked
    • cites [23] Wehbe, L. , Vaswani, A. , Knight, K. , Mitchell, T.M. : Aligning context-based statistical models of language with brain activity during reading. In: EMNLP (2014) source

      Not checked in the free run.

  • May combine two claims.

    Interpretationown data
    § 5.3 Model preference across cortex · p. 8

    The contextual encoding model captures timescale variance across cortex and explicitly models the transformation from stimulus to response.

    “Our contextual encoding model captures this timescale variance, but goes further by explicitly modeling the transformation from stimulus to response.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Interpretationown data
    § 5.3 Model preference across cortex · p. 9

    Low-level speech processing in auditory cortex is better modeled by layers 1 and 3, while high-level processing is better modeled by layer 2.

    “Thus it seems that low-level speech processing (AC) is better modeled by layers 1 and 3, while high-level processing is better modeled by layer 2.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Interpretationreasoning
    § 5.3 Model preference across cortex · p. 9

    The middle layer of the LSTM language model learns the highest-level representations, while layers 1 and 3, closer to word embeddings, learn lower-level representations.

    “This suggests that the middle layer of the LSTM LM is learning the highest-level representations”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Interpretationreasoning
    § 5.2 Distorting context representations · p. 7

    Representations beyond layer 1 do not directly use the embedding and increasingly rely on contextual information passed through recurrence.

    “Since the representations beyond layer 1 do not directly make use of the embedding and increasingly rely on contextual information passed through recurrence, the progressive impact across layers is justified.”
    Quote in the paperSubstantial claim
  • Classified as probably not a substantial claim.

    Premisecitation
    § 5.3 Model preference across cortex · p. 9

    Supervised network experiments found that high-level cortical areas were best modeled by higher layers of the network.

    “Those experiments found that high-level cortical areas were best modeled by higher layers of the network.”
    Quote in the paperSubstantial claim0 of 3 sources checked
    • cites [7] source

      Not checked in the free run.

    • cites [5] source

      Not checked in the free run.

    • cites [11] source

      Not checked in the free run.

19 of 19
  • The paper relies on this without support.

    No existing hand-designed feature space is well-suited for extracting language features that incorporate context.

    “However, no existing hand-designed feature space is well-suited for this task.”
  • The paper relies on this without support.

    The Reddit corpus is more similar to the stimulus stories than most conventional corpora because of its informal and conversational nature.

    “We chose this particular corpus because the informal and conversational nature of the text is more similar to our stimulus stories than most conventional corpora.”
2 of 2

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

Each contradiction between two passages listed here was confirmed by an independent check.

  • Maximum extracted context is 19 previous words, not 20

    Minor

    The stated extraction procedure allows context lengths from 0 through M−1. With M = 20, the representations therefore use at most 19 previous words, contrary to the claim of up to 20.

  • Language-modeling results are assigned to the wrong Figure 2 panel

    Minor

    The text directs readers to panel C for language-modeling performance, but the caption identifies panel C as the swapped-context experiment and panel D as language-modeling performance.

2 of 2

Cites

Flagged first, then by citations

5 of the 30 references couldn’t be matched to a known paper.

Research works printed but not linked: 2

  1. de Heer, W.A. , Huth, A.G. , Griffiths, T.L. , Gallant, J.L. , Theunissen, F.E. : The hierarchical cortical organization of human speech processing. Journal of Neuroscience (2017), http://www.jneurosci.org/content/early/2017/06/06/JNEUROSCI.3267-16.2017
  2. 2013, Advances in Neural Information Processing Systems, 26, 3111

Cited by

Sorted by citations

Authors
Jain, S., & Huth, A. G.
Affiliations
The University of Texas at Austin (US)
Venue
bioRxiv (Cold Spring Harbor Laboratory)
Publisher
openRxiv
Published
2018-05-21
OpenAlex
W2805003518
Cited by
155
References
30
Citations by year
2026: 8 · 2025: 19 · 2024: 27 · 2023: 36 · 2022: 17 · 2021: 23 · 2020: 17 · 2019: 8
Type
posted content
Language
en
Open access
Locations
bioRxiv (Cold Spring Harbor Laboratory) (acceptedVersion)
Funders
  • National Science Foundation (1208203)
  • Nvidia
  • University of Texas at Austin
  • National Institutes of Health
  • National Eye Institute (EY019684)
Topics
  • Life Sciences › Neuroscience › Cognitive Neuroscience › Neurobiology of Language and Bilingualism
  • Social Sciences › Psychology › Developmental and Educational Psychology › Reading and Literacy Development
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
Keywords
functional MRI, context sensitivity, LSTM language models, word embeddings, context representation, language processing in the brain

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Claims read by deepseek-v4.1-flash under definition version 3 (extract-v3) on 2026-10-06.

Classified by jev-1.13-20260917 (gold-guideline-v0.2) on 2026-10-06.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review