# When Exact Token Importance Is Not Enough: Limits of Top-K Selection in LLM Attention

> Even exact per-token importance scores fail: softmax renormalization makes Top-K selection arbitrarily suboptimal, with unbounded KL loss gaps already at K=2.

- **Source:** [arXiv](https://arxiv.org/abs/2611.32324)
- **Published:** 2026-11-28
- **Permalink:** https://picx.dev/p/heNhHH
- **Whiteboard:** https://picx.dev/p/heNhHH/image

## Summary

# Summary of "When Exact Token Importance Is Not Enough: Limits of Top-K Selection in LLM Attention"

## Summary (Overview)

- **Core finding**: Even when token importance scores are *exact* (measured as the precise downstream KL divergence caused by deleting each position individually), ranking by these scores and selecting Top-K can produce **arbitrarily suboptimal** retained support sets in softmax attention.
- **Key mechanism**: Because attention weights are **renormalized** over the chosen support set, two individually important positions can form a poor pair after renormalization—the selection rule itself, not estimation error, causes the failure.
- **Theoretical results**: A constructive four-position counterexample shows a **133.2× KL loss ratio** between the exact-singleton Top-2 support and the optimal pair; a parametric family proves this gap is **unbounded** (Proposition 2).
- **Empirical validation**: In exhaustive frozen-model audits across SmolLM2, Gemma-2-2B, and Qwen3.5-4B, exact-singleton Top-4 leaves at least 10% relative headroom in 55/60, 49/60, and 60/60 cases respectively (at M=24, K=4).
- **Practical diagnostic**: **SwapCert**, a same-budget one-swap audit, provides checkable improving witnesses and detects 157/164 oracle-positive cases, connecting support quality to predictive fidelity via a KL–margin certificate.

---

## Introduction and Theoretical Foundation

### Background and Motivation

Long-context language models face increasing attention costs as context grows, requiring **key–value (KV) cache** management through eviction, retrieval, or query-conditioned masking. A common strategy assigns a scalar importance score to each token position and retains the **Top-K** highest-scoring positions.

The central problem: after positions are discarded, **softmax recomputes the relative weights of all survivors**. Two positions that appear highly influential individually may pull the retained representation away from the model's full-attention representation when combined.

### The Four-Position Counterexample

With dense weights $a = (0.2, 0.1, 0.2, 0.5)$, scalar values $v = (4, -2, 1, 2.7)$, and downstream binary logits $z(h) = (1.8h, 0)$:

- Dense head output: $h_D = 2.15$
- Exact singleton-deletion KL scores: $d_4 = 0.0137 > d_1 = 0.0092 > d_2 = 0.0054 > d_3 = 0.0023$
- Top-2 selects $\{1, 4\}$ with $L(\{1,4\}) = 0.0172$
- Optimal pair $\{3, 4\}$ has $L(\{3,4\}) = 0.000129$ — a **133.2× loss ratio**

### Key Theoretical Framework

The dense attention output is:

$$h_D = \sum_{i \in D} a_i v_i, \quad a_i = \frac{e^{s_i}}{\sum_{j \in D} e^{s_j}}$$

For a retained support $S \subseteq D$, sparse-softmax renormalization yields:

$$A_S = \sum_{i \in S} a_i, \quad h_S = \frac{\sum_{i \in S} a_i v_i}{A_S}$$

The joint support loss is the downstream KL divergence:

$$L(S) = D_{KL}(p_D \| p_S)$$

The exact singleton-deletion score for candidate $j$:

$$d_j = D_{KL}(p_D \| p_{D \setminus \{j\}})$$

---

## Methodology

### Theoretical Analysis

1. **Proposition 1 (Exact singleton ranking is insufficient)**: Even exact, objective-matched downstream singleton-deletion KL scores do not generally identify a jointly optimal fixed-cardinality support under softmax renormalization.

2. **Proposition 2 (No uniform multiplicative approximation)**: For every $R > 0$, there exists a four-position softmax head such that:
   $$\frac{L(\text{Top-}K(\{d_j\}, 2))}{\min_{|S|=2} L(S)} > R$$
   
   *Proof sketch*: Set $v = (4, -2, 1/4 + \delta, 27/10)$ with weights $a = (1/5, 1/10, 1/5, 1/2)$. At $\delta = 0$, the dense output and support $\{3,4\}$ output both equal 2, while $h_{\{3,4\}} - h_D = 3\delta/35$ — the KL of the optimal support tends to zero quadratically as $\delta \downarrow 0$, while the ranked support's KL tends to a positive constant.

3. **Proposition 3 (Preference reversal for every $K \geq 2$)**: The same pair of candidate positions can reverse downstream-KL preference solely because the other retained positions change. A context-independent scalar ranking cannot encode every fixed-budget exchange preference.

### The Exchange Identity

For $S' = S \setminus \{i\} \cup \{j\}$:

$$h_{S'} = \frac{A_S h_S - a_i v_i + a_j v_j}{A_S - a_i + a_j}$$

$$h_{S'} - h_S = \frac{a_j(v_j - h_S) - a_i(v_i - h_S)}{A_S - a_i + a_j}$$

The exact displacement depends jointly on retained mass $A_S$, current output $h_S$, and both exchanged positions.

### SwapCert Diagnostic

For incumbent support $S$ with $L(S) > 0$:

$$H_U(S) = 1 - \frac{\min_{T \in \mathcal{F}_K(U)} L(T)}{L(S)}, \quad W_U(S) = \max\left\{0, 1 - \frac{\min_{T \in \mathcal{N}_1(S)} L(T)}{L(S)}\right\}$$

**Theorem 1 (One-sided witness soundness)**: $W_U(S) \geq \varepsilon$ implies $H_U(S) \geq \varepsilon$, since $\mathcal{N}_1(S) \subseteq \mathcal{F}_K(U)$.

### Experimental Design

- **Models**: SmolLM2-1.7B-Instruct, Gemma-2-2B, Qwen3.5-4B
- **Data**: 30 frozen examples per family from LongBench-E (2WikiMultihopQA, HotpotQA, PassageRetrieval-en)
- **Primary audit**: M=24 candidate universe, K=4 budget, all $\binom{24}{4} = 10{,}626$ supports evaluated per cell (1,912,680 total support evaluations)
- **Larger-budget experiments**: 2,048-token inputs, K ∈ {128, 256}, all heads in last three full-softmax layers, comparing attention Top-K with geometric singleton score:
  $$u_j = \|h_{D \setminus \{j\}} - h_D\|_2 = \frac{a_j}{1-a_j}\|v_j - h_D\|_2$$

---

## Empirical Validation / Results

### Primary Exact Audit (M=24, K=4)

| Model | $H_U \geq 0.10$ | Median $H_U$ [95% CI] | Median $\Delta KL$ [95% CI] |
|-------|:---:|:---:|:---:|
| SmolLM2 | 55/60 | .926 [.807, .984] | $4.018 \times 10^{-4}$ [$2.491 \times 10^{-4}$, $1.126 \times 10^{-3}$] |
| Gemma-2-2B | 49/60 | .561 [.346, .658] | $1.927 \times 10^{-4}$ [$1.170 \times 10^{-4}$, $3.216 \times 10^{-4}$] |
| Qwen3.5-4B | 60/60 | .954 [.942, .964] | $2.473 \times 10^{-3}$ [$1.544 \times 10^{-3}$, $4.360 \times 10^{-3}$] |

### SwapCert Detection

- Fires on 52/55, 48/49, and 57/60 oracle-positive supports (157/164 pooled)
- Prompt-cluster 95% recall intervals: [88.1%, 100%], [93.2%, 100%], [88.3%, 100%]
- Among seven non-firings: six have improving one-swap below 10% threshold; one has global headroom beyond immediate improving neighborhood

### Larger-Budget Results (K ∈ {128, 256})

**Table 3: Mean dense-reference next-token KL (lower is better)**

| Model | K | Attention | Geometric | Recent | Sink+recent |
|-------|:---:|:---:|:---:|:---:|:---:|
| SmolLM2 | 128 | .0011103 | .0009981 | .1794272 | .0425540 |
| SmolLM2 | 256 | .0006785 | .0006863 | .1704914 | .0403637 |
| Gemma-2-2B | 128 | .0006760 | .0006308 | .0419478 | .0134970 |
| Gemma-2-2B | 256 | .0003143 | .0002836 | .0362449 | .0122437 |
| Qwen3.5-4B | 128 | .0011924 | .0011308 | .2587330 | .2472465 |
| Qwen3.5-4B | 256 | .0006270 | .0006127 | .2447003 | .2159831 |

### KL–Margin Certification

**Proposition 4**: Let $y^* = \arg\max_y p_D(y)$ be unique with margin $m = p_D(y^*) - \max_{y \neq y^*} p_D(y) > 0$. If $D_{KL}(p_D \| p_S) < m^2/2$, then $\arg\max_y p_S(y) = y^*$.

**Table 5: Certified cells (out of 60 per model)**

| Model | Ranked certified | Best-swap certified | Oracle certified | Ranked flips |
|-------|:---:|:---:|:---:|:---:|
| SmolLM2 | 56/60 | 59/60 | 60/60 | 1/60 |
| Gemma-2-2B | 39/60 | 41/60 | 41/60 | 2/60 |
| Qwen3.5-4B | 57/60 | 59/60 | 60/60 | 1/60 |
| **Total** | **152/180** | **159/180** | **161/180** | **4/180** |

---

## Theoretical and Practical Implications

### Theoretical Significance

1. **Sharp separation between marginal and joint optimization**: The paper establishes that even *perfect* singleton importance measurement cannot guarantee good joint support selection—the gap is not a measurement error but a structural property of softmax renormalization.

2. **Unbounded approximation gap**: Proposition 2 shows no instance-uniform multiplicative approximation factor exists for exact-singleton Top-K, already at K=2, unless additional structural assumptions (like the cone conditions in DropKV) are imposed.

3. **Preference reversals at every budget**: Proposition 3 proves that context-independent scalar rankings fundamentally cannot encode fixed-budget exchange preferences for any $K \geq 2$.

### Practical Implications

1. **Evaluation must include joint support quality**: Systems should evaluate both the marginal ranker and the jointly selected support, not just individual token scores.

2. **SwapCert as a diagnostic tool**: Provides a checkable, same-budget witness of improvement with $K(M-K)$ evaluations (80 at M=24, K=4) versus $\binom{M}{K}$ for full enumeration (10,626).

3. **KL–margin as a safety certificate**: The condition $D_{KL}(p_D \| p_S) < m^2/2$ provides a deterministic guarantee of top-1 token preservation.

4. **Budgeted downstream-aware support policy**: The paper formulates the open problem:
   $$\min_{\pi} \sum_{t=1}^{T} \mathbb{E}_{Y_{<t} \sim P_D}\left[D_{KL}(p_D(\cdot | Y_{<t}) \| p_\pi(\cdot | Y_{<t}))\right]$$
   subject to $C_{\text{bytes}}(\pi) \leq B$, $C_{\text{time}}(\pi) \leq \tau$

---

## Conclusion

This paper establishes that **joint support quality is an essential object of analysis** for sparse attention in LLMs, distinct from and irreducible to individual token importance. The key contributions are:

1. **Fundamental limits**: Exact singleton importance can yield arbitrarily inferior fixed-budget supports (unbounded multiplicative gap at K=2).

2. **Mathematical characterization**: An exact support-exchange identity and all-budget preference reversals explain the structural mechanism.

3. **Empirical quantification**: Exhaustive audits across three LLM families show the ranking–support gap is prevalent (55/60, 49/60, 60/60 cells with ≥10% headroom).

4. **Constructive diagnostics**: SwapCert provides checkable same-budget improvement witnesses; KL–margin certification links support quality to predictive stability.

**Future directions**: Developing economical surrogates for support-conditioned loss, deriving useful bounds or pruning certificates beyond neighborhood enumeration, and validating support policies with physically enforced cache budgets, inference cost, and full-answer evaluation. The work opens a precise agenda for **downstream-aware support selection** under real memory, compute, and generation constraints.

---

_Markdown view of https://picx.dev/p/heNhHH, served by PicX — AI-generated visual whiteboard summaries of research papers._
