Fine-grained Analysis of Brain-LLM Alignment through Input Attribution
Michela Proietti, Roberto Capobianco, Mariya Toneva
TL;DR
This work introduces an end-to-end input attribution framework to dissect why large language models align with human brain activity, and applies it to compare brain alignment (BA) with next-word prediction (NWP) across multiple architectures and brain datasets. By linking LLM embeddings to fMRI responses via a differentiable projection, the authors compute word-level attributions for BA and contrast them with NWP using gradient-based methods, primarily Gradient × Input and validated with Integrated Gradients. They find that BA and NWP rely on largely distinct word sets, with BA drawing more on semantic and discourse-level information and exhibiting broader recency-based integration, while NWP emphasizes syntax and sharp recency/primacy biases, particularly in early layers. Across datasets and models, BA shows higher attribution spread in middle/late layers, suggesting more distributed, high-level linguistic processing underlying brain alignment. The results challenge the notion that BA is fully explained by NWP and provide a generalizable tool to study the cognitive relevance of model predictions across language tasks, with potential to inform brain-tuned model development and cognitive-language research.
Abstract
Understanding the alignment between large language models (LLMs) and human brain activity can reveal computational principles underlying language processing. We introduce a fine-grained input attribution method to identify the specific words most important for brain-LLM alignment, and leverage it to study a contentious research question about brain-LLM alignment: the relationship between brain alignment (BA) and next-word prediction (NWP). Our findings reveal that BA and NWP rely on largely distinct word subsets: NWP exhibits recency and primacy biases with a focus on syntax, while BA prioritizes semantic and discourse-level information with a more targeted recency effect. This work advances our understanding of how LLMs relate to human language processing and highlights differences in feature reliance between BA and NWP. Beyond this study, our attribution method can be broadly applied to explore the cognitive relevance of model predictions in diverse language processing tasks.
