potentialpaper

Geometric Analysis of Token Selection in Multi-Head Attention

Timur Mudarisov, Mikhail Burtsev, Tatiana Petrova, Radu State

ICLR 2026 submission

Edit this page

Or clone it with git

The page gets its repository with its first edit, so start in the web editor.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

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-NN 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-NN 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 paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

add · history

No versions are recorded yet: its preprint, the venues it went to and what they decided, the camera-ready. Missing a version?

We don't know of a submission of this paper to a venue with open reviews. Missing a submission?

Loading the discussion…