Manuscript Offprint

arXiv:2608.23818

Beyond Static and Linear: What Attention Constraints Best Fit Human Reading Times?

Lanni Bu, Xiulin Yang, Christian Clark, Alex Warstadt, Ethan Gotlieb Wilcox

Abstract

Transformer-based language models are widely used as models of human language processing, yet their attention mechanisms allow lossless access to the full preceding context, unlike the limited memory systems of humans. We hypothesize that installing memory constraints into transformers' attention mechanisms can improve their fit to human behavioral data. While previous work has explored individual constraints in isolation, we conduct a systematic comparison of multiple attention-based memory mechanisms across different model sizes and training corpora, evaluating both psychometric predictive power for human reading times and grammatical competence. We additionally compare static constraints, in which the constraint strength is fixed throughout training, to dynamic memory curricula. We find that constraints that are sensitive to the content of intervening tokens consistently achieve the highest alignment with human reading times, outperforming distance-based constraints. We observe a dissociation between psychometric fit and grammatical competence under dynamic memory curricula, suggesting that Transformers cannot serve as a one-size-fits-all cognitive model. 1^{1}

1 Introduction

One longstanding hypothesis in cognitive science is that constraints on cognition lead to more robust and generalizable cognitive processes (Hertwig and Todd, 2003; Newport, 1990; Elman, 1993). Recently, Artificial Neural Network (ANN)-based language modeling has been used as a testbed for this proposal, specifically in the domain of linguistic cognition. In this line of work, limitations akin to memory limitations in humans are integrated into ANN language models, and the resulting models are evaluated on their ability to predict human linguistic behaviors. Contributions have found that limitations in transformers' attention mechanism (Clark et al., 2025; Mita et al., 2025; Kuribayashi et al., 2022; De Varda and Marelli, 2024), as well as representational capacity (Timkey and Linzen, 2023; Xu et al., 2026), have led to gains in predicting human grammatical and sentence processing behaviors. Furthermore, one recent study has found that a curriculum of constraint relaxation over training improves cognitive fit above static model architecture (Mita et al., 2025), in line with well-studied theories from the cognitive science literature (Newport, 1990).

While these results are exciting, they provide only a limited empirical picture. In particular, previous work has tested only a couple of memory constraints: n-gram-like cutoffs (Kuribayashi et al., 2022) or distance-based decay (Clark et al., 2025; De Varda and Marelli, 2024). However, there are many other theories about how memory constrains language processing (e.g., intervener-based interference; Lewis and Vasisth, 2005). These alternative theories remain untested in this paradigm. Furthermore, existing studies have explored a limited range of models and datasets, making it unclear whether the observed improvements in cognitive fit are generalizable or specific to particular training and modeling choices. The same limitations apply to work on dynamic memory curricula: only one type of constraint has been tested under a dynamic training regime, and it is unknown how other memory limitations interact with dynamic versus static training schedules. Concurrent with our work, Madhyastha and Adamcova (2026) also investigate memory constraints in Transformers trained on human-scale data, but focus exclusively on distance-based mechanisms such as fixed-width windows and temporal decay, without testing content-based constraints or dynamic curricula.

In this paper, we test multiple attention-based memory constraints drawn from the pre-existing

1^{1}Code is available at https://github.com/Lanni-ni/different-attention-mechanisms-transformers.

machine learning literature that have been argued to improve generic language modeling (Press et al., 2022; Lin et al., 2025; Tan et al., 2025). Even though these models were not originally proposed as cognitive models, we select them because each, we argue, has a plausible cognitive interpretation (see Section 2.2).

We vary between two model sizes and three pre-training corpora to assess the generalizability of our findings across different modeling conditions. In addition, we compare static memory constraints, in which the constraint strength remains fixed throughout training, to dynamic memory constraints, in which the constraint changes over the course of training. We evaluate the model's ability to predict psycholinguistic behavioral data across six reading time corpora, following well-established methods (Smith and Levy, 2013; Goodkind and Bicknell, 2018; Wilcox et al., 2020). Our interpretation is that if adding a constraint into the model improves its fit to human behavior, then this provides sim-ulative evidence in favor of the corresponding psycholinguistic theory.

We find constraints that limit models’ attention based on the content of intervening material consistently achieve the highest alignment with human reading times across the majority of training configurations. These models outperform distance-based constraints, which have been the focus of prior work. For dynamic memory curricula, we observe a dissociation between psychometric predictive power and grammatical competence: static models better predict human reading times, whereas dynamic models show stronger performance on grammatical benchmarks. Surprisingly, a curriculum in which constraints are gradually imposed, outperforms other curricula, challenging a straightforward application of previous cognitive theories to neural language learners.