cs.LGOct 5, 2026

Spectral Geometry of Attention: From Information Routing to Uncertainty

Authors: Giulio Viganò, Simone Melzi, Maks Ovsjanikov

Organizations: University of Milano-Bicocca Milan, Italy · Ecole Polytechnique · LIX, Ecole Polytechnique IP Paris

Abstract

In this work, we study transformer attention through the lens of spectral geometry and operator theory. We view each attention head as a functional map between Hilbert spaces of functions on the token sequence and derive a Token Difference Operator, whose spectral structure controls how token-space information is routed to the output. We show that standard Euclidean spectra are structurally biased by sinks, conflating mass concentration with genuine routing capacity. By recasting token space in the intrinsic probability geometry induced by attention, the token difference spectrum disentangles sink effects from routing capacity and provides a spectral description of the dimensionality of the head output. This yields a unified framework for analyzing attention maps, explaining sinks, routing collapse, and output dimensionality within a single operator-theoretic framework. In practice, by grounding attention heuristics in spectral geometry, we develop a novel attention-based uncertainty estimator that complements probability-based scores, with the largest gains on long-context inputs.

Figures & tables

Appendix figures & tables8 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. From Self-Attention to Connection Laplacian: A Unified Operator View of Transformers

    Jul 12, 2026Binbin Lin, Wei Chen, Yalun Li +3Transformer AttentionLinear Attention

  2. The Routing and Filtering Structure of Attention

    May 12, 2026Shafayeth Jamil, Rehan KapadiaKimi Delta AttentionDecomposition