Skip to main content
QUICK REVIEW

[Paper Review] Different kinds of cognitive plausibility: why are transformers better than RNNs at predicting N400 amplitude?

James A. Michaelov, Megan D. Bardolph|arXiv (Cornell University)|Jul 20, 2021
Topic ModelingComputer Science32 references14 citations
TL;DR

This study investigates why transformer language models (T-LMs) outperform recurrent neural network language models (RNN-LMs) in predicting N400 amplitude—a neural signature of semantic processing difficulty. Using GPT-2 and a custom RNN (JRNN), the authors show that T-LMs better capture semantic facilitation effects, with their surprisal scores more strongly correlated to semantic similarity between context and target words, suggesting transformers implicitly model spreading activation akin to human cognition.

ABSTRACT

Despite being designed for performance rather than cognitive plausibility, transformer language models have been found to be better at predicting metrics used to assess human language comprehension than language models with other architectures, such as recurrent neural networks. Based on how well they predict the N400, a neural signal associated with processing difficulty, we propose and provide evidence for one possible explanation - their predictions are affected by the preceding context in a way analogous to the effect of semantic facilitation in humans.

Motivation & Objective

  • To determine whether transformer language models (T-LMs) better predict N400 amplitude than RNN-LMs, particularly in relation to semantic facilitation.
  • To investigate whether the superior performance of T-LMs in predicting N400 is due to their ability to capture semantic similarity between context and target words, analogous to human semantic priming.
  • To assess whether the architectural differences between T-LMs and RNN-LMs—specifically, attention mechanisms versus recurrent state—lead to distinct patterns of semantic facilitation in surprisal predictions.
  • To challenge the assumption that RNN-LMs are more cognitively plausible due to limited working memory, by showing that T-LMs better model certain neurocognitive phenomena like semantic priming.
  • To clarify the cognitive plausibility of different neural network architectures in modeling human language comprehension, especially regarding N400 modulation by prediction and semantic relatedness.

Proposed method

  • Trained a GPT-2 language model and a custom J-shaped RNN (JRNN) on the same text corpus to ensure comparable training data.
  • Computed N400-related surprisal for each model as the negative log-probability of the target word given the context.
  • Calculated semantic similarity between target words and preceding context words using cosine distance between pre-trained word embeddings.
  • Used linear mixed-effects models to test how well surprisal and semantic similarity predicted N400 amplitude from EEG data.
  • Compared the predictive power of GPT-2 and JRNN surprisal on N400 amplitude, particularly distinguishing between semantically related and unrelated target words.
  • Analyzed the correlation between model surprisal and semantic similarity to assess whether models implicitly encode spreading activation effects.

Experimental results

Research questions

  • RQ1Does the surprisal of transformer language models (T-LMs) predict N400 amplitude better than that of RNN-LMs?
  • RQ2To what extent do T-LMs and RNN-LMs capture semantic facilitation effects, as indexed by semantic similarity between context and target words?
  • RQ3Is there a significant correlation between model surprisal and semantic similarity in T-LMs versus RNN-LMs, and how does this relate to N400 amplitude prediction?
  • RQ4Can the architectural differences between T-LMs and RNN-LMs explain their divergent performance in modeling neurocognitive phenomena like N400 modulation?
  • RQ5Does the ability of T-LMs to implicitly model spreading activation via attention mechanisms make them more cognitively plausible for certain aspects of language comprehension than RNN-LMs?

Key findings

  • GPT-2 surprisal significantly outperformed JRNN surprisal in predicting N400 amplitude, particularly for words that were semantically related to the highest-cloze completion.
  • GPT-2 surprisal showed a stronger inverse correlation with semantic similarity between context and target words than JRNN surprisal, indicating that T-LMs better integrate semantic context into prediction.
  • JRNN surprisal struggled to distinguish between semantically related and unrelated target words in high-cloze contexts, suggesting limited sensitivity to semantic facilitation.
  • The results suggest that T-LMs implicitly model spreading activation effects through their attention mechanism, even without explicit architectural design for this function.
  • Despite RNN-LMs having a more limited working memory and being intuitively more cognitively plausible, T-LMs better capture neurocognitive phenomena such as semantic priming in N400 responses.
  • The findings imply that cognitive plausibility should not be judged solely by architectural similarity to human working memory, but also by the model’s ability to replicate key neurocognitive dynamics like semantic facilitation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.