bioRxivNeurosciencePreprint
Aligning transformer circuit mechanisms to neural representations in relational reasoning
Luke J. HearneiD, Conor RobinsoniD, Luca CocchiiD, Takuya ItoiD
Abstract
Relational reasoning, the capacity to understand how elements relate to one another, is a defining feature of human intelligence, yet its computational basis remains unclear. Here, we combined human neuroimaging (7T fMRI) with artificial neural network modeling to identify circuit-level analogues of human reasoning computations. Using the Latin Square Task, we found that humans and transformers were able to generalize the task reliably, while standard architectures used in cognitive neuroscience could not. Analysing the transformer components revealed distinct computational roles: positional encoding captured the spatial structure of the task and aligned with representations in visual cortex, whereas attention encoded relational structure and mapped onto frontoparietal and default-mode networks. Attention weights tracked the relational complexity of the task, providing a computational analogue of reasoning demands. These results advance knowledge on the core algorithmic computations supporting complex reasoning, highlighting attention-based architectures as powerful models for investigating the neural and computational basis of higher cognition.
- Citations
- 0
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
- The transformer as a candidate canonical cortical microcircuit
Yash Shah, Daniel L. K. Yamins·bioRxiv·Nov 2, 2026
- Shared functional specialization in transformer-based language models and the human brain
Sreejan Kumar, Theodore R. Sumers, … Samuel A. Nastase·Nature CommunicationsPeer-reviewed·Jun 29, 2024
- Relational integration demands are tracked by temporally delayed neural representations in alpha and beta rhythms within higher-order cortical networks
Conor Robinson, Luca Cocchi, … Luke J. Hearne·Human Brain MappingPeer-reviewed·Jul 1, 2025
- Emergent neural dynamics and geometry for generalization in a transitive inference task
Kenneth Kay, Natalie Biderman, … Larry F. Abbott·PLoS Computational BiologyPeer-reviewed·Apr 25, 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
- Neural alignment of knowledge structures relates to human intelligence
Rebekka M. Tenderra, Stephanie Theves·bioRxiv·Apr 13, 2026