Aligning context-based statistical models of language with brain activity during reading

Leila Wehbe, Ashish Vaswani, Kevin Knight, Tom M. Mitchell

Introduction

As natural language processing (NLP) has transitioned toward deep learning, models have become increasingly effective yet opaque. While high-dimensional vectors represent "context" and "word meaning," their relationship to human cognition remains largely unexplored. Conversely, while neuroscientists understand that the brain processes language through complex pathways, they lack a unified computational framework to describe how a "story state" is constructed from sequential words. This research addresses this gap by investigating whether the latent variables within statistical language models correspond to human neural processing.

Methodology

The researchers compared two neural network architectures: a Recurrent Neural Network (RNNLM), which maintains a memory of the entire word history, and a Neural Probabilistic Language Model (NPLM), which utilizes a fixed window of recent words (n-grams). Three specific constituents were extracted from these models:

  1. Word Embeddings: Representing static semantic properties of the current word.
  2. Hidden Layer Vectors: Representing the accumulated context of the story so far.
  3. Output Probabilities: Representing word predictability (surprisal) given the context.

To map these to biological activity, Magnetoencephalography (MEG) was used to record brain activity in three subjects reading Chapter 9 of Harry Potter and the Sorcerer’s Stone. The models were pre-trained on a massive corpus of Harry Potter fan fiction to ensure alignment with the experimental text's domain.

The Processing Pipeline

The study revealed a striking functional "division of labor" in the brain that mirrors neural network architecture. A clear spatio-temporal flow was observed as information moved through the brain, transitioning from basic perception to complex integration.

Spatio-temporal mapping of linguistic processing stages in the brain, showing the progression from visual analysis to lexical-semantic integration.

As illustrated in the mapping above, word embeddings first align with activity in the visual cortex within the first 100-200ms. This is followed by letter-string analysis in the temporal regions. Finally, lexical-semantic analysis and integration (related to output probabilities) peak between 300-500ms, correlating with the N400 response—a well-established neural marker for semantic processing effort.

Key Insights

  • Contextual Maintenance: The hidden layer (context) predicted brain activity even before a word was read, suggesting the brain maintains a continuous "latent state" of the narrative.
  • RNN vs. N-grams: The RNNLM generally outperformed finite-context models, indicating that human context tracking more closely resembles recurrent architectures that integrate long-term history rather than simple fixed-window approaches.
  • Model Validation: In a notable instance, the researchers used brain data as a "ground truth" to identify a bug in their computational model where the hidden layer output was incorrectly delayed. The brain data effectively acted as a debugging tool for the artificial model.

Conclusion and Future Directions

The study demonstrates that all three model features predict brain activity significantly better than chance ($p < 10^{-8}$). The results successfully map the transition of information from visual processing in the posterior regions to semantic integration in the left temporal cortex, and ultimately to high-level comprehension in the frontal cortex.

While the study is limited by a small sample size and the assumption of linear mapping between artificial and biological neurons, it paves the way for future work. The authors suggest that brain activity could eventually be used as a regularizer or training signal to help create AI models that process language in a more "human-like" manner.

Summary updated

BibTeX
@inproceedings{wehbe2014aligning,
  author = {Leila Wehbe and Ashish Vaswani and Kevin Knight and Tom M. Mitchell},
  title = {{Aligning context-based statistical models of language with brain activity during reading}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2014},
  doi = {10.3115/v1/d14-1030},
}
Figure