Introduction
In the field of psycholinguistics, two primary theoretical frameworks explain the difficulty of sentence processing: expectation-based theories and memory-based theories. Expectation-based theories focus on the predictability of the next word, while memory-based theories emphasize the cognitive load required to retrieve previous linguistic elements (such as the subject of a sentence) from working memory.
Modern Large Language Models (LLMs), like GPT-2, have proven exceptional at next-word prediction. However, they are often poor proxies for human cognitive architecture. For instance, even a small GPT-2 model utilizes 144 attention heads, implying 144 parallel memory retrievals per token. In contrast, human attention is remarkably narrow, typically limited to one or two items at a time. This research introduces a novel architecture designed to bridge this gap by imposing mechanistic constraints on memory, testing whether a model with limited capacity can replicate human-like interference effects.
The CBR-RNN Architecture
The researchers developed the Cue-Based Retrieval Recurrent Neural Network (CBR-RNN). The architecture is a deliberate departure from the high-capacity transformers common in modern AI, opting instead for a design that mimics human limitations:
- Simple RNN Base: The model uses a Simple RNN (SRNN) rather than an LSTM. Because SRNNs naturally struggle to maintain information over long distances, the model is forced to rely on its attention mechanism to "retrieve" necessary information from the past.
- Single Attention Head: To mirror the narrow focus of human working memory, the CBR-RNN is restricted to exactly one self-attention head.
- Dual Training Objectives: The model is trained on two simultaneous tasks: standard next-word prediction and Combinatory Categorial Grammar (CCG) supertagging. The latter requires the model to predict syntactic tags (e.g., identifying a verb's requirement for a plural subject), encouraging the emergence of internal syntactic features without manual hand-coding.
Experimental Methodology
The model was trained on WikiText-103, a corpus of 103 million tokens, and evaluated for syntactic proficiency using CCGBank. To test for human-like memory errors, the authors utilized experimental stimuli from Laurinavichyute and von der Malsburg (2022). These stimuli are designed to trigger "attraction" errors, where a distractor word interferes with the processing of the true subject:
- Syntactic Attraction: "The key to the cabinets are..." (The plural distractor "cabinets" interferes with the singular subject "key").
- Semantic Attraction: "The drawer with the knife cut..." (The semantically plausible distractor "knife" interferes with "drawer").
Key Insights and Results
Emergent Feature Learning
Unlike traditional cognitive models that require researchers to manually define features like [+plural], the CBR-RNN learns these features implicitly through its training objectives. This allows the model to develop a more flexible representation of language that is less biased by researcher assumptions.
Capturing Interference
The CBR-RNN successfully replicated human behavioral patterns in both syntactic and semantic attraction scenarios. When a distractor word matched the requirements of the verb, the model's "Relative Attention" on the true subject dropped significantly (from approximately 0.55 to 0.45). This mirrors the "speed-up" effects observed in human reading times, where readers fail to notice grammatical errors because they have incorrectly retrieved a distractor word from memory.
Additivity of Effects
A striking finding was the additivity of interference. If a distractor was both grammatically similar and semantically plausible, the interference effect was compounded. The single-headed CBR-RNN captured this interaction naturally, suggesting that interference is not a "bug" but a byproduct of a system optimizing prediction under strict capacity limits.
Performance Comparison
Despite its constrained architecture, the CBR-RNN achieved lower perplexity than parameter-matched LSTMs, demonstrating that a single, well-integrated attention head is highly efficient for language modeling. While models like GPT-2 can also capture these effects, they require researchers to manually isolate specific "syntactically specialized" heads; the CBR-RNN produces these effects as a fundamental property of its architecture.
Discussion and Limitations
The CBR-RNN demonstrates that mechanistic constraints on memory can explain complex patterns in human language processing. However, several avenues for future work remain:
- Dependency Diversity: This study focused on subject-verb dependencies. Future research should investigate if the model captures interference in other structures, such as reflexive pronouns or filler-gap dependencies.
- Memory Decay: Human memory naturally decays over time. The current CBR-RNN cache does not include a built-in forgetting function, a key component of human working memory.
- Training Data: Training on Wikipedia differs significantly from the child-directed speech through which humans acquire language. Using more ecologically valid datasets may further align the model with human behavior.
- Sparsity: The authors noted that the model occasionally spreads attention across too many past tokens. Implementing sparsity regularization could force the model to be even more selective, further mimicking the bottleneck of human attention.
Summary updated