alphaFeedback

WorksComputer Science

MLIPS: Multi-Layer Indexer Pool Sharing

AI contributions
Not recorded for this paper
View details

Abstract

Sparse attention limits the keys used by each query, but finding those keys can still require a full-prefix scan at every layer. We introduce MLIPS:MLIPS: MultiMulti-LayerLayer IndexerIndexer PoolPool SharingSharing, a training-free method that shares candidate search while retaining each consumer's own scoring and selection. A producer publishes a top-MM pool larger than the attention budget KK; subsequent layers select their own top-KK from that pool. Measurements across three sparse-attention model families show substantially higher coverage from broad pools than overlap between final selections. We implement layerwise sharing, persistent decode reuse, and a coarse producer in vLLM for DeepSeek-V4-Flash. Across four long-context suites, three consumer layers per producer give 1.141.14-1.40×1.40\times speedups and 14.814.8-27.4%27.4\% lower GPU energy, with observed accuracy changes of −1.49-1.49 to +0.29+0.29 percentage points in single runs. More extensive sharing exposes task-dependent quality losses. Sampled prefill traces also reveal recurring selected KV positions across query groups and layers. We characterize this shared working-set structure and use it to motivate Top-GG, an exploratory bounded pool construction for prefill. Its deployment, task accuracy, and serving benefits remain open.

Introduction

Sparse attention makes long-context language models more efficient by restricting each query to a small set of keys. Yet selecting those keys can remain expensive. In DeepSeek Sparse Attention, a Lightning Indexer scores the visible prefix before choosing the top-KK positions used by attention [4, 5]. Attention then operates on a bounded selection, while the indexer’s search grows with context length. Repeating that search across sparse layers and queries leaves substantial work to optimize.

Sharing selections is one established response. IndexCache lets intervening layers inherit a retained indexer’s top-KK, with training-free calibration or training-aware distillation [2]. DeepSeek-V4.1-Flash trains

deeper indexers to re-select from a larger pool produced by an earlier layer [6]. These approaches motivate a deployment question: how much candidate search can an existing checkpoint share without retraining its indexers or changing its attention operator?

Our starting observation is that agreement on broad candidate sets is much stronger than agreement on final selections. On DeepSeek-V4-Flash traces spanning contexts up to one million tokens, an adjacent producer’s top-512 contains 23–34% of a consumer’s independent top-512, depending on the suite. A 16,384-entry producer pool raises that coverage to 72–85%. The same distinction appears in MiniMax-M3 and GLM-5.1 at their native selection granularities (Section 3). A consumer can therefore retain many of its preferred candidates without repeating the full scan, provided that it can rank the candidates for itself.

We introduce MLIPS (Multi-Layer Indexer Pool Sharing). A producer runs the full indexer, selects its own top-KK, and publishes a wider top-MM pool. Each consumer scores those candidates with its own indexer and selects its own top-KK. Consumers preserve their attention computation and the checkpoint’s organization of KV state. The restriction is in the search domain: a consumer can re-rank pooled entries, but cannot recover an omitted one. Layerwise sharing applies during prefill and decode. Persistent decode reuse extends a pool across later generation steps; a coarse producer further reduces candidate-generation work by scoring groups of keys.

We implement these paths in vLLM and evaluate DeepSeek-V4-Flash on four long-context suites. With three consumer layers per producer and no reuse across decode steps, MLIPS gives 1.14–1.40× speedups and 14.8–27.4% lower GPU energy. Observed accuracy changes range from −1.49 to +0.29 points (Table 1).

The traces also expose a broader opportunity: nearby queries and sparse layers repeatedly select a shared working set of KV positions. We characterize this structure and suggest Top-G, a bounded pool assembled from a query group’s producer selections (Section 6). This is an empirical observation and an exploratory construction; turning it into a serving mechanism remains future work.

Our contributions are:

  • Evidence for candidate reuse. We distinguish final-selection overlap from broad-pool coverage across three model families and characterize its dependence on query position and sharing extent.

  • An inference-time sharing method and serving evaluation. We develop MLIPS’s producer–consumer design, implement layerwise and persistent decode reuse with a coarse producer option, and measure accuracy, wall time, and GPU energy.

  • Shared working-set structure in prefill. We measure recurring selected KV positions across queries and layers and outline Top-G as a way to exploit that structure.

Background and Related Work

Sparse attention and candidate search. An indexer assigns relevance scores to causally visible keys and selects the top-KK indices for attention [4]. The indexer scores and the attention weights are separate: attention computes its own weights after selection. We denote the visible search domain by NN entries. In DeepSeek-V4-Flash’s compressed sparse-attention (CSA) layers, these are compressed entries, with approximately N=L/4N = L/4 for context length LL, and K=512K = 512 [5]. A separate local-attention window remains active. A full indexer scans NN entries even though the global attention branch uses only KK. This creates the opportunity to share candidate search.

Pools, selections, and schedules. A producer publishes MM candidate indices, where K<M≪NK < M \ll N; a consumer scores those candidates and selects its own top-KK. Selection inheritance instead directly adopts the producer’s top-KK. Pools contain indices, not shared attention scores or KV vectors. We use hh for the number of consumer sparse layers served by each producer and qhq_h for the number of subsequent decode steps served before a rebuild. Exact producer–consumer distance is denoted dd when discussing an individual layer pair; sparse-layer distance need not equal Transformer-layer distance. Schedule averages at different hh can include different producer placements and several distances.

What coverage measures. Let CKC_K be a consumer’s top-KK under full search and let PKP_K and PMP_M be the producer’s selection and wider pool. We measure

RKK=∣CK∩PK∣K,RKM=∣CK∩PM∣K.(1)R_{KK} = \frac{\lvert C_K \cap P_K\rvert}{K}, \qquad R_{KM} = \frac{\lvert C_K \cap P_M\rvert}{K}. \tag*{(1)}

Selection overlap RKKR_{KK} describes agreement between final selections. Pool coverage RKMR_{KM} describes the consumer’s preferred entries available for re-selection. Nested producer sets imply RKM≥RKKR_{KM} \ge R_{KK}. Neither metric measures retained attention mass or downstream accuracy. Across model families, counts use native selection units—compressed entries, blocks, or tokens—so equal pool sizes need not have equal cost.

Cross-layer reuse. IndexCache studies top-KK inheritance, using calibration to choose retained indexers without weight updates or distillation to train them [2]. IndexShare and LongCat Sparse Attention also share selections through trained architectures [17, 10]. DeepSeek-V4.1-Flash is the closest pool-based design: during decode, a full indexer constructs a wider candidate pool and deeper Reindex layers score that pool independently; the restriction is introduced during post-training [6]. MLIPS evaluates pool re-selection on existing checkpoints and extends reuse across successive decode steps. It preserves the host checkpoint’s attention-state organization.

Coarse search and query sharing. HISA scores mean-pooled block representatives before fine selection [15]. MLIPS’s coarse producer combines this type of filtering with pool sharing across layers. PIVOT forms a proxy from jointly available queries and runs one shared prefix scan; its Refine variant re-scores a broader candidate set for each query [9]. This establishes query-group candidate search. Our persistent decode pool instead serves queries that arrive at later steps. The exploratory Top-G study examines producer-selection memberships across query groups and layers, rather than constructing a proxy query.

Routing and KV storage. Cross-Layer Attention and YOCO share KV state across layers [3, 13]; You Only Index Once combines shared routing with YOCO [14]. MLIPS shares candidate indices without requiring KV sharing. Restricting the active working set may support offloading, but does not itself reduce total KV storage. We analyze that opportunity separately in Appendix F. Together, these distinctions position MLIPS as a study of training-free candidate reuse and its measured quality–efficiency tradeoffs.

Evidence for Candidate Reuse

We first ask whether existing indexers provide enough shared candidate structure to justify restricting a consumer’s search. We measure the index recalls in Equation (1) on DeepSeek-V4-Flash, MiniMax-M3, and GLM-5.1 captures ([5, 8, 16]), using each family’s native selection unit. Captures use the ten largest prompts from each of three suites. A context band denotes query positions within prompts, rather than a separate prompt-length condition. Full heatmaps, capture details, and pooling conventions are in Appendix § 12; Figure 1 highlights the main trends.

Selection overlap and pool coverage across models and query positions

Figure 1. A wider pool increases available consumer choices, but coverage declines at later positions. DeepSeek-V4-Flash, h=1h = 1, K=512K = 512, M=16,384M = 16{,}384; values are rounded from the capture summaries. Bands refer to positions within prompts. Full cross-model results appear in Appendix § 12.

Broad pools retain more consumer choices. We use the consumer’s independently computed full-search top-KK as the reference. Pool coverage measures the fraction of these indices present in the producer’s wider top-MM pool; final-selection overlap counts only those also in the producer’s top-KK. At query positions below 200K, broad pools retain 89–94% of the consumer’s choices for adjacent producer–consumer pairs across the three families and suites. The producer’s final top-KK retains only 31–65%. The pools contain 16,384 compressed entries for DeepSeek-V4-Flash, 128 blocks for MiniMax-M3, and 16,384 tokens for GLM-5.1.

Across query positions in up-to-1M captures, DeepSeek-V4-Flash’s pool coverage is 72–85%, compared with 23–34% final-selection overlap. MiniMax-M3 gives 74–85% coverage, compared with 47–56% overlap. Thus a wider pool makes many more of the consumer’s preferred indices available for re-selection. This measures candidate availability, not attention-weight agreement or task accuracy; task-level consequences are evaluated in § 5.

Sharing has a context and depth boundary. Coverage declines toward later query positions. On RULER-1M, DeepSeek-V4-Flash’s adjacent-layer pool coverage falls from 0.90 to 0.76 to 0.66 across the 0–200K, 200–500K, and 500K–1M position bands. Serving more consumer layers from one producer also generally lowers coverage, because the later consumers are farther from the producer. However, each schedule averages over a different set of layer pairs. With one consumer per producer (h=1h = 1), for example, the third sparse layer is a producer; with two consumers (h=2h = 2), it consumes the first layer’s pool. Such changes can produce local increases in the average even as sharing grows. Pool width and sharing extent should therefore be evaluated together, checking individual layer pairs as well as the schedule average.

Nearby queries share candidates too. We also hold a pool fixed and measure how many full-search choices it contains for later queries in the same layer. Across query positions in the RULER-1M captures, DeepSeek-V4-Flash retains 84.6% of these choices one query later and 78.5% three queries later. MiniMax-M3 retains 91.8% and 89.7% at the same offsets. For comparison, adjacent-layer reuse at the same query gives 72.5% coverage on DeepSeek-V4-Flash and 74.2% on MiniMax-M3.

These measurements come from sampled bursts of four consecutive prompt positions during prefill. They test reuse at offsets of one to three positions within each burst, not longer intervals or model-generated continuations. The results motivate short-range temporal reuse, but do not show how a persistent pool affects generation quality; we test that separately in § 5.3. A stale pool can miss both new keys and older keys that become relevant.

These findings support a method that shares broad candidates while preserving fresh consumer scoring. The serving evaluation tests whether the resulting search restriction pays off in practice (§ 5). § 6 then asks how far the shared selected-index structure extends across larger prefill query groups.

MLIPS

Share candidates, retain independent selection

A producer runs the checkpoint’s indexer over the visible domain, keeps its own top-KK, and publishes the top-MM candidate indices. Each consumer gathers its own indexer keys at those positions, computes fresh scores, and selects its own top-KK for attention. Only candidate addresses are shared: the consumer uses its own query, indexer keys, attention weights, and KV entries. Figure 2 summarizes the mechanism.

MLIPS producer–consumer design showing candidate sharing, layer sharing, and persistent decode reuse

Figure 2. MLIPS producer–consumer design. Orange cells build a pool; blue cells re-score its candidates. Dashed boxes show reuse at h=2h = 2 and, on the right, qh=2qh = 2. Consumers retain independent selections, which may overlap.

The approximation is the restricted search domain. Re-scoring preserves the consumer’s ranking within the pool, but cannot recover an omitted key. For nested producer sets, PK⊆PMP_K \subseteq P_M implies RKM≥RKKR_{KM} \ge R_{KK}; this is a coverage property, not a guarantee of equal task accuracy. Appendix § 10 gives the formal argument and operation accounting.

Layerwise and persistent decode reuse

Layer sharing (1D MLIPS). We partition the nn indexer-equipped sparse layers into groups of at most h+1h + 1. The first layer in each group produces a pool; the following hh consumers re-select from it. The producer count is p=⌈n/(h+1)⌉p = \lceil n/(h + 1) \rceil, and the consumer count is c=n−pc = n - p. The final group may be shorter. Pools are built independently for each query, so layer sharing applies during both prefill and decode. Changing hh changes producer placement as well as the maximum consumer distance; it is not simply a continuous increase in one fixed pair’s distance.

Persistent decode pools (2D MLIPS). A producer can retain its pool for qhqh subsequent decode steps. It rebuilds once every qh+1qh + 1 steps and re-scores the stored candidates in between; consumer layers also re-score the pool at each step. Each later query therefore receives fresh scores, although the candidate membership is older. This persistence serves queries as they arrive, extending the reuse schedule along the query axis.

A stored pool can omit older keys that become relevant and compressed keys created after the build. The local-attention window still provides access to recent tokens, but does not guarantee that restricted global selection matches full search. Our measurements use qh≤3qh \le3 and compression ratio r=4r = 4. Admitting newly materialized keys and triggering adaptive refreshes are possible extensions, not evaluated corrections to these results.

Indexer scoring cost

For QQ queries and RR candidates, the dominant dot-product work per sequence is

I(Q,R)=2HiDiQR,(2)I(Q,R) = 2H_iD_iQR, \tag*{(2)}

where HiH_i and DiD_i are the indexer head count and dimension. Summing over the nn indexer-equipped layers, the full-search baseline costs nI(Q,N)nI(Q,N). Layer sharing replaces this with

C1D=pI(Q,N)+cI(Q,M).(3)C_{\mathrm{1D}} = pI(Q,N) + cI(Q,M). \tag*{(3)}

Averaging over one decode rebuild cycle gives the scoring-work reduction

Rops(h,qh)=nN(qh+1)pN+[pqh+c(qh+1)]M.(4)R_{\mathrm{ops}}(h,qh) = \frac{nN(qh + 1)}{pN + [pqh + c(qh + 1)]M}. \tag*{(4)}

For a concrete example, DeepSeek-V4-Flash has n=21n = 21 indexer-equipped CSA layers; this counts only the layers that perform indexed sparse selection, not all backbone layers. Its indexer uses Hi=64H_i = 64, Di=128D_i = 128, and compression ratio r=4r = 4. At L=220L = 2^{20} tokens, the compressed domain therefore contains N=L/4=262,144N = L/4 = 262{,}144 entries. With M=16,384M = 16{,}384, Equation 4 gives scoring-work reductions of 3.03×3.03\times for (h,qh)=(3,0)(h,qh) = (3,0) and 3.25×3.25\times for (1,1)(1,1). These ratios describe indexer dot products. They exclude top-KK/top-MM selection, gathering, other score arithmetic, and memory traffic, and do not predict proportional end-to-end speedups.

Coarse candidate generation

A coarse producer first searches groups of keys, then refines its selection within the retained groups. We call this variant MLIPS with a Coarse Producer (MLIPS-CP).

It reduces the producer scan by grouping PP consecutive compressed keys and scoring one mean representative per group. The producer keeps bb groups with bP=MbP=M, publishes their members as the candidate pool, and performs a fine selection for its own top-KK. Consumers perform their usual re-selection within that pool. This combines coarse-to-fine indexing [15] with cross-layer candidate sharing. Its modeled reduction is

RCP(P,h,qh)=nN(qh+1)pN/P+n(qh+1)M.(5)R_{\mathrm{CP}}(P,h,q_h)=\frac{nN(q_h+1)}{pN/P+n(q_h+1)M}. \tag*{(5)}

The main coarse configuration uses P=2P=2 and b=8,192b=8{,}192. Pooling can filter out useful groups; consumer refinement cannot restore them. We evaluate this additional restriction separately from exact-producer sharing. Appendix A contains the parameter grids and an explanation of representative-score dilution.

Appendix B describes the vLLM integration, buffers, CUDA-graph handling, and selection checks.

Evaluation

Setup

We evaluate four long-context suites: LongBench-v2 (503 items), RULER-1M (130 items, ten per task), MRCR-v2 8-needle (784 items), and GraphWalks (1,150 items) [1, 7, 12 a]. The serving stack uses DeepSeek-V4-Flash in vLLM on one NVIDIA GB300 node, with four GPUs at 1,400 W each and tensor parallelism 4. The pool width is M=16,384M=16{,}384. Chunked prefill uses an 8,192-token budget, with at most 24 concurrent sequences and 24 requests in flight; prefix caching is off. Expert parallelism and speculative decoding are disabled, and CUDA graphs are enabled. Stock and MLIPS use the same checkpoint and software; configuration flags select the indexer path (Appendix B). Appendix D.1 gives precision, software, and measurement details.

We report each suite’s task score on a 0–100 scale, end-to-end workload speedup relative to stock, and GPU energy saved. Energy integrates four-GPU power samples taken every 500 ms, from the end of warm-up to workload completion; it excludes startup, compilation, and graph capture, as well as CPU, host-memory, and network energy. Every configuration is a single serving run. Two stock boots differed by up to 1.3% in time and 0.3% in energy, with score differences of approximately one to two points or less across suites. This limited comparison does not establish accuracy equivalence or statistical significance. We report observed differences and retain each experiment campaign’s own baseline.

Layer sharing: consistent serving gains

Table 1 evaluates h=1,2,3h=1,2,3 with no persistent decode reuse (qh=0q_h=0). Every configuration is faster and uses less GPU energy than its stock run. At h=3h=3, speedups range from 1.139× on MRCR-v2 to 1.398× on RULER-1M, with energy savings of 14.8–27.4%. The corresponding score changes, in table order, are −0.40, −0.29, −1.49, and +0.29 points. These observations support sharing a broad candidate pool while preserving each consumer’s independent selection; the search restriction still changes some task scores.

Table 1: Layer sharing with M=16,384M = 16{,}384 and qh=0q_h = 0. Scores, speedups, and GPU energy savings use each suite’s stock run. Every row is one serving run.

SuitehhScoreSpeedupGPU energy saved
LongBench-v2stock50.501.000×0.0%
149.111.066×8.9%
249.701.162×15.3%
350.101.197×17.1%
RULER-1Mstock80.411.000×0.0%
179.911.177×16.9%
278.461.342×25.1%
380.121.398×27.4%
MRCR-v2stock75.021.000×0.0%
173.591.015×6.6%
274.641.117×13.2%
373.531.139×14.8%
GraphWalksstock53.351.000×0.0%
154.501.131×13.9%
252.561.290×21.9%
353.641.326×23.7%

Table 1.

The size of the gain depends on how much work reaches the sharing path. All RULER-1M prompts exceed its roughly 65K-token activation threshold, whereas about half of MRCR-v2 prompts do not. The speedup differences are consistent with that distinction, although the aggregate measurements do not isolate indexer time from other serving costs. Measured speedups are therefore the relevant performance result; the operation model in Section 4 explains the opportunity rather than predicting end-to-end gains directly.

Quality is not monotone in hh. RULER-1M loses 1.95 points at h=2h=2, but only 0.29 at h=3h=3. GraphWalks also has a reported long-context BFS dip at h=2h=2 (Appendix D.2); its cause remains unresolved. Extending sharing to h=5,6h=5,6 increases speed further, reaching 1.572× on RULER-1M at h=6h=6, but its score then falls by 4.42 points. The other three suites have smaller aggregate changes in these runs. Thus the evidence favors modest sharing as the initial operating region, while deeper schedules require workload-specific quality checks. Appendix D.2 retains all extended configurations.

Energy and latency also need separate measurements. At h=1h=1, mean GPU power falls by 2.2–5.2%, so energy savings exceed the fraction of wall time saved. At deeper schedules, mean power can rise even as the run finishes sooner. Lower indexer work consequently does not imply a fixed power reduction.

Decode reuse: a modest gain with quality risks

Persistent reuse across decode steps (Section 4.2) adds little performance benefit on the four long-context suites. With h=0h=0, all qh=1,2,3q_h=1,2,3 runs achieve only 0.960–1.000× stock speed; adding reuse to layer sharing changes time little while sometimes reducing task scores substantially. At (h,qh)=(3,2)(h, q_h) = (3, 2), score changes are −1.79, −9.68, −5.29, and −3.01 points on LongBench-v2, RULER-1M, MRCR-v2, and GraphWalks, respectively. The full grid appears in Table 6 and its continuations. These results show that query locality alone does not justify a fixed refresh schedule for all workloads.

suiteconfigaccΔ\Deltaaccwall (s)speedupenergy (Wh)savedΔ\Deltapower
LongBench-v2stock50.50—2,970—3,326——
h=0,qh=1h=0, q_h=150.30−0.203,0760.966×3,354−0.8%−2.6%
h=0,qh=2h=0, q_h=250.70+0.203,0170.984×3,339−0.4%−1.2%
h=0,qh=3h=0, q_h=348.91−1.593,0310.980×3,341−0.4%−1.6%
h=1,qh=1h=1, q_h=149.50−1.002,8321.049×3,0398.6%−4.2%
h=1,qh=2h=1, q_h=249.50−1.002,8481.043×3,0458.4%−4.5%
h=1,qh=3h=1, q_h=350.70+0.202,8381.047×3,0418.6%−4.3%
h=2,qh=1h=2, q_h=148.91−1.592,5561.162×2,81915.3%−1.5%
h=2,qh=2h=2, q_h=249.90−0.602,5581.161×2,81515.4%−1.7%
h=2,qh=3h=2, q_h=349.70−0.802,5521.164×2,81315.4%−1.6%
h=3,qh=1h=3, q_h=149.30−1.202,4841.196×2,75917.0%−0.8%
h=3,qh=2h=3, q_h=248.71−1.792,5161.181×2,76816.8%−1.8%
h=3,qh=3h=3, q_h=349.50−1.002,5231.177×2,77016.7%−2.0%

Table 6. Persistent decode reuse on LongBench-v2 (qh≥1q_h \ge1). The h=0h=0 rows use query reuse alone; qh=0q_h=0 results appear in Table 5. Ratios use the displayed stock row.

To isolate decode, we use 30 synthetic prompts of approximately 0.9M tokens, offering 24 sessions with prefix caching disabled. We subtract the wall time of a one-token generation from that of a 40,000-token generation. Table 2 reports the mean of two draws after discarding a warm-up draw, with one boot per arm and h=0h = 0 throughout.

Table 2: Isolated decode at h=0h = 0. Changes are relative to stock. This synthetic timing experiment does not measure answer quality.

qhq_hDecode time (s)Change
0 (stock)857.2—
1867.2+1.2%
2850.5−0.8%
3829.0−3.3%

Table 2.

At qh=3q_h = 3, reuse reduces the measured decode time by 3.3%; at qh=1q_h = 1, it increases time by 1.2%. This supports a limited performance opportunity for longer generations, but neither combined layer-and-query speedup nor generated-answer quality is established by this instrument. A practical refresh policy must address newly relevant existing keys as well as keys appended since the pool was built.

Coarse producers: energy savings and failure cases

The coarse producer replaces the dense producer scan with group representatives (§ 4.4). At P=2P = 2, b=8,192b = 8{,}192, h=1h = 1, and qh=0q_h = 0, its four speedups are 1.027, 1.229, 0.979, and 1.087×, with GPU energy savings of 10.2, 22.5, 7.7, and 16.5%, respectively. Score changes against this campaign’s baseline are −0.60, +0.28, −0.75, and −0.01 points. Energy falls even on MRCR-v2, where latency worsens. Relative to the separately measured exact producer, the coarse path is not consistently faster.

More aggressive settings expose substantial failures. At P=2P = 2, RULER-1M loses 5.71 points at h=2h = 2, and MRCR-v2 loses 3.30 at h=3h = 3. Increasing PP from 2 to 16 at fixed h=1h = 1 and bP=MbP = M raises energy savings on every suite, but the P=16P = 16 score changes are +0.39, −14.30, −3.47, and −2.52 points. Replacing mean representatives by elementwise maxima does not remove the RULER-1M failure. Tables 10–12 give all settings and raw measurements. Figure 3 shows the quality changes for deeper layer sharing and larger coarse groups.

Accuracy change by layer-sharing schedule

(a) Exact producer, qh=0qh = 0.

Accuracy change by coarse group size

(b) Coarse producer, h=1h = 1, qh=0qh = 0, fixed MM.

Figure 3. Observed quality limits of more extensive sharing and coarse filtering. Each configuration is one serving run; changes use the corresponding campaign’s stock baseline. Curves connect measured settings and are not uncertainty estimates. Full timing, energy, and accuracy values are in Appendix § 13.§ 2.

Coarse-producer results use a separate campaign baseline and one run per configuration. Attributing the observed losses to representative dilution requires verified matched controls and repeats. Exact layer sharing is the clearest measured benefit; decode reuse and coarse production expose additional workload-dependent tradeoffs.

Shared Candidate Working Sets

MLIPS shares a candidate pool across layers for each query. The traces also suggest that nearby queries repeatedly select a common set of KV positions. This raises a broader question: can a bounded pool represent the working set of a group of queries across several sparse layers? We investigate this structure through an exploratory Top-G construction. The evidence concerns shared selected positions; it does not establish similarity among the corresponding KV vectors.

Let ℓ\ell index CSA layers, and let KqℓK_{q}^{\ell} and MqℓM_{q}^{\ell} be the producer’s Top-KK and Top-MM index sets for query qq. For a group of recorded queries CC, we construct one pool

Gℓ,C⊆⋃q∈C(Kqℓ∪Mqℓ),∣Gℓ,C∣≤G.(6)\mathcal{G}_{\ell,C} \subseteq\bigcup_{q \in C} \left(K_{q}^{\ell} \cup M_{q}^{\ell}\right), \qquad\lvert\mathcal{G}_{\ell,C} \rvert\leq G. \tag*{(6)}

The constructor prioritizes producer Top-KK memberships from queries whose selections remain poorly covered, using residual Top-MM memberships to break ties. This provides a concrete probe of shared structure without using selections from consumer layers. Appendix § 14 gives the algorithm and sampling protocol. We freeze the pool and measure

Rℓ,q(d)=∣Kqℓ+d∩Gℓ,C∣∣Kqℓ+d∣,d≥1,(7)R_{\ell,q}(d) = \frac{\left\lvert K_{q}^{\ell+d} \cap\mathcal{G}_{\ell,C} \right\rvert}{\left\lvert K_{q}^{\ell+d} \right\rvert}, \qquad d \geq1, \tag*{(7)}

where dd counts subsequent CSA layers, separated by two physical model layers in these traces.

The capture contains eight LB2 sequences and 21 CSA layers. The primary results cover sequences 0–6, with K=512K = 512, nominal M=16KM = 16K, G=32,000G = 32{,}000, and context length at least GG. Crucially, the trace records four queries per 256 original positions: a nominal 4,096-position window contains 64 recorded queries, not 4,096 measured queries.

Figure 4 shows a shared working set across both axes. For the smallest window, recall decreases from 82.4% at the next CSA layer to 73.5% six layers later, averaging 77.6%. Increasing the nominal window to 16,384 or 65,536 positions reduces mean recall to 69.4% or 52.9%; sequence-wide sharing reaches 33.6%. Thus a fixed pool captures recurring selections but cannot absorb all query-specific variation. Per-sequence measurements show the same window ordering (Appendix § 14).

Shared pool coverage across subsequent CSA-layer distances

Figure 4. A shared pool covers many subsequent selections, with coverage decreasing as its query window grows. Results use sampled queries from LB2 sequences 0–6; window sizes describe original positions, not the number of measured queries. Mean averages distances 1–6.

These observations motivate consolidating producer selections into a shared Top-GG pool, with each consumer scoring and selecting independently. Shared index metadata and coordinated KV staging are possible uses. Their benefits require measurement: G>MG > M can increase consumer scoring, and index coverage alone establishes neither task accuracy nor speedup. Construction over a whole query group can also depend on later queries; a serving design must specify information availability and causal masks. The present result is evidence for exploitable structure and a proposed way to represent it. It leaves deployment and full-query validation open.

Limitations and Future Work

Evidence and generalization. Serving results cover one checkpoint and hardware stack; the cross-model evidence concerns index coverage. Each serving configuration is a single run. Two stock boots provide a limited variability reference, not an equivalence test or uncertainty estimate for every comparison. Repeated paired evaluations and matched implementations of the closest reuse baselines are needed to establish robustness and comparative benefit. The operation model also excludes selection, gathering, and memory costs; phase-level profiling would clarify why scoring reductions translate unevenly into latency savings.

Adaptive reuse. Uniform schedules expose weak layer pairs and unexplained quality changes, including the h=2h=2 dip. A useful next step is to select producer locations and pool widths using calibration, then evaluate the chosen schedule on held-out workloads. Persistent decode reuse needs refresh rules that balance pool age, new-key admission, and shifts in query relevance. Generated-token fidelity and task accuracy should accompany timing results; prefill locality alone cannot settle those questions.

From shared structure to Top-GG. The prefill traces identify recurring selected positions, without establishing KV-vector similarity or a deployed compression scheme. Testing all query rows, additional prompts, and alternative constructors would show how robust the apparent working sets are. A serving design must account for pool-construction cost, causal information flow, per-query masking, task accuracy, and the cost of retrieving pooled entries. The current sampled recall measurements do not establish a serving speedup.

Memory management. Candidate pools may bound a consumer’s immediate working set, but realizing lower GPU residency requires cache management and transfers. The offloading analysis in Appendix F is therefore a capacity opportunity rather than a measured memory reduction. Future evaluation should report peak resident memory and transfer overhead together with latency and quality.

Conclusion

MLIPS shares candidate search across sparse-attention layers while retaining each consumer’s own scoring and selection. Broad producer pools cover substantially more consumer choices than final-selection overlap suggests across three model families. On DeepSeek-V4-Flash, three consumer layers per producer give 1.141.14–1.40×1.40\times serving speedups and 14.814.8–27.4%27.4\% lower GPU energy across four suites, with observed accuracy changes of −1.49-1.49 to +0.29+0.29 points in single runs. More extensive sharing exposes quality limits. Recurring selected KV positions across prefill queries and layers further motivate Top-GG, whose construction and deployment require continued study. The results identify candidate working sets as a useful unit for inference-time reuse.

Acknowledgements

We thank the reviewers, advisors, and supporters for their valuable feedback and support. We are grateful to NVIDIA Corporation for supporting this work. We especially thank Ritchie Zhao and Bita Darvish Rouhani, as well as our managers Yashwant Marathe, Bhargava Gopireddy, and Sachin Idgunji, for their insight, guidance, and support.

Scoring Model and Detailed Reductions

Indexer arithmetic and its scope

For query position tt and visible key jj, the Lightning Indexer computes

s[t,j]=∑u=1Hiw[t,u]ReLU⁡(⟨q[t,u,:],k[j,:]⟩).(8)s[t,j]=\sum_{u=1}^{H_i}w[t,u]\operatorname{ReLU}(\langle q[t,u,:],k[j,:]\rangle). \tag*{(8)}

There is one key vector per indexed position shared across query heads. Scoring QQ queries against RR candidates has matrix dimensions

[B,QHi,Di][B,Di,R]⟶[B,QHi,R],(9)[B,QH_i,D_i][B,D_i,R]\longrightarrow[B,QH_i,R], \tag*{(9)}

where BB is the sequence batch size. Counting multiply–accumulate as two operations gives I(Q,R)=2HiDiQRI(Q,R)=2H_iD_iQR per sequence. DeepSeek-V4-Flash uses Hi=64H_i=64, Di=128D_i=128, n=21n=21 CSA layers, r=4r=4, K=512K=512, and a local window of W=128W=128 tokens. Thus one query–candidate dot-product calculation costs 16,384 operations in this model. ReLU, weighting, and head reduction add O(HiQR)O(H_iQR) arithmetic. Selection, gathering, cache access, and transfers are also excluded from the ratios. Full prefill has quadratic scoring growth in LL; decode has linear growth in cached length per query. The rectangular model approximates causal pair counts and boundary effects. All reduction tables use L=220L=2^{20} tokens, N=L/r=262,144N=L/r=262,144, M=16,384M=16,384, and hence N/M=16N/M=16. This makes the nominal 1M point explicit; the ratios are not independent of context length.

Coverage under nested pools

Proposition 1 (Nested-pool coverage). For fixed producer and consumer score vectors, if PK⊆PMP_K\subseteq P_M, then ∣CK∩PK∣≤∣CK∩PM∣|C_K\cap P_K|\leq|C_K\cap P_M|.

Proof. Intersecting nested sets with the same set preserves inclusion.

This bounds index coverage only. It does not compare attention distributions or task accuracy, and it does not apply to independently constructed pools unless the required nesting holds.

Layer and query schedules

For p=⌈n/(h+1)⌉p=\lceil n/(h+1)\rceil and c=n−pc=n-p, a decode cycle contains qh+1qh+1 steps. Each producer scores NN once and MM on the remaining qhqh steps; each consumer scores MM on every step. The cycle work is proportional to pN+[p qh+c(qh+1)]MpN+[p\,qh+c(qh+1)]M, yielding Equation (4).

Coarse-producer accounting

For uniform groups with h+1h+1 dividing nn, a pool serves T=(h+1)(qh+1)T=(h+1)(qh+1) slots. The reduction becomes

R(T)=TNN+(T−1)M,lim⁡T→∞R(T)=N/M.(10)R(T)=\frac{TN}{N+(T-1)M},\qquad\lim_{T\to\infty}R(T)=N/M. \tag*{(10)}

A 2 × 2 uniform tile gives 3.37×, while the exact 21-layer (h,qh)=(1,1)(h,qh)=(1,1) schedule gives 3.25×. For 1D sharing at h=1,2,3h=1,2,3, the exact producer counts are 11, 7, 6 and the consumer counts are 10, 14, 15. Table 3 includes 1D in its qh=0qh=0 column.

qh=0qh=0qh=1qh=1qh=2qh=2qh=3qh=3
h=0h=01.001.882.673.37
h=1h=11.813.254.425.40
h=2h=22.674.576.007.11
h=3h=33.035.096.597.72

Table 3. Modeled indexer scoring-work reduction for the exact 21-layer stack. The qh=0qh=0 column gives layerwise reuse alone. Values are reduction factors.

Coarse-producer accounting

The producer scores N/PN/P representatives and performs its own fine pass over bP=MbP=M candidates. Its build-step cost is I(Q,N/P)+I(Q,M)I(Q,N/P)+I(Q,M). Every layer performs one fine pass on every step, so the cycle cost is proportional to pN/P+n(qh+1)MpN/P+n(qh+1)M, yielding (5). The grids in Table 4 include configurations with substantial observed quality losses; a large modeled reduction is not an operating-point recommendation.

Nominal query window123456Mean
4,09682.479.479.476.974.373.577.6
16,38474.171.171.268.666.065.569.4
65,53657.154.154.652.049.549.852.9
Sequence36.534.535.532.730.631.733.6

Table 4. Top-KK index recall (%); G=32,000G = 32{,}000.

Representative-score dilution. For a single head and a mean representative kˉ=P−1∑jkj\bar{\mathbf{k}}=P^{-1}\sum_j\mathbf{k}_j, convexity gives

ReLU⁡(⟨q,kˉ⟩)≤P−1∑jReLU⁡(⟨q,kj⟩)≤max⁡jReLU⁡(⟨q,kj⟩).(11)\begin{aligned} \operatorname{ReLU}(\langle\mathbf{q},\bar{\mathbf{k}}\rangle)\leq P^{-1}\sum_j\operatorname{ReLU}(\langle\mathbf{q},\mathbf{k}_j\rangle) \\ &\leq\max_j\operatorname{ReLU}(\langle\mathbf{q},\mathbf{k}_j\rangle). \tag*{(11)} \end{aligned}

Cancellation can suppress a representative even when its group contains a high-scoring key. This single-head inequality describes a possible ranking failure; it does not prove that full multi-head rankings or task accuracy degrade monotonically in PP. Such a claim requires score-level evidence, the relevant head-weight assumptions, and matched serving controls.

HISA: candidates discarded after refine

Figure 5a. HISA: candidates discarded after refine

MLIPS-CP: candidates published as the pool, then refine

Figure 5b. MLIPS-CP: candidates published as the pool, then refine

Coarse-to-fine search and shared candidate production

Figure 5. Coarse-to-fine search and shared candidate production. Both score representatives and gather the highest-scoring groups. HISA refines the gathered candidates for one layer; MLIPS-CP publishes them as a pool and retains a fine selection for each producer and consumer. Group sizes differ in practice; the diagram uses equal granularity for illustration.

\multicolumn{4}{c}{P = 2}\multicolumn{4}{c}{P = 4}
qh=0qh = 00123qh=0qh = 00123
h=0h = 01.783.204.365.33h=0h = 03.205.336.868.00
h=1h = 13.085.176.687.81h=1h = 15.177.819.4210.50
h=2h = 24.366.868.479.60h=2h = 26.869.6011.0812.00
h=3h = 34.877.479.0810.18h=3h = 37.4710.1811.5912.44
\multicolumn{4}{c}{P = 8}\multicolumn{4}{c}{P = 16}
qh=0qh = 00123qh=0qh = 00123
h=0h = 05.338.009.6010.67h=0h = 08.0010.6712.0012.80
h=1h = 17.8110.5011.8612.68h=1h = 110.5012.6813.6214.15
h=2h = 29.6012.0013.0913.71h=2h = 212.0013.7114.4014.77
h=3h = 310.1812.4413.4414.00h=3h = 312.4414.0014.6114.93

Table 4 (PDF p. 11). Modeled scoring-work reductions with a coarse producer, b=M/Pb = M/P. Values are factors relative to full indexing; representative construction and memory costs are excluded.

Implementation Details

We implement producer and consumer kernels for prefill and decode in vLLM’s DeepSeek-V4 sparse-attention path. The checkpoint weights, attention operator, scheduler, and KV-cache path are retained. Baseline and MLIPS use the same software, with configuration flags selecting the indexer path.

Integration and buffers. The implementation overrides the Lightning-Indexer selection stage and a gather module on vLLM’s DeepSeek-V4 path. Producers and consumers have separate prefill and decode kernel sites. An exact producer obtains its own top-KK and the wider top-MM pool from one scoring pass; a consumer gathers and scores its own keys at the pooled positions. A pool row contains MM int32 indices: 64 KiB at M=16,384M = 16{,}384. Total metadata depends on query-row and persisted-pool counts, even though each row’s size is fixed at a given MM.

During prefill, producers overwrite a transient candidate buffer before their consumers use it. During decode, per-producer buffers retain pools across rebuild cycles. Rows with at most MM compressed keys use stock indexing, corresponding to 4M=65,5364M = 65{,}536 tokens at r=4r = 4. This threshold helps explain why workloads with more short contexts obtain smaller gains.

Coarse representatives. Representatives are computed in fp32 from dequantized keys and quantized into the indexer key format. In prefill, running sums track keys appended to each group. In decode, completed representatives are addressed through the KV-page block table, with a running sum for an incomplete group. One Di=128D_i = 128 MXFP4 representative uses 64 value bytes and four scale bytes. There is one representative per PP keys; actual allocated overhead additionally depends on page layout and temporary state. The cache can be replaced by on-the-fly pooling at the cost of rereading the original keys. Coarse production is used above 32,768 compressed entries (131,072 tokens); shorter rows use exact production.

Decode graphs and recency. The persistent path captures rebuild and reuse variants separately. A field in the batch descriptor selects the replay outside the CUDA graph, avoiding a Python decision fixed at capture time. Evaluation disables speculative decoding. Within-step speculative grouping and reuse across successive steps are different schedules; their combined acceptance behavior and performance are not measured here.

For longer reuse windows, one possible policy is to admit newly materialized compressed keys and remove low-priority pool entries. Such a policy needs its own selection rule and validation. It does not address older keys that become relevant after the pool was built.

Selection checks. The exact producer’s top-KK differs from stock by at most 0.02% on the million-token prompts in the reported check, with mismatches attributed to equal scores. A probe at (h,qh)=(1,1)(h, q_h) = (1, 1) performs a full scan on reuse steps and compares it with selection from the stored pool. Over ten RULER-1M prompts, mean overlap is 0.974 and median overlap is 1.000. This quantifies the probe’s selection fidelity; it is not an end-task accuracy test or a general guarantee against implementation errors.

Full Recall Measurements

Captures and native units. The recall study uses the ten largest prompts from each of LongBench-v2, RULER-1M, and MRCR-v2 for each captured model family. It records four consecutive query positions every 256 positions. DeepSeek-V4-Flash indexes compressed entries and selects K=512K = 512; MiniMax-M3 selects 16 blocks of 128 tokens; GLM-5.1 selects 2,048 tokens [5, 8, 16]. The configured broad pools contain 16,384 compressed entries, 128 blocks, and 16,384 tokens, respectively. These widths describe different token coverage and are not equal-cost comparisons. GLM-5.1 captures end near 198K tokens; the other two families include up-to-1M inputs.

Aggregation and distances. The layer-sharing surfaces average over consumers in a schedule with hh consumers per producer. Producers are excluded because their own coverage is trivial. For h>1h > 1, a cell averages multiple exact layer distances dd and a different producer placement from neighboring schedules. The query-axis surfaces instead use explicit producer–consumer layer and query offsets. Their same-query column therefore need not exactly reproduce a schedule-average cell.

Position bands are ranges within prompts. A long prompt contributes queries to several bands; the below-200K figure is a subset of the all-position figure. The broad-pool columns use nested prefixes of a producer ranking when available. MiniMax-M3 forces a local block into its selection. Its effective-containment convention counts the guaranteed local hit; the difference from unadjusted containment is about 0.010–0.016 at 128 blocks and at most 0.035 at narrow widths.

Scope of the evidence. These are count-based index recalls on sampled prefll activations, not attention-mass retention. Four-query bursts support query offsets up to three. Within a fixed, identical causal prefix, prefill and decode evaluate the same indexing computation, but generated-token distributions and multi-step approximation effects require separate tests. The decode probe in Appendix B provides a limited additional check.

Schedule variation. Larger sharing groups generally lower coverage, but averages can rise locally when producer placements change. For example, MiniMax-M3 at its 128-block pool gives schedule-average coverage of 0.81 at h=16h = 16 and 0.89 at h=19h = 19. These observations motivate evaluating the actual schedule, rather than treating hh as a smooth distance parameter. Original plots display schedules through h=20h = 20; captures extend to h=56h = 56 on MiniMax-M3 and h=77h = 77 on GLM-5.1.

Six heatmaps showing layer-sharing recall across sampled positions for DeepSeek-V4-Flash and MiniMax-M3 on LongBench-v2, RULER-1M, and MRCR-v2

Figure 7. Layer-sharing recall over all sampled positions in up-to-1M captures. Broad candidate pools retain more consumer choices than final-selection inheritance on these captures; neither measurement alone establishes downstream accuracy. Axes follow Figure 6.

Layer-sharing recall heatmaps across model families and suites

Figure 6. Layer-sharing recall below 200K query positions. Rows are model families, columns are suites, and each panel varies schedule hh and producer-pool width MM. The rightmost column is the native top-KK selection overlap; wider columns show pool coverage. Units differ across families as labeled.

Joint layer/query candidate coverage below 200K query positions

Figure 8. Joint layer/query candidate coverage below 200K query positions. Each panel varies exact sparse-layer distance (labeled hh in the original plot, dd in the manuscript) and query offset qhq_h at the configured broad pool. The zero-layer-distance row isolates cross-query reuse.

Six heatmaps showing joint layer/query candidate coverage for DeepSeek-V4-Flash and MiniMax-M3 across LongBench-v2, RULER-1M, and MRCR-v2

Figure 9. Joint layer/query candidate coverage over all sampled positions in up-to-1M captures. Exact layer distance is labeled hh in this original plot. The self pair is 1.00; later queries retain substantial but imperfect coverage. The captured query offsets end at three.

Serving Setup and Complete Results

Model, software, and measurement protocol

The served checkpoint is the released DeepSeek-V4-Flash. Its routed MoE expert weights are FP4, with E8M0 scales over blocks of 32 values, executed through vLLM’s MXFP4 kernels. Attention projections, the shared expert, and the indexer query projection use FP8 E4M3 weights with 128 × 128 blocks. The MoE router, indexer compressor, and normalization weights are bf16. Computation runs in bf16, with activations quantized on the fly to FP8 for the FP8 GEMMs and to MXFP8 for the expert GEMMs. The KV cache is FP8 and the indexer key cache is FP4.

We use vLLM 0.22.1 in the NVIDIA vLLM 26.06 container. Each run occupies four GPUs of a single NVIDIA GB300 node, with a 1,400 W power limit per GPU and tensor parallelism 4. Expert parallelism and speculative decoding are off; CUDA graphs are on. The chunked-prefill budget is 8,192 tokens, the maximum number of concurrent sequences is 24, the context limit is 1,048,576 tokens, and prefix caching is off. The client maintains 24 requests in flight. The exact-producer pool has M=16,384M = 16{,}384 entries. Rows below the pooling threshold use the stock path as described in Appendix B.

The four suites contain 503 LongBench-v2 items, 130 RULER-1M items (ten in each of 13 task categories), 784 MRCR-v2 8-needle items, and 1,150 GraphWalks items. Scores are reported on a 0–100 scale, with Δ\Deltaacc in percentage points. Speedup is stock workload wall time divided by configuration wall time. Energy saved is one minus the configuration-to-stock GPU-energy ratio. The Δ\Deltapower column is the relative change in mean total GPU power. Retaining these separate quantities matters because shorter runs need not have lower mean power.

Each GPU’s power is sampled every 500 ms with nvidia-smi; energy integrates the four-GPU total from the end of warm-up to workload completion. Boot, JIT compilation, and CUDA-graph capture are excluded. The measurement does not include host CPUs, host memory, or network equipment. A second stock boot gives a limited reproducibility reference: suite scores differed by approximately one to two points or less, wall time by at most 1.3%, and GPU energy by at most 0.3%. Every configuration row remains a single serving run, so these two stock boots do not provide uncertainty estimates for treatment effects.

The stock configurations disable all MLIPS paths by flag. The exact sharing grid and max-representative experiment use the first stock rows shown in Table 5 and 12. The mean-representative and group-size campaign uses the separate stock rows shown in Table 10 and 11. We preserve these baselines rather than pooling measurements across campaigns.

suiteconfigaccΔ\Deltaaccwall (s)speedupenergy (Wh)savedΔ\Deltapower
LongBench-v2stock50.50—2,970—3,326——
h=1h=149.11−1.392,7871.066×3,0298.9%−3.0%
h=2h=249.70−0.802,5561.162×2,81815.3%−1.5%
h=3h=350.10−0.402,4811.197×2,75617.1%−0.8%
h=5h=550.30−0.202,3521.263×2,64520.5%+0.4%
h=6h=649.11−1.392,2671.310×2,58822.2%+1.9%
RULER-1Mstock80.41—5,982—6,624——
h=1h=179.91−0.505,0841.177×5,50716.9%−2.2%
h=2h=278.46−1.954,4561.342×4,96025.1%+0.5%
h=3h=380.12−0.294,2781.398×4,80727.4%+1.5%
h=5h=577.08−3.333,9761.504×4,53431.6%+3.0%
h=6h=675.99−4.423,8051.572×4,39233.7%+4.2%
MRCR-v2stock75.02—4,911—5,093——
h=1h=173.59−1.434,8391.015×4,7556.6%−5.2%
h=2h=274.64−0.384,3961.117×4,42313.2%−3.0%
h=3h=373.53−1.494,3121.139×4,34114.8%−2.9%
h=5h=574.05−0.974,1511.183×4,19717.6%−2.5%
h=6h=674.90−0.123,9841.233×4,09719.6%−0.9%
GraphWalksstock53.35—12,264—12,976——
h=1h=154.50+1.1510,8471.131×11,17813.9%−2.6%
h=2h=252.56−0.799,5041.290×10,12821.9%+0.7%
h=3h=353.64+0.299,2481.326×9,89823.7%+1.2%
h=5h=551.68−1.678,8121.392×9,43027.3%+1.1%
h=6h=653.07−0.288,5621.432×9,19129.2%+1.4%

Table 5. Complete layer-sharing results (qh=0qh = 0). Scores and changes use the stock row within each suite; energy is GPU-only and measured after warm-up. Every configuration is one serving run.

suiteconfigaccΔ\Deltaaccwall (s)speedupenergy (Wh)savedΔ\Deltapower
LongBench-v2stock50.70—2,990—3,339——
h=1h=150.10−0.602,9101.027×2,99810.2%−7.8%
h=2h=250.70+0.002,6021.149×2,79316.3%−3.9%
h=3h=349.90−0.802,5901.154×2,73618.1%−5.4%
h=1,qh=1h=1, qh=151.49+0.792,9561.012×2,98810.5%−9.5%
h=2,qh=1h=2, qh=151.49+0.792,6461.130×2,78016.7%−5.9%
h=3,qh=1h=3, qh=148.71−1.992,5721.163×2,73018.3%−5.0%
RULER-1Mstock79.13—5,990—6,644——
h=1h=179.41+0.284,8761.229×5,14722.5%−4.8%
h=2h=273.42−5.714,2831.399×4,72328.9%−0.6%
h=3h=378.56−0.574,2471.411×4,60930.6%−2.2%
h=1,qh=1h=1, qh=180.41+1.284,9351.214×5,11623.0%−6.5%
h=2,qh=1h=2, qh=173.55−5.584,3201.387×4,69229.4%−2.1%
h=3,qh=1h=3, qh=178.46−0.674,2121.422×4,58731.0%−1.8%
MRCR-v2stock74.58—4,980—5,125——
h=1h=173.83−0.755,0890.979×4,7297.7%−9.7%
h=2h=273.45−1.134,6421.073×4,43813.4%−7.1%
h=3h=371.28−3.304,5351.098×4,33915.3%−7.0%
h=1,qh=1h=1, qh=173.45−1.135,1360.970×4,6948.4%−11.2%
h=2,qh=1h=2, qh=173.65−0.934,6631.068×4,39314.3%−8.4%
h=3,qh=1h=3, qh=171.22−3.364,5501.095×4,32415.6%−7.7%
GraphWalksstock53.82—12,094—12,976——
h=1h=153.81−0.0111,1251.087×10,83416.5%−9.2%
h=2h=251.10−2.729,7871.236×9,84324.1%−6.3%
h=3h=353.83+0.019,6701.251×9,68825.3%−6.6%
h=1,qh=1h=1, qh=153.69−0.1311,1201.088×10,70217.5%−10.3%
h=2,qh=1h=2, qh=152.54−1.289,6491.253×9,79924.5%−5.3%
h=3,qh=1h=3, qh=154.08+0.269,5001.273×9,64925.6%−5.3%

Table 10. Coarse producer with mean representatives, P=2P = 2 and b=8,192b = 8,192. Ratios and score changes use this campaign’s stock rows. Every configuration is one serving run.

The coarse-producer comparisons do not include matched repeats or complete per-arm launch configurations in the current reporting. We interpret the group-size trend as an observed quality tradeoff, with representative dilution as one possible explanation. Verifying the cause requires matched launch configurations and repeated controls.

Complete results and diagnostic observations

Layer sharing. Table 5 includes both the h=1,2,3h = 1, 2, 3 configurations in the main paper and deeper schedules where h=5,6h = 5, 6. Every measured setting improves wall time and GPU energy relative to its stock row. At h=6h = 6, speedups are 1.310, 1.572, 1.233, and 1.432× on LongBench-v2, RULER-1M, MRCR-v2, and GraphWalks, respectively. RULER-1M loses 3.33 and 4.42 points at h=5,6h = 5, 6; the other suites have smaller aggregate score changes in these runs.

Per-task RULER summaries suggest particular sensitivity in niah_multikey_2 and niah_multikey_3, which contain many distractor keys. The three single-needle tasks score 100 for stock and the reported layer-sharing settings, except for one prompt at h=6h = 6. The multi-key task with one distractor type, multi-query retrieval, and multi-value retrieval remain at 100 or within one reported prompt of that value. At h≤3h \le3, the two more difficult multi-key tasks change by at most one reported prompt; at h=5,6h = 5, 6 they lose one to two reported prompts each. At h=6h = 6, the source also reports one-prompt losses in a single-needle task, frequent-word retrieval, and each QA task. Other tasks remain within two reported prompts of stock; stock variable tracking and common-word scores are 22 and 0. These task patterns do not establish why a candidate restriction changes an answer. In particular, per-task scores should not be converted into fixed 0.77-point suite increments without accounting for the tasks’ scoring rules.

GraphWalks BFS scores are 34.6 for stock and 36.4, 34.4, 37.5, 33.5, and 37.2 for h=1,2,3,5,6h = 1, 2, 3, 5, 6. On items longer than 256K tokens, the reported paired score change at h=2h = 2 is −5.6 points; the corresponding changes at h=1,3h = 1, 3 are −0.2 and +1.6 points. The aggregate and length-specific results therefore need not move together. The h=2h = 2 configuration has one boot, and its cause has not been established.

At h=1h = 1, energy savings are 8.9, 16.9, 6.6, and 13.9%, whereas the corresponding fractions of wall time saved are 6.2, 15.0, 1.5, and 11.6%. Mean GPU power falls by 2.2–5.2%. That reduction is not universal: at h=5,6h = 5, 6 on RULER-1M mean power rises by approximately 3–4%, while a shorter run still reduces energy.

Persistent decode reuse. Table 6, 7, 8, and 9 give the entire qh=1,2,3qh = 1, 2, 3 grid at h=0,1,2,3h = 0, 1, 2, 3. Together with

Table 5, they retain the full measured layer-and-query matrix. At a fixed h≥1h \ge1, the reported speedups across qh=0,1,2,3qh = 0, 1, 2, 3 differ by at most 4.1%, and energy savings by at most 0.6 percentage points. The query-only configurations are no faster than stock, reaching 0.960–1.000×. This is consistent with limited opportunity for decode-only reuse in these workloads; it does not establish identical execution cost.

The largest reported score losses include RULER-1M at (h,qh)=(3,2)(h, qh) = (3, 2) (−9.68 points) and (3,3)(3, 3) (−6.18), MRCR-v2 at (1,3)(1, 3) (−6.73) and (3,2)(3, 2) (−5.29), and GraphWalks at (3,2)(3, 2) (−3.01) and (3,3)(3, 3) (−4.12). RULER-1M is not monotone in query reuse at h=3h = 3: the changes are −5.44, −9.68, and −6.18 points. The corresponding task scores for niah_multikey_2 and niah_multikey_3 are 40 and 50 at (3,2)(3, 2), and 90 and 40 at (2,2)(2, 2). The source reports that single-needle, multi-query, and multi-value tasks remain at 100 or within one prompt in this grid. The matrix contains single runs and does not identify the mechanism behind individual task failures.

The isolated timing experiment in Table 2 uses 30 synthetic prompts of approximately 0.9M tokens, 24 sessions offered, and no prefix caching. Decode time is estimated as the difference between a 40,000-token generation and a one-token generation. Each arm has one boot and two measured draws after discarding a warm-up draw. It measures h=0h = 0 only; the reported 3.3% reduction at qh=3qh = 3 is not a measured combined layer-and-query speedup. This workload has no answer-quality evaluation.

Coarse producer and group size

Table 10 reports the mean-representative producer at P=2P = 2, b=8,192b = 8{,}192, and M=16,384M = 16{,}384, with and without qh=1qh = 1. At h=1h = 1, qh=0qh = 0, task-score changes are −0.60, +0.28, −0.75, and −0.01 points across the four suites; adding qh=1qh = 1 changes them to +0.79, +1.28, −1.13, and −0.13. At h=2h = 2, RULER-1M loses 5.71 points without query reuse and 5.58 with it. At h=3h = 3, MRCR-v2 loses 3.30 and 3.36 points. The coarse producer is faster than its own stock row on most settings, but the h=1h = 1 MRCR-v2 configuration is slower with either query setting.

Table 11 varies P=2,4,8,16P = 2, 4, 8, 16 at h=1,qh=0h = 1, qh = 0 while holding bP=MbP = M fixed. Energy savings rise on all suites. RULER-1M score changes are +0.28, −4.08, −9.01, and −14.30 points, while its speedup rises from 1.229 to 1.352×. MRCR-v2 loses 3.47 points at P=16P = 16; GraphWalks loses 1.36 at P=8P = 8 and 2.52 at P=16.GraphWalksBFSfallsfrom36.1forthiscampaign’sstockrowto31.9atP = 16. GraphWalks BFS falls from 36.1 for this campaign’s stock row to 31.9 atP = 16. LongBench-v2 shows no monotone score trend. At P≥4P \ge4, mean GPU power falls by approximately 9–16%, compared with approximately 5–10% at P=2P = 2.

The reported RULER-1M single-needle tasks score 100 throughout this sweep. niah_multikey_3 scores 50, 10, and 10 at P=4,8,16P = 4, 8, 16, while the multi-query and multivalue scores at P=16P = 16 are 78 and 75. This pattern motivates testing whether coarse candidate construction loses important groups. It does not, by itself, separate candidate loss from the earlier harness confound or explain each downstream error.

suiteconfigaccΔ\Deltaaccwall (s)speedupenergy (Wh)savedΔ\Deltapower
RULER-1Mstock80.41—5,982—6,624——
h=0,qh=1h=0, q_h=178.41−2.006,0810.984×6,653−0.4%−1.2%
h=0,qh=2h=0, q_h=282.51+2.106,0270.992×6,638−0.2%−0.6%
h=0,qh=3h=0, q_h=379.85−0.566,0320.992×6,638−0.2%−0.6%
h=1,qh=1h=1, q_h=180.46+0.055,1191.168×5,51916.7%−2.7%
h=1,qh=2h=1, q_h=278.36−2.055,1191.168×5,51416.8%−2.8%
h=1,qh=3h=1, q_h=375.69−4.725,1191.168×5,51616.7%−2.7%
h=2,qh=1h=2, q_h=178.99−1.424,4931.331×4,96425.1%−0.3%
h=2,qh=2h=2, q_h=274.71−5.704,4761.336×4,96125.1%+0.1%
h=2,qh=3h=2, q_h=376.59−3.824,4791.335×4,96325.1%+0.1%
h=3,qh=1h=3, q_h=174.97−5.444,3071.389×4,81927.2%+1.0%
h=3,qh=2h=3, q_h=270.73−9.684,3161.386×4,82027.2%+0.8%
h=3,qh=3h=3, q_h=374.23−6.184,3371.379×4,82627.1%+0.5%

Table 7. Persistent decode reuse on RULER-1M (qh≥1q_h \ge1). The h=0h=0 rows use query reuse alone; qh=0q_h=0 results appear in Table 5. Ratios use the displayed stock row.

Representative operator. Table 12 replaces a group’s mean by its elementwise maximum at P=2P = 2. At h=1h = 1, max-representative speedups against the displayed stock rows are 1.005, 1.203, 0.954, and 1.072×, compared with 1.027, 1.229, 0.979, and 1.087× for the separately measured mean campaign. The GPU energy savings are 10.4, 22.7, 7.7, and 17.1%, compared with 10.2, 22.5, 7.7, and 16.5%. These are campaign-specific ratios rather than a repeated paired comparison of the two operators.

suiteconfigaccΔ\Deltaaccwall (s)speedupenergy (Wh)savedΔ\Deltapower
LongBench-v2stock50.50—2,970—3,326——
max, h=1h=150.30−0.202,9561.005×2,97910.4%−10.0%
max, h=2h=251.29+0.792,6571.118×2,78216.3%−6.5%
max, h=3h=349.70−0.802,6161.136×2,73817.7%−6.5%
RULER-1Mstock80.41—5,982—6,624——
max, h=1h=178.82−1.594,9741.203×5,11822.7%−7.1%
max, h=2h=271.18−9.234,3781.366×4,69929.1%−3.1%
max, h=3h=378.27−2.144,3161.386×4,61030.4%−3.5%
MRCR-v2stock75.02—4,911—5,093——
max, h=1h=175.59+0.575,1500.954×4,7027.7%−12.0%
max, h=2h=272.36−2.664,6381.059×4,38613.9%−8.8%
max, h=3h=373.10−1.924,5411.081×4,31115.3%−8.4%
GraphWalksstock53.35—12,264—12,976——
max, h=1h=153.65+0.3011,4451.072×10,76117.1%−11.1%
max, h=2h=250.92−2.439,7651.256×9,79924.5%−5.1%
max, h=3h=353.71+0.369,5091.290×9,63125.8%−4.3%

Table 12. Coarse producer with elementwise-max representatives, P=2P = 2 and b=8,192b = 8{,}192. Ratios and score changes use the displayed stock rows, also used in Table 5.

The max operator has RULER-1M score changes of −1.59, −9.23, and −2.14 points at h=1,2,3h = 1, 2, 3, versus +0.28, −5.71, and −0.57 for the mean. At h=2h = 2, niah_multikey_2 and niah_multikey_3 score 70 and 50 with the mean, compared with 70 and 10 with the max. The source reports every other task within one prompt of stock under both operators. Neither operator eliminates the difficult RULER-1M configuration. Repeated comparisons with verified matched controls are needed to rank them confidently.

suiteconfigaccΔ\Deltaaccwall (s)speedupenergy (Wh)savedΔ\Deltapower
MRCR-v2stock75.02—4,911—5,093——
h=0,qh=1h=0, qh=173.70−1.325,0970.964×5,148−1.1%−2.6%
h=0,qh=2h=0, qh=270.48−4.545,1140.960×5,159−1.3%−2.7%
h=0,qh=3h=0, qh=372.24−2.785,0830.966×5,154−1.2%−2.2%
h=1,qh=1h=1, qh=173.88−1.144,8391.015×4,7476.8%−5.4%
h=1,qh=2h=1, qh=271.12−3.904,8721.008×4,7596.6%−5.8%
h=1,qh=3h=1, qh=368.29−6.734,9061.001×4,7706.3%−6.2%
h=2,qh=1h=2, qh=172.05−2.974,4531.103×4,43512.9%−4.0%
h=2,qh=2h=2, qh=274.06−0.964,4781.097×4,43912.8%−4.4%
h=2,qh=3h=2, qh=371.81−3.214,4451.105×4,42913.0%−3.9%
h=3,qh=1h=3, qh=171.73−3.294,3471.130×4,34914.6%−3.5%
h=3,qh=2h=3, qh=269.73−5.294,4211.111×4,37114.2%−4.7%
h=3,qh=3h=3, qh=369.85−5.174,3821.121×4,36214.3%−4.0%

Table 8. Persistent decode reuse on MRCR-v2 (qh≥1qh \ge1). The h=0h=0 rows use query reuse alone; qh=0qh=0 results appear in Table 5. Ratios use the displayed stock row.

suiteconfigaccΔ\Deltaaccwall (s)speedupenergy (Wh)savedΔ\Deltapower
GraphWalksstock53.35—12,264—12,976——
h=0,qh=1h=0, qh=153.02−0.3312,2691.000×12,987−0.1%+0.1%
h=0,qh=2h=0, qh=253.17−0.1812,2621.000×13,004−0.2%+0.2%
h=0,qh=3h=0, qh=351.83−1.5212,3630.992×13,005−0.2%−0.6%
h=1,qh=1h=1, qh=151.98−1.3710,7001.146×11,11114.4%−1.8%
h=1,qh=2h=1, qh=252.05−1.3010,8681.129×11,14914.1%−3.0%
h=1,qh=3h=1, qh=352.62−0.7310,7831.137×11,11514.3%−2.6%
h=2,qh=1h=2, qh=151.50−1.859,7991.252×10,19221.5%−1.7%
h=2,qh=2h=2, qh=251.45−1.909,8941.240×10,19521.4%−2.6%
h=2,qh=3h=2, qh=351.98−1.379,7261.261×10,16521.7%−1.2%
h=3,qh=1h=3, qh=151.49−1.869,3961.305×9,91423.6%−0.3%
h=3,qh=2h=3, qh=250.34−3.019,3281.315×9,89523.7%+0.3%
h=3,qh=3h=3, qh=349.23−4.129,2731.323×9,86724.0%+0.6%

Table 9. Persistent decode reuse on GraphWalks (qh≥1qh \ge1). The h=0h=0 rows use query reuse alone; qh=0qh=0 results appear in Table 5. Ratios use the displayed stock row.

suiteconfigaccΔ\Deltaaccwall (s)speedupenergy (Wh)savedΔ\Deltapower
LongBench-v2stock50.70—2,990—3,339——
P=2P=250.10−0.602,9101.027×2,99810.2%−7.8%
P=4P=452.49+1.792,8781.039×2,82815.3%−12.0%
P=8P=849.90−0.802,7861.073×2,72218.5%−12.5%
P=16P=1651.09+0.392,7681.080×2,68019.7%−13.3%
RULER-1Mstock79.13—5,990—6,644——
P=2P=279.41+0.284,8761.229×5,14722.5%−4.8%
P=4P=475.05−4.084,6631.285×4,69529.3%−9.2%
P=8P=870.12−9.014,4581.344×4,44933.0%−10.0%
P=16P=1664.83−14.304,4321.352×4,34734.6%−11.6%
MRCR-v2stock74.58—4,980—5,125——
P=2P=273.83−0.755,0890.979×4,7297.7%−9.7%
P=4P=474.54−0.044,9840.999×4,45513.1%−13.1%
P=8P=874.75+0.174,8451.028×4,30116.1%−13.7%
P=16P=1671.11−3.474,9101.014×4,26816.7%−15.5%
GraphWalksstock53.82—12,094—12,976——
P=2P=253.81−0.0111,1251.087×10,83416.5%−9.2%
P=4P=455.07+1.2510,3981.163×9,87023.9%−11.5%
P=8P=852.46−1.3610,1481.192×9,43127.3%−13.4%
P=16P=1651.30−2.529,8251.231×9,18529.2%−12.9%

Table 11. Coarse-producer group-size sweep at h=1h = 1, qh=0qh = 0, and fixed bP=M=16,384bP = M = 16,384. The P=2P = 2 rows repeat Table 10; all ratios use the displayed stock rows.

Exploratory Top-GG Construction and Trace Study

Capture and measurement protocol

The Top-GG study uses LB2 traces captured while running MLIPS. The capture contains eight sequences and 21 compressed sparse-attention (CSA) layers at physical layers 2, 4, …\ldots, 42. One CSA-layer step therefore spans two physical model layers. Each recorded query supplies unordered producer Top-KK and Top-MM index sets, with K=512K = 512 and nominal M=16KM = 16K. The dump lacks aligned producer-layer scores, so the constructor below uses set membership. Array position within a captured Top-MM set is not treated as an importance ranking. Pass identifiers are trace provenance and do not affect construction.

Four consecutive queries are recorded every 256 original query positions. Groups of 64, 256, and 1,024 recorded rows consequently represent nominal windows of 4,096, 16,384, and 65,536 original positions. Sequence-wide sharing uses all eligible recorded rows in a sequence. These labels describe sampling spans, not fully observed query groups. We cannot infer how recall changes when all intervening queries participate: additional queries may provide useful evidence but also compete for the same budget.

All reported pools have budget G=32,000G = 32{,}000. Measurements require context length at least GG and average recall on capacity-eligible recorded rows. The primary aggregate in Figure 4 covers sequences 0–6 of the eight captured sequences and subsequent CSA-layer distances 1–6. Producer-layer fit, at distance zero, is excluded from reuse results. The headline results are restricted to these seven sequences. Per-sequence results below use the 11 producer layers with a complete ten-step consumer horizon. Each sequence–window–distance cell is a query-cell-weighted mean over eligible recorded rows and those producers.

For a recorded query qq, write KqℓK_q^\ell and MqℓM_q^\ell for producer memberships. The pool satisfies Equation (6), and evaluation uses Equation (7). Recall is defined only for nonempty consumer selections. The pool is frozen before examining any consumer layer; consumer Top-KK labels are used only for evaluation.

Coverage-debt constructor

The constructor assigns more weight to queries whose producer selections remain uncovered. Define the residual producer membership Aq=Mqℓ∖KqℓA_q = M_q^\ell\setminus K_q^\ell, and, for a partially filled pool G\mathcal{G}, define

D(S;G)={1−∣S∩G∣/∣S∣,∣S∣>0,0,∣S∣=0.(12)D(S;\mathcal{G}) = \begin{cases} 1 - \lvert S \cap\mathcal{G}\rvert/\lvert S\rvert, & \lvert S\rvert> 0, \\ 0, & \lvert S\rvert= 0. \end{cases} \tag*{(12)}

Let dqK=D(Kqℓ;G)d_q^K = D(K_q^\ell;\mathcal{G}) and dqA=D(Aq;G)d_q^A = D(A_q;\mathcal{G}). An unselected candidate xx receives primary and secondary scores

P(x)=∑q∈C:∣Kqℓ∣>0dqK∣Kqℓ∣1[x∈Kqℓ],(13)P(x) = \sum_{q \in C:\lvert K_q^\ell\rvert>0} \frac{d_q^K}{\lvert K_q^\ell\rvert}\mathbf{1}[x \in K_q^\ell], \tag*{(13)}
S(x)=∑q∈C:∣Aq∣>0dqA∣Aq∣1[x∈Aq].(14)S(x) = \sum_{q \in C:\lvert A_q\rvert>0} \frac{d_q^A}{\lvert A_q\rvert}\mathbf{1}[x \in A_q]. \tag*{(14)}

Zero-size memberships contribute no vote, avoiding undefined normalization. Candidates are ranked lexicographically by descending (P(x),S(x),τ(x))(P(x), S(x), \tau(x)), where τ\tau is a fixed seeded key-ID hash used for deterministic tie breaking; key ID resolves any remaining hash tie. Thus residual Top-MM evidence never overrides a larger primary score. After each batch of 1,024 selected keys, debits and scores are recomputed. This is a batched coverage heuristic, not an optimization guarantee.

As a query becomes covered, its primary vote shrinks and the budget shifts toward other queries. This construction supplies a concrete example of how producer memberships can reveal a shared candidate working set. It uses Algorithm 1 Coverage-debt pool construction

Require: Recorded sets {Kqℓ,Mqℓ:q∈C}\{K_q^\ell, M_q^\ell: q \in C\}, capacity GG, batch B=1,024B = 1{,}024

  1. G←∅G \leftarrow\varnothing

  2. Aq←Mqℓ∖KqℓA_q \leftarrow M_q^\ell\setminus K_q^\ell for every q∈Cq \in C

  3. U←⋃q∈C(Kqℓ∪Mqℓ)U \leftarrow\bigcup_{q \in C}(K_q^\ell\cup M_q^\ell)

  4. while ∣G∣<min⁡(G,∣U∣)|\mathcal{G}| < \min(G, |U|) do

  5. Compute debts using Equation (12)

  6. Compute P(x),S(x)P(x), S(x) for x∈U∖Gx \in U \setminus\mathcal{G}

  7. b←min⁡(B,G−∣G∣,∣U∖G∣)b \leftarrow\min(B, G - |\mathcal{G}|, |U \setminus\mathcal{G}|)

  8. V←V \leftarrow first bb candidates in descending (P,S,τ)(P, S, \tau) order

  9. G←G∪V\mathcal{G} \leftarrow\mathcal{G} \cup V

  10. end while

  11. return G\mathcal{G}

no consumer-layer labels and no trained predictor. That restriction concerns the layer axis: constructing the pool from all queries in a group can still make the candidate set for an earlier query depend on later queries. Strict prefix-invariant inference therefore requires an explicit construction schedule and causal masks, and may require a different constructor. Masking future key positions alone does not remove dependence of pool membership on future query evidence.

Aggregate and per-sequence evidence

For a fixed budget of 32,000 indices, the mean recall across distances 1–6 is 77.6%, 69.4%, 52.9%, and 33.6% for nominal windows of 4,096, 16,384, 65,536, and the full sequence, respectively (Figure 4). The first-to-sixth-distance decrease is 82.4% to 73.5% for the smallest window. At 65,536 positions, the sampling span is sixteen times larger while mean recall remains 52.9%. These results reveal reuse across queries and layers, together with a clear capacity boundary as the query scope expands.

The ordering also holds separately for each primary sequence, 0–6: the mean over ten consumer distances decreases as the nominal window grows. For the 4,096-position window, per-sequence ten-distance mean recall ranges from 65.3% to 84.1%, and recall at distance ten ranges from 59.9% to 80.6%. The aggregate trend is consequently not confined to one input, although the coverage level remains workload dependent.

What remains to be established

The trace study measures coverage of recorded selected indices. It does not evaluate every query, end-task accuracy, construction overhead, consumer selection cost, or serving performance. The constructor is an exploratory probe rather than a validated runtime policy. Comparisons against producer Top-KK frequency, fixed Top-KK/Top-MM quotas, private producer Top-MM pools, and a future-selection oracle would help isolate which parts of the construction explain coverage; the present aggregate alone does not establish their relative merit.

Shared candidate metadata and coordinated KV staging are potential applications, but a pool of GG entries may exceed each query’s original Top-MM budget and increase consumer scoring. A shared index set also does not imply that different layers share KV values. Realizing a residency benefit requires layer-specific data movement and memory measurements. Pool refresh, query-group boundaries, causal scheduling, and any recovery for missed candidates remain deployment choices to evaluate.

Per-sequence Top-G coverage heatmaps for LB2 sequences across future CSA hops and nominal query windows

Figure 10. Per-sequence Top-G coverage at G=32,000G = 32{,}000. Rows are LB2 sequences 0–6 and columns are subsequent CSA-layer distances; panels vary the nominal query window. Cells average eligible recorded queries over the 11 producers with a complete ten-layer horizon. The original plot uses hop for exact layer distance dd.

Candidate Working Sets and Offloading

Sharing candidate indices does not reduce the total KV state that an autoregressive model must preserve. A future pool may contain entries absent from the current one. Those entries must remain recoverable, for example in host memory, if they are evicted from the GPU. This section analyzes a possible resident working set, not an implemented or measured memory-saving mechanism.

A simplified capacity model. Suppose each producer keeps all NN compressed positions resident, and each consumer keeps the indexer keys and attention KV for its current MM candidates resident. Under that policy, the compressed-entry working set over nn layers is pN+cMpN + cM, giving the modeled ratio

Rresident=nNpN+cM.(15)R_{\mathrm{resident}} = \frac{nN}{pN + cM}. \tag*{(15)}

This equals the layerwise dot-product reduction because both counts assign NN positions to a producer and MM to a consumer. The identity is a property of this simplified policy, not an equivalence between compute savings and measured GPU memory. Attention itself reads only the selected top-KK; alternative staging policies could use a different resident set.

If a producer also keeps only MM entries during its qhq_h reuse steps, the cycle-average ratio becomes

Ravg=nN(qh+1)pN+[pqh+c(qh+1)]M.(16)R_{\mathrm{avg}} = \frac{nN(q_h + 1)}{pN + [p q_h + c(q_h + 1)]M}. \tag*{(16)}

For qh>0q_h > 0, this is a time-average, not a reduction in the capacity needed for a rebuild step. The values match Table 3, so we do not repeat that table. Both models exclude weights, local windows, other attention layers, metadata, transfer buffers, and runtime allocation overhead.

Transfers and deadlines. Consumer keys that enter a refreshed pool must be fetched before re-scoring; the selected KV entries must arrive before attention. The pool becomes known only when the producer publishes it, leaving a short window before the first consumer. Persistent pools can lengthen this window on later reuse steps. Achieving the producer’s cycle-average working set additionally requires reloading its full search domain before the next rebuild.

Pool turnover, transfer bandwidth, staging buffers, and scheduling determine whether the policy is practical. The current top-KK-in-pool recall measurements do not measure pool-to-pool turnover, so they cannot quantify this transfer volume. An offloading evaluation should report actual peak GPU residency, transferred bytes, latency, GPU energy, and task quality together.

References

  1. [1]Yushi Bai, Shangqing Tu, Jiajie Zhang, Hao Peng, Xiaozhi Wang, Xin Lv, Shulin Cao, Jiazhen Xu, Lei Hou, Yuxiao Dong, et al. Longbench v2: Towards deeper understanding and reasoning on realistic long-context multitasks. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3639–3664, 2025.arxiv.org/abs/2412.15204
  2. [2]Yushi Bai, Qian Dong, Ting Jiang, Xin Lv, Zhengxiao Du, Aohan Zeng, Jie Tang, and Juanzi Li. IndexCache: Accelerating sparse attention via cross-layer index reuse. arXiv preprint arXiv:2603.12201, 2026. URL https://arxiv.org/abs/2603.12201.
  3. [3]William Brandon, Mayank Mishra, Aniruddha Nrusimha, Rameswar Panda, and Jonathan Ragan-Kelley. Reducing transformer key-value cache size with cross-layer attention. Advances in Neural Information Processing Systems, 37: 86927–86957, 2024.arxiv.org/abs/2405.12981
  4. [4]DeepSeek-AI. DeepSeek-V3.2: Pushing the frontier of open large language models. arXiv preprint arXiv:2512.02556, 2025. URL https://arxiv.org/abs/2512.02556.
  5. [5]DeepSeek-AI. Deepseek-v4: Towards highly efficient million-token context intelligence. Technical report, DeepSeek, 2026a. Model checkpoints: https://huggingface.co/collections/deepseek-ai/deepseek-v4.arxiv.org/abs/2606.19348
  6. [6]DeepSeek-AI. DeepSeek-V4.1-Flash: Pushing the limits of KV cache compression. arXiv preprint arXiv:2609.19969, 2026b. URL https://arxiv.org/abs/2609.19969.
  7. [7]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.arxiv.org/abs/2404.06654
  8. [8]Xunhao Lai, Weiqi Xu, Yufeng Yang, Qiaorui Chen, Yang Xu, Lunbin Zeng, Xiaolong Li, Haohai Sun, Haichao Zhu, Vito Zhang, Jinkai Hu, Jiayao Li, Rui Gao, Zekun Li, Songquan Zhu, Jingkai Zhou, and Pengyu Zhao. Minimax sparse attention. arXiv preprint arXiv:2606.13392, 2026. URL https://arxiv.org/abs/2606.13392.
  9. [9]Hong Liu, Yuan Cheng, Lin Niu, Yi Su, Yufei Xue, Anmin Liu, Guanghua Yu, and Jianchen Zhu. PIVOT: Efficient query-group indexing for token-level sparse attention. arXiv preprint arXiv:2607.24593, 2026. URL https://arxiv.org/abs/2607.24593.
  10. [10]Meituan LongCat Team. LongCat sparse attention: Taming the lightning via streaming-aware hierarchical cross-layer indexing. arXiv preprint arXiv:2608.01662, 2026. URL https://arxiv.org/abs/2608.01662.
  11. [12]OpenAI. Multi-round coreference resolution (mrcr). https://huggingface.co/datasets/openai/mrcr, 2025b.
  12. [13]Yutao Sun, Li Dong, Yi Zhu, Shaohan Huang, Wenhui Wang, Shuming Ma, Quanlu Zhang, Jianyang Wang, and Furu Wei. You only cache once: Decoder-decoder architectures for language models. Advances in Neural Information Processing Systems, 37:7339–7361, 2024.arxiv.org/abs/2405.05254
  13. [14]Yutao Sun, Yanqi Zhang, Li Dong, Jianyong Wang, and Furu Wei. You only index once: Cross-layer sparse attention with shared routing. arXiv preprint arXiv:2606.06467, 2026. URL https://arxiv.org/abs/2606.06467.
  14. [15]Yufei Xu, Fanxu Meng, Fan Jiang, Yuxuan Wang, Ruijie Zhou, Zhaohui Wang, Jiexi Wu, Zhixin Pan, Xiaojuan Tang, Wenjie Pei, Tongxuan Liu, Di Yin, Xing Sun, and Muhan Zhang. HISA: Efficient hierarchical indexing for fine-grained sparse attention. arXiv preprint arXiv:2603.28458, 2026. URL https://arxiv.org/abs/2603.28458.
  15. [16]Z.ai. GLM-5.1: Model card. https://huggingface.co/zai-org/GLM-5.1, 2026a. Released 2026-04-07; architecture as described in the GLM-5 technical report (arXiv:2602.15763).
  16. [17]Z.ai. GLM-5.2: Built for long-horizon tasks. Official technical release post, June 2026b. URL https://huggingface.co/blog/zai-org/glm-52-blog.

Paper details

vlnc:W_7ybxueq8
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Computer Science

Not recorded for this paper · View statement →

Looking for related papers…
Contents