bioRxiv · 10.1101/2025.06.23.661103
Attention is all you need (in the brain): semantic contextualization in human hippocampus
Abstract
Word meanings in language are contextualized by surrounding words. Inspired by the self-attention mechanism in transformer-based large language models (LLMs), we hypothesized that structural composition in the brain arises from combining canonical (non-contextual) word representations with those of nearby words. We analyzed single unit activity in the human hippocampus, a region involved in semantic and contextual processing, while n=10 participants listened to podcasts. We found that hippocampal neurons encoded word position within a clause, using both ordinal and frequency-domain positional encoding. Moreover, neural responses to specific words reflected both the words own lexical semantics and a weighted sum of the embeddings of preceding words. The relative weighting of these contextualizing words correlated with LLM self-attention weights. These findings suggest that contextualization in the brain makes use of vectorial shifts that have a resemblance to attentional reweighting in LLMs, and highlight the role of the mesial temporal lobe within the broader language network.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Katlowitz, K., Belanger, J. L., Ismail, T., Chavez, A. G., Chericoni, A., Franch, M. C., Mickiewicz, E. A., Mathura, R. K., Paulo, D., Bartoli, E., Piantadosi, S. T., Provenza, N. R., Watrous, A. J., Sheth, S. A., Hayden, B. Y.. 2025-06-24. Attention is all you need (in the brain): semantic contextualization in human hippocampus. https://doi.org/10.1101/2025.06.23.661103
Cite the original work for its findings. Save a collection to share your selection of sources.