Revenge of the Fallen? Recurrent Models Match Transformers at Predicting Human Language Comprehension Metrics

James Michaelov, Catherine Arnett, Ben Bergen

TL;DR

Recent advances in recurrent neural network (RNN) architectures like RWKV and Mamba are challenging the dominance of transformers in natural language processing. This paper demonstrates that these new RNNs can match or even outperform similarly sized transformers in predicting human language comprehension metrics, suggesting that transformers are not uniquely suited for this task and opening new avenues for cognitive modeling research.

What Problem Does This Paper Address?

For years, transformers have been the go-to architecture for both NLP tasks and modeling human language comprehension, largely due to their superior performance. This dominance led to the assumption that their architectural features were key to capturing human-like processing. However, the emergence of new RNN architectures (RWKV, Mamba) that perform comparably to transformers on NLP tasks raises a critical question: do transformers still hold a unique advantage in modeling human language comprehension, or can these newer recurrent models also capture these cognitive phenomena? This paper directly addresses this by comparing the predictive power of transformers and these advanced RNNs on established human language comprehension datasets.

Methods

The study compares three types of autoregressive language models:

  • Pythia: A suite of transformer models.
  • RWKV: A recurrent model that combines transformer-like parallel training with RNN-like sequential processing and a decay mechanism for context weighting.
  • Mamba: A recurrent model employing a novel "selective scan" mechanism to efficiently compress context into a fixed-size state.

The core methodology involves calculating the "surprisal" of words within sentences using these models. Surprisal, a measure of how unexpected a word is given its context, is a proxy for processing difficulty. These surprisal values are then used to predict human language comprehension metrics (N400 amplitude and various reading time measures) through linear mixed-effects regression analyses. The researchers controlled for model scale (number of parameters) and perplexity to isolate the effect of architecture.

Datasets

The study evaluates model performance on 12 human language comprehension datasets, categorized by the metric they measure:

  • N400 Amplitude (6 datasets):
    • Federmeier et al. (2007)
    • Hubbard et al. (2019)
    • Michaelov et al. (2024)
    • Szewczyk & Federmeier (2022)
    • Szewczyk et al. (2022)
    • Wlotko & Federmeier (2012)
  • Reading Time Metrics (6 datasets):
    • Go-Past Duration (GPD): Kennedy et al. (2003), Luke & Christianson (2018)
    • Self-Paced Reading Response Time (SPR RT): Boyce & Levy (2023), Futrell et al. (2021), Smith & Levy (2013)
    • Self-Paced Reading Three-Word Response Time (3W-RT): Brothers & Kuperberg (2021)

The paper does not introduce new benchmarks but rather leverages existing, well-established datasets in the field of psycholinguistics.

Key Insights and Ideas

  • The "Revenge of the Fallen": Contrary to the prevailing view, contemporary recurrent models (RWKV, Mamba) are not only matching but, in some cases, exceeding the performance of similarly sized transformers in predicting human language comprehension metrics, particularly for N400 amplitude.
  • Architecture vs. Scale: While model scale (more parameters, more data) generally improves performance, the architecture itself plays a crucial role. The study suggests that the specific architectural choices in newer RNNs are highly effective for modeling human-like prediction.
  • N400 Dominance of RNNs: For N400 amplitude prediction, recurrent models (Mamba and RWKV) consistently outperformed transformers (Pythia) across various model sizes and perplexity levels.
  • Mixed Results for Reading Time: The picture is more nuanced for reading time metrics, with transformers showing an advantage in some cases, but RNNs also demonstrating competitive or superior performance on specific datasets.
  • Scaling Patterns are Consistent: Interestingly, the observed scaling patterns (whether larger models fit better or worse) were largely consistent across architectures, suggesting that these patterns are more tied to the nature of the cognitive metric than the specific model type.

Key Results

  • N400 Prediction: On 4 out of 6 N400 datasets, model scale was a significant predictor of better fit. Crucially, when comparing models of comparable size, recurrent models (Mamba and RWKV) generally provided a better fit to N400 data than transformers (Pythia).
  • Reading Time Prediction: For reading time, the relationship with model size was more varied. While some datasets showed negative scaling (larger models fitting worse), the Brothers & Kuperberg (2021) dataset exhibited positive scaling, similar to N400 data. Pythia models showed an advantage on eye-tracking datasets, while RNNs performed better on some self-paced reading tasks.
  • Perplexity Matters: When models were ordered by perplexity (a measure of how well a model predicts text), the comparison across architectures became less clear-cut, but recurrent architectures at least matched transformer performance. This suggests that model quality (next-word prediction accuracy) is a significant factor, potentially independent of raw parameter count.

Limitations and Future Work

  • Low Statistical Power: The study acknowledges that with only 14 observations per dataset (across different model sizes), the statistical power is low, meaning some significant findings might be suggestive rather than conclusive.
  • Limited Model Architectures: The comparison was limited to Pythia (transformers), RWKV, and Mamba. Future work could explore other transformer and recurrent architectures.
  • Idiosyncratic Differences: The authors note that there are idiosyncratic differences between datasets, metrics, and model architectures, making it challenging to find a single universal pattern.
  • Future Directions: The paper suggests that the comparable performance of RNNs and transformers opens new avenues for research into the specific architectural features that best model human language comprehension. It highlights the need to disentangle theories of working memory bottlenecks (potentially better modeled by RNNs) and cue-based retrieval (potentially better modeled by transformers), and to conduct experiments that can qualitatively differentiate between these accounts. The development and scaling of new recurrent models will be key to further clarifying these questions.

Summary updated

BibTeX
@inproceedings{michaelov2024revenge,
  author = {James Michaelov and Catherine Arnett and Ben Bergen},
  title = {{Revenge of the Fallen? Recurrent Models Match Transformers at Predicting Human Language Comprehension Metrics}},
  booktitle = {COLM},
  year = {2024},
  url = {https://openreview.net/forum?id=amhPBLFYWv},
}
Figure