Skip to content

Menu

WorksComputer Science

Emergent Structure in the Marginal Attention Space of Language Models

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_gwnqwks2. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

While representation similarity across independently trained language models is well-documented, how internal mechanics such as attention behave across models remains far less characterized. Inspired by this gap, we examine the structure of post-softmax attention weights by marginalizing over query positions, mapping them into a joint token-head "marginal attention space". Evaluating across 60+ diverse LLMs, we find that different properties emerge when reducing this space along its token and head axes. When reduced token-wise, marginal attention yields a text-intrinsic signal robustly conserved across models. To explain this property, we empirically connect marginal attention to the input-output Jacobian of the network, and prove theoretically that under a smoothness assumption, models with similar next-token distributions are guaranteed to have similar input-output Jacobian statistics. When reduced head-wise, it forms a model-private signature conserved across documents. Practically, this provides a natural way to estimate a per-head budget for key-value (KV) cache eviction, effectively decoupling model-specific budget allocation from text-intrinsic token scoring. On standard eviction benchmarks, a per-head budget precomputed offline on pretraining text, combined with a training-free token score, shows competitive performance with methods that recompute the budget on every document or train it per target. Code available at https://github.com/Flegyas/marginal-attention

Introduction

Despite fundamental differences in architecture, initialization and training objective, neural networks have repeatedly been shown to rediscover a similar representational geometry: the embeddings two models assign to semantically related inputs agree up to a simple transformation [44] (Raghu et al. 2017; Morcos et al. 2018). This phenomenon is strong enough that unrelated models can be composed [47, 9], even across different architectures, data or modalities (Moschella et al., 2023; Norelli et al., 2023; Maiorca et al., 2023). Building on this empirical evidence, recent work has turned from whether representations agree to why they do, with competing hypotheses [37, 32].

How the mechanics that produce these representations behave across models, attention in transformers above all, is far less characterized, and is the focus of this paper. We study attention through its marginals: the attention each head pays to an input token, weighted by what the head writes from it and averaged over output positions. On one document, this gives a matrix with one row per head and one column per input token, which we reduce along each axis Figure 1. Reducing over heads gives the per-token marginal attention, a property of the text, shared across models that differ in lab, data, size, tokenizer and architecture. Reducing over tokens gives the per-head marginal attention, a property of the model, stable across documents and not shared across unrelated models.

Figure 1. Marginal attention on its two axes. Averaged over query positions, the attention of Qwen2.5-0.5B on one document is a matrix MM of 336 heads by tokens. Its per-token reduction (green) agrees across 67 models on the same document (ρˉ=0.87\bar{\rho}=0.87), and its per-head reduction (lavender) on one document matches the model’s average over its other documents (ρˉ=0.95\bar{\rho}=0.95).

To explain the per-token observation, we connect marginal attention to the input-output Jacobian of the language model. In particular, we show that marginal attention, although a simple statistic of the attention matrices alone, approximates the blockwise norms of the input-output Jacobian well. The attention paid to input position ss by an output position tt, averaged across all heads in the model, closely approximates the dependence of the output logits at tt on the input token ss given by the Jacobian. This matters because the Jacobian is a local description of the language model’s entire computation, which includes the value stream and higher-order attention dependencies as well as first-order attention effects. Our main theoretical result shows that two smooth models with nearly the same next-token distributions must have similar input-output Jacobians. For models that share a tokenizer the theory is predictive: pairs with closer next-token predictions agree more, in both the marginal influence and the per-token marginal attention.

The per-head observation shows that our quantity is a reliable model-specific signal that is largely independent of the input document, and we leverage this for key-value (KV) cache eviction. An eviction method must decide how much of the cache each head keeps, and it must keep what later queries will retrieve. We therefore build from our per-head marginal attention a static budget computed on the reconstruction queries of a second pass that asks the model to repeat the document [42]. On those queries the profile is also stable across documents, so the budget is computed once per model, offline, on pretraining text. At inference only a per-token score remains, and since the per-token marginal attention is shared across models, that scoring can also be adjusted by a different, much smaller model.

Our main contributions can be summarized as follows:

  • We propose marginal attention as a relevant quantity to study in language models. Aggregated over heads, it is shared across unrelated models. Per head, it is specific to each model.

  • We connect attention statistics in language models to the input-output Jacobian, and show that model smoothness and next-token distribution similarity alone are theoretically sufficient for input-output Jacobian near-identifiability across models (Theorem 1).

  • We show that per-head marginal attention is a stable quantity across documents, enabling efficient KV cache eviction via a one-time, document-agnostic head budget calculation.

Related work

Representation convergence. Recently, a considerable body of work has examined the similarity of representations across independently trained models, including large language models (LLMs). These works propose similarity metrics (Kornblith et al., 2019; Raghu et al., 2017; Morcos et al., 2018), compose models (Lenc & Vedaldi, 2015; Bansal et al., 2021; Norelli et al., 2023; Maiorca et al., 2023), or study the geometry of the representation space (Moschlla et al., 2023; Huh et al., 2024). Here, we shift the focus from representation-level to the mechanics that produce these representations, the interactions between data inside the model. In transformer-based language models this is largely determined by the attention mechanism and, as the next paragraph reviews, attention itself is not identifiable across models. In our work, we propose a marginal version of attention whose per-token reduction is a property of the text, shared and conserved across models.

Attention compared across models. The attention mechanism is the core component of transformer-based models. On one hand, when treated as a free parameter, the attention matrix has been shown to be non-identifiable [16], and specific heads are generally not empirically identifiable across models (Xu, 2026; Paulo & Belrose, 2026), perhaps owing to their differing specializations [25, 10 b] (Voita et al. 2019; Michel et al. 2019). On the other hand, summary statistics of attention maps have been observed to be well-conserved across models, with Liang et al. (2025) first noting that they can be sufficient to differentiate documents visually. Other work exploits the emergent property of attention that it approximates the computational map for explanations [3] and model provenance assessment (Zhang et al., 2026). In contrast, we show that marginal attention approximates the input–output Jacobian and prove that models with similar next-token predictions have similar Jacobians, which provides insight into why the per-token marginal attention is near-identifiable across models.

KV cache eviction. Attention has a well-known quadratic cost in the input length, and at inference this cost is paid in memory as well. Serving a long context requires storing the key and value vectors of every past token for every head. An active line of work, eviction, bounds that memory by keeping only a subset of positions inside a fixed budget, while alternatives compress every position instead (Monteiro et al., 2026) or learn a compact cache for a document by distillation [45]. Most eviction methods rank positions by the attention they have received, keeping the sinks and a recent window (Xiao et al., 2024), the most attended positions [4, 19] (Zhang et al. 2023), or those the current query attends to [48, 46] (Zhang et al. 2025). A more recent line of works ranks a position by the attention it will receive, estimated from the queries seen so far [23], computed on a reconstruction pass [42], predicted by a trained surrogate [39, 43], or learned directly as a policy over future utility (Moschella et al., 2026). Head budgets follow from the observation that a few specialised heads perform long-context retrieval (Wu et al., 2025), so heads are labelled offline as retrieval or streaming (Xiao et al., 2025; Tang et al., 2025), reallocated within a layer [24] or over depth [17], or assigned a static table solved on a calibration context (Tang et al., 2026). A smaller model of the same family has also been used in place of the target, by transplanting its attention (Zhao et al., 2025a) or lending its scores (Zhao et al., 2025b; Li et al., 2026), only within a family; the cache itself has also been translated between models with trained maps [22, 18]. In this work, we build on the per-head marginal attention to obtain a static head budget for eviction, and on the identifiability of marginal attention to adjust the token scorer with a smaller model.

Marginal attention

Notation. Let X=(x1,…,xn)X = (x_1,\ldots,x_n) be a sequence of nn tokens, and ff an autoregressive language model with HH attention heads indexed by h∈[H]={1,…,H}h \in[H] = \{1,\ldots,H\}. Throughout, ss indexes input positions and tt indexes output positions. Let A(h)(X)∈[0,1]n×nA^{(h)}(X) \in[0,1]^{n \times n} denote the post-softmax attention matrix of head hh, where As,t(h)(X)A_{s,t}^{(h)}(X) is the weight output position tt assigns to input position ss. By causality, As,t(h)(X)=0A_{s,t}^{(h)}(X) = 0 for s>ts > t, and ∑s=1nAs,t(h)(X)=1\sum_{s=1}^{n} A_{s,t}^{(h)}(X) = 1 for all tt. We write Δn−1\Delta^{n-1} for the set of vectors with nn non-negative entries summing to one, i.e. the probability distributions over the nn positions.

The marginal attention of a head measures how much attention each input position receives from that head, averaged over the output positions.

Definition 1 (Marginal attention). Given weights ωs,t(h)(X)≥0\omega_{s,t}^{(h)}(X) \ge0, the marginal attention of head hh is the vector m(h)(X)∈R≥0n\mathbf{m}^{(h)}(X) \in\mathbb{R}_{\ge0}^{n} that averages weighted attention over output positions:

ms(h)(X):=1n∑t=1nωs,t(h)(X)As,t(h)(X).m_s^{(h)}(X) := \frac{1}{n}\sum_{t=1}^{n}\omega_{s,t}^{(h)}(X)A_{s,t}^{(h)}(X).

Throughout the paper we set ω\omega to rescale head hh’s attention to position ss by the norm of the value that position sends through the head, ωs,t(h)(X):=∥WO(h)vs(X)∥\omega_{s,t}^{(h)}(X) := \lVert W_O^{(h)}v_s(X)\rVert, with vs(X)v_s(X) the value vector at position ss and WO(h)W_O^{(h)}, head hh’s slice of the output projection. The weight does not depend on the output position tt, so ms(h)(X)m_s^{(h)}(X) is head hh’s average attention to position ss times the norm of what the head writes from that position. Both factors can be computed in a single forward pass. The unweighted variant, ωs,t(h)≡1\omega_{s,t}^{(h)} \equiv1, gives similar agreement and is reported in Appendix B as an ablation.

Stacked over the HH heads, the marginal attention of a document is a matrix with one row per head and one column per input position (Figure 1). We reduce it along each axis, with the same weights ω\omega in both reductions. Averaging over heads gives the per-token marginal attention, which measures how much attention each token receives from the model as a whole.

Definition 2 (Per-token marginal attention). The per-token marginal attention is the sum of the heads’ marginal attention, normalised to a distribution over positions:

a(X):=1Z(X)∑h=1Hm(h)(X)∈Δn−1,a(X) := \frac{1}{Z(X)} \sum_{h=1}^{H} \mathbf{m}^{(h)}(X) \in\Delta^{n-1},

where Z(X):=∑h=1H∑s=1nms(h)(X)Z(X) := \sum_{h=1}^{H} \sum_{s=1}^{n} m_s^{(h)}(X) is the total marginal attention of the document.

Summing over positions gives the per-head marginal attention, which measures each head’s share of the model’s total marginal attention.

Definition 3 (Per-head marginal attention). The per-head marginal attention over a set of documents D\mathcal{D} is each head’s average share of the model’s total marginal attention,

ph:=EX∼D[ph(X)],p_h := \mathbb{E}_{X \sim\mathcal{D}}[p_h(X)],

where ph(X):=Wh(X)/Z(X)p_h(X) := W_h(X)/Z(X) and Wh(X):=∑s=1nms(h)(X)W_h(X) := \sum_{s=1}^{n} m_s^{(h)}(X) is head hh’s total marginal attention on document XX. Thus p∈ΔH−1p \in\Delta^{H-1} is a single vector per model.

The per-token profile is indexed by the document’s positions, so we compare it across models; the per-head profile is indexed by the model’s heads, so we compare it across documents. We ask whether each reduction is a property of the text, shared across models, or a property of the model, stable across documents. In the following, we first define the two reductions (Definitions 2 and 3), show that the first is a property of the text and the second a property of the model (Section 3.1), then explain the first theoretically through the Jacobian (Section 4), and finally use the second as a key-value cache budget (Section 5).

The two reductions across models and across documents

We now empirically test whether the per-token marginal attention (Definition 2) is shared across models and the per-head marginal attention (Definition 3) is stable across documents.

Experimental setting. We compute both reductions on one set of models and documents, and compare each along two axes: across models on the same document, and across documents within the same model. We consider 67 open models from 38 families and 28 architectures, from 0.27B to 117B parameters, trained by different labs on different data with different tokenizers, including mixture-of-experts and multi-head-latent-attention models. We use 850 natural documents, 50 from each of 17 domains of the Pile ([26]); the per-head comparison uses 170 of them, a seeded subsample of 10 per domain. Tokenizers differ, so for the per-token profile we broadcast each token’s value to the characters it covers, and compare two profiles per document by Spearman correlation after removing the average over 50 relative-position bins. Heads of different models have no correspondence, so we average each per-head profile over documents and bin it into ten relative-depth bins before comparing two models; within one model we compare the profile averaged over one half of the documents with the profile averaged over the other half, on the same ten bins, and the profile of one document with the average over all the others, on the full vector over heads. As a reference for the per-token profile, we compare each model with the consensus on a different document. We also show the agreement between ten pythia-410m reruns that differ only in the pretraining seed. As a reference for the per-head profile, we permute each model’s heads. Details are in Appendices § 10 to § 12.

Result analysis. Figure 2 and Figure 3 (left) show the main comparison for each reduction. Across models, the agreement of each model’s per-token profile with the consensus of the other models is high (0.87), and its agreement with the consensus on a different document is near zero (0.02), so the agreement is specific to the document. Deleting punctuation and whitespace from the axis raises this agreement slightly, so it does not come from delimiters (Table 5), and neither the number of models in the consensus nor the head weights change it much (Appendix § 11). Across documents, the per-head profile one model computes on one half of the documents agrees closely with the profile it computes on the other half (0.99), and between models of different architectures agreement is much lower (0.37) on the same ten depth bins, so the profile is specific to the model. The right panels group model pairs by what they have in common; both profiles agree most between a model and a version trained from it and least between unrelated models (Appendices § 11.§ 1 and § 12).

Figure 2. Per-token marginal attention across models. Spearman correlation of two profiles on one document; 67 models, 850 documents. Left: models against the consensus of the others (top) and all 2211 pairs (bottom); dashed line the agreement between 10 pretraining seeds of pythia-410m. Right: pairs grouped by pair class, most related on the left.

Figure 3. Per-head marginal attention within and between models. Spearman correlation between per-head profiles; 67 models, 170 documents.

characters on the axisaxis (%)documentsvs the other 66two models
all characters100.08500.86730.7607
punctuation deleted90.88500.87050.7664
punctuation and whitespace deleted87.68500.87340.7711
punctuation only5.08480.86480.7601
whitespace only2.36450.73360.6169
a different document (control)100.08500.01550.0139
unweighted (ω≡1\omega\equiv1), all characters100.08500.86050.7491

Table 5. Deleting punctuation and whitespace from the character axis does not lower agreement. Each row deletes one class of characters from the axis, or keeps only that class, and compares the per-token marginal attention of 67 models on 850 natural documents: one model with the consensus of the other 66, and two models with each other. Whitespace only is the one low row; it keeps a character only where every model’s token is whitespace, which leaves 2.3% of the axis and no character at all in 205 of the 850 documents. The two rows under the rule are references: a different document, and the unweighted variant (ω≡1\omega\equiv1) on all characters. sizes below the shuffled-words condition are provisional; the ordering of real text above shuffled words is not affected.

💡 Takeaway. These results show that the per-token marginal attention is a model-agnostic property of the text, and the per-head marginal attention is a document-agnostic property of the model.

Identifiability in the marginal attention

In this section, we explain the stability of per-token marginal attention across models. We start with an empirical observation: across models, the per-token marginal attention is reliably correlated with an analogous statistic of the input-output Jacobian. In the second step, we show that this Jacobian statistic is a well-conserved quantity across models under mild assumptions (Theorem 1). We then validate this argument end-to-end by showing empirically that the agreement of two models’ next-token logits predicts how well they agree on both the Jacobian statistic and the marginal attention. First, we define our Jacobian statistic and discuss a few of its basic properties. From here on, the elements of an input sequence XX are its token embeddings x1,…,xn∈Rdx_1,\ldots,x_n \in\mathbb{R}^d, and XX is drawn from a distribution P(X)\mathrm{P}(X) over sequences of any length nn. A language model ff maps XX to one output logit vector per position, and its input-output Jacobian JJ collects the derivatives of these logits with respect to the input embeddings; a second model f′f' has Jacobian J′J'. We write X(s)+ruX^{(s)+ru} for XX with the embedding at position ss moved by ru\mathbf{r}\mathbf{u}, for a unit vector u\mathbf{u} and 0≤r<R0 \le r < R, where R>0R > 0 is the radius over which the assumptions of § 4.2 hold.

Definition 4. For an input sequence XX of length nn and a causal language model ff with input-output Jacobian JJ, we denote the per-token marginal influence j(X)\mathbf{j}(X) at position ss as

js(X):=∑t≥s∥[J(s)(X)]t∥F∑s′,t∥[J(s′)(X)]t∥Fj_s(X) := \frac{\sum_{t \ge s} \left\lVert[J^{(s)}(X)]_t \right\rVert_F}{\sum_{s',t} \left\lVert[J^{(s')}(X)]_t \right\rVert_F}

where s,s′s,s' index input positions and tt indexes output positions, so [J(s)]t[J^{(s)}]_t is the block of the Jacobian which locally linearizes the effect of input position ss on the logits at output position tt.

By causal masking, we have that j(X)∈Δn−1\mathbf{j}(X) \in\Delta^{n-1}, the (n−1)(n-1)-simplex, so j(X)\mathbf{j}(X) can be seen as a distribution over input positions. Now that it is placed in the same space Δn−1\Delta^{n-1} as the per-token marginal attention a(X)\mathbf{a}(X) (Definition 2), we can establish the correlation between the two quantities.

Marginal attention approximates the Jacobian

Empirical evidence. We compare the per-token marginal attention a(X)\mathbf{a}(X) of Qwen2.5-0.5B, with the weights ω\omega of Section 3, to its per-token marginal influence j(X)\mathbf{j}(X) on the same document, across 85 natural documents. To approximate the Jacobian we apply Hutchinson’s estimator to a random subset of blocks (Appendix § 14.§ 1). The two quantities are compared as in § 3.1: both are projected onto the characters, converted to ranks, residualised against 50 relative-position bins, and compared by Spearman correlation, one document at a time. Figure 4 (left) shows that the per-token marginal attention and the per-token marginal influence agree across all domains (average Spearman ρ\rho of 0.635). Agreement is lowest in the EuroParl domain, which contains substantial non-English text. As a sanity check, agreement of the two for a pair of distinct documents is nearly zero (0.022). As shown in Appendix § 14.§ 1, the choice of weights does influence the level of agreement: the simplest setting of uniform weights ω≡1\omega\equiv1 reduces the agreement to 0.534.

Figure 4. What the per-token marginal attention tracks. Spearman correlation per document. Left: with the per-token marginal influence of Qwen2.5-0.5B over 85 documents. Right: word properties regressing the unweighted (ω≡1\omega\equiv1) consensus profile over 550 documents.

Across models, where Hutchinson’s estimate is costly, we approximate the per-token marginal influence by a scalar projection of each Jacobian block, the gradient of the log-probability of the observed next token (Appendix § 14.§ 1). Over 16 models from 6 families, each model’s influence map agrees with the consensus of the other models at 0.772, and the unweighted per-token marginal attention at 0.861 (Table 8). The link does not need attention at all: the per-token marginal influence of Mamba ([33]) and RWKV-4 ((Peng et al., 2023)) models, which have no attention mechanism, agrees with the per-token marginal attention of the census similarly to a transformer model (Appendix § 14.§ 4).

mapvs all other models: agreementvs all other models: different documentvs other families: agreementvs other families: different documenttwo models
unweighted profile0.86120.03340.80760.03210.7652
influence, gradient length0.77220.03360.67680.03160.6295
influence, substitution0.77590.03280.68280.03080.6349
influence, gradient × input0.65680.03440.57970.03180.4771

Table 8. Marginal influence is shared across models, marginal attention more so. 16 models from 6 families, 100 documents. Spearman correlation per document of one model’s map with the consensus of the other models, with its own family left out of the consensus, and between two models, each beside a different-document reference. Rows: the unweighted per-token marginal attention and three row-gradient estimates of the per-token marginal influence (Appendix § 14.§ 1): gradient length, substitution sensitivity, gradient times input.

Derivation. We now motivate this approximation heuristically. For a single causal attention layer with the attention weights held fixed, head hh adds ∑s≤tAs,t(h)WOV(h)xs\sum_{s \le t} A_{s,t}^{(h)} W_{OV}^{(h)} \mathbf{x}_s to the residual stream at position tt, with WOV(h):=WO(h)WV(h)W_{OV}^{(h)} := W_O^{(h)} W_V^{(h)}, so its part of the Jacobian block is [Jh(s)]t=As,t(h)WOV(h)[J_h^{(s)}]_t = A_{s,t}^{(h)} W_{OV}^{(h)}, and the block [J(s)]t[J^{(s)}]_t is the sum of these parts over heads, up to the identity at s=ts=t. Applied to xsx_s, the head’s part has norm As,t(h)∥WO(h)vs∥=ωs,t(h)As,t(h)A^{(h)}_{s,t}\lVert W^{(h)}_O v_s\rVert=\omega^{(h)}_{s,t}A^{(h)}_{s,t}, exactly the summand of Definition 1. Summing over output positions and heads, up to normalisation,

as∝∑t≥s∑h∥[Jh(s)]txs∥,js∝∑t≥s∥∑h[Jh(s)]t∥Fa_s \propto\sum_{t\geq s}\sum_h \left\lVert[J^{(s)}_h]_t x_s\right\rVert,\qquad j_s \propto\sum_{t\geq s}\left\lVert\sum_h [J^{(s)}_h]_t\right\rVert_F

The two differ only in that aa sums the heads’ norms along xsx_s where jj takes the Frobenius norm of their sum, so they agree when the heads’ contributions do not systematically cancel and xsx_s is a generic direction of roughly constant norm. We check the first condition directly in Appendix § 13.§ 1. Along the training of Pythia-410M, the norm of the head-summed block stays within 5% of its value for orthogonal heads, and on four finished models it is at most 17% below it (Figure 9 and Figure 10). With ω≡1\omega\equiv1, the first-order term drops each head’s gain ∥WOV(h)xs∥\lVert W^{(h)}_{OV}x_s\rVert, which may explain lower agreement. Appendix § 13.§ 1 gives the full argument, and Appendix § 13.§ 2 extends it to several layers.

Figure 9. Per-head Jacobian blocks are near-orthogonal. Pythia-410M over training: the norm of the head-summed value-channel block divided by the sum of the per-head norms, relative to the same ratio for perfectly orthogonal heads (dotted, 1).

Figure 10. Per-head Jacobian blocks are typically orthogonal across depth. The same cancellation coefficient of Figure 9 (the norm of the head-summed value-channel block divided by the sum of the per-head norms, relative to the same ratio for idealized orthogonal heads) per relative-depth bin (0 at the input, 1 at the output), one line per model; dotted: idealized orthogonal heads.

Takeaway. The per-token marginal attention a(X)a(X) is an empirically validated approximation to the per-token marginal influence j(X)j(X): it is the first-order, per-head part of the Jacobian.

Jacobian identifiability

Having established that per-token marginal attention a(X)a(X) is empirically related to the per-token marginal influence j(X)j(X), we now develop a model-agnostic identifiability theory for j(X)j(X).

Our theory relies on three assumptions, stated formally in Appendix G.§ 1 with empirical diagnostics reported in Appendix § 14: i) Jacobian smoothness (Assumption 1) bounds the curvature of the model by a constant MM; we probe local sensitivity with Jacobian-vector products; ii) Preceding-token dependence (Assumption 2) states that each prediction depends non-trivially on the token immediately before it; iii) lag decay (Assumption 3) states that the dependence of output positions on increasingly “further back” input positions decays toward zero. Our claim is one of statistical near-identifiability ((Nelson et al., 2026)), with the constants in the hypotheses giving quantitative control over the level of identifiability.

Theorem 1 (Near-Identifiability of the Per-Token Marginal Influence, informal). Let f,f′f, f' be two language models satisfying Assumptions 1 to 3. If their next-token logits agree under small perturbations of any single input position,

∥ft(X(s)+ru)−ft′(X(s)+ru)∥≤δfor all s≤t, 0≤r<R, ∥u∥=1,\left\lVert f_t\left(X^{(s)}+r u\right)-f'_t\left(X^{(s)}+r u\right)\right\rVert\leq\delta\qquad\text{for all }s\leq t,\ 0\leq r<R,\ \lVert u\rVert=1,

then their per-token marginal influences agree,

∥j(X)−j′(X)∥1≤ϵ,\left\lVert j(X)-j'(X)\right\rVert_1\leq\epsilon,

where ϵ\epsilon depends on neither nn nor dd, and ϵ→0\epsilon\to0 as M,δ→0M,\delta\to0.

Training produces a small logit gap δ\delta: two models fit to the same next-token objective approach the text’s conditional distribution as their loss falls. Over a training run, cross-family agreement rises as the loss falls and is near zero until it beats a bigram baseline (Figure 11 and Appendix § 14.§ 3).

Figure 11. Agreement with other models rises as the loss falls. Pythia-410M over training: agreement of its per-token marginal attention with four trained models (left axis) and loss in bits per character (right axis); dash-dotted line: a bigram model’s loss. Setting in Appendix § 14.§ 3.

Experimental evidence. We take the 16 models of § 4.1 and form 26 tokenizer-sharing pairs: 15 pythia pairs, 10 qwen2.5 pairs and one SmolLM2 pair, evaluated on 100 documents. The logit gap δ\delta of a pair is the norm of the difference of the two models’ centred next-token logits, averaged over positions and documents. Agreement (§ 3.1) is computed on each tokenizer group’s character axis and applied both to the per-token marginal influence, in the row-gradient approximation of § 4.1, and to the unweighted (ω≡1\omega\equiv1) per-token marginal attention. Within a tokenizer group, as the logit gap grows, per-token marginal influence agreement falls, which is consistent with Theorem 1. Validating our empirical argument, per-token marginal attention agreement falls as well.

Takeaway. Sufficiently smooth models with similar next-token logits for a given input have their per-token marginal influences guaranteed to be close, under mild assumptions on the dependence patterns in the Jacobian (Theorem 1). Empirically, a smaller logit gap δ\delta implies higher agreement on both per-token marginal influence and per-token marginal attention (Figure 5).

Figure 5. Within a tokenizer group, pairs with a smaller logit gap δ\delta agree more on per-token marginal influence (left) and per-token marginal attention (right, ω≡1\omega\equiv1). Colour: pair class; marker: tokenizer; lines: least-squares fits; bars: 95% intervals. Estimator in Appendix § 14.§ 1.

Application: KV cache eviction

KV cache eviction bounds the memory of a long context by keeping only part of the stored keys and values (§ 2). Eviction decides how many entries each head keeps and which ones, so we write the retention score of an entry as a per-head budget times a per-entry score:

Sh,s(X)=βh⋅γh,s(X),(1)S_{h,s}(X) = \beta_h \cdot\gamma_{h,s}(X), \tag*{(1)}

where βh≥0\beta_h \ge0 is the budget of head hh, the fraction of its entries it keeps, and γh,s(X)≥0\gamma_{h,s}(X) \ge0 is the score of entry (h,s)(h,s) in document XX. Head hh keeps its βhn\beta_h n highest-scoring entries. Budgets are set per key-value head, and in this section HH is the number of key-value heads. We ask whether a static per-model budget can replace document-specific ones, and answer with a budget read from the per-head marginal attention (§ 5.1). To obtain an eviction policy, we pair it with Expected Attention as the score (§ 5.2).

Head budget from the per-head marginal attention

Head Mass (HM) is the per-head marginal attention of Definition 3 with three choices taken from KVzip, a state-of-the-art eviction method that is expensive at run time, since it pays a second target forward per document. First, Head Mass is read on the reconstruction queries, the positions tt of a second pass in which the model repeats the context, since eviction must keep what later queries attend to. Second, the per-entry score of KVzip+ (Jegou & Jeblick, [39]) replaces the mean over queries of Definition 1: an entry scores the largest value-weighted attention it receives from those queries, normalised by the norm of the attention input, since an entry that any one later query needs must be kept (exact form in Equation (3), Appendix § 15.§ 1). Third, Head Mass mimics KVzip’s global cut, which keeps the fraction BB of all entries, so head hh counts the fraction mh(X)m_h(X) of its own entries the cut keeps.

The head share hh is ph(X)=mh(X)/∑jmj(X)p_h(X) = m_h(X) / \sum_j m_j(X). We average it over a set Dpre\mathcal{D}_{\mathrm{pre}} of 200 pretraining documents disjoint from benchmarks (Appendix § 15.§ 1), and the budget spends BB with this proportion:

βh=HB ph,ph=EX∼Dpre[ph(X)],(2)\beta_h = HB\,p_h,\qquad p_h = \mathbb{E}_{X \sim\mathcal{D}_{\mathrm{pre}}}\left[p_h(X)\right], \tag*{(2)}

clipped to a floor of 0.01 and a cap of 1. The budgets are then rescaled so that the heads spend exactly BB on average. The per-head profile is a property of the model (§ 3.1) and stays so on the reconstruction queries (Table 9), so the budget is computed once per model.

targetkey-value heads1 vs 1995 vs 19520 vs 180100 vs 100top decileprefill queries
Qwen3-8B2880.9828 (0.9704)0.99520.99850.99951.00000.9624
Llama-3.1-8B2560.9830 (0.9744)0.99510.99850.99940.92590.9394
phi-44000.9836 (0.9706)0.99540.99860.99920.95120.9681
Qwen3-32B5120.9815 (0.9512)0.99520.99860.99931.00000.9656
Mistral-7B2560.9829 (0.9729)0.99540.99840.99941.00000.9666

Table 9. Head Mass tables from disjoint sets of pretraining documents agree at a median Spearman of 0.98 or higher. Spearman correlation over each target’s key-value heads between the per-head marginal attention (Equation (2)) of two disjoint sets of the 200 pretraining documents, read on KVzip’s reconstruction queries at 8×. 11 vs 199199 is the median (5th percentile) over documents, 55 vs 195195 and 2020 vs 180180 the median of 100 draws, and 100100 vs 100100 the even documents compared with the odd ones. The top decile column is the Jaccard overlap of the top tenth of heads between even and odd documents, and the prefill queries column is the 11 vs 199199 median on the document’s own queries.

Results

Experimental setting. We evaluate Equation (1) on Qwen3-8B, Qwen3-32B, Llama-3.1-8B-Instruct, phi-4 and Mistral-7B-Instruct-v0.3 ([31, 2, 40] (Yang et al. 2025)). Each method pairs a budget with a score. AdaKV + EA (Feng et al., [24]) splits the budget inside each layer per document and scores with Expected Attention (EA) (Devoto et al., [23]), a training-free scorer. KVzip (Kim et al., [42]) takes both the budget and the score from a second target forward per document. AdaKV + KVzap (Jegou & Jeblick, [39]) keeps the AdaKV budget and scores with a KVzip surrogate trained per target. LU-KV + EA (Tang et al., 2026) takes its budget from an offline per-head table calibrated per target and scorer, and scores with EA. HM + EA takes our Head Mass budget and scores with EA. HM + Guide keeps the Head Mass budget and tilts EA, head by head, by a linear map fitted once per target (Appendix § 15.§ 4). The map predicts the KVzip+ score from the marginal attention of Qwen2.5-0.5B-Instruct, a model about fifteen times smaller than the smallest target. It probes whether a smaller model’s attention carries the eviction signal and is not meant as a practical method. We report RULER (Hsieh et al., [35]) (13 tasks, 6500 documents) at context 4096 and compression 4×4 \times, 8×8 \times and 16×16 \times, the factor by which the cache shrinks. Scores at context 8192 (8×8 \times and 16×16 \times) and on LongBench (Bai et al., [8]) are in Table 14 and Table 15, per-task scores in Appendix § 15.§ 5, and costs in Table 11.

offline, per targetonline, per documentoffline time, Mistral-7B
AdaKV + EAnonenonenone
AdaKV + KVzap△△surrogate training on KVzip’s scoresurrogate call, not counted4 h 14 m, one H100
KVzip••noneone extra target forwardnone
LU-KV + EA△per-head budget curve calibrationnonepublished curve
HM + EA△per-head budget table, 200 pretraining documentsnone34 min
HM + Guide△•the same table and a guide mapone Qwen2.5-0.5B-Instruct forward36 min

Table 11. HM + EA needs one offline budget table per target and no work per document. Work each method needs beyond ordinary serving. △ marks work done once per target and • work per document; two marks denote training a surrogate or an extra target forward. HM is Head Mass and EA is Expected Attention. The last column is the wall time of the offline step on Mistral-7B-Instruct-v0.3 (cluster job walltime).

costQwen3-8BLlama-3.1-8Bphi-4Qwen3-32BMistral-7B
offlineonline8×16×8×16×8×16×8×16×8×16×
AdaKV + EA71.750.941.215.841.713.664.138.433.520.5
AdaKV + KVzap△△86.646.586.760.570.843.988.550.367.040.2
KVzip••89.855.690.173.688.064.295.092.182.566.3
LU-KV + EA△72.955.787.762.486.568.873.338.678.858.3
HM + EA△89.069.188.062.884.968.492.077.980.561.1
HM + Guide△•89.167.989.968.387.772.993.178.780.260.1
Uncompressed93.994.692.195.689.8

Table 14. At context 8192, HM + EA scores above AdaKV + EA in all 10 columns. Mean string-match score over the 13 RULER tasks at context 8192, 6500 documents and one run per cell, for five targets at 8× and 16× compression. Paired 95% bootstrap half-widths of the differences from HM + Guide are 0.33 to 1.09 points. Methods, shading, cost symbols and italics as in Table 1; the uncompressed row is not ranked.

costQwen3-8BLlama-3.1-8BQwen3-32BMistral-7B
offlineonline8×16×8×16×8×16×8×16×
AdaKV + EA42.133.136.428.446.039.231.027.6
AdaKV + KVzap△△34.023.942.034.436.819.028.520.0
KVzip••44.728.044.533.850.745.243.838.2
LU-KV + EA△46.341.145.843.048.043.442.638.8
HM + EA△46.239.945.640.549.944.842.339.5
HM + Guide△•46.338.044.937.149.844.342.336.4
Uncompressed47.345.950.942.9

Table 15. On LongBench, LU-KV + EA and HM + EA differ by at most 2.5 points over eight columns. Unweighted mean over the 16 English LongBench subsets at their full official split (3750 documents), each scored by its official metric, one run per cell, for four targets at 8× and 16× compression; phi-4 was not run. No interval is given, since the mean mixes metrics. Methods, shading, cost symbols and italics as in Table 1; the uncompressed row is not ranked.

Result analysis. Budget. Table 1 shows that the HM budget accounts for most of the gap from standard EA to KVzip. In fact, with the same scorer, HM + EA considerably improves on its baseline on every target and setting, closing most of the gap to KVzip without the double-forward on the target. HM + EA is also ahead of AdaKV + KVzap in all but one cell, and its budget is built offline in minutes and read at inference as a fixed table, with no representation access, where a KVzap surrogate trains for hours (Table 11) and needs light online computation. Even though it has extra scorer calibration, LU-KV + EA is level with HM + EA on phi-4 and Llama-3.1-8B, close on Mistral-7B, and far behind on both Qwen3 targets. Averaging over pretraining text loses little: the HM budget agrees closely, head for head, with the keep rates KVzip+ realises on held-out documents (Appendix § 15.§ 2). The query set is crucial: set by the reading queries (i.e., all positions), a proportional budget (Equation (4)) consistently loses to the baseline AdaKV + EA with no fixed budget (Table 13), showing a profile can be stable across documents and still be the wrong quantity for eviction. The cut matters less (Appendix § 15.§ 3). Score. Tilting EA by the guide’s map raises HM + EA in all but two columns, so a smaller model’s attention can carry part of the eviction signal.

costQwen3-8BLlama-3.1-8Bphi-4Qwen3-32BMistral-7B
offlineonline4×8×16×4×8×16×4×8×16×4×8×16×4×8×16×
AdaKV + EA88.472.846.575.745.315.268.744.013.881.963.636.467.234.019.9
AdaKV + KVzap△△94.089.249.994.589.363.187.877.051.695.490.050.388.370.242.1
KVzip••95.092.359.495.392.874.291.589.668.895.695.691.891.289.272.2
LU-KV + EA△90.675.258.495.191.867.092.487.969.590.272.638.291.285.161.7
HM + EA△95.091.873.395.192.366.391.587.868.595.293.279.190.584.365.3
HM + Guide△•95.191.671.395.393.572.392.391.273.995.494.179.291.386.771.6
Uncompressed95.495.791.095.792.2

Table 1. Eviction scores. RULER 4096 score over its 13 tasks and documents at 4×4 \times, 8×8 \times and 16×16 \times compression. Cost: △ offline work per target, • online work per document (Table 11). Shade: rank within a column, darker is better; Bold: best method; the uncompressed row is not ranked. Italics: our run, where no budget curve or surrogate is published for the target.

4×8×16×
AdaKV + EA88.472.846.5
HM + EA95.091.873.3
HM + KVzap94.992.073.0
Proportional (reconstruction) + EA94.891.973.1
Proportional (reading) + EA61.153.037.7
paired difference, with its 95% interval
Proportional (reconstruction) − HM + EA−0.21 [−0.40, −0.04]0.15 [−0.22, 0.50]−0.25 [−1.01, 0.47]
Proportional (reading) − HM + EA−33.94 [−34.52, −33.31]−38.72 [−39.43, −38.00]−35.59 [−36.47, −34.68]
Proportional (reading) − AdaKV + EA−27.37 [−28.07, −26.62]−19.78 [−20.58, −19.06]−8.73 [−9.64, −7.82]

Table 13. On Qwen3-8B, the proportional per-head budget (Equation (4)) read on the reconstruction queries is within 0.25 points of HM + EA; read on the document’s own queries it scores below AdaKV + EA at every compression ratio. Over heads, the Spearman correlation between the reading-pass budget and Head Mass is −0.11, −0.15 and −0.10 at 4×, 8× and 16×. The upper rows are RULER-4096 scores (mean over 13 tasks, 6500 documents); the lower rows are paired differences with 95% bootstrap intervals.

Takeaway

Figure ?. Takeaway. Which heads matter for eviction is a property of the model: a per-head marginal attention profile computed once recovers most of the gain of per-document signals, and a score tilted by a smaller model can further improve it.

Conclusions

We studied attention in language models through its marginals and found that one structure per document carries two different signals. Reduced over heads, the per-token marginal attention is a property of the text: models that differ in lab, data, size, tokenizer and architecture agree on which input tokens are attended. Reduced over tokens, the per-head marginal attention is a property of the model: it is stable across documents and private to each model. We showed that the per-token profile is shared because it tracks a Jacobian statistic that similar predictors must share: smooth models with close next-token distributions have close input-output Jacobians, with marginal attention approximating its blockwise norms. The only data assumption is that its discrete conditional distributions admit a smooth approximation good enough for independently trained models to agree on the next token. To our knowledge this is the first formal result of the kind discussed by the Platonic Representation Hypothesis (Huh et al., [37]), but it does not imply semantic convergence (Nelson et al., 2026): the shared profile separates documents without aligning strongly with classical syntactic structure. The per-head profile is stable enough to be computed once per model, offline, on pretraining text used as a budget for KV cache eviction. At inference only a per-token score remains, and since that score is shared across models it can be supplied by a much smaller one. The resulting method is competitive with those that recompute the budget on every document or train it per target.

Limitations. We give empirical evidence that the per-token marginal attention is shared across models and that the per-head marginal attention is stable across documents, but our theory covers only the per-token marginal influence. The link from the marginal influence to the marginal attention is empirical, and a study of the assumptions under which it holds would be of significant interest. The census covers mostly English text and reads at most 2048 tokens per document, the context limit of several of its older models: a claim that the profile belongs to the text and not to the model needs models that differ as much as possible, so we kept them at the cost of document length. HM + Guide needs one extra forward pass of a small model for every document, which standard serving stacks do not support, so we use it as a probe of whether a smaller model’s marginal attention carries the eviction signal, not as a practical method.

Acknowledgments

This research was supported by the ISTA Responsible AI Program, made possible through the generous support of Garrett Camp and the Camp Foundation. WN was supported by the Chan Zuckerberg Initiative (CZI) through the AI Residency Program. We thank CZI for the opportunity to participate in this program.

AI Use Statement

We used AI tools (Claude and Claude Code, running Claude Fable 5.1 and Claude Opus 5), during this work. The authors set the questions, the claims and the experiments, reviewed every contribution of the tools before it was kept, and take responsibility for the final content.

Experiments. The authors wrote the core library by hand (with autocompletion). AI tools were used to write scripts and manage experiments. Results and code were reviewed by an author.

Writing and presentation. AI tools were used to integrate raw results, perform bulk edits and layout changes, and edit the paper. Figure 1 was drawn by an AI tool from a sketch by the authors.

Theory. The definitions, hypotheses, theorems and proofs were proposed by the authors. AI tools were used to find gaps in the argument and improve the exposition. Every definition, statement and proof was checked by the authors.

Model citations. Given the large number of models used in this work, AI tools were used to scrape the citations for each model from the corresponding HuggingFace repository. These citations were checked by an author.

Reproducibility Statement

The code is available at https://github.com/Flegyas/marginal-attention. One library implements the estimator (the marginal attention hooks, the projection onto the character axis, ranking, positional resualization and the decomposition of Section 3); each experiment using the library is self-contained. Figures and tables are end-to-end reproducible in notebooks included in the repository.

All 67 census models are public checkpoints, listed with their sources in Appendix § 10.§ 2. The code release includes a script to build the corpus used in the experiments. The KV eviction experiments use the kvpress library (Devoto et al., [23]) and its RULER and LongBench harnesses unchanged, with our budget and scorer added as one more press. Appendix § 11 reports the controls, the seed ceiling and the sensitivity of the headline to our design choices; Appendix § 14 reports empirical diagnostics of the assumptions of Section 4, and Appendix G gives complete theorem statements and proofs with their assumptions stated formally.

Census details

Data

The census corpus, mix1000, draws 50 documents from each of 20 domains. Most domains are subsets of the Pile [26], taken from its release without the copyrighted subsets (monology/pile-uncopyrighted). The other three are generated text with little linguistic structure: one short sentence repeated, a random string over the four DNA letters, and rows of random ASCII-art symbols. The main text uses only the natural documents.

Pile documents shorter than 2500 characters are skipped, and the documents of each domain are drawn by seeded reservoir sampling over one pass of the stream. Each document contributes one window of 12,000 characters, taken from a random position inside it. Extraction stops at 2048 tokens per model, and each document is scored only on the characters that every model covers. Figure 7 shows the length of every document by domain.

Figure 7. Document length varies about threefold across domains, from PhilPapers and Gutenberg (PG-19) down to NIH ExPorter and PubMed Abstracts. Dots are documents, ticks medians, bars interquartile ranges. Setting in Appendix § 10.§ 1.

A second corpus, mix10k, follows the same recipe with ten times as many documents per domain. It samples Pile rows that the first corpus never reads, and its generated domains use a different seed, so the two corpora are practically disjoint. Ubuntu IRC is capped lower than the other domains, because the Pile holds too few of its documents above the length floor.

Table 2 applies the estimator of § 3.1 to each corpus, on all of its documents, on the natural ones and on the generated ones. Agreement is lower on generated text; on the larger corpus, scored with a twelve-model subset of the roster, it stays high, so the headline does not depend on one draw of documents. Figure 6 shows the agreement of each natural document by domain, and how it relates to document length within each domain. Figure 8 shows the per-domain agreement on the three generated domains.

document setmodelsdocumentsconsensus of the other modelsbetween two models
mix1000, all domains6710000.8443 ± 0.00420.7253 ± 0.0065
mix1000, natural domains678500.8673 ± 0.00320.7607 ± 0.0051
mix1000, generated domains671500.6114 ± 0.01360.4093 ± 0.0162
mix10k, all domains1297920.7977 ± 0.00210.6787 ± 0.0028
mix10k, natural domains1282920.8357 ± 0.00120.7277 ± 0.0018
mix10k, generated domains1215000.4990 ± 0.00640.3362 ± 0.0060

Table 2. Per-token agreement on every document set. Each row applies the same estimator to the value-weighted per-token marginal attention on one set of documents: mix1000 (20 kinds of text), its natural and generated subsets, and mix10k. ± is half the 95% bootstrap interval over documents.

Figure 6. Agreement is high in every natural domain; its link to length varies. Left: per-document per-token agreement, tick the median, dashed line the mean. Right: Spearman correlation of length with agreement, 95% intervals. Setting in Appendix § 10.§ 1.

Figure 8. Models agree less on generated text than on natural text. Per-document per-token agreement of each model with the consensus of the others, averaged over models; tick the median, open markers generated domains. Rows scored as in Table 2.

Models

Table 4 lists every model of the census, with its family, architecture and size, and Table 3 gives the census summary.

vs the other 66two models
whole censusagreement0.867±0.0030.867 \pm0.0030.761±0.0050.761 \pm0.005
whole censusdifferent document (control)0.0150.0150.0140.014
whole census10 pythia-410m seeds (ceiling)0.9420.9420.9000.900
pair classpairsmeanmedian5th to 95th
pair classbase vs its instruct120.9680.9680.9760.976[0.924,0.993][0.924, 0.993]
pair classvision vs its text model30.9410.9410.9440.944[0.928,0.951][0.928, 0.951]
pair classsame family, different size220.8890.8890.9040.904[0.807,0.945][0.807, 0.945]
pair classdifferent pretraining seed2250.8210.8210.8490.849[0.628,0.933][0.628, 0.933]
pair classsame architecture, different lab280.7880.7880.7840.784[0.693,0.896][0.693, 0.896]
pair classdifferent lab and data850.7550.7550.7770.777[0.547,0.868][0.547, 0.868]

Table 3. Per-token census summary. 67 models, 850 natural documents. Upper: agreement with the other 66 models and between two models, with the different-document control and the pythia-410m seed ceiling. Lower: agreement between two models by pair class. On the first row, ±\pm is half the 95% bootstrap interval over documents.

modelBref.modelBref.
01-ai/Yi-6B6.1(01.AI et al., 2024)meta-llama/Llama-3.1-8B8.0[31]
01-ai/Yi-6B-Chat6.1(01.AI et al., 2024)meta-llama/Llama-3.1-8B-Instruct8.0[31]
01-ai/Yi-9B8.8(01.AI et al., 2024)microsoft/phi-414.7[2]
allenai/OLMo-2-0425-1B1.5(Walsh et al., 2025)mistralai/Mistral-7B-Instruct-v0.17.2[40]
allenai/OLMo-2-0425-1B-Instruct1.5(Walsh et al., 2025)mistralai/Mistral-7B-Instruct-v0.27.2[40]
allenai/OLMoE-1B-7B6.9(Muennighoff et al., 2025)mistralai/Mistral-7B-Instruct-v0.37.2[40]
bigcode/starcoder2-3b3.0(Lozhkov et al., 2024)mistralai/Mistral-7B-v0.17.2[40]
bigscience/bloom-1b71.7[14]mistralai/Mixtral-8x7B-v0.146.7[41]
CohereLabs/aya-expanse-8b8.0[20]nvidia/Mistral-NeMo-Minitron-8B-Base8.4(Sreenivas et al., 2024; Muralidharan et al., 2024)
deepseek-ai/deepseek-coder-1.3b-base1.3[34]openai/gpt-oss-120b116.8(OpenAI, 2025)
deepseek-ai/DeepSeek-V2-Lite15.7[21]openai/gpt-oss-20b21.5(OpenAI, 2025)
EleutherAI/gpt-j-6b6.1(Wang & Komatsuzaki, 2021)openbmb/MiniCPM3-4B4.1[36]
EleutherAI/gpt-neo-1.3B1.4[15]OpenGVLab/InternVL3-8B-hf7.9(Zhu et al., 2025)
EleutherAI/pythia-1.4b1.5[13]Qwen/Qwen2.5-0.5B0.5(Qwen et al., 2025)
EleutherAI/pythia-2.8b2.9[13]Qwen/Qwen2.5-0.5B-Instruct0.5(Qwen et al., 2025)
EleutherAI/pythia-410m0.5[13]Qwen/Qwen2.5-1.5B1.5(Qwen et al., 2025)
EleutherAI/pythia-6.9b7.0[13]Qwen/Qwen2.5-1.5B-Instruct1.5(Qwen et al., 2025)
facebook/opt-1.3b1.3(Zhang et al., 2022)Qwen/Qwen2.5-32B32.8(Qwen et al., 2025)
facebook/opt-6.7b6.7(Zhang et al., 2022)Qwen/Qwen2.5-32B-Instruct32.8(Qwen et al., 2025)
google/gemma-2-2b2.6[30]Qwen/Qwen2.5-3B3.1(Qwen et al., 2025)
google/gemma-2-2b-it2.6[30]Qwen/Qwen2.5-7B7.6(Qwen et al., 2025)
google/gemma-2-9b9.2[30]Qwen/Qwen2.5-7B-Instruct7.6(Qwen et al., 2025)
google/gemma-2-9b-it9.2[30]Qwen/Qwen2.5-Coder-7B7.6[38]
google/gemma-3-1b-it1.0[28]Qwen/Qwen2.5-VL-7B-Instruct8.3[7]
google/gemma-3-270m0.3[28]Qwen/Qwen3-32B32.8(Yang et al., 2025)
HuggingFaceTB/SmolLM2-1.7B1.7[5]Qwen/Qwen3-8B8.2(Yang et al., 2025)
HuggingFaceTB/SmolLM2-1.7B-Instruct1.7[5]rhymes-ai/Aria25.3[48]
HuggingFaceTB/SmolLM2-360M0.4[5]stabilityai/stablelm-2-1.6b1.6[12]
HuggingFaceTB/SmolLM2-360M-Instruct0.4[5]THUDM/glm-4-9b-hf9.4(Team GLM et al., 2024)
HuggingFaceTB/SmolLM-Instruct2.2(Marafioti et al., 2025)tiiuae/falcon-7b7.2[6]
ibm-granite/granite-3.1-2b-base2.5[30]tiiuae/Falcon3-7B-Base7.5[30]
ibm-granite/granite-3.1-8b-base8.2[30]tiiuae/Falcon3-7B-Instruct7.5[30]
ibm-granite/granite-3.1-8b-instruct8.2[30]TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T1.1(Zhang et al., 2024)
llava-hf/llava-v1.6-mistral-7b-hf7.6(Liu et al., 2024a;b)Zyphra/Zamba2-1.2B1.2[29]
LLM360/Amber6.7(Liu et al., 2023)

Table 4. Every model used. Repository id, parameter count in billions (B) and the report the model card names (ref.); alphabetical by repository, down the left block and then down the right. 69 models: 67 form both the per-token census and the per-head analyses, and Qwen3-32B and Mistral-7B-Instruct-v0.3 are used only as eviction targets. Eviction targets: Qwen3-8B, Llama-3.1-8B-Instruct, phi-4, Qwen3-32B, Mistral-7B-Instruct-v0.3; guide: Qwen2.5-0.5B-Instruct. The Pythia pretraining-seed pool (10 seeds at each of 5 sizes) is not listed.

Per-token marginal attention: additional evidence

Agreement by pair class

The right part of Figure 2 groups model pairs by what they share and gives the mean agreement of the per-token profile in each class (850 natural documents, after removing position). A base model and its instruct version agree at 0.9684 (12 pairs), and a vision-language model and the checkpoint it was built from at 0.9406 (3 pairs). Two models of the same family and data at different sizes agree at 0.8894 (22 pairs), and two pythia models of the same size that differ only in the pretraining seed at 0.8213 (225 pairs), so post-training moves the per-token profile less than a change of seed; the seed pairs are scored on a longer axis (median 5676 characters, compared with 4784.5), so their level is not directly comparable. The ten pythia-410m reruns agree with the average of the other nine at 0.9421 (Appendix § 11.§ 5). The same architecture from different labs agrees at 0.7880 (28 pairs) and different labs, data and tokenizers at 0.7551 (85 pairs), a gap smaller than the spread within either class (standard deviation 0.060 and 0.088). Over all pairs of the census the mean agreement is 0.7607 [0.7556, 0.7658], below the 0.8673 of one model compared with the consensus of the others, since averaging over models removes model-specific deviations.

Agreement saturates at about twenty models

Agreement with a consensus of kk models rises quickly with kk and then saturates. On the 850 natural documents, after removing position, the per-token marginal attention of a model agrees with a consensus of kk other models at 0.7593 for k=1k = 1, 0.8432 for k=5k = 5, 0.8567 for k=10k = 10, 0.8630 for k=20k = 20, and 0.8673 with the whole roster. The size of the roster is therefore not what produces the headline.

A different document gives near-zero agreement

Scored against the consensus computed on a different document, the per-token marginal attention agrees at 0.0155 with the other models and at 0.0139 between two models (natural documents; 0.0128 and 0.0114 for the unweighted variant, ω≡1\omega\equiv1). The agreement of the main text is about the document at hand, not a generic shape shared by all attention profiles.

Robustness: punctuation, whitespace and head weighting

Table 5 removes classes of characters from the axis before ranking and scores the per-token marginal attention on the 850 natural documents again. Deleting punctuation raises agreement from 0.8673 to 0.8705, and deleting punctuation and whitespace raises it to 0.8734 with 87.6% of the axis left. Punctuation alone, 5.0% of the axis, gives 0.8648. Whitespace alone is the only low row, at 0.8736, and it covers 2.3% of the axis. The unweighted variant (ω=1\omega= 1) gives 0.8605 on the same documents. On the 1000-document census with the unweighted variant, deleting punctuation and whitespace also raises agreement (0.8459, compared with 0.8396 undeleted), but deleting punctuation alone lowers it slightly (0.8361) and keeping punctuation alone raises it (0.8524).

The seed ceiling

The seed ceiling is measured on 50 pythia pretraining-seed reruns, 10 at each of 5 sizes, never pooled across sizes. On the 850 natural documents, after removing position, each rerun agrees with the average of the other nine of its size at 0.7810 (14M), 0.8674 (31M), 0.9140 (70M), 0.9491 (160M) and 0.9421 (410M). The census headline of 0.8673 should be read against the two largest pools, not against 1.

Agreement on scrambled text

Within each tokenizer group, agreement orders the conditions as real text > shuffled words > shuffled characters > random tokens (1000-document census, unweighted variant): in the pythia group 0.8277 on real text, 0.7201 on shuffled words and 0.5974 on random token ids. The conditions are not length-matched, since the 2048-token cap spans fewer characters on scrambled text, so the gap

Per-head marginal attention: additional evidence

Agreement by pair class. The right part of Figure 3 groups model pairs by what they share, after averaging each per-head profile over the 170 documents and binning it into ten relative-depth bins. Pairs in the class base vs derived model (base and instruct, or a vision model and its backbone) agree at 0.9900 (17 pairs), same family (a different size or version) at 0.7829 (55 pairs), same architecture, different family at 0.8198 (108 pairs), and different architecture at 0.3728 (2031 pairs), compared with −0.0003 for permuted heads, where each model’s heads are permuted before binning (2211 pairs; Table 6). Same architecture agrees more than same family here, while for the per-token profile the order is reversed (Appendix § 11.§ 1); the two sets of classes are built from different pair lists, so only their order is compared. Within one model (leave-one-document-out), one document agrees with the average of the other 169 at 0.9529 on the full vector over heads, without depth binning.

comparisonnnwrite per headwrite per layeroutput norm
document split halves670.9920.9920.992 (66)
leave-one-document-out670.9530.9780.934 (66)
base vs derived model170.9900.9900.987
same family550.7830.7830.884
same architecture, different family1080.8200.8200.841
different architecture20310.3730.3730.436 (1965)
permuted heads22110.000−0.0050.001 (2145)

Table 6. Every head-wise statistic is stable inside one model and much lower between models of different architecture. Rows are the comparisons of Figure 3; entries are the mean Spearman correlation between per-head profiles over nn models or model pairs (in parentheses where the output norm has fewer), on 170 documents. Setting in Appendix C.

Two related statistics. The per-head write in Table 6 is approximate: the stored data hold one value norm per layer, so every head of a layer is given the layer’s mean value norm. Two further columns check this approximation from either side. The write per layer is exact but coarser, since it sums the heads of each layer; the output norm, the norm of each head’s output, is exact per head but measures a different quantity. All three columns show a profile that is stable inside a model and much lower between architectures. The output norm is missing for one model, so its model and pair counts, given in parentheses, are smaller.

Why marginal attention approximates the Jacobian

A single attention layer

We now motivate this approximation heuristically. For a single causal attention layer, ignore the dependence of the attention weights on the input. Head hh adds ∑s≤tAs,t(h)WO(h)VO(h)xs\sum_{s\leq t} A_{s,t}^{(h)}W_{\mathrm O}^{(h)}V_{\mathrm O}^{(h)}x_s to the residual stream at position tt, with WOV(h):=WO(h)WV(h)W_{\mathrm O V}^{(h)} := W_{\mathrm O}^{(h)}W_{\mathrm V}^{(h)}, so its part of the Jacobian block is [Jt(s)]t=As,t(h)WOV(h)[J_t^{(s)}]_t = A_{s,t}^{(h)}W_{\mathrm O V}^{(h)}, and the block is [Jt(s)]t=∑h[Jt(s)]t[J_t^{(s)}]_t = \sum_h[J_t^{(s)}]_t up to the identity at s=ts=t. Applied to the input it acts on, the head’s part has norm

∥[Jt(s)]txs∥=As,t(h)∥WO(h)vs(h)∥=ωs,t(h)As,t(h),\left\lVert[J_t^{(s)}]_t x_s \right\rVert= A_{s,t}^{(h)} \left\lVert W_{\mathrm O}^{(h)}v_s^{(h)} \right\rVert= \omega_{s,t}^{(h)}A_{s,t}^{(h)},

which is exactly the summand of Definition 1. Summing over output positions and heads and normalising, Definitions 2 and 4 become

as∝∑t≥s∑h∥[Jt(s)]txs∥,js∝∑t≥s∥∑h[Jt(s)]t∥F,a_s \propto\sum_{t\geq s}\sum_h \left\lVert[J_t^{(s)}]_t x_s \right\rVert,\qquad j_s \propto\sum_{t\geq s}\left\lVert\sum_h[J_t^{(s)}]_t\right\rVert_F,

with both normalisers summing the same expression over ss. Per-token marginal attention and per-token marginal influence differ in two places. First, aa sums the heads’ norms where jj takes the norm of their sum, so they agree when the heads’ contributions do not systematically cancel, for example when the heads write into linearly independent subspaces. Figure 9 and Figure 10 and Table 7 report this cancellation along the training of Pythia-410M and on four finished models. Second, aa measures each head’s part along the one direction xsx_s where jj takes its Frobenius norm over all directions; the two are proportional, with a factor that does not depend on ss, when xsx_s is a generic direction for WOV(h)W_{OV}^{(h)} and ∥xs∥\lVert x_s\rVert is roughly constant, as it is after the normalisation that precedes attention. With ω≡1\omega\equiv1, the first-order term instead drops each head’s gain ∥WOV(h)xs∥\lVert W_{OV}^{(h)}x_s\rVert and keeps only the attention. This perhaps explains the lower correlation between the two quantities.

modelblockκ\kappaorth.ratiocrossrankop.op. orth.
Qwen2.5-0.5Bvalue0.3870.4230.915−0.112-0.1120.9780.3430.298
value + key0.3950.4250.930−0.103-0.1030.9790.3570.315
value + key + query0.3760.4010.935−0.094-0.0940.977––
TinyLlama-1.1Bvalue0.2160.2580.834−0.386-0.3860.9600.1660.141
value + key0.2260.2650.852−0.373-0.3730.9590.2180.189
value + key + query0.2210.2580.858−0.360-0.3600.954––
OPT-1.3Bvalue0.2830.2950.959−0.189-0.1890.9750.2130.186
value + key0.4580.4590.9970.0010.9770.4870.414
value + key + query0.4480.4490.9970.0010.976––
Pythia-410M, step 0value0.2620.2621.0000.0000.9900.1380.106
value + key0.2620.2621.0000.0000.9900.1170.111
value + key + query0.2620.2621.0000.0000.990––
Pythia-410M, step 143000value0.3820.3920.974−0.061-0.0610.9790.3100.292
value + key0.4480.4540.986−0.033-0.0330.9800.4650.433
value + key + query0.4350.4410.986−0.030-0.0300.979––

Table 7. Cancellation coefficient per model and block version. We compute cancellation coefficients for the value channel alone, value channel plus the key channel, and with the query term on the diagonal: κ\kappa, head-summed block norm over the sum of per-head norms; its value for orthogonal heads; their ratio; the cross-term share (0 for orthogonal heads); the Spearman rank agreement over source positions between the sum-of-norms and norm-of-sum profiles; and the operator-norm ratio with its orthogonal-subspaces reference on 512 pairs per layer. Pythia-410M is shown at both initialization (step 0) and at the end of training.

Several layers

Appendix D.1 argues for a single attention layer. To understand why this might continue to hold across multiple layers, write the input-output Jacobian as

J=∏ℓ=1L(I+Jℓ)=I+∑ℓ=1LJℓ+(higher-order terms)J = \prod_{\ell=1}^{L}(I + J_\ell) = I + \sum_{\ell=1}^{L} J_\ell+ \text{(higher-order terms)}

where JℓJ_\ell denotes the nontrivial Jacobian contribution of layer ℓ\ell. This expansion can be interpreted as a sum over paths through token space: the first-order terms are direct paths from ss to tt consisting of a single attention edge, and thus inherit the structure of the attention matrices, while terms such as JkJℓJ_kJ_\ell correspond to two-hop paths s→u→ts \to u \to t, weighted by attention coefficients, with successively higher-order terms corresponding to progressively longer paths. Under the assumption that these multi-hop paths distribute attention somewhat evenly, this leads to

J=I+∑ℓ=1L∑hA(ℓ,h)⊗WOV(ℓ,h)+(multi-hop terms)J = I + \sum_{\ell=1}^{L} \sum_h A^{(\ell,h)} \otimes W_{OV}^{(\ell,h)} + \text{(multi-hop terms)}

with the first-order argument of § 4.1 applying to each layer’s heads, and the per-token marginal attention summing their terms over all layers.

Concretely, for the two-layer case s→u→ts \to u \to t, consider the distribution over (s,u)(s,u) induced by the first layer’s attention pattern, P(s,u)∝As,u(1)\mathbf{P}(s,u) \propto A_{s,u}^{(1)}. Then, “attention distributed evenly” means Eu[au(2)∣s]=1\mathbb{E}_u[a_u^{(2)} \mid s] = 1 a.s., where au(2):=∑tAu,t(2)a_u^{(2)} := \sum_t A_{u,t}^{(2)} is the total attention paid to uu in the second layer, nn times its marginal attention with ω≡1\omega\equiv1. The condition is impossible under causal masking. However, violations are plausibly monotonic in position due to causal masking, perhaps explaining why higher-order terms disagree little with one another.

Heuristically, the multi-hop gain is also small. In general, only ∥WOV(j)WOV(k)∥F≤∥WOV(j)∥F∥WOV(k)∥op\lVert W_{OV}^{(j)}W_{OV}^{(k)} \rVert_F \le\lVert W_{OV}^{(j)} \rVert_F \lVert W_{OV}^{(k)} \rVert_{\mathrm{op}} holds. Suppose instead that the column space of WOV(k)W_{OV}^{(k)} is randomly oriented relative to the row space of WOV(j)W_{OV}^{(j)}, that is, WOV(k)W_{OV}^{(k)} is replaced by QWOV(k)QW_{OV}^{(k)} with QQ a uniformly random rotation of Rdmodel\mathbb{R}^{d_{\mathrm{model}}}. Then EQ∥WOV(j)QWOV(k)∥F2=∥WOV(j)∥F2∥WOV(k)∥F2/dmodel\mathbb{E}_Q\lVert W_{OV}^{(j)}QW_{OV}^{(k)} \rVert_F^2 = \lVert W_{OV}^{(j)} \rVert_F^2 \lVert W_{OV}^{(k)} \rVert_F^2/d_{\mathrm{model}}, and since WOV(k)W_{OV}^{(k)} has rank at most dheadd_{\mathrm{head}}, this is at most (dhead/dmodel)∥WOV(j)∥F2∥WOV(k)∥op2(d_{\mathrm{head}}/d_{\mathrm{model}})\lVert W_{OV}^{(j)} \rVert_F^2\lVert W_{OV}^{(k)} \rVert_{\mathrm{op}}^2. Under this approximation, the two-hop gain is smaller than the general bound by a factor of about dhead/dmodel\sqrt{d_{\mathrm{head}}/d_{\mathrm{model}}}, which plausibly further reduces the weight of the multi-hop terms in the Jacobian norm. Trained heads that compose are not randomly oriented, so this is not a bound.

Theory: measurements

Table 8 compares, over 16 models, how well the per-token marginal influence and the per-token marginal attention of each model agree with the consensus of the other models.

Estimators of the marginal influence

Two estimators of the per-token marginal influence appear in § 4. The block norm is the object of Definition 4: the Frobenius norm of each block of the Jacobian of the output logits with respect to the input embeddings, summed over output positions. We compute it only for Qwen2.5-0.5B, with Hutchinson’s estimator on a sample of output positions in each document. Its agreement with the per-token marginal attention is moderate (0.64), and lower with uniform weights ω≡1\omega\equiv1 (0.53).

The row gradient replaces the block norm where it is too costly to compute for every model. The influence of input position ss on output position tt is the norm of the gradient of the log-probability of the observed next token with respect to the embedding at ss. For the observed token yy and the predicted distribution pt\mathbf{p}_t, this gradient is (ey−pt)⊤[J(s)]t(\mathbf{e}_y-\mathbf{p}_t)^\top[J^{(s)}]_t, a probability-weighted combination of the rows of the block [J(s)]t[J^{(s)}]_t, not one of its rows. Each output position’s profile is normalised to sum to one over input positions, and at each input position ss the profiles are averaged over the sampled output positions t≥st \ge s, so the number of profiles averaged depends on ss. It is a proxy for the block norm, not the quantity of Definition 4; Table 8 also reports two variants of it. Most of the 16 models belong to two families, pythia and Qwen2.5, so this comparison covers fewer families than the census.

Empirical diagnostics of the assumptions

We report empirical diagnostics of the three assumptions and the logit gap on the tokenizer-sharing pairs and the transformers of § 4.2, with the same documents. Smoothness and current-token dependence are measured on sampled Jacobian blocks; the lag profile, which is too costly as a block for every model, uses the row gradient. These measurements do not establish the uniform bounds required by the theorem, and we do not use them to evaluate its quantitative bound.

Logit gap. The logit gap δ\delta of a pair is the norm of the difference between the two models’ centred next-token logits. As it grows, the agreement of the two models’ per-token marginal influence falls, and it orders the 26 pairs tightly (Spearman −0.88-0.88). Pooled over tokenizer groups it does not order the agreement of the per-token marginal attention, which falls with the gap only inside each group.

Smoothness. We measure local sensitivity at each model’s own input embeddings. We move one embedding by a small step in a random direction and divide the relative change of the sampled Jacobian block by the relative size of the step. This ratio is of order one for every model and changes little with the step for most of them, consistent with approximately linear changes over the sampled directions and step sizes. It is lower for larger models (Spearman −0.62-0.62 with parameter count), indicating lower relative local sensitivity on this diagnostic. This dimensionless ratio is distinct from the uniform, absolute smoothness constant MM in Assumption 1.

Current-token dependence. The constant cc of Assumption 2 bounds from below the Jacobian block that links each prediction to the last token it reads, the token at its own position. The block is above zero at every sampled position of every model, and it holds a sizeable share of the block norm of its row (median 0.22 to 0.48 across models). The same holds for the row gradient of the models without attention (Appendix § 14.§ 4). The constant is in logit units and differs across models by orders of magnitude, but the theorem only needs each model’s own cc to be above zero.

Lag decay. Assumption 3 asks that the dependence of a prediction on earlier tokens fall toward zero with their distance. This dependence decays as a power law of the distance, with an exponent of about one half to two thirds, and the models without attention decay in the same way. Larger models decay more slowly. The decay is slow: between a fifth and a third of the dependence lies more than 512 tokens back.

Emergence during training

Experimental setting. We follow one model through training to ask whether its agreement with other models grows as its language-modelling loss falls. The subject is Pythia-410M at 28 public training checkpoints, from random initialisation (step 0) to the final model (step 143,000), on 60 Pile passages cut at 512 tokens (median scored length 2192 characters). At each checkpoint we compute the unweighted (ω≡1\omega\equiv1) per-token marginal attention and score it with the estimator of § 3.1: projection onto the characters, ranks, residualisation on 50 relative-position bins, and Spearman correlation per document. The reference is the mean of the same profile over four fully trained models of other families (Qwen2.5-0.5B, Qwen2.5-1.5B, SmolLM2-360M and OLMo-2-1B), so Pythia is never part of its own target. Agreement is this correlation averaged over documents, and the loss is the checkpoint’s bits per character on the same passages, from the same forward pass. As a loss reference, we fit a bigram model with absolute discounting, backed off to a unigram model, on the other 440 passages of the corpus, and score it on the same 60 passages with the same tokenizer. We ran no bootstrap, so we report no interval.

Result analysis. Agreement is near zero at random initialisation and high at the final step (0.84), so the model acquires the shared profile during training and does not have it at the start. Most of the rise is early: it is nearly complete by step 8,000, while the loss is still falling. Agreement stays near zero as long as the loss is above the bigram model’s 2.51 bits per character, and rises only after the loss drops below it, so the model shares the profile only once it predicts better than token-pair statistics. The evidence is narrow: one model, one training seed, and 60 documents of at most 512 tokens. The loss also stands in for the logit gap δ\delta of Theorem 1, which we do not compute between this model and the four reference models.

Models without attention

Experimental setting. We ask whether the shared per-token marginal attention comes from the attention mechanism or from next-token prediction, by computing the per-token marginal influence of models that have no attention. The subjects are four Mamba models (130M to 1.4B parameters; [33]) and two RWKV-4 models (430M and 1.5B; (Peng et al., 2023)), with Qwen2.5-0.5B as the one transformer reference. The influence is the object of Definition 4, estimated with Hutchinson’s method (8 probes) on 128 sampled output positions per document, all at position 64 or later, at 2048 tokens; RWKV-4 reads at most 1024 tokens, so its rows use the first 1024. The reference is the consensus of the unweighted (ω≡1\omega\equiv1) per-token marginal attention of the census models on the same document, and each influence map is compared with it using the estimator of § 3.1; Qwen2.5-0.5B’s own attention is part of that consensus. We use 100 documents of the census corpus, five per domain, the three generated domains included, and Figure 12 shows bootstrap intervals over documents.

Figure 12. Per-token marginal influence of models without attention. Spearman correlation with the consensus per-token marginal attention of the census; one model per row; dashed: references. Setting in Appendix E.4.

Result analysis. The influence of the four Mamba models agrees with the attention consensus nearly as well as the transformer’s does (0.42 to 0.47, and 0.50 for Qwen2.5-0.5B), so the shared profile does not require the attention mechanism. Every model stays far above a map of position alone and above its own influence map compared with a different document. The evidence is narrow: one transformer reference, documents that include generated text, and no logit gap δ\delta for any model without attention, so this is not a test of Theorem 1.

What the shared per-token profile encodes

Experimental setting. To ask what the shared per-token marginal attention encodes, we predict it from properties of the text alone. The target is the consensus per-token profile of the census, unweighted (ω≡1\omega\equiv1), per word, ranked and residualised on 50 relative-position bins as in § 3.1. The predictors are five groups of word properties: position in the document; surface form (length, punctuation, capitalisation, sentence edges); word frequency (external and in-corpus counts); local predictability (surprisal and entropy at the word and the next token); and grammatical role (parse depth, number of dependents, part of speech, dependency label). We fit a ridge regression on each group alone and on all five together, out of fold by document (5 folds), and score it by Spearman correlation per document over 550 documents of 11 English-prose domains. The reference is one model’s own per-token profile compared with the consensus of the other 66, averaged over the 67 census models.

Result analysis. The five groups together predict the consensus profile only in part (0.52), well below a model’s own unweighted per-token profile (0.88). Alone, grammatical role predicts it best, then surface form, local predictability and word frequency, and position predicts nothing (right panel of Figure 4). Removing one group from the five costs the most for grammatical role and local predictability, little for surface form and word frequency, and nothing for position.

KV eviction details

Head budget details

The set Dpre\mathcal{D}_{\mathrm{pre}} of (2) holds 200 documents from the Nemotron pretraining sample (NVIDIA, 2025), the calibration corpus of KVzap [39], and is disjoint from every benchmark. KVzip+ [39] scores every entry (h,s)(h,s) of a document by the largest valueweighted attention it receives from the queries R(X)\mathcal{R}(X) of KVzip’s reconstruction pass, normalised by the attention input hth_t, and keeps the fraction BB of all entries above one global cut τB(X)\tau_B(X). The fraction mh(X)m_h(X) behind the share ph(X)p_h(X) of Equation (2) counts head hh’s own entries above that cut:

Figure 13. Agreement of Head Mass tables from kk and 200−k200-k documents. One panel per compression ratio, one row per target, one column per kk. Each cell is the median, over 100 random draws of kk of the 200 pretraining documents, of the Spearman correlation over the target’s key-value heads between the per-head marginal attention of the drawn documents and of the rest.

mh,srec(X)=max⁡t∈R(X)As,t(h)(X)∥Wo(h)vs(X)∥∥ht∥,1Hn∑j=1H∑s=1n1[mj,srec(X)>τB(X)]=B,mh(X)=1n∑s=1n1[mh,srec(X)>τB(X)].(3)\begin{aligned} m^{\mathrm{rec}}_{h,s}(X) &= \max_{t\in\mathcal{R}(X)} \frac{A^{(h)}_{s,t}(X)\lVert W^{(h)}_o v_s(X)\rVert}{\lVert h_t\rVert}, \\ \frac{1}{Hn}\sum_{j=1}^{H}\sum_{s=1}^{n}\mathbf{1}\left[m^{\mathrm{rec}}_{j,s}(X)>\tau_B(X)\right] &= B, \\ m_h(X) &= \frac{1}{n}\sum_{s=1}^{n}\mathbf{1}\left[m^{\mathrm{rec}}_{h,s}(X)>\tau_B(X)\right]. \tag*{(3)} \end{aligned}

Head budget maps, one per target

One figure per target, at 8×: the Head Mass table, LU-KV’s calibrated budget, KVzip+’s per-head shares, the proportional budget (Equation (4)) and ordinary prefill attention, head by head. The Head Mass table agrees closely, head for head, with the keep rates KVzip+ realises on held-out documents (Spearman 0.91 to 0.93, Table 10), so averaging over pretraining text loses little. The same recipe applied to the reading queries, the document’s own positions, agrees with it far less, as the maps show.

targetLU-KVKVzip+ProportionalPrefill attentionkey-value heads
Qwen3-8B0.810.920.960.13288
Llama-3.1-8B0.800.910.950.38256
phi-40.810.920.970.30400
Qwen3-32B0.800.910.980.17512
Mistral-7B0.810.930.960.42256
mean over targets0.810.920.960.28–

Table 10. LU-KV, KVzip+ and Proportional agree with Head Mass, prefill attention doesn’t. Spearman correlation with the Head Mass table over each target’s (layer, key-value head) grid at 8×, for the tables of Appendix F.2. The last row is the mean over targets.

Proportional budget ablation

The ablation replaces Head Mass’s threshold share with a share proportional to each head’s summed KVzip+ score on the reconstruction pass,

βh∝EX∼Dpre[∑smax⁡tAs,t(h)(X)∥WO(h)vs∥∥ht∥](4)\beta_h \propto\mathbb{E}_{X\sim\mathcal{D}_{\mathrm{pre}}}\left[\sum_s \max_t A_{s,t}^{(h)}(X)\frac{\lVert W_O^{(h)}v_s\rVert}{\lVert h_t\rVert}\right] \tag*{(4)}

max-pooled over each key-value group, then clipped and rescaled as in Equation (2). With EA as the scorer it stays within half a point of HM + EA on Qwen3-8B at every setting, trails it by about one to three points on the other four targets at most compression ratios, and trails it by more than ten points on Qwen3-32B at 16× (Table 12). On Qwen3-8B the cut costs under half a point, while reading the same budget on the reading queries instead of the reconstruction pass costs over 30 points at every setting (Table 13).

TargetRULER, context 4096RULER, context 8192
4×8×16×8×16×
Qwen3-8B94.8 (−0.2)91.9 (0.2)73.1 (−0.2)89.1 (0.1)69.5 (0.4)
Llama-3.1-8B95.0 (−0.1)90.8 (−1.5)65.1 (−1.2)86.3 (−1.7)60.7 (−2.1)
phi-490.8 (−0.6)84.8 (−3.0)66.8 (−1.7)82.8 (−2.1)67.3 (−1.1)
Qwen3-32B95.0 (−0.2)92.0 (−1.2)67.6 (−11.5)90.9 (−1.1)66.5 (−11.4)
Mistral-7B89.3 (−1.2)83.2 (−1.1)63.2 (−2.2)79.7 (−0.7)57.8 (−3.3)

Table 12. With EA as the scorer, the proportional per-head budget (Equation (4)) is within half a point of HM + EA at every setting only on Qwen3-8B; elsewhere it trails by up to 3.3 points, except on Qwen3-32B at 16×, where it trails by more than 11. Each cell is the RULER score of the proportional budget with EA; in parentheses, its paired difference from HM + EA, bold where the 95% interval excludes zero. Both budgets come from KVzip’s reconstruction pass on the same pretraining documents.

Figure 15. Per-head budgets at 8×, Llama-3.1-8B. Layout as in Figure 14.

Figure 14. Per-head budgets at 8×, Qwen3-8B. One cell per key-value head, layer 0 at the bottom; colour is the fraction of the head’s cache kept (log scale, uniform 0.125). Head Mass averages 200 pretraining documents; LU-KV is its budget curve at compression 0.88, hence a mean of 0.12; KVzip+ computes its global cut on each document at run time; the panel is the fraction it keeps in each head averaged over 12 held-out documents; Proportional is Equation (4); Prefill attention applies the Head Mass recipe to the document’s own prefill queries. ρ\rho is the Spearman correlation with Head Mass.

Figure 16. Per-head budgets at 8×, phi-4. Layout as in Figure 14.

The guided score

The guided score keeps EA and raises the tokens that a small guide model, Qwen2.5-0.5B-Instruct (0.5B parameters), marks as important. The guide reads the context the target compresses, without the question, once on the reading queries and once in a reconstruction pass. For each guide head it takes two profiles over positions: the attention each token receives, summed over the reading queries without value weights, and the largest attention it receives from the reconstruction queries. Note that neither profile is strictly the base Definition 1: the reading profile is the marginal attention with ωs,t(h)=1\omega_{s,t}^{(h)} = 1, without the value weight (the factor 1/n1/n does not change ranks), and the reconstruction profile takes the maximum over queries instead of the mean. Each profile is carried to the target’s tokens through the characters they cover and ranked within the document. A linear map, fitted once per target by ridge regression on 48 documents from the same Nemotron sample as the budget (Appendix F.1), turns these profiles into a prediction g^h,s(X)\hat{g}_{h,s}(X) of the KVzip+ log score for every key-value head hh of the target. The prediction tilts EA head by head:

Figure 17. Per-head budgets at 8×, Qwen3-32B. Layout as in Figure 14.

Figure 18. Per-head budgets at 8×, Mistral-7B. Layout as in Figure 14.

γh,s(X)=γh,sEA(X)(1+λgh,s(X)),gh,s(X)=g^h,s(X)−min⁡s′g^h,s′(X)max⁡s′g^h,s′(X)−min⁡s′g^h,s′(X)(5)\gamma_{h,s}(X) = \gamma_{h,s}^{\mathrm{EA}}(X) \left(1 + \lambda g_{h,s}(X)\right), \qquad g_{h,s}(X) = \frac{\hat{g}_{h,s}(X) - \min_{s'} \hat{g}_{h,s'}(X)}{\max_{s'} \hat{g}_{h,s'}(X) - \min_{s'} \hat{g}_{h,s'}(X)} \tag*{(5)}

where γh,sEA(X)\gamma_{h,s}^{\mathrm{EA}}(X) is the EA score of entry (h,s)(h,s), gh,s(X)g_{h,s}(X) rescales the prediction to [0,1][0,1] within each head, and λ=2\lambda= 2 sets the strength of the tilt; λ=0\lambda= 0 gives EA. The budget βh\beta_h is the Head Mass table and the tilt leaves it unchanged.

Per-task breakdown

Each figure in this subsection shows one benchmark at one compression ratio on one target: RULER at context 4096 or 8192, or LongBench. Each group of bars is one task, or one subset for LongBench, and the bars in a group are the methods of Table 1, in the same order and under the same names: AdaKV + EA, AdaKV + KVzap, KVzip, LU-KV + EA, HM + EA and HM + Guide. The black line is the uncompressed model, so the distance from a bar down to the line is what a method loses on that task. The figures show which tasks make the differences between methods, which a single aggregate score hides. The aggregate scores in the main table (Table 1) and in Table 14 and Table 15 are the means of these per-task scores.

Figure 19. Per-task scores, RULER-4096, 4×4\times, Qwen3-8B.

Figure 20. Per-task scores, RULER-4096, 4×4\times, Llama-3.1-8B.

Figure 21. Per-task scores, RULER-4096, 4×4\times, phi-4.

Figure 22. Per-task scores, RULER-4096, 4×, Qwen3-32B.

Figure 23. Per-task scores, RULER-4096, 4×, Mistral-7B.

Figure 24. Per-task scores, RULER-4096, 8×, Qwen3-8B.

Figure 25. Per-task scores, RULER-4096, 8×, Llama-3.1-8B.

Figure 26. Per-task scores, RULER-4096, 8×, phi-4.

Figure 27. Per-task scores, RULER-4096, 8×, Qwen3-32B.

Figure 28. Per-task scores, RULER-4096, 8×, Mistral-7B.

Figure 29. Per-task scores, RULER-4096, 16×, Qwen3-8B.

Figure 30. Per-task scores, RULER-4096, 16×, Llama-3.1-8B.

Figure 31. Per-task scores, RULER-4096, 16×, phi-4.

Figure 32. Per-task scores, RULER-4096, 16×, Qwen3-32B.

Figure 33. Per-task scores, RULER-4096, 16×, Mistral-7B.

Figure 34. Per-task scores, RULER-8192, 8×, Qwen3-8B.

Figure 35. Per-task scores, RULER-8192, 8×, Llama-3.1-8B.

Figure 36. Per-task scores, RULER-8192, 8×, phi-4.

Figure 37. Per-task scores, RULER-8192, 8×, Qwen3-32B.

Figure 38. Per-task scores, RULER-8192, 8×, Mistral-7B.

Figure 39. Per-task scores, RULER-8192, 16×, Qwen3-8B.

Figure 40. Per-task scores, RULER-8192, 16×, Llama-3.1-8B.

Figure 41. Per-task scores, RULER-8192, 16×, phi-4.

Figure 42. Per-task scores, RULER-8192, 16×, Qwen3-32B.

Figure 43. Per-task scores, RULER-8192, 16×, Mistral-7B.

Figure 44. Per-subset scores, LongBench, 8×, Qwen3-8B.

Figure 45. Per-subset scores, LongBench, 8×, Llama-3.1-8B.

Figure 46. Per-subset scores, LongBench, 8×, Qwen3-32B.

Figure 47. Per-subset scores, LongBench, 8×, Mistral-7B.

Figure 48. Per-subset scores, LongBench, 16×, Qwen3-8B.

Figure 49. Per-subset scores, LongBench, 16×, Llama-3.1-8B.

Image not extracted

Figure 50. Per-subset scores, LongBench, 16×\times, Qwen3-32B.

Image not extracted

Figure 51. Per-subset scores, LongBench, 16×\times, Mistral-7B.

Proofs

Throughout this appendix we retain the notation of the main text. Recall that nn refers to the length of XX (the number of input positions, indexed by ss and output positions, indexed by tt), that J(s)J^{(s)} without argument refers to J(s)(X)J^{(s)}(X) and JJ refers to J(X)J(X), and that η:=inf⁡0<r<R(2δr+Mr)\eta:= \inf_{0<r<R}\left(\frac{2\delta}{r}+Mr\right).

Remark. In practice, the next-token distribution is blind to a fixed constant being added to each logit, but this is trivially ignored by applying the theorem to the centered logits.

Assumptions

Theorem 1 relies on three assumptions, which we state formally here. The first, smoothness, is all that Lemma 1 needs.

Assumption 1 (Jacobian Smoothness). Each of ff and f′f' is continuously differentiable in each input position, and there are constants M≥0M \ge0 and R>0R > 0 such that

∥[J(X(s)+ru)]t−[J(X)]t∥F2+∥[J′(X(s)+ru)]t−[J′(X)]t∥F2≤Mr\left\| \left[J(X^{(s)}+r\mathbf{u})\right]_t-\left[J(X)\right]_t \right\|_{\mathrm{F}}^2+\left\| \left[J'(X^{(s)}+r\mathbf{u})\right]_t-\left[J'(X)\right]_t \right\|_{\mathrm{F}}^2 \le Mr

P-almost everywhere in XX, for all 0≤r<R0 \le r < R and unit directions u\mathbf{u}, and for all s≤ts \le t over all tt.

Assumption 1 is a fairly standard assumption on the curvature of the model ff. Jacobian-vector products provide local diagnostics of this behaviour. Empirically, larger models show lower relative local sensitivity on the sampled inputs (Appendix § 14); these measurements do not establish a uniform bound on MM.

The other two constrain the dependence structure of the Jacobian. For k∈Nk \in\mathbb{N}, write Ψk(X)=1nd∑(s,t): s≤t−k∥[J(s)]t∥F\Psi_k(X) = \frac{1}{n\sqrt{d}}\sum_{(s,t):\,s\le t-k}\left\|[J^{(s)}]_t\right\|_{\mathrm{F}} for the lag-kk tail of the Jacobian block norms of ff, and Ψk′(X)\Psi'_k(X) for the same quantity for f′f'.

Assumption 2 (Preceding-Token Dependence). There is a constant c>0c > 0 such that

∥[J(t)(X)]t∥F2+∥[J′(t)(X)]t∥F2≥cd\left\|\left[J^{(t)}(X)\right]_t\right\|_{\mathrm{F}}^2+\left\|\left[J'^{(t)}(X)\right]_t\right\|_{\mathrm{F}}^2 \ge cd

P-almost everywhere in XX, for all output positions tt.

Assumption 2 states that every prediction depends, by a margin bounded away from zero, on the last token it reads, the one at its own position. We find this block above zero at every sampled position of every model we examine (Appendix § 14.§ 2).

Assumption 3 (Lag Decay). There is a non-increasing function ψ:N→[0,∞)\psi: \mathbb{N} \to[0,\infty), independent of nn and dd, with ψ(k)→0\psi(k) \to0 as k→∞k \to\infty, such that

Ψk(X),Ψk′(X)≤ψ(k)\Psi_k(X),\Psi'_k(X) \le\psi(k)

P-almost everywhere in XX, for all k∈Nk \in\mathbb{N}.

Assumption 3 is the one that depends most on the data: it states that the dependence of a prediction on earlier tokens falls toward zero with their distance, at a rate that does not depend on the length of the sequence. We observe a clear but slow decay, close to a power law, and larger models decay more slowly (Appendix § 14.§ 2). The assumption is needed only because of our choice of units: an alternative proof with squared block norms gives a bound independent of nn without it. Whether a milder assumption suffices for this statistic, and whether its normalisation is the right one, is an open question.

Proofs

Lemma 1 (Near-Identifiability of the Jacobian Blocks). *Let P(X)\mathbb{P}(X) be a distribution supported on a space of canonical input sequences X\mathcal{X}, where each element of the sequence is an embedding in Rd\mathbb{R}^d and sequences may be of any length nn. Let f,f′f,f' be the functions of two large language models mapping sequences of input embeddings to sequences of output logit vectors, each of whose Jacobians is smooth in each input position in the sense of Assumption 1, with constants MM and RR as given there. Suppose that the next-token logits implied by ff and f′f' are similar for

each output position, in the sense that

∥ft(X(s)+ru)−ft′(X(s)+ru)∥≤δ\left\|f_t(X^{(s)}+r\mathbf{u})-f'_t(X^{(s)}+r\mathbf{u})\right\|\leq\delta

P\mathbb{P}-almost everywhere in XX, for some δ≥0\delta\geq0, for all 0≤r<R0 \leq r < R and unit directions u\mathbf{u}, and for all s≤ts \leq t over all tt. Then, writing η:=inf⁡0<r<R(2δr+Mr)\eta:= \inf_{0<r<R}\left(\frac{2\delta}{r}+Mr\right), we have

∥[J(s)(X)]t−[J′(s)(X)]t∥F≤dη\left\|\left[J^{(s)}(X)\right]_t-\left[J'^{(s)}(X)\right]_t\right\|_F\leq\sqrt{d}\eta

P\mathbb{P}-almost everywhere in XX, for all s≤ts \leq t over all tt. Moreover, η≤4δR+MR2\eta\leq\frac{4\delta}{R}+\frac{MR}{2}, and η=22Mδ\eta=2\sqrt{2M\delta} whenever 2δ≤MR22\delta\leq MR^2; in particular, η\eta depends on neither nn nor dd, and η→0\eta\to0 as M,δ→0M,\delta\to0.

Proof of Lemma 1. Claim. For all 0≤r<R0 \leq r < R, unit vectors u\mathbf{u}, and positions s≤ts \leq t, we have

∥ft(X(s)+ru)−ft(X)−r[J(s)]tu∥≤12Mr2.\left\|f_t(X^{(s)}+r\mathbf{u})-f_t(X)-r\left[J^{(s)}\right]_t\mathbf{u}\right\|\leq\frac{1}{2}Mr^2.

The same bound holds for f′f' and [J′(s)]t\left[J'^{(s)}\right]_t.

Proof of claim. Write g(ρ)=ft(X(s)+ρu)g(\rho)=f_t(X^{(s)}+\rho\mathbf{u}) for ρ∈[0,r]\rho\in[0,r]. By Assumption 1, gg is continuously differentiable, and by the chain rule g′(ρ)=[J(s)(X(s)+ρu)]tug'(\rho)=\left[J^{(s)}(X^{(s)}+\rho\mathbf{u})\right]_t\mathbf{u}. By the fundamental theorem of calculus,

∥ft(X(s)+ru)−ft(X)−r[J(s)]tu∥=∥g(r)−g(0)−r[J(s)]tu∥=∥∫0r([J(s)(X(s)+ρu)]t−[J(s)]t)u dρ∥≤∫0rMρ dρ=12Mr2\begin{aligned} \left\|f_t(X^{(s)}+r\mathbf{u})-f_t(X)-r\left[J^{(s)}\right]_t\mathbf{u}\right\| =\left\|g(r)-g(0)-r\left[J^{(s)}\right]_t\mathbf{u}\right\| \\ &=\left\|\int_0^r\left(\left[J^{(s)}(X^{(s)}+\rho\mathbf{u})\right]_t-\left[J^{(s)}\right]_t\right)\mathbf{u}\,d\rho\right\| \\ &\leq\int_0^r M\rho\,d\rho=\frac{1}{2}Mr^2 \end{aligned}

where the last line follows from the triangle inequality for integrals together with Assumption 1, using ∥Au∥≤∥A∥op≤∥A∥F\|A\mathbf{u}\|\leq\|A\|_{\mathrm{op}}\leq\|A\|_F for unit u\mathbf{u}. The identical argument applies to f′f' and J′J'.

Claim. For all positions s≤ts\leq t and every unit vector u\mathbf{u}, we have

∥([J(s)]t−[J′(s)]t)u∥≤η.\left\|\left(\left[J^{(s)}\right]_t-\left[J'^{(s)}\right]_t\right)\mathbf{u}\right\|\leq\eta.

Proof of claim. Let 0<r<R0<r<R be arbitrary. By the previous claim, we have

ft(X(s)+ru)−ft(X)−r[J(s)]tu−ζ=0f_t(X^{(s)}+r\mathbf{u})-f_t(X)-r\left[J^{(s)}\right]_t\mathbf{u}-\zeta=0

for some ∥ζ∥≤12Mr2\|\zeta\|\leq\frac{1}{2}Mr^2, and similarly for f′f', [J′(s)]t\left[J'^{(s)}\right]_t, and ζ′\zeta'. Subtracting the two equations and re-arranging yields

∥r[J(s)]tu−r[J′(s)]tu∥=∥ft(X(s)+ru)−ft′(X(s)+ru)−ft(X)+ft′(X)−ζ+ζ′∥\left\|r\left[J^{(s)}\right]_t\mathbf{u}-r\left[J'^{(s)}\right]_t\mathbf{u}\right\| =\left\|f_t(X^{(s)}+r\mathbf{u})-f'_t(X^{(s)}+r\mathbf{u})-f_t(X)+f'_t(X)-\zeta+\zeta'\right\|
≤2δ+Mr2\leq2\delta+Mr^2

where the final bound follows by the triangle inequality and the near-agreement of the next-token logits hypothesized in the lemma, the latter applied at rr and at 00. Dividing by rr and taking the infimum over 0<r<R0<r<R yields the claim.

It remains to pass to the Frobenius norm and to estimate η\eta. Write A:=[J(s)]t−[J′(s)]t∈RV×dA:=\left[J^{(s)}\right]_t-\left[J'^{(s)}\right]_t\in\mathbb{R}^{V\times d}. Taking the supremum over unit u\mathbf{u} in the previous claim gives ∥A∥op≤η\|A\|_{\mathrm{op}}\leq\eta, and since rank⁡(A)≤d\operatorname{rank}(A)\leq d we have

∥A∥F2=∑iσi(A)2≤d∥A∥op2≤dη2.\|A\|_F^2=\sum_i\sigma_i(A)^2\leq d\|A\|_{\mathrm{op}}^2\leq d\eta^2.

For the explicit estimates, taking r=R/2r=R/2 in the definition of η\eta gives η≤4δR+MR2\eta\leq\frac{4\delta}{R}+\frac{MR}{2}, while the unconstrained minimizer of r↦2δr+Mrr\mapsto\frac{2\delta}{r}+Mr over r>0r>0 is r∗=2δ/Mr^*=\sqrt{2\delta/M}, attaining the value 22Mδ2\sqrt{2M\delta}, which is admissible precisely when r∗≤Rr^*\leq R. Both estimates depend only on MM, δ\delta and RR, and hence on neither nn nor dd.

Theorem 1 (Near-Identifiability of the Per-Token Marginal Influence, formal). Let P(X)\mathbb{P}(X) be a distribution supported on a space of canonical input sequences X\mathcal{X}, where each element of the sequence is an embedding in Rd\mathbb{R}^d and sequences may be of any length nn. Let ff, f′f' be the functions of two large language models mapping sequences of input embeddings to sequences of output logit vectors. Assume that (1) the prediction of the next token depends sufficiently on the immediately preceding token (Assumption 2), (2) each model’s Jacobian is smooth in each input position (Assumption 1), and (3) the blockwise Jacobian norms of each model decay with lag (Assumption 3), with constants cc, MM and RR and envelope ψ\psi as given there. Suppose moreover

that the next-token logits implied by ff and f′f' are similar for each output position, in the sense that

∥ft(X(s)+ru)−ft′(X(s)+ru)∥≤δ\left\|f_t\left(X^{(s)}+r\mathbf{u}\right)-f'_t\left(X^{(s)}+r\mathbf{u}\right)\right\| \le\delta

P\mathbb{P}-almost everywhere in XX, for some δ≥0\delta\ge0, for all 0≤r<R0 \le r < R and unit directions u\mathbf{u}, and for all s≤ts \le t over all tt. Then, we have

∥j(X)−j′(X)∥1≤ϵ\left\|\mathbf{j}(X)-\mathbf{j}'(X)\right\|_1 \le\epsilon

P\mathbb{P}-almost everywhere in XX, where j,j′\mathbf{j},\mathbf{j}' are the per-token marginal influences of ff and f′f' respectively, and where ϵ\epsilon depends on neither nn nor dd, and ϵ→M,δ→00\epsilon\xrightarrow[M,\delta\to0]{} 0. Explicitly, ϵ:=min⁡{2,inf⁡k∈N(kη+2ψ(k))}\epsilon:= \min\left\{2,\sqrt{\inf_{k\in\mathbb{N}}(k\eta+2\psi(k))}\right\}, which depends on cc and ψ\psi.

Proof of Theorem 1. The hypotheses of the theorem include those of Lemma 1, which therefore gives ∥[J(s)]t−[J′(s)]t∥F≤dη\left\|\left[J^{(s)}\right]_t-\left[J'^{(s)}\right]_t\right\|_F\le\sqrt{d}\eta for all s≤ts\le t.

Claim. We have Z(X)≥ncdZ(X)\ge n\sqrt{c d} and Z′(X)≥ncdZ'(X)\ge n\sqrt{c d}; equivalently, Ψ0(X),Ψ0′(X)≥c\Psi_0(X),\Psi'_0(X)\ge\sqrt{c}. In particular, j(X)\mathbf{j}(X) and j′(X)\mathbf{j}'(X) are well defined.

Proof of claim. Every term of Z(X)=∑s≤t∥[J(s)]t∥FZ(X)=\sum_{s\le t}\left\|\left[J^{(s)}\right]_t\right\|_F is non-negative, so discarding all off-diagonal terms and applying Assumption 2 to each of the nn diagonal blocks gives

Z(X)≥∑t=1n∥[J(t)]t∥F≥ncd,Z(X)\ge\sum_{t=1}^{n}\left\|\left[J^{(t)}\right]_t\right\|_F\ge n\sqrt{c d},

and identically for f′f'. Since c>0c>0, both normalizations are strictly positive.

Claim. Let F,F′∈[0,∞)nF,F'\in[0,\infty)^n with Z:=∥F∥1>0Z:=\|F\|_1>0 and Z′:=∥F′∥1>0Z':=\|F'\|_1>0. Then

∥FZ−F′Z′∥1≤2∥F−F′∥1max⁡(Z,Z′).\left\|\frac{F}{Z}-\frac{F'}{Z'}\right\|_1\le\frac{2\|F-F'\|_1}{\max(Z,Z')}.

Proof of claim. Decompose

FZ−F′Z′=F−F′Z+F′(1Z−1Z′).\frac{F}{Z}-\frac{F'}{Z'}=\frac{F-F'}{Z}+F'\left(\frac{1}{Z}-\frac{1}{Z'}\right).

The second term has ℓ1\ell^1 norm ∥F′∥1∣Z′−Z∣ZZ′=∣Z−Z′∣Z\|F'\|_1\frac{|Z'-Z|}{ZZ'}=\frac{|Z-Z'|}{Z}, and ∣Z−Z′∣=∣∥F∥1−∥F′∥1∣≤∥F−F′∥1|Z-Z'|=\left|\|F\|_1-\|F'\|_1\right|\le\|F-F'\|_1 by the reverse triangle inequality. Hence the total is at most 2∥F−F′∥1/Z2\|F-F'\|_1/Z. Exchanging the roles of FF and F′F' gives the same bound with Z′Z' in place of ZZ, so we may take whichever of the two is larger.

Claim. For every k∈Nk\in\mathbb{N}, we have ∥F(X)−F′(X)∥1≤nd(kη+2ψ(k))\|F(X)-F'(X)\|_1\le n\sqrt{d}\left(k\eta+2\psi(k)\right).

Proof of claim. By the triangle inequality applied to each Fs(X)−Fs′(X)F_s(X)-F'_s(X),

∥F(X)−F′(X)∥1≤∑s≤t(∥[J(s)]t∥F−∥[J′(s)]t∥F).\|F(X)-F'(X)\|_1\le\sum_{s\le t}\left(\left\|\left[J^{(s)}\right]_t\right\|_F-\left\|\left[J'^{(s)}\right]_t\right\|_F\right).

Partition {(s,t):s≤t}\{(s,t):s\le t\} into the recent pairs Rk:={(s,t):t−k<s≤t}\mathcal{R}_k:=\{(s,t):t-k<s\le t\} and the distant pairs Dk:={(s,t):s≤t−k}\mathcal{D}_k:=\{(s,t):s\le t-k\}. On Rk\mathcal{R}_k, the reverse triangle inequality and Lemma 1 give

∑(s,t)∈Rk∣∥[J(s)]t∥F−∥[J′(s)]t∥F∣≤∑(s,t)∈Rk∥[J(s)]t−[J′(s)]t∥F≤nkdη,\sum_{(s,t)\in\mathcal{R}_k}\left|\left\|\left[J^{(s)}\right]_t\right\|_F-\left\|\left[J'^{(s)}\right]_t\right\|_F\right| \le\sum_{(s,t)\in\mathcal{R}_k}\left\|\left[J^{(s)}\right]_t-\left[J'^{(s)}\right]_t\right\|_F\le nk\sqrt{d}\eta,

since each output position tt contributes at most kk recent pairs, so ∣Rk∣≤nk|\mathcal{R}_k|\le nk. On Dk\mathcal{D}_k, we discard the cancellation via ∣a−b∣≤a+b|a-b|\le a+b and recognize the two resulting sums as the lag-kk tails Ψk(X)\Psi_k(X) and Ψk′(X)\Psi'_k(X), so that by Assumption 3,

∑(s,t)∈Dk(∥[J(s)]t∥F+∥[J′(s)]t∥F)=nd(Ψk(X)+Ψk′(X))≤2nd ψ(k).\sum_{(s,t)\in\mathcal{D}_k}\left(\left\|\left[J^{(s)}\right]_t\right\|_F+\left\|\left[J'^{(s)}\right]_t\right\|_F\right) =n\sqrt{d}\left(\Psi_k(X)+\Psi'_k(X)\right)\le2n\sqrt{d}\,\psi(k).

Adding the two contributions yields the claim. For k=0k=0 the set R0\mathcal{R}_0 is empty and the bound holds trivially.

Claim. Define

ϵ:=min⁡{2,2cinf⁡k∈N(kη+2ψ(k))}.\epsilon:= \min\left\{2,\frac{2}{\sqrt{c}}\inf_{k\in\mathbb{N}}\left(k\eta+2\psi(k)\right)\right\}.

Then ϵ\epsilon depends on neither nn nor dd, and ϵ→0\epsilon\to0 as M,δ→0M,\delta\to0.

Proof of claim. Independence of nn and dd is immediate, since η\eta depends only on M,δ,RM,\delta,R, the function ψ\psi is independent of nn and dd by Assumption 3, and cc is a fixed constant. For the limit, fix ϵ>0\epsilon>0. As ψ(k)→0\psi(k)\to0, choose k0k_0 with 4ψ(k0)c<ϵ/2\frac{4\psi(k_0)}{\sqrt{c}}<\epsilon/2. Holding k0k_0 fixed, we have η≤4δR+MR2→0\eta\leq\frac{4\delta}{R}+\frac{MR}{2}\to0 as M,δ→0M,\delta\to0, so 2k0η/c<ϵ/22k_0\eta/\sqrt{c}<\epsilon/2 for all sufficiently small M,δM,\delta, whence ϵ≤2c(k0η+2ψ(k0))<ϵ\epsilon\leq\frac{2}{\sqrt{c}}(k_0\eta+2\psi(k_0))<\epsilon.

Combining the three preceding claims, for every k∈Nk\in\mathbb{N} we have

∥j(X)−j′(X)∥1≤2∥F(X)−F′(X)∥1max⁡(Z(X),Z′(X))≤2nd(kη+2ψ(k))ncd=2c(kη+2ψ(k)),\lVert j(X)-j'(X)\rVert_1\leq\frac{2\lVert F(X)-F'(X)\rVert_1}{\max(Z(X),Z'(X))}\leq\frac{2n\sqrt{d}\left(k\eta+2\psi(k)\right)}{n\sqrt{cd}}=\frac{2}{\sqrt{c}}\left(k\eta+2\psi(k)\right),

while ∥j(X)−j′(X)∥1≤2\lVert j(X)-j'(X)\rVert_1\leq2 unconditionally, both j(X)j(X) and j′(X)j'(X) being non-negative with unit ℓ1\ell^1 norm. Taking the infimum over k∈Nk\in\mathbb{N} gives ∥j(X)−j′(X)∥1≤ϵ\lVert j(X)-j'(X)\rVert_1\leq\epsilon.

References

  1. [2]Marah Abdin, Jyoti Aneja, Harkirat Behl, Sébastien Bubeck, Ronen Eldan, Suriya Gunasekar, Michael Harrison, Russell J. Hewett, Mojan Javaheripi, Piero Kauffmann, James R. Lee, Yin Tat Lee, Yuanzhi Li, Weishung Liu, Caio C. T. Mendes, Anh Nguyen, Eric Price, Gustavo de Rosa, Olli Saarikivi, Adil Salim, Shital Shah, Xin Wang, Rachel Ward, Yue Wu, Dingli Yu, Cyril Zhang, and Yi Zhang. Phi-4 technical report, 2024. URL https://arxiv.org/abs/2412.08905.
  2. [3]Samira Abnar and Willem Zuidema. Quantifying attention flow in transformers. In Dan Jurafsky, Joyce Chai, Natalie Schlüter, and Joel Tetreault (eds.), Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pp. 4190–4197, Online, July 2020. Association for Computational Linguistics. doi: 10.18653/v1/2020.acl-main.385. URL https://aclanthology.org/2020.acl-main.385/.DOI
  3. [4]Muhammad Adnan, Akhil Arunkumar, Gaurav Jain, Prashant J. Nair, Ilya Soloveychik, and Purushotham Kamath. Keyformer: KV cache reduction through key tokens selection for efficient generative inference. In P. Gibbons, G. Pekhimenko, and C. De Sa (eds.), Proceedings of Machine Learning and Systems, volume 6, pp. 114–127, 2024. URL https://proceedings.mlsys.org/paper_files/paper/2024/file/48fecef47b19fe501d27d338b6d52582-Paper-Conference.pdf.arxiv.org/abs/2403.09054
  4. [5]Loubna Ben Allal, Anton Lozhkov, Elie Bakouch, Gabriel Martín Blázquez, Guilherme Penedo, Lewis Tunstall, Andrés Marafıoti, Hynek Kydlíček, Agustín Piqueres Lajarín, Vaibhav Srivastav, Joshua Lochner, Caleb Fahlgren, Xuan-Son Nguyen, Clémentine Fourrier, Ben Burtenshaw, Hugo Larcher, Haojun Zhao, Cyril Zakka, Mathieu Morlon, Colin Raffel, Leandro von Werra, and Thomas Wolf. SmolLM2: When smol goes big – data-centric training of a small language model, 2025. URL https://arxiv.org/abs/2502.02737.
  5. [6]Ebtesam Almazrouei, Hamza Alobeidli, Abdulaziz Alshamsi, Alessandro Cappelli, Ruxandra Cojocaru, Mérouane Debbah, Étienne Goffinet, Daniel Hesslow, Julien Launay, Quentin Malartic, Daniele Mazzotta, Badr reddine Noune, Baptiste Pannier, and Guilherme Penedo. The Falcon series of open language models, 2023. URL https://arxiv.org/abs/2311.16867.
  6. [7]Shuai Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, Sibo Song, Kai Dang, Peng Wang, Shijie Wang, Jun Tang, Humen Zhong, Yuanzhi Zhu, Mingkun Yang, Zhaohai Li, Jianqiang Wan, Pengfei Wang, Wei Ding, Zheren Fu, Yiheng Xu, Jiabo Ye, Xi Zhang, Tianbao Xie, Zesen Cheng, Hang Zhang, Zhibo Yang, Haiyang Xu, and Junyang Lin. Qwen2.5-VL technical report, 2025. URL https://arxiv.org/abs/2502.13923.
  7. [8]Yushi Bai, Xin Lv, Jiajie Zhang, Hongchang Lyu, Jiankai Tang, Zhidian Huang, Zhengxiao Du, Xiao Liu, Aohan Zeng, Lei Hou, Yuxiao Dong, Jie Tang, and Juanzi Li. LongBench: A bilingual, multitask benchmark for long context understanding. In Lun-Wei Ku, Andre Martins, and Vivek Srikumar (eds.), Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 3119–3137, Bangkok, Thailand, August 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.acl-long.172. URL https://aclanthology.org/2024.acl-long.172/.DOI
  8. [9]Yamini Bansal, Preetum Nakkiran, and Boaz Barak. Revisiting model stitching to compare neural representations. In M. Ranzato, A. Beygelzimer, Y. Dauphin, P.S. Liang, and J. Wortman Vaughan (eds.), Advances in Neural Information Processing Systems, volume 34, pp. 225–236. Curran Associates, Inc., 2021. URL https://proceedings.neurips.cc/paper_files/paper/2021/file/01ded4259d101feb739b06c399e9cd9c-Paper.pdf.arxiv.org/abs/2106.07682
  9. [10]Lorenzo Basile, Valentino Maiorca, Luca Bortolussi, Emanuele Rodolà, and Francesco Locatello. Residual transformer alignment with spectral decomposition. Transactions on Machine Learning Research, 2025a. ISSN 2835-8856. URL https://openreview.net/forum?id=z37LCgSIzI.arxiv.org/abs/2411.00246
  10. [12]Marco Bellagente, Jonathan Tow, Dakota Mahan, Duy Phung, Maksym Zhuravinskyi, Reshinth Adithyan, James Baio­cianu, Ben Brooks, Nathan Cooper, Ashish Datta, Meng Lee, Emad Mostaque, Michael Pieler, Nikhil Pinnaparju, Paulo Rocha, Harry Saini, Hannah Teufel, Niccolo Zanichelli, and Carlos Riquelme. Stable LM 2 1.6B technical report, 2024. URL https://arxiv.org/abs/2402.17834.
  11. [13]Stella Biderman, Hailey Schoelkopf, Quentin Gregory Anthony, Herbie Bradley, Kyle O’Brien, Eric Hallahan, Mohammad Aflah Khan, Shivanshu Purohit, Usvsn Sai Prashanth, Edward Raff, Aviya Skowron, Lintang Sutawika, and Oskar Van Der Wal. Pythia: A suite for analyzing large language models across training and scaling. In Andreas Krause, Emma Brunskill, KyungHyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett (eds.), Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pp. 2397–2430. PMLR, 2023. URL https://proceedings.mlr.press/v202/biderman23a.html.arxiv.org/abs/2304.01373
  12. [14]BigScience Workshop, Teven Le Scao, et al. BLOOM: A 176B-parameter open-access multilingual language model, 2023. URL https://arxiv.org/abs/2211.05100.
  13. [15]Sid Black, Leo Gao, Phil Wang, Connor Leahy, and Stella Biderman. GPT-Neo: Large scale autoregressive language modeling with Mesh-Tensorflow, March 2021. URL https://doi.org/10.5281/zenodo.5297715.
  14. [16]Gino Brunner, Yang Liu, Damian Pascual, Oliver Richter, Massimiliano Ciaramita, and Roger Wattenhofer. On identifiability in transformers. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=BUgI1f6EEDB.
  15. [17]Zefan Cai, Yichi Zhang, Bofei Gao, Yuliang Liu, Yucheng Li, Tianyu Liu, Keming Lu, Wayne Xiong, Yue Dong, Junjie Hu, and Wen Xiao. PyramidKV: Dynamic KV cache compression based on pyramidal information funneling, 2025. URL https://arxiv.org/abs/2406.02069.
  16. [18]Valérie Castin, Keitaro Sakamoto, Anastasiia Filippova, João Monteiro, Marco Cuturi, and Pierre Ablin. KV-Lingo: Learning KV-cache translators with distillation, 2026. URL https://arxiv.org/abs/2609.32610.
  17. [19]Vivek Chari and Benjamin Van Durme. Compactor: Calibrated query-agnostic KV cache compression with approximate leverage scores, 2025. URL https://arxiv.org/abs/2507.08143.
  18. [20]John Dang et al. Aya Expanse: Combining research breakthroughs for a new multilingual frontier, 2024. URL https://arxiv.org/abs/2412.04261.
  19. [21]DeepSeek-AI. DeepSeek-V2: A strong, economical, and efficient mixture-of-experts language model, 2024. URL https://arxiv.org/abs/2405.04434.
  20. [22]Lucio M. Dery, Zohar Yahav, Henry Prior, Qixuan Feng, Jiajun Shen, and Arthur Szlam. Latent space communication via K-V cache alignment, 2026. URL https://arxiv.org/abs/2601.06123.
  21. [23]Alessio Devoto, Maximilian Jeblick, and Simon Jégou. Expected attention: KV cache compression by estimating attention from future queries distribution, 2025. URL https://arxiv.org/abs/2510.00636.
  22. [24]Yuan Feng, Junlin Lv, Yukun Cao, Xike Xie, and S. Kevin Zhou. Ada-KV: Optimizing KV cache eviction by adaptive budget allocation for efficient LLM inference. In D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, and N. Chen (eds.), Advances in Neural Information Processing Systems, volume 38, Main Conference, pp. 113152–113188. Curran Associates, Inc., 2025. doi: 10.52202/085713-3773. URL https://proceedings.neurips.cc/paper_files/paper/2025/file/a40ff56daab9f4808b1e18350c8a11ce-Paper-Conference.pdf.DOI
  23. [25]Yossi Gandelsman, Alexei Efros, and Jacob Steinhardt. Interpreting CLIP's image representation via text-based decomposition. In B. Kim, Y. Yue, S. Chaudhuri, K. Fragkiadaki, M. Khan, and Y. Sun (eds.), International Conference on Learning Representations, volume 2024, pp. 18395–18416. 2024. URL https://proceedings.iclr.cc/paper_files/paper/2024/file/5085a2b8c298edeadc46b9ffe6df5f64-Paper-Conference.pdf.arxiv.org/abs/2310.05916
  24. [26]Leo Gao, Stella Biderman, Sid Black, Laurence Golding, Travis Hoppe, Charles Foster, Jason Phang, Horace He, Anish Thite, Noa Nabeshima, Shawn Presser, and Connor Leahy. The Pile: An 800GB dataset of diverse text for language modeling. arXiv preprint arXiv:2101.00027, 2020. URL https://arxiv.org/abs/2101.00027.
  25. [28]Gemma Team. Gemma 3 technical report, 2025. URL https://arxiv.org/abs/2503.19786.
  26. [29]Paolo Glorioso, Quentin Anthony, Yury Tokpanov, Anna Golubeva, Vasudev Shyam, James Whittington, Jonathan Pilault, and Beren Millidge. The Zamba2 suite: Technical report, 2024. URL https://arxiv.org/abs/2411.15242.
  27. [30]Granite Team, IBM. Granite 3.0 language models. https://github.com/ibm-granite/granite-3.0-language-models/, October 2024.
  28. [31]Aaron Grattafiori et al. The Llama 3 herd of models, 2024. URL https://arxiv.org/abs/2407.21783.
  29. [32]Fabian Gröger, Shuo Wen, and Maria Brbic. Revisiting the platonic representation hypothesis: An aristotelian view. In Forty-third International Conference on Machine Learning, 2026. URL https://openreview.net/forum?id=uz0gAAYydl.arxiv.org/abs/2602.14486
  30. [33]Albert Gu and Tri Dao. Mamba: Linear-time sequence modeling with selective state spaces. In First Conference on Language Modeling, 2024. URL https://openreview.net/forum?id=tEYskw1VY2.arxiv.org/abs/2312.00752
  31. [34]Daya Guo, Qihao Zhu, Dejian Yang, Zhenda Xie, Kai Dong, Wentao Zhang, Guanting Chen, Xiao Bi, Y. Wu, Y. K. Li, Fuli Luo, Yingfei Xiong, and Wenfeng Liang. DeepSeek-Coder: When the large language model meets programming – the rise of code intelligence, 2024. URL https://arxiv.org/abs/2401.14196.
  32. [35]Cheng-Ping Hsieh, Simeng Sun, Samuel Kriman, Shantanu Acharya, Dima Rekesh, Fei Jia, and Boris Ginsburg. RULER: What’s the real context size of your long-context language models? In First Conference on Language Modeling, 2024. URL https://openreview.net/forum?id=kIoBbc76Sy.arxiv.org/abs/2404.06654
  33. [36]Shengding Hu, Yuge Tu, Xu Han, Chaoqun He, Ganqu Cui, Xiang Long, Zhi Zheng, Yewei Fang, Yuxiang Huang, Weilin Zhao, Xinrong Zhang, Zheng Leng Thai, Kaihuo Zhang, Chongyi Wang, Yuan Yao, Chenyang Zhao, Jie Zhou, Jie Cai, Zhongwu Zhai, Ning Ding, Chao Jia, Guyang Zeng, Dahai Li, Zhiyuan Liu, and Maosong Sun. MiniCPM: Unveiling the potential of small language models with scalable training strategies, 2024. URL https://arxiv.org/abs/2404.06395.
  34. [37]Minyoung Huh, Brian Cheung, Tongzhou Wang, and Phillip Isola. Position: The platonic representation hypothesis. In Ruslan Salakhutdinov, Zico Kolter, Katherine Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp (eds.), Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research. pp. 20617–20642. PMLR, 21–27 Jul 2024. URL https://proceedings.mlr.press/v235/huh24a.html.
  35. [38]Binyuan Hui, Jian Yang, Zeyu Cui, Jiaxi Yang, Dayiheng Liu, Lei Zhang, Tianyu Liu, Jiajun Zhang, Bowen Yu, Keming Lu, Kai Dang, Yang Fan, Yichang Zhang, An Yang, Rui Men, Fei Huang, Bo Zheng, Yibo Miao, Shangtao Quan, Yunlong Feng, Xingzhang Ren, Xuancheng Ren, Jingren Zhou, and Junyang Lin. Qwen2.5-Coder technical report, 2024. URL https://arxiv.org/abs/2409.12186.
  36. [39]Simon Jegou and Maximilian Jeblick. KVzap: Fast, adaptive, and faithful KV cache pruning, 2026. URL https://arxiv.org/abs/2601.07891.
  37. [40]Albert Q. Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Brassard, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, Lélio Renard Lavaud, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, and William El Sayed. Mistral 7B, 2023. URL https://arxiv.org/abs/2310.06825.
  38. [41]Albert Q. Jiang, Alexandre Sablayrolles, Antoine Roux, Arthur Mensch, Blanche Savary, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Emma Bou Hanna, Florian Brassard, Gianna Lengyel, Guillaume Bour, Guillaume Lample, Lélio Renard Lavaud, Lucile Saulnier, Marie-Anne Lachaux, Pierre Stock, Sandeep Subramanian, Sophia Yang, Szymon Antoniak, Teven Le Scao, Théophile Gervet, Thibaut Lavril, Thomas Wang, Timothée Lacroix, and William El Sayed. Mixtral of experts, 2024. URL https://arxiv.org/abs/2401.04088.
  39. [42]Jang-Hyun Kim, Jinuk Kim, Sangwoo Kwon, Jae W. Lee, Sangdoo Yun, and Hyun Oh Song. KVzip: Query-agnostic KV cache compression with context reconstruction. In D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, and N. Chen (eds.), Advances in Neural Information Processing Systems, volume 38, Main Conference, pp. 167563–167591. Curran Associates, Inc., 2025. doi: 10.52202/085713-5585. URL https://proceedings.neurips.cc/paper_files/paper/2025/file/f4eaa4b8f2d08edb3f0af990d56134ea-Paper-Conference.pdf.DOI
  40. [43]Jang-Hyun Kim, Dongyoon Han, and Sangdoo Yun. Fast KVzip: Efficient and accurate LLM inference with gated KV eviction, 2026. URL https://arxiv.org/abs/2601.17668.
  41. [44]Simon Kornblith, Mohammad Norouzi, Honglak Lee, and Geoffrey Hinton. Similarity of neural network representations revisited. In Kamalika Chaudhuri and Ruslan Salakhutdinov (eds.), Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 3519–3529. PMLR, 09–15 Jun 2019. URL https://proceedings.mlr.press/v97/kornblith19a.html.arxiv.org/abs/1905.00414
  42. [45]Sonia Laguna, Joao Monteiro, Marco Cuturi, Pierre Ablin, and Eleonora Gualdoni. Cartridges++: KV cache compression without off-context derailment, 2026. URL https://arxiv.org/abs/2609.35621.
  43. [46]Wonbeom Lee, Jungi Lee, Junghwan Seo, and Jaewoong Sim. InfiniGen: Efficient generative inference of large language models with dynamic KV cache management. In 18th USENIX Symposium on Operating Systems Design and Implementation (OSDI 24), pp. 155–172, Santa Clara, CA, July 2024. USENIX Association. ISBN 978-1-939133-40-3. URL https://www.usenix.org/conference/osdi24/presentation/lee.arxiv.org/abs/2406.19707
  44. [47]Karel Lenc and Andrea Vedaldi. Understanding image representations by measuring their equivariance and equivalence. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2015.
  45. [48]Dongxu Li, Yudong Liu, Haoning Wu, Yue Wang, Zhiqi Shen, Bowen Qu, Xinyao Niu, Fan Zhou, Cheng'en Huang, Yanpeng Li, Chongyan Zhu, Xiaoyi Ren, Chao Li, Yifan Ye, Peng Liu, Lihuan Zhang, Hanshu Yan, Guoyin Wang, Bei Chen, and Junnan Li. Aria: An open multimodal native mixture-of-experts model, 2024a. URL https://arxiv.org/abs/2410.05993.

AI tools statement

This work lists 2 AI tools.

  • Claude Fable 5.1 (bare) · AI tool

    Roles
    Data curationSoftwareVisualizationWriting — review & editing
    Verification
    self-declared at submission
  • Claude Opus 5 (bare) · AI tool

    Roles
    Data curationSoftwareVisualizationWriting — review & editing
    Verification
    self-declared at submission

Recorded on the work at submission, not per version. Names and roles are shown as submitted; roles use the CRediT taxonomy.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

Code, data, proofs and workflows the authors linked for testing, review and reproduction. These links are part of this work’s metadata and are released under the same license as the rest of that metadata. Valency doesn’t host the files; each keeps the license set where it’s hosted.

Pick where to look, or just type