Abstract: Eye movements in reading reveal humans' cognitive processes involved in language understanding. The duration a reader's eyes fixate on a word has been used as a measure of the visual attention given to that word or its significance to the reader. This study investigates the correlation between the importance attributed to input tokens by language models (LMs) on the one hand and humans, in the form of fixation durations, on the other hand. While previous research on the internal processes of LMs have employed the models' attention weights, recent studies have argued in favor of gradient-based methods. Moreover, previous approaches to interpret LMs' internals with human gaze have neglected the tasks readers performed during reading, even though psycholinguistic research underlines that reading patterns are task-dependent. We therefore employ a gradient-based saliency method to measure the importance of input tokens when LMs are targeted on specific tasks, and we find that task specificity plays a crucial role in the correlation between human- and model-assigned importance.
Introduction
For years, researchers have sought to determine if Large Language Models (LLMs) process language in a manner analogous to human cognition. A common methodology involves comparing a model’s "attention weights" to human "fixation durations"—the amount of time a person’s eyes rest on a specific word during reading. However, previous findings have been inconsistent, often yielding messy results that fail to provide a clear picture of alignment.
This research identifies two major flaws in prior studies. First, raw attention weights in Transformers are increasingly viewed as noisy and unreliable indicators of what a model actually prioritizes for its final decision. Second, there is a significant "Task Gap." Human reading patterns change drastically based on the objective—such as skimming for a fact versus reading for emotional sentiment. Most previous studies ignored this, comparing general-purpose models to humans performing highly specific tasks. This paper addresses these gaps by utilizing gradient-based saliency and ensuring models perform the exact same tasks as human subjects.
Methodology
The researchers compared two distinct types of "importance" vectors to measure alignment:
- Human Importance: Derived from the ZuCo (Zurich Cognitive Language Processing Corpus) dataset, which contains high-fidelity eye-tracking data. The researchers used "relative fixation duration" as a proxy for the cognitive importance humans assign to words.
- Model Importance: Instead of noisy attention weights, the study employed gradient-based saliency. This method calculates the gradient of the model's output (the logit for the correct class) with respect to the input tokens, measuring how much a marginal change in a specific word would alter the model's final prediction.
The study evaluated models in three states: randomly initialized, pre-trained (zero-shot), and fine-tuned on specific tasks. The primary metric for alignment was the Spearman correlation between the human and model importance vectors across two tasks: Sentiment Analysis (SA) and Relation Extraction (RE).
Key Results and Insights
The study's findings highlight that task specificity is the critical missing link in aligning artificial and human linguistic attention. The strongest correlations occurred when the model was fine-tuned for the specific task the humans were performing, suggesting that "importance" is not an inherent property of a word but is highly dependent on the reader's goal.
Task Difficulty and Alignment
As shown in the results, correlations were consistently higher for Sentiment Analysis (reaching up to 0.61 for aggregated data) than for Relation Extraction (up to 0.53). This disparity likely stems from the complexity of Relation Extraction, which involves more possible output classes and requires a more diffused "focus" from the model.
Model Architecture and Performance
Interestingly, encoder-based models (like BERT) generally aligned better with human gaze than decoder-based models (like GPT-2). This may be because encoders process context bi-directionally, mirroring the way humans re-scan sentences to complete complex tasks. Furthermore, the study found that model performance does not strictly equal alignment; for instance, BERT-base showed higher correlation with human gaze than the more powerful RoBERTa, despite RoBERTa's superior task accuracy. This suggests that increasing a model's "intelligence" does not automatically make its internal logic more human-like.
Discussion and Limitations
While the results are promising, several limitations remain. The ZuCo dataset is relatively small, and the participants were all L1 English speakers from a specific academic environment in Zurich, which may not represent universal reading patterns. Additionally, while gradient-based saliency is a step forward, the authors suggest that even more advanced interpretability methods, such as Integrated Gradients, could provide an even tighter fit to human data.
Conclusion
This research demonstrates that LLMs align much more closely with human cognitive processes when they are performing the same specific task as the human. By bridging the "Task Gap" and utilizing gradient-based saliency, we can better understand the nuances of how artificial models prioritize information compared to the human mind. Task-specific fine-tuning remains the most effective way to align these two disparate systems of language understanding.
Summary updated