[Paper Review] Comparing Transformers and RNNs on predicting human sentence processing data.
This study compares Transformers and RNNs as cognitive models of human sentence processing by training both architectures to predict surprisal in experimental stimuli. Transformers outperform RNNs in explaining self-paced reading times and N400 amplitude, but not gaze durations, suggesting superior modeling of certain reading effort measures.
Recurrent neural networks (RNNs) have long been an architecture of interest for computational models of human sentence processing. The more recently introduced Transformer architecture has been shown to outperform recurrent neural networks on many natural language processing tasks but little is known about their ability to model human language processing. It has long been thought that human sentence reading involves something akin to recurrence and so RNNs may still have an advantage over the Transformer as a cognitive model. In this paper we train both Transformer and RNN based language models and compare their performance as a model of human sentence processing. We use the trained language models to compute surprisal values for the stimuli used in several reading experiments and use mixed linear modelling to measure how well the surprisal explains measures of human reading effort. Our analysis shows that the Transformers outperform the RNNs as cognitive models in explaining self-paced reading times and N400 strength but not gaze durations from an eye-tracking experiment.
Motivation & Objective
- To evaluate whether Transformers, despite their non-recurrent design, can better model human sentence processing than traditional RNNs.
- To investigate the extent to which neural language models based on Transformers and RNNs can predict human reading effort using psycholinguistic metrics.
- To compare the explanatory power of surprisal derived from both architectures on multiple reading measures: self-paced reading times, N400 strength, and gaze durations.
- To determine whether recurrence in processing, traditionally assumed to be essential for modeling human language comprehension, is still necessary given the success of attention-based models.
Proposed method
- Training both Transformer and RNN-based language models on a shared corpus to ensure comparable learning conditions.
- Computing surprisal values for each word in experimental stimuli using the probability estimates from both models.
- Applying mixed linear models to assess how well surprisal predicts human reading measures: self-paced reading times, N400 amplitude, and gaze durations.
- Using standardized psycholinguistic stimuli from published reading experiments to ensure ecological validity.
- Employing statistical modeling to compare the fit of surprisal predictions from Transformers versus RNNs across different reading measures.
- Focusing on model performance in explaining variance in human processing effort, with a particular emphasis on cognitive plausibility.
Experimental results
Research questions
- RQ1Do Transformers outperform RNNs in explaining human sentence processing effort as measured by self-paced reading times?
- RQ2Can surprisal derived from Transformers better predict N400 amplitude than surprisal from RNNs?
- RQ3Is there a significant difference in the ability of Transformers and RNNs to predict gaze durations during reading?
- RQ4Does the non-recurrent attention mechanism of Transformers still align with cognitive theories of human sentence processing?
- RQ5To what extent does the architectural choice (recurrent vs. self-attention) affect the explanatory power of neural language models in psycholinguistic contexts?
Key findings
- Transformers significantly outperform RNNs in explaining self-paced reading times, indicating stronger predictive power for reading effort.
- Surprisal derived from Transformers explains a greater proportion of variance in N400 amplitude compared to RNN-derived surprisal.
- Neither model shows a clear advantage in predicting gaze durations, suggesting that gaze duration may be influenced by factors beyond surprisal.
- The results challenge the assumption that recurrence is essential for modeling human sentence processing, as Transformers—despite lacking recurrence—perform better on key reading measures.
- The performance gap between models is most pronounced for measures related to cognitive load and prediction error, such as reading times and N400 responses.
- The findings support the use of attention-based architectures like Transformers as viable and potentially superior alternatives to RNNs in cognitive modeling of language comprehension.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.