Nature CommunicationsNeurosciencePeer-reviewed journal article
Shared functional specialization in transformer-based language models and the human brain
Sreejan KumariD, Theodore R. SumersiD, Takateru YamakoshiiD, Ariel GoldsteiniD, Uri HassoniD, Kenneth A. NormaniD, Thomas L. GriffithsiD, Robert D. Hawkins, Samuel A. NastaseiD
Abstract
Humans use complex linguistic structures to transmit ideas to one another. The brain is thought to deploy specialized computations to process these structures. Recently, a new class of artificial neural networks based on the Transformer architecture has revolutionized the field of language modeling, attracting attention from neuroscientists seeking to understand the neurobiology of language in silico. Transformers integrate information across words via multiple layers of structured circuit computations, forming increasingly contextualized representations of linguistic content. Prior work has focused on the internal representations (the "embeddings") generated by these circuits. In this paper, we instead analyze the circuit computations directly: we deconstruct these computations into functionally-specialized "transformations" to provide a complementary window onto linguistic computations in the human brain. Using functional MRI data acquired while participants listened to naturalistic spoken stories, we first verify that the transformations account for considerable variance in brain activity across the cortical language network. We then demonstrate that the emergent syntactic computations performed by individual, functionally-specialized "attention heads" differentially predict brain activity in specific cortical regions. These heads fall along gradients corresponding to different layers, contextual distances, and syntactic dependencies in a low-dimensional cortical space. Our findings indicate that large language models and the cortical language network may converge on similar trends of functional specialization for processing natural language.
- Citations
- 87
- FWCI
- 17.94
- Field percentile
- top 1%
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- When word order matters: human brains represent sentence meaning differently from large language models
James Fodor, Carsten Murawski, Shinsuke Suzuki·eLifePeer-reviewed·Oct 23, 2026
- Attention weights accurately predict language representations in the brain
Mathis Lamarre, Catherine Chen, Fatma Deniz·Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP)Peer-reviewed·Jan 1, 2022
- Language processing in brains and deep neural networks: computational convergence and its limits
Charlotte Caucheteux, Jean-Rémi King·bioRxiv·Jul 3, 2020
- Scale matters: Large language models with billions (rather than millions) of parameters better match neural representations of natural language
Zhuoqiao Hong, Haocheng Wang, … Ariel Goldstein·bioRxiv·Jun 12, 2024
- The neural architecture of language: Integrative modeling converges on predictive processing
Martin Schrimpf, Idan Blank, … Evelina G. Fedorenko·Proceedings of the National Academy of SciencesPeer-reviewed·Nov 4, 2021
- Aligning transformer circuit mechanisms to neural representations in relational reasoning
Luke J. Hearne, Conor Robinson, … Takuya Ito·bioRxiv·Oct 29, 2025