Abstract
Two of the central factors believed to underpin human sentence processing difficulty are expectations and retrieval from working memory. A recent attempt to create a unified cognitive model integrating these two factors have relied on the parallels between the self-attention mechanism of transformer language models and cue-based retrieval theories of working memory in human sentence processing (Ryu and Lewis 2021). While the authors show that attention patterns in specialized attention heads of GPT-2 are consistent with a key prediction of cue-based retrieval models, similarity-based interference effects, their method requires the identification of syntactically specialized attention heads, and makes an cognitively implausible implicit assumption that hundreds of memory retrieval operations take place in parallel. In the present work, we develop a recurrent neural language model with a single self-attention head, which more closely parallels the memory system assumed by cognitive theories. We show that our model’s single attention head can capture semantic and syntactic interference effects observed in human experiments.
Introduction
Human sentence processing difficulty is often attributed to two primary factors: expectations (the predictability of the next word) and retrieval from working memory. While modern Transformer-based language models excel at the former, their massive parallel attention mechanisms—often involving hundreds of heads—are cognitively implausible as models of human memory. Cognitive science suggests that humans possess a much narrower attentional focus, typically retrieving only one or two items at a time. This research bridges the gap by developing a recurrent neural model with a single attention head, mimicking the limited capacity of human working memory.
The CBR-RNN Architecture
The researchers introduce the Cue-Based Retrieval Recurrent Neural Network (CBR-RNN), a hybrid architecture designed to integrate predictability and memory constraints. Unlike standard Transformers, the CBR-RNN uses exactly one attention head, forcing a bottleneck that parallels human attentional limits.
The model consists of a Simple Recurrent Network (SRN) base and a restricted retrieval mechanism. Crucially, the model cannot "see" the current word’s features during the retrieval phase, mirroring the psychological reality that an item cannot be retrieved from memory while it is the current focus of perception. The model is trained with dual objectives: standard next-word prediction and CCG supertagging, which encourages the learning of rich syntactic features.
Modeling Linguistic Interference
A key test for any cognitive model of language is its ability to capture similarity-based interference. This occurs when "distractor" words in a sentence confuse the retrieval of the true subject. For example, in "agreement attraction" scenarios like "The key to the cabinets are...", the plural distractor "cabinets" can interfere with the retrieval of the singular subject "key".
The CBR-RNN captures these effects as an emergent property. It does not rely on hand-coded rules for "subject" or "plurality"; instead, it learns latent features from data. Interference arises mathematically when the similarity between a target and a distractor causes the single attention head to "blur" its retrieval, leading to human-like error patterns.
Key Results and Discussion
Evaluation on experimental stimuli showed that the CBR-RNN successfully replicated human attraction effects. When a distractor shared features with the verb (e.g., plurality or semantic relation), the model's relative attention to the true subject decreased. This alignment with human data suggests that a single, bottlenecked attention head is sufficient to track complex long-distance dependencies.
Furthermore, the CBR-RNN proved more efficient than standard LSTMs, achieving lower perplexity with the same number of parameters. While models like GPT-2 also exhibit these effects, they require manual identification of specific "syntactic heads" among hundreds. The CBR-RNN provides a direct, cognitively grounded measure of retrieval difficulty out of the box.
Future work aims to refine the model by adding sparsity regularization to further focus attention and implementing memory decay to better reflect the temporal constraints of human cognition.
Summary updated