TL;DR
This paper investigates whether language models' predictions of word probability or "surprisal" (information content) better predict human brain activity (N400 amplitude) during language comprehension. They found that for models that most closely mimic human language processing, surprisal is a superior predictor, supporting information-theoretic accounts of how our brains process language.
What Problem Does This Paper Address?
Understanding how humans process language in real-time is a fundamental question in cognitive science. One prominent theory, "surprisal theory," posits that the cognitive effort required to process a word is directly related to how surprising that word is given its preceding context. This "surprisal" is mathematically defined as the negative log-probability of the word. An alternative view suggests that processing difficulty is linearly proportional to the word's probability (or lack thereof).
The N400 brainwave, measured via EEG, is a well-established neural correlate of language comprehension difficulty, particularly sensitive to semantic processing and prediction. Researchers have been exploring how well computational language models, especially modern transformers, can predict this N400 response. However, a key debate remains: does the probability of a word, or its surprisal, better capture the factors that drive the N400 and, by extension, human language processing? This paper aims to settle this by systematically comparing these two metrics across a large number of transformer models.
Methods
The researchers employed a comparative approach, leveraging existing N400 data and a diverse set of transformer language models. They used a dataset of 160 sentences from a previous N400 study. For each sentence, they fed the context up to a critical noun into 43 different transformer language models. From each model, they extracted two key metrics for the critical noun: its raw probability given the context, and its surprisal (calculated as -log(probability)).
To assess how well these model-derived metrics predicted the actual human N400 response, they used linear mixed-effects regressions. These regressions included the language model's probability or surprisal as a main effect, with covariates for the laboratory where the experiment was conducted and random intercepts for participants and stimulus items. The goodness-of-fit for each regression was evaluated using the Akaike Information Criterion (AIC). They then compared the AIC values to determine which metric (probability or surprisal) and which model provided a better fit to the N400 data.
A crucial methodological decision involved how to handle words not present in a model's vocabulary. Initially, they considered only words present in all models (reducing the dataset to 37 sentences). However, to utilize more data, they also explored an alternative approach of processing sub-word tokens, though this introduced potential confounds due to varying tokenization strategies. The primary analyses focused on single-token critical nouns to minimize these tokenization issues.
Datasets
The study utilized a subset of data from a previously published N400 study by Nieuwland et al. (2018). This dataset comprised 160 stimulus sentences, each containing a critical noun whose N400 amplitude was measured. The N400 amplitude was operationalized as the mean voltage between 200-500ms post-stimulus presentation across six electrodes (Cz, C3, C4, Pz, P3, and P4). No new datasets were introduced; the focus was on evaluating existing N400 data against model predictions.
Key Insights and Ideas
- Human-like models favor surprisal: The most striking finding is that as language models become more sophisticated and better at predicting human N400 responses, surprisal emerges as a significantly better predictor than raw probability. This suggests that models that more closely mirror human statistical knowledge are also better at capturing the cognitive processes reflected in the N400.
- Surprisal vs. Probability: A nuanced relationship: While surprisal is generally favored by more human-like models, the paper highlights that for less sophisticated models, raw probability can sometimes be a better predictor. This suggests that the "predictive power" of a model is intrinsically linked to which metric best explains human processing.
- The N400 as a window into prediction: The study reinforces the N400's role as a sensitive measure of predictive processing in the brain. The fact that transformer models can predict this signal underscores the power of these models in capturing aspects of human language understanding.
- Masked vs. Autoregressive Models: The analysis revealed differences in how masked language models (like BERT) and autoregressive models (like GPT-J) performed, particularly when considering all tokens versus only single-token words. This hints at the importance of model architecture and training objectives in their ability to predict human cognitive responses.
Key Results
- Top Predictors: Among the 43 transformer models tested, OPT-6.7B and GPT-J were found to be the most reliable predictors of N400 amplitude.
- Surprisal Dominance in High-Performing Models: For these top-performing models (OPT-6.7B and GPT-J), surprisal was consistently a better predictor of N400 amplitude than raw probability.
- Correlation between Model Performance and Metric Preference: A significant positive correlation was found: the better a language model's predictions correlated with N400 amplitude, the greater the extent to which surprisal was a better predictor than probability. This was observed in both single-token and all-critical-words analyses.
- No Overall Trend for All Models: When considering all models together, there was no significant overall difference in fit between surprisal and probability as predictors of N400 amplitude. The advantage of surprisal is specific to more human-like models.
Limitations and Future Work
- Tokenization Challenges: The paper acknowledges that differences in tokenization across models can introduce confounds, especially when analyzing multi-token words. While they attempted to mitigate this by focusing on single-token words, it remains a limitation for a comprehensive analysis of all stimuli.
- Model Vocabulary Limitations: Not all critical nouns were present in every model's vocabulary, necessitating either data exclusion or alternative token-level analysis, both of which have drawbacks.
- Explanation for Less Human-like Models: The paper speculates on why raw probability might be a better predictor for less human-like models, referencing findings that probability is better for high-probability items and surprisal for low-probability items. However, it suggests further research is needed to confirm this explanation.
- Future Directions: The authors suggest that future work could explore whether other explanations exist for the observed patterns, particularly concerning why less human-like models might favor probability. They also highlight the value of using autoregressive models like GPT-J and OPT-6B for future experiments aiming to model human predictive processing, especially when multi-token sequences are involved.
Summary updated