henhaobio
Sign in

bioRxivNeurosciencePreprint

Incorporating Context into Language Encoding Models for fMRI

Shailee JainiD, Alexander G. HuthiD

PDFDOI

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.

Abstract summary

Claude Opus 5.5 · xhigh effort · 2 Nov 2026 · from the abstract

Encoding models using contextual representations from an LSTM language model improve human fMRI brain response prediction over non-contextual word embeddings in nearly every brain area and map cortical context sensitivity.

Current word embedding-based language encoding models for fMRI treat each stimulus word independently, ignoring how surrounding context influences language understanding. Building encoding models with contextual representations from an LSTM language model improves brain response prediction in nearly every brain area and enables mapping of context sensitivity across the cortex.

Key results

  1. SuggestedEncoding models built with contextual representations from an LSTM language model outperform existing word embedding approaches in predicting human fMRI responses across almost every brain region, driven by both improved word embeddings and multi-word context.

    Compared against non-contextual word embeddings across human brain areas and tested by varying context length and distorting context (no numeric prediction scores or subject counts are given in the abstract). · Abstract

  2. SuggestedThe LSTM-based language encoding models enable mapping of context sensitivity across the human cortex.

    Cortical mapping using the LSTM-based encoding models in human fMRI data (qualitatively reported in the abstract). · Abstract

Methods, data and reproducibility

The authors constructed language encoding models that predict human fMRI brain responses from language stimuli using contextual representations derived from an LSTM language model, varying the amount of context and providing distorted context to evaluate word-embedding and contextual contributions, and mapping context sensitivity across the cortex.

  • Human fMRI brain responses elicited by language stimuli · human
Methods & tools
LSTM language model
Reproducibility gaps
No code repositories, fMRI dataset accessions, or subject sample sizes are provided in the abstract.
Limitations (1)
  • The abstract does not state the number of human participants, the specific baseline word embedding models, or quantitative encoding performance gains. · noted in this summary

Read this if you build neural encoding models of human fMRI activity during natural language processing or compare language model representations to brain responses.

Citations
155

Reproducibility ledger

Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.

Sign in to file a reproducibility report.

Similarity Map
SelectedSame fieldCross-field
THISGoldstein '22Lamarre '22Singh '25Lewis '25Jain '20Bhattacharj '24
78% semantic matchNeuroscience
Ariel Goldstein, Avigail Grinstein-Dabush, Bobbi Aubrey+17 more·bioRxiv·Mar 1, 2022· 6 citations