Pith.

Machine Learning · arXiv:2610.18654 v2 · submitted 13 Oct 2026

Kwai Summary Attention V2 Technical Report

OneRec Team, Chenglong Chu, Guohong Mu, Guowang Zhang, Hao Peng, Hui Wang, Jian Liang, Jiangxia Cao

show 25 more authors

Jiao Ou, Jiaxin Deng, Lu Ren, Muhao Wei, Ruiming Tang, Tianle Xu, Wenwu Ou, Xingmei Wang, Zhixin Ling, Zhiyuan Liang, Ziqi Wang, Chaoyi Ma, Haixiao Gao, Kuo Cai, Renpu Liu, Ruochen Yang, Wenlong Xu, Xinqi Jin, Yan Sun, Yifan Wang, Yingzhi He, Yiyu Wang, Yusen Huo, Zhaojie Liu, Zihan Zhou

The paper says

“Summary-token architectures such as Kwai Summary Attention (KSA) compress distant context into learnable Summary token per chunk, and hybrid variants interleave these layers with full attention to retain exact access to the original text.”

more of the abstract

In such hybrid KSA-Full architecture, the interleaving inserted summary tokens are served as a streaming flow role across different layers. Although effective, however, it also introduce some bottlenecks: (1) the different layers summary compression chunk must be same, therefore hard to reach a flexible KV Cache compression, e.g., different layer set different summary compression chunk window. (2) in the full-attention layers, the summary token introduced additional computation cost, but such layer ignore them and still pay quadratic prefilling, therefore unfriendly to the computation side. Motivated by them, we developed the KSA V2, which not only achieves a more flexible KV cache memory compression but also reduces the computation cost in Full attention layer. Specifically, we found that the summary tokens can serve two roles: the KV memory and sparse indexer.

from the abstract

Pith says

Machine review · deepseek-v4-flash · 14 Oct 2026 · of version 1 of the paper; version 2 is newer · what was read was not recorded · not checked by a person

It can be wrong. Challenge this review or reply to it.

Holds up, with conditions. A credible retrofit that lets Summary tokens double as compressible KV memory and block-routing index, with good 1.9B/4B evidence but an unresolved question about whether the learned indexer or block selection causes the FWE drop; worth refereeing. This line is wrong

2 major objections · 3 minor

How often objections from reviews like this one are right: not yet measured

Are you an author? What you can do.

Not checked: figures, code, what the references say.

The paper says, at §3.7, Eq. (15), Table 10, Table 7

The review did not quote this passage.

Pith says: Objection 1 of 2 · major

The oracle-selection experiment validates the teacher, not the trained indexer. The oracle ranks blocks by the maximum dense attention probability within each block, which the paper states is 'matching the Indexer's teacher pooling rule' used in Eq. (15). The oracle therefore upper-bounds what the teacher can express, while the only direct evidence for the trained S-KSA indexer is the aggregate RULER comparison in Tables 4 and 9(b).

more of objection 1

That aggregate masks a 128K frequent-word-extraction drop from 45.00 to 26.67 (Table 7), and it is currently unresolved whether this gap is inherent to blockwise-max selection under an attention-based teacher or a correctable failure of the learned indexer to reproduce the teacher's choices. I request per-subtask oracle scores at K=4096 (at least FWE, and preferably NIAH-Multikey, NIAH-Multivalue, and VT) and, if available, a measure of agreement between the trained Indexer's block selections and the teacher's, so the acknowledged aggregation limitation can be separated from an indexer-training deficiency.

The paper says, at §3.1–§3.7, Tables 6 and 9

The review did not quote this passage.

Pith says: Objection 2 of 2 · major

The main free hyperparameters km, b, K, the max-vs-sum teacher choice, and the checkpoint selections are all chosen using RULER, which is also the benchmark on which the headline claims are made. Every reported number appears to be a single run.

more of objection 2

Under this protocol, differences such as 72.39 vs. 72.61 mean RULER or 65.01 vs. 65.35 at 128K are within the plausible range of selection-induced optimism and run-to-run noise, so the 'near-parent' claim is less robust than the tables suggest. Please provide at least one of: a held-out split of RULER lengths or subtasks used only for final evaluation, repeated-run variance estimates, or an explicit discussion of how much of the reported parity may reflect selection on the evaluation benchmark.

3 minor objections

The paper says, at §5 and Table 5

Pith says: minor objection 1 of 3

The conclusion states that 'General-capability evaluations and efficiency measurements are limited to 1.9B; the 4B validation covers RULER retrieval,' but Table 5 reports 4B scores for MMLU, CMMLU, C-Eval, MMLU-Pro, GSM8K, CMATH, MATH, MBPP, and HumanEval. Please reconcile this contradiction; if the Table 5 general-capability numbers are valid, the conclusion should credit them rather than disclaim them.

The paper says, at Figure 1 and §3.6

Pith says: minor objection 2 of 3

Figure 1 labels the per-token FLOP reduction as '2.3x lower' and '6.4x lower', while §3.6 reports a factor of 2.76 relative to Hybrid KSA and 6.38 relative to Full. Please align the figure labels with the text or state explicitly which reference each factor uses.

show 1 more

The paper says, at Abstract and §1

Pith says: minor objection 3 of 3

The abstract's claim that the Summaries serve 'as an index' should be qualified by the known failure mode on aggregation-heavy tasks, which the body reports honestly at §3.7 and Table 7. Without such a qualifier, the abstract overstates the generality of the routing result relative to the paper's own evidence.

What would settle it

Re-run the frozen-backbone oracle-selection evaluation of Table 10 on C-KSA+Full (km=128) at 128K with K=4096, b=4, and report subtask-level RULER scores, with NIAH-FWE highlighted. Decision rule: if the block-4 oracle FWE is also ~26.7, the collapse is inherent to block selection under the Eq. 15 teacher, consistent with the authors' stated limitation ([b38], [b309]), and the central claim stands as qualified. If oracle FWE stays near the dense 45.0 while the trained indexer scores 26.7, the trained indexer itself fails on diffuse-attention queries; then also measure top-K block-selection agreement between the trained indexer and the oracle on FWE queries to confirm a routing failure rather than a representation failure. Either outcome settles whether the Summaries-as-index claim [b29] holds beyond aggregate RULER means.

from the skeptic's reading

How the review went

4 readings by deepseek-v4-flash · 14 Oct 2026

  1. Reader holds up, with conditions confidence moderate
  2. Skeptic agrees 2 min 40 s · 31,940 tokens read, 26,268 written
  3. Editor wrote the verdict above 46 s · 33,234 tokens read, 6,931 written
  4. Referee major revision: 2 major objections, 3 minor 56 s · 32,455 tokens read, 7,583 written

Not run on this paper: the simulated authors' defence.

Pith did not check this review's objections against the paper.

The review in full

The review in brief, machine-written

Here's the short version: this is a solid retrofit paper, not a new class of result. The claim that existing Summaries can serve as both compressible memory and routing index is real, and the experiments mostly support it. The unresolved piece is whether the trained indexer, rather than block selection itself, is what loses frequent-word extraction (FWE); the aggregate numbers don't answer that.

The genuinely new thing is the dual role. C-KSA pools Summary KV into layer-local Meta entries without coarsening the Summary sequence passed between layers, and S-KSA uses existing Summaries as aggregation queries to build block-level routing keys for original-text blocks. The building blocks are borrowed—DeepSeek-V4-style dimension-wise pooling, QSA/HiLS-style block routing, a Lightning Indexer—but reusing the Summary token as the query is a clean design choice, and it makes the retrofit drop-in. C-KSA+Full matching its parent, S-KSA costing only about 1.3 points at 128K, and the 4B GQA transfer holding are all credible. The paper also does the right thing by running the continuation study on Hybrid KSA, reporting the FWE failure, and saying where the remaining cost is. That is honest.

Now the soft spots, in order of size.

The stress-test concern lands: the indexer validation is incomplete. The oracle experiment in Table 10 uses blockwise-max ranking, which is the same rule as the Eq. 15 teacher, so it upper-bounds the teacher, not the trained indexer. Table 10 reports only mean RULER, while the trained model's subtask breakdown shows FWE collapsing from 45.00 to 26.67 at 128K. That leaves two possibilities: block selection fails on diffuse-attention queries by design, or the indexer fails to reproduce even the teacher's selection. The paper acknowledges FWE as a failure mode but not this decomposition. Oracle FWE subtask scores would settle it, and that is the one experiment I'd want before trusting S-KSA beyond needle-style retrieval.

Next, hyperparameters km and b are selected on the same RULER benchmark used for the headline numbers, and the tables are single runs with no error bars. That is common in this kind of adaptation report, but it caps how strongly the numbers can be read. The direct-vs-hierarchical compression comparison in Table 8 is also confounded by training budget: the large-chunk model is trained from scratch while C-KSA is a retrofit. There are small internal inconsistencies too: Figure 1 and Section 3.6 quote cache/FLOP ratios that don't match the Figure 11 numbers (24.00/6.31 is about 3.8, and 10.59/6.31 is about 1.68, not 3.86/1.35). Sloppy, not damaging.

No code, data, kernels, or weights are released, so the efficiency claims are not independently checkable. For a technical report that may be acceptable, but a referee should ask for at least one reproducible piece.

Who this is for: people working on summary-token hybrids, sparse attention, or long-context inference. I'd send it to review and ask for the oracle FWE breakdown, error bars or repeated runs on the FWE number, a matched-budget direct-compression comparison, and a cleanup of the ratio inconsistencies.

The strongest objection

The central claim [b29] requires the trained S-KSA indexer to direct exact-access layers to the blocks a query actually needs. The paper's support is two-step: (i) oracle block selection by blockwise-max dense attention preserves near-dense RULER (Table 10, Figure 12); (ii) the trained C-KSA+S-KSA indexer lands close to that oracle (mean 72.39 vs 72.66; 128K 65.01 vs 66.24; Table 4 vs Table 10). Step (i) is not an independent validation of the indexer: the oracle uses the same rule that generates the Eq. 15 training teacher, since block selection 'ranks the maximum probability within each block of b=4 tokens, matching the Indexer's teacher pooling rule.' The oracle therefore upper-bounds the teacher, not retrieval: it shows blockwise-max attention finds worth-reading blocks on average, not that the trained indexer reproduces that selection. The FWE result exposes the gap. For frequency aggregation, attention is spread over many occurrences, so blockwise-max attention is flat across many blocks, the Eq. 15 teacher is near-uniform, top-K selection becomes near-arbitrary, and FWE falls from 45.00 to 26.67 (Table 7), a ~41% relative loss, while NIAH-Single (+5.0), Multiquery (+5.0), and SQuAD (+5.0) improve enough to mask the loss in the 128K mean. Because only oracle means are reported, two hypotheses remain unresolved: (a) FWE degradation is inherent to block selection under an attention-based teacher, the acknowledged 'aggregation task' limitation ([b38], [b309]); or (b) the trained indexer fails to reproduce even the teacher's selection on diffuse-attention queries, making the Summaries-as-index mechanism materially weaker than the near-parent headline and extending the failure class beyond synthetic FWE to the long-document and multi-step reasoning tasks deferred to future work. The aggregate numbers are honest, but the subtask distribution hides a systematic failure that mean scores mask.

agreement_with_reader: agree. The reader's weakest assumption — that the trained S-KSA indexer, using Summary-derived block representations and Eq. 15 supervision, finds the remote blocks a query needs — is the load-bearing condition I identify, with the FWE drop (Table 7) as the shared evidence. My read sharpens the question: the paper reports only aggregate oracle scores (Table 10), so the FWE collapse cannot yet be attributed to the trained indexer versus the block-selection/teacher paradigm, and aggregate means cannot reveal which. Concerns set aside. (1) Hyperparameter selection on the evaluation benchmark: the sweeps are fully reported (Tables 6, 9); km=16 even slightly beats the selected km=128 on RULER mean and 128K, so the selection is transparent and efficiency-driven rather than hidden. (2) Figure 1 ratios inconsistent with Section 3.6 (2.3x vs 2.76x FLOPs over Hybrid; cache multipliers not reproducible): cosmetic, and the Section 3.6 measured values are internally consistent (40.4% = 1 − 6.31/10.59; 1.51x = 44,971/29,837; 1.27x = 198.85/157.02). (3) Table 8's unmatched training budget: affects the secondary 'hierarchical beats direct compression' claim and is acknowledged by the authors. (4) Extra-training confound for the near-parent retention: Table 11's continuation study, while not exactly the adaptation recipe, shows no consistent continued-pretraining gains, weakening the artifact hypothesis. (5) Absence of code, weights, and error bars: reporting limits that reduce confidence but do not attack the argument's logic. The load-bearing link is the mechanism that lets sparse access replace dense access: the trained indexer must select blocks carrying the information a query needs. The paper shows the blockwise-max teacher is sufficient on average (oracle) and that the trained indexer approaches the oracle on average. Whether the demonstrated failure on distributed-evidence queries is architectural or a defect of the trained indexer is the one empirically decisive, cheaply testable question. Verdict: UNCHANGED. The reader's CONDITIONAL already encodes the appropriate posture, and both outcomes of the proposed check are consistent with it: if the oracle also collapses on FWE, the authors' limitation statement is accurate and only subtask-level oracle numbers need releasing; if the oracle preserves FWE, the paper must qualify the Summaries-as-index claim and revisit Eq. 15's teacher for diffuse-attention regimes. The efficiency results (40.4% cache reduction, 1.51x prefill) are independent of this concern.

The referee's report

If the claims hold, the architectural contribution is practically useful: it decouples the KV compression ratio from the Summary token layout, reuses existing Summaries instead of introducing new routing tokens, and supplies a complete cache-layout and kernel story for prefill and decoding. The paper is unusually candid about where the method fails, explicitly singling out frequent-word extraction as an aggregation task that degrades under block selection. The controlled ablation structure, the 4B GQA transfer experiment, the oracle-selection analysis, and the comparison with DSA/QSA are strengths that make the reported near-parent retrieval plausible in aggregate. The main weakness is that the trained S-KSA indexer is validated only through aggregate RULER scores, while the oracle experiment used to motivate sparse access shares its selection rule with the training teacher; the headline means therefore do not establish how well the learned indexer reproduces the oracle on individual subtasks.

Pith's reading of the paper (a machine's summary, not the authors')

Hybrid long-context transformers that insert a learned Summary token per chunk already compute rich summaries of every part of the context, but the full-attention layers that need exact access never consult them. This paper argues that the same Summary hierarchy can do two jobs at once: as memory, stored Summaries can be compressed a second time into layer-local Meta entries without coarsening the representation that propagates between layers; as an index, the Summaries can route exact-access layers to the few original-text blocks worth reading. The paper instantiates both roles as drop-in modules, C-KSA and S-KSA, that reuse the existing Summary layout and add no tokens. Retrofitted onto a pretrained 1.9B Hybrid KSA model, the combination keeps long-context retrieval near the parent (RULER mean 72.39 vs 72.61; 128K 65.01 vs 65.35) while cutting resident cache by 40.4% and improving prefill throughput 1.51$\times$ at 128K, and the same recipe transfers to a 4B GQA backbone. If correct, this means the cost of exact long-context access — memory and quadratic prefill — is not inevitable: the summaries a model already computes can tell it where to look.

What carries the argument. The load-bearing object is the Summary token, which the paper rewires in two roles. In C-KSA, each group of $k_m$ consecutive Summary KV entries is pooled into one layer-local Meta entry by learned dimension-wise weights (Eqs. 1–3), with a $\log k_m$ correction added to Meta logits so that compressing the remote set does not tilt the softmax toward the local window; Meta entries are never fed forward, so the Summary stream keeps its granularity while stored remote history shrinks by a further factor $k_m$. In S-KSA, each Summary serves as the query of an auxiliary aggregation head that pools the $b$ tokens of each block in its chunk into a single routing key, a Lightning Indexer scores those block keys for every text query (Eq. 7), and the main attention reads only the selected blocks' original KV plus sinks and a local window. Both modules share the existing Summary layout, so neither introduces tokens; adaptation is supervised by aligning compressed attention outputs to uncompressed KSA (Eq. 13) and by a KL loss against a blockwise-max teacher built from frozen dense attention probabilities (Eq. 15).

Core claim. The paper's central claim is that the Summary tokens of a summary-token hybrid can carry both roles at once: as memory, they can be compressed a second time when stored, and as an index, they can direct exact-access layers to the few original-text blocks worth reading. C-KSA pools every $k_m$ consecutive Summary KV entries into one layer-local Meta entry through learned dimension-wise weights, so the distant-history compression factor becomes $k_s \times k_m = 1024$ with $k_s=8$ and $k_m=128$, while the Summary hidden states keep their granularity as they propagate between layers. S-KSA makes each Summary pool its chunk's $b$ text tokens into a routing key, selects the top remote blocks per query, and reads those blocks' original KV together with a local window and attention sinks. The experiments show the two mechanisms compose: on the 1.9B backbone, C-KSA+Full matches the parent (RULER mean 72.68 vs 72.61), adding S-KSA costs 0.29 points on the mean and 1.30 points at 128K, whereas the same sparse adaptation applied directly to Hybrid KSA loses 4.29 points at 128K. The adapted model keeps retrieval near the parent (72.39 mean, 65.01 at 128K) while cutting resident cache by 40.4% at 128K and improving prefill throughput 1.51$\times$; on the 4B GQA backbone, mean RULER stays within 0.30 points of the parent (84.15 vs 84.45).

The premise it rests on. The entire design rests on the trained S-KSA indexer finding the few remote original-text blocks that carry a query's answer, using only Summary-built block representations and supervision from frozen dense attention; the paper shows an oracle can do this, but the trained indexer misses exactly the distributed evidence that aggregation tasks need, as the 128K frequent-word-extraction drop from 45.00 to 26.67 shows.

If the paper is right (Pith's inferences, not the authors')

Distant-history compression decouples from Summary granularity: C-KSA multiplies the compression factor to $k_s \times k_m$ (1024$\times$ at $k_s=8$, $k_m=128$) without coarsening the Summary stream between layers, and each layer can in principle choose its own $k_m$.

Compression and sparsity compose: sparse adaptation on the C-KSA backbone loses only 1.30 points at 128K compared with 4.29 points on Hybrid KSA, so a compressed backbone is the better substrate for sparse original-text access.

The retrofit is drop-in: both layer types add no tokens and reuse the existing Summary layout, so a pretrained Hybrid KSA can be converted while keeping RULER near parity (72.39 vs 72.61 mean) and most general capabilities.

At 128K the resident cache falls 40.4% versus Hybrid KSA and 73.7% versus Full, prefill throughput rises 1.51$\times$ (2.16$\times$ versus Full), and decode improves 1.23–1.32$\times$; the remaining cache is dominated by original-text KV in the exact-access layers.

Per-position compression such as GQA and MLA multiplies orthogonally with C-KSA's sequence compression, so the two families of cache savings stack.

The dual-role principle should transfer beyond KSA: any per-chunk gist token that is already refined layer-by-layer can serve as a block-routing key for sparse attention, provided the indexer is trained against a reliable dense-attention teacher; the paper's machinery does not depend on anything Summary-specific except that the tokens exist.

Because oracle selection restores near-dense retrieval at a remote budget of 4096 tokens (~82.83% of decode attention mass on ~3.9% of positions), the practical ceiling of S-KSA is set by indexer quality rather than by the sparse read mechanism — improving the indexer is the highest-leverage next step.

The paper leaves layer-specific $k_m$ untested (all configurations use a common $k_m$), yet its own attention plots show Meta entries carrying 7.7–13.7% of attention mass in shallow layers versus 73.1–87.8% in middle and deep layers; allocating finer compression where Meta attention is low is a plausible further saving.

A query-dependent remote budget — more blocks for aggregation-heavy queries such as frequent-word extraction, fewer for point lookups — is a natural extension suggested by the one clear failure mode, where the fixed budget demonstrably sheds distributed evidence.

Check this review

Pith stored no record of this review's passes and took no fingerprint of it. Reviews made by code from 13 Nov 2026 on carry both.

How often reviews like this one are right

Reviews like this one: written by deepseek-v4-flash, where what was read was not recorded.

How often objections from reviews like this one are right: not yet measured

Every value above, in the review's public record (JSON)

Reviews by people

This review was written by a machine. No person has reviewed this paper on Pith yet. A scientist listed on Pith can review it for a fee, and their review is published here whatever it concludes.

Request a human review

How Pith checks papers · The full audit of this paper

The paper

Abstract

Summary-token architectures such as Kwai Summary Attention (KSA) compress distant context into learnable Summary token per chunk, and hybrid variants interleave these layers with full attention to retain exact access to the original text. In such hybrid KSA-Full architecture, the interleaving inserted summary tokens are served as a streaming flow role across different layers. Although effective, however, it also introduce some bottlenecks: (1) the different layers summary compression chunk must be same, therefore hard to reach a flexible KV Cache compression, e.g., different layer set different summary compression chunk window. (2) in the full-attention layers, the summary token introduced additional computation cost, but such layer ignore them and still pay quadratic prefilling, therefore unfriendly to the computation side. Motivated by them, we developed the KSA V2, which not only achieves a more flexible KV cache memory compression but also reduces the computation cost in Full attention layer. Specifically, we found that the summary tokens can serve two roles: the KV memory and sparse indexer.

The paper's own sentences, arranged, kept beside the review and separate from it. Each label is drawn from a closed vocabulary; the number beside it is the probability the classifier gave that label. No sentence in this record was written by a model.

abstract compiled · 2026-10-14

The authors' main claim, as the classifier picked it out 0.99

“Motivated by them, we developed the KSA V2, which not only achieves a more flexible KV cache memory compression but also reduces the computation cost in Full attention layer.”

How the main claim is stated: asserted 1.00

What the abstract itself states, as probabilities: claims first 0.05 · states limitation 0.21 · human participants 0.03 · controlled comparison 0.21 · randomized assignment 0.01 · states quantitative result 0.04 · compares with prior results 0.57 · mentions code or data availability 0.03

The abstract, sentence by sentence

This table labels the abstract only (arXiv listing abstract v1). The number is the probability the classifier gave the label.

SentenceRoleThe authors' own workStates the main conclusionStrength
Summary-token architectures such as Kwai Summary Attention (KSA) compress distant context into learnable Summary token per chunk, and hybrid variants interleave these layers with full attention to retain exact access to the original text. background 1.00 0.08 0.05 asserted 1.00
In such hybrid KSA-Full architecture, the interleaving inserted summary tokens are served as a streaming flow role across different layers. background 0.84 0.13 0.04 asserted 1.00
Although effective, however, it also introduce some bottlenecks: (1) the different layers summary compression chunk must be same, therefore hard to reach a flexible KV Cache compression, e.g., different layer set different summary compression chunk window. limitation 0.50 0.21 0.04 asserted 1.00
(2) in the full-attention layers, the summary token introduced additional computation cost, but such layer ignore them and still pay quadratic prefilling, therefore unfriendly to the computation side. limitation 0.51 0.29 0.04 asserted 1.00
Motivated by them, we developed the KSA V2, which not only achieves a more flexible KV cache memory compression but also reduces the computation cost in Full attention layer. contribution 1.00 0.94 0.66 asserted 1.00
Specifically, we found that the summary tokens can serve two roles: the KV memory and sparse indexer. method 0.41 0.92 0.15 asserted 1.00

What kind of paper the classifier reports this is: method or tool 1.00 · evidence from argument 0.85

What was examined, and what was not

Sources read

  • arXiv listing abstract v1

Not examined

  • full text
  • figures and tables
  • references and citing sentences
  • relations to other papers

Levels run

  • P abstract

Not run

  • S sections
  • T body sentences
  • C citations
  • R cross-paper relations

How the labels were made

Compiled by classifier-1.13.0 via TypeSafe API, question bank abstract-p1-20260923, 2026-10-14: 1 request, 5,033 input tokens.

Every quoted sentence on this record is the authors'. Every label is from Pith's closed vocabulary, with the probability shown beside it. This record as JSON

Figures (13)
Figure 1 of the paper
Figure 1. Left: long-context and general capabilities of 1.9B C-KSA+S-KSA and the reference models reported in KSA. Right: per token inference FLOPs and cache size (1GiB = 2 30 bytes). © 2026 Kuaishou. All rights reserved arXiv:2610.18654v1 [cs.LG] 13 Oct 2026
Figure 2 of the paper
Figure 2. Architecture overview: from Hybrid KSA to KSA V2. The remaining cache is mostly original-text KV in the exact-access layers, and aggregation-heavy tasks such as frequent-word extraction degrade under block selection (
Figure 3 of the paper
Figure 3. Compressed KSA with 𝑘𝑠 = 4 and 𝑘𝑚 = 2. Complete remote Summary groups are compressed into Meta KV, while boundary Summary KV and local text KV remain directly accessible. embedding and use the same attention and feed-forward parameters as text tokens. At each layer, 𝑆𝑐 attends to its chunk’s text tokens and itself to aggregate chunk-level information. Text tokens retain their original positional indices, and 𝑆𝑐 uses the position of its chunk’s last text token. Summary-to-Meta aggregation. In each C-KSA layer, we divide the Summary sequence into non￾overlapping groups of 𝑘𝑚…
Figure 4 of the paper
Figure 4. Sparse KSA with 𝑘𝑠 = 4 and 𝑏 = 2. Visible KV entries. For each text query, C-KSA attends to three types of KV entries: local text, boundary Summaries, and remote Meta entries (
Figure 5 of the paper
Figure 5. C-KSA cache layout and decoding updates with 𝑘𝑠 = 2, 𝑊 = 4, and 𝑘𝑚 = 4. Gray (𝑇), orange (𝑆), and purple (𝑀) denote text, Summary, and Meta KV. Blue marks indicate reads or writes. 2.3.1. Cache Structure and Updates To support efficient decoding, we design a compact KV cache structure for C-KSA (
Figure 6 of the paper
Figure 6. KV cache size comparison across different mechanisms as sequence length grows. The inset uses a logarithmic vertical axis to separate the low-cache curves and labels C-KSA values at 128K. KV Cache Cost. Let 𝑁 denote text length, 𝐻 and 𝐻KV the query and KV head counts, and 𝑑ℎ the head width. In
Figure 7 of the paper
Figure 7. Kernel design for C-KSA and S-KSA: (a) direct KV addressing, (b) fused block scoring and selection under a 𝐾-token budget, and (c) shared tiled prefill with KV reuse. Shared prefill execution. Both C-KSA and S-KSA follow FlashAttention’s tiled execution and online softmax (Dao et al., 2022), as illustrated in Figure 7c. Let B denote a group of text queries arranged into one or more query tiles, with query and output matrices 𝑄B and 𝑂B. Each box in these matrices represents one token vector; blue cells in the query–key grid indicate visible pairs, while white cells are masked. Each…
Figure 8 of the paper
Figure 8. Sequential adaptation and parameter selection for KSA V2 at 1.9B. 13
Figure 9 of the paper
Figure 9. Mean RULER scores during compression and sparse adaptation. Circles mark the checkpoints reported in
Figure 10 of the paper
Figure 10. Single-needle retrieval across context lengths and needle depths. C-KSA+S-KSA maintains high accuracy across the grid, aver￾aging 97.88% over all depths at 128K. 3.6. Inference Efficiency C-KSA reduces inference costs by compressing remote Summary KV, while S-KSA replaces dense original-text attention with block-sparse access
Figure 11 of the paper
Figure 11. compares the resident cache size, prefill throughput, and decode throughput of Full, Hybrid KSA, and C-KSA+S-KSA from 16K to 128K using the 1.9B models with BF16 and batch size one on a single NVIDIA H800 GPU. C-KSA+S-KSA uses 𝑘𝑚 = 128 and 𝑏 = 4. Cache. At 128K, C-KSA+S-KSA’s resident cache occupies 6.31 GiB, compared with 10.59 GiB for Hybrid KSA and 24.00 GiB for Full, reducing cache size by 40.4% and 73.7%, respectively. Measurements include indexer, auxiliary state, KV storage, and resident workspaces. Prefill. At 128K, C-KSA+S-KSA reaches 44,971 tokens/s, compared with 29,837…
Figure 12 of the paper
Figure 12. Oracle selection at 128K with frozen Hybrid KSA (blue) and C-KSA+Full (𝑘𝑚 = 128, red). (a,b) RULER scores. (c) Decode attention mass retained by token and block selection (𝑏 = 4), including local context and sinks before sparse renormalization
Figure 13 of the paper
Figure 13. Per-layer attention and block selection on a shared 16K NIAH example for Hybrid KSA (left) and C-KSA+S-KSA (right). Teal strips mark selected remote blocks, dashed lines mark the answer, and gray shading denotes the local window. 22

Figures are the authors', reproduced from the paper.

Challenges and discussion

Disagree with the review, or know something it missed? Leave a comment, or challenge this review formally: a challenge becomes a permanent entry in this paper's record, and its decision is published here.

No comments yet.

Sign in to comment