TopoLM: brain-like spatio-functional organization in a topographic language model

Neil Rathi, Johannes Mehrer, Badr AlKhamissi, T. Binhuraib, Nicholas M. Blauch +1 more
2/12/2026

No official code found. Best implementation: epflneuroailab/topolm (30 stars, last commit 2025-05-23).

Abstract

Neurons in the brain are spatially organized such that neighbors on tissue often exhibit similar response profiles. In the human language system, experimental studies have observed clusters for syntactic and semantic categories, but the mechanisms underlying this functional organization remain unclear. Here, building on work from the vision literature, we develop TopoLM, a transformer language model with an explicit two-dimensional spatial representation of model units. By combining a next-token prediction objective with a spatial smoothness loss, representations in this model assemble into clusters that correspond to semantically interpretable groupings of text and closely match the functional organization in the brain's language system. TopoLM successfully predicts the emergence of the spatio-functional organization of a cortical language system as well as the organization of functional clusters selective for fine-grained linguistic features empirically observed in human cortex. Our results suggest that the functional organization of the human language system is driven by a unified spatial objective, and provide a functionally and spatially aligned model of language processing in the brain.

View on arXivView PDF

Code Implementations(1)

TopoLM: brain-like spatio-functional organization in a topographic language model

304PythonJul 5, 20241 years ago

Similar Papers

Cite this paper

@article{rathi2026topolm,
  title  = {TopoLM: brain-like spatio-functional organization in a topographic language model},
  author = {Neil Rathi and Johannes Mehrer and Badr AlKhamissi and T. Binhuraib and Nicholas M. Blauch and Martin Schrimpf},
  year   = {2026},
  eprint = {2410.11516},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.11516},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.11516.svg)](https://codeofpaper.com/paper/2410.11516)

Discussion