Geometric Analysis of Token Selection in Multi-Head Attention
Timur Mudarisov, Mikhail Burtsev, Tatiana Petrova, Radu State
ICLR 2026 submission
Abstract. We present a geometric framework for analyzing multi-head attention in large language models (LLMs). Instead of aggregating over all tokens, we propose a top- selection mechanism that retains only the most attended tokens and study its behavior directly in the value-state space. We introduce novel geometric metrics -- Precision, Recall, and F-score -- to quantify the separability of selected versus non-selected tokens, and derive dimension- and margin-dependent bounds under empirically motivated assumptions on norm stability, similarity decay, and multi-phase attention distributions. Our theoretical results clarify how head specialization, sequence length, and the sink token jointly shape the geometry of attention. Empirical evaluation on several open-source LLMs (LLaMA-2-7B, Gemma-7B, and Mistral-7B) confirms our predictions: top- selection sharpens token separability, the sink token systematically correlates with Recall, and different heads specialize into local versus global regimes. These findings demonstrate that attention is not only a weighting mechanism but also a structured geometric classifier. Our framework provides measurable criteria for token selection, offers interpretability into head-level behavior, and opens new directions for designing sparse and geometry-aware attention mechanisms in LLMs.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperadd · history
Loading the discussion…