paper-with-me

홈 › Papers

Topoformer: brain-like topographic organization in Transformer language models through spatial querying and reweighting

2025-10-21 · Taha Binhuraib, Greta Tuckute, Nicholas Blauch arxiv

Spatial functional organization is a hallmark of biological brains: neurons are arranged topographically according to their response properties, at multiple scales. In contrast, representations within most machine learning models lack spatial biases, instead manifesting as disorganized vector spaces that are difficult to visualize and interpret. Here, we propose a novel form of self-attention that turns Transformers into "Topoformers" with topographic organization. We introduce spatial querying - where keys and queries are arranged on 2D grids, and local pools of queries are associated with a given key - and spatial reweighting, where we convert the standard fully connected layer of self-attention into a locally connected layer. We first demonstrate the feasibility of our approach by training a 1-layer Topoformer on a sentiment classification task. Training with spatial querying encourages topographic organization in the queries and keys, and spatial reweighting separately encourages topographic organization in the values and self-attention outputs. We then apply the Topoformer motifs at scale, training a BERT architecture with a masked language modeling objective. We find that the topographic variant performs on par with a non-topographic control model on NLP benchmarks, yet produces interpretable topographic organization as evaluated via eight linguistic test suites. Finally, analyzing an fMRI dataset of human brain responses to a large set of naturalistic sentences, we demonstrate alignment between low-dimensional topographic variability in the Topoformer model and human brain language network. Scaling up Topoformers further holds promise for greater interpretability in NLP research, and for more accurate models of the organization of linguistic information in the human brain.

📄 PDF Abstract BibTeX arXiv:2510.18745

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

TopoFormer: Integrating Transformers and ConvLSTMs for Coastal Topography Prediction

2025-01-11 · Santosh Munian, Oktay Karakuş, William Russell, Gwyn Nelson

This paper presents \textit{TopoFormer}, a novel hybrid deep learning architecture that integrates transformer-based encoders with convolutional long short-term memory (ConvLSTM) layers for the precise prediction of topo…

Survey

TDSNNs: Competitive Topographic Deep Spiking Neural Networks for Visual Cortex Modeling

2025-08-06 · Deming Zhou, Yuetong Fang, Zhaorui Wang, Renjing Xu arxiv

The primate visual cortex exhibits topographic organization, where functionally similar neurons are spatially clustered, a structure widely believed to enhance neural processing efficiency. While prior works have demonst…

Object Recognition

TopoFormer: Topology Meets Attention for Graph Learning

2026-07-30 · Md Joshem Uddin, Astrit Tola, Cuneyt Gurcan Akcora, Baris Coskunuzer arxiv

We introduce Topoformer, a lightweight and scalable framework for graph representation learning that encodes topological structure into attention-friendly sequences. At the core of our method is Topo-Scan, a novel module…

Molecular Property PredictionGraph Representation LearningGraph ClassificationGraph Learning

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

2024-10-15 · Neil Rathi, Johannes Mehrer, Badr AlKhamissi, Taha Binhuraib 외

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 cat…

Language ModelingLanguage Modelling

Topographic maps in the brain are fundamental to processing of causality

2018-11-12

The ubiquity of topographic maps in the brain has long been known, and molecular mechanisms for the formation of topographic organization of neural systems have been revealed. Less attention has been given to the questio…