Pith.

Artificial Intelligence · arXiv:2610.42147 v2 · submitted 30 Oct 2026

Latent Sparse Attention: Towards Subquadratic Ultra-Long Context Attention

Ales Kubicek, Andrea Caciolai, Liangzu Peng, Sukrit Sumant, Benjamin Hoover, Fraser Greenlee, Ruairidh M. Battleday, Radim Urban

show 2 more authors

Torsten Hoefler, James C.R. Whittington

The paper says

“Agentic workflows are increasingly shifting towards long-horizon tasks, such as open-ended scientific work, where models benefit from long context windows. However, at ultra-long context (above 1M tokens), full attention is prohibitively expensive.”

more of the abstract

A promising approach is sparse attention, in which a dedicated indexer selects a subset of keys for the attention. Yet current methods of indexing either still have quadratic cost in context size or lose accuracy at ultra-long context scale. We address this with Latent Sparse Attention (LSA), an efficient attention method that maintains accuracy at ultra-long context. In LSA, keys are hierarchically clustered in a learned latent space, and queries score the hierarchy of clusters instead of scoring every key, making prefill, decode and training faster at long context. We propose two variants, Distilled-LSA (D-LSA), which can be applied to pre-trained models via distillation, and Native-LSA (N-LSA), which is trained natively on the next-token loss alone. On GLM-5.3-FLASH (QWEN-3.8-27B) at 10M tokens, D-LSA speeds up one attention layer by 22.7x (72.4x) in prefill and 4.6x (42.5x) in decode over its original sparse attention (full attention), while keeping similar accuracy across a variety of tasks. N-LSA matches the accuracy of full attention with a training speedup of 1.6x per layer at 128k tokens. LSA offers practical and efficient attention for models to benefit from ultra-long context.

from the abstract

Pith says

Machine review · deepseek-v4-flash · 2 Nov 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 careful, well-measured systems paper on making the indexer subquadratic at 10M tokens, wrapped in a much thinner accuracy story that the abstract oversells. This line is wrong

4 major objections · 8 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.2 step D and §3.3, Eq. (1)

The review did not quote this passage.

Pith says: Objection 1 of 4 · major

The choice to compute one index query by summing over all query heads, q_i^(idx) = Σ_h q_{i,h}^(attn) W_Q^(idx), and to share a single list J_i across heads (§3.2 D) is load-bearing for both the accuracy and the performance claims, and it is never tested.

more of objection 1

It keeps the score matrix S = Q^(idx) C^⊤ (Eq. 5) at one row per query, keeping prefill flops and the decode centroid read (160 MiB per step at 10M, Eq. 8) at one row rather than n_h rows; and it determines which keys are reachable by any head. The paper's own evidence cannot isolate this premise: the top-k oracle in Appendix A builds its list by summing over all heads (Figure 8 caption), so a query-level oracle constructed the same way conflates 'attention is sparse' with 'one shared list suffices'. The concern is sharpest for QWEN-3.8-27B, which has four KV heads (§F.2) and 27B-scale head specialisation, and it is relevant to the one clear selection-failure signal in the paper: on GLM-5.3-FLASH, D-LSA (Tree) drops to 60/56/55 on MultiKey 1, MultiValue and VT at 10M against 100 for the baseline (§E.4, b202), which is attributed to beam search without an experiment separating beam error from shared-list error. Two concrete tests are cheap. First, on the existing distillation data, report the recall of each head's own top-k teacher keys by the shared list as a function of context length; this requires no retraining and directly measures the cost of head averaging. Second, train a per-KV-head variant on QWEN-3.8-27B (four lists, not twenty-eight) at 1M tokens and report RULER; that is a bounded experiment and would settle the premise. Note also that N-LSA does not share this premise: it scores buckets by max over heads (Eq. 3), so its success at 128k is only weak evidence for D-LSA's summed list.

The paper says, at Abstract, title, §4.2, Figure 6

The review did not quote this passage.

Pith says: Objection 2 of 4 · major

The subquadratic claim and the measured configuration are not aligned. Every 10M-token accuracy and speed result for D-LSA uses the flat search, or for D-LSA (Tree) uses tree search in prefill only and flat search in decode (§4.1, §F.1, Table 12), while flat search still scores T/n̄_b ≈ T/8 centroids per query and therefore remains Θ(T²) in prefill.

more of objection 2

The 72.4× and 22.7× prefill speedups at 10M are consequently constant-factor gains (roughly 8× fewer units and 64 vs 512 index dimensions), not a change in scaling. The tree path is the subquadratic one, and it is in tension with the accuracy results: on GLM-5.3-FLASH it loses 11 points of RULER at 10M (55.8 vs 66.8), and Figure 6 shows it overtaking flat search only beyond 10M, in the shaded extrapolated region, consistent with the Discussion's own statement that this is predicted rather than measured. The abstract's 'making prefill, decode and training faster at long context' and the Section 4.3 extrapolation to 100M should be qualified: state explicitly in the abstract that the 10M numbers are flat-search numbers, and that subquadratic scaling rests on an extrapolation from a configuration whose accuracy at 10M has not been demonstrated on the sparse baseline. This is a framing fix, not a new experiment, but it is load-bearing for how the contribution is read.

The paper says, at §4.2, Figure 5, Figure 11

The review did not quote this passage.

Pith says: Objection 3 of 4 · major

The claim that D-LSA 'exceeds' full attention at 10M (63.9 vs 59.9 on RULER and 29.1 vs 19.8 on PaperTrail, b195) is not supported at the reported sample sizes. Beyond 1M tokens RULER uses 20 prompts per task, and no confidence interval is given for D-LSA's own points, only for the baselines (Figure 5 caption).

more of objection 3

With 13 tasks and 20 prompts each, a four-point difference in the task average is well inside sampling noise, and the average is further compressed by tasks pinned at the ceiling (single-needle retrieval at 95 or above, b202) and tasks pinned near the floor (MultiKey 2, MultiKey 3 and CWE at most 5 for every method, baselines included). The same argument applies in the other direction to the GLM-5.3-FLASH comparison, where 'within 4 points at 10M' is likewise inside the noise band, so neither the wins nor the losses at 10M are resolvable as stated. Either attach bootstrap intervals to the D-LSA points at 2M and beyond, or soften the exceedance claim to 'indistinguishable from the baseline within sampling error', which is what the data actually license. Note that the abstract's weaker phrasing, 'keeping similar accuracy', is defensible; it is the Section 4.2 interpretation that needs the correction.

The paper says, at §3.3 Eq. (2), §4.2 (b207)

The review did not quote this passage.

Pith says: Objection 4 of 4 · major

The manuscript's central accuracy inference, 'D-LSA follows the accuracy of the baselines, showing that our semantic clustering can preserve accuracy up to 10M tokens' (b207), is not the proposition the experiment establishes. The indexer is distilled to reproduce the frozen model's head-averaged attention (Eq. 2), so downstream accuracy parity demonstrates fidelity to the teacher's selection, not that semantic clustering is the mechanism.

more of objection 4

The comparison against Block Sparse Attention (Flat) distilled the same way is the right control and does discriminate clustering from distillation in general, so this is not a circularity failure; but the specific mechanistic claim about semantic clustering, and the accompanying claim that the model's own sparse attention is a harder baseline because it was trained with the model (which is stated fairly in §4.2), both need a direct measurement. The natural one is already computable from the distillation corpus: report the recall of the teacher's top-k attention mass per head achieved by the selected set J_i, and the same for the block-sparse control, as a function of context length. That would show whether clustering retains teacher mass better than block summaries at 10M, and would convert b207 into a supported statement. It would also make the PaperTrail and RULER gains interpretable rather than aggregate.

8 minor objections

The paper says, at §3.2 step C

Pith says: minor objection 1 of 8

The sentence 'As every bucket holds at least n_pool keys, p is chosen such that p·n_pool ≥ k, and so expansion always fills k keys' is contradicted later in the manuscript: §F.1 and Algorithm 3 (lines 13-16) state that if the selected buckets hold fewer than k keys outside the sink and the window, J_i holds fewer, and the row is padded with −1.

more of objection 1

Since a bucket may lie entirely inside the window, the guarantee should be stated as 'at most k' or conditional on the accounting for sink and window overlaps.

The paper says, at §3.3 Eq. (2) and §4.1 'Indexer distillation'

Pith says: minor objection 2 of 8

Eq. (2) defines the target A_i as the softmax over all of R_i, but the prose in §4.1 states that A_i keeps only the 2,048 keys with the most attention weight per query, renormalised over them, while Â_i still spans all of R_i. These are different targets, and the equation should be written to match the implementation, including the renormalisation and the truncation to 2,048 keys.

show 6 more

The paper says, at Table 2

Pith says: minor objection 3 of 8

The n_sink, n_w entries for the four D-LSA columns are given as '8, 16' and '4, 512' without explaining which row applies to which model or search, and §F.1 states a single convention of n_sink = 4 and n_w = n_cluster = 512. Please make the table self-consistent with the text or state the per-configuration values explicitly.

The paper says, at Table 3

Pith says: minor objection 4 of 8

The table is difficult to read: within each block only the baseline row is labelled, and the three speedup rows are distinguished solely by order. Adding an explicit row label for each of Full Attention, Block Sparse Attention (Flat), D-LSA (Flat) and D-LSA (Tree), and a note on which H200 GLM 10M configuration spans two nodes, would make the end-to-end claims checkable at a glance.

The paper says, at Appendix A, Figure 8

Pith says: minor objection 5 of 8

The oracle is reported only at 128k tokens with k = 512, i.e. 0.4% of the context, whereas the deployed 10M configuration selects k = 4096 out of 10M, i.e. 0.04%, a hundred times sparser relative to context. Since the appendix is used to motivate the sufficiency of sparse selection at ultra-long context (§2, b37), it would be more convincing with at least one intermediate point (e.g. 1M, or a fixed k/T ratio), and with a sentence acknowledging the extrapolation.

The paper says, at §4.4, Table 4, Figure 7

Pith says: minor objection 6 of 8

The native-training results are reported without any statement of seeds or run-to-run variability, yet the headline comparison is a validation loss of 1.085 against 1.085 and RULER differences of a few points at 128k. Please state how many runs were used and, where possible, give the spread; a parity claim from a single run is weaker than the text implies.

The paper says, at Appendix D, 'Context sizes'

Pith says: minor objection 7 of 8

The contamination argument is precise up to 5M but weakens at 10M, where the contexts hold papers posted at most six weeks before release. Since the answers live only in the fabricated papers and the insertions, the task remains valid, but the framing 'guaranteeing that no model has seen these papers' should be scoped to the 5M-and-below samples or restated in terms of the fabricated content only.

The paper says, at Table 11 and §F.1

Pith says: minor objection 8 of 8

Kernel times are from a single Nsight profile with clocks unlocked. Report the measured clock and the run-to-run variation for at least the bucket scan and the decode select, since the 2.18× and 2.15× CuTe-versus-Triton comparisons and the '49% of bf16 peak' regime statement are used as evidence about the kernels rather than about end-to-end behaviour.

What would settle it

Re-run the Appendix A oracle (Figure 8) on QWEN-3.8-27B with per-head lists: for each query and head h, take that head's own top-k_h long-range keys with k_h = k/n_heads (same total budget as the shared-list oracle), renormalise per head over its own selection, and compare with the head-summed oracle at 128k, 256k and 1M tokens on RULER (PaperTrail at 512k to 1M). If per-head selection beats the shared list beyond the bootstrap 95% CI at 1M, or holds MultiKey/MultiValue tasks the shared list loses, the single-list premise is the accuracy bottleneck; a per-head D-LSA would then multiply the Eq. 8 decode read (160 MiB per step at 10M) by n_heads, so the headline decode speedups would not survive in their stated form.

from the skeptic's reading

How the review went

4 readings by deepseek-v4-flash · 2 Nov 2026

  1. Reader holds up, with conditions confidence moderate
  2. Skeptic agrees 1 min 48 s · 44,685 tokens read, 14,538 written
  3. Editor wrote the verdict above 18 s · 45,920 tokens read, 2,368 written
  4. Referee major revision: 4 major objections, 8 minor 1 min 2 s · 45,111 tokens read, 8,965 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

Two papers are stapled together here. One is an unusually careful performance study: indexer kernels in CuTe DSL with a Triton twin, roofline bounds showing that materialising the score matrix would cost six times the compute of producing it (Eq. 6, Eq. 8), per-step Nsight timings, the 1.35x CuTe/Triton gap disclosed rather than buried, SGLang integration with TP and CP, released code. That part I trust. The other is an accuracy argument at 10M tokens built on 20 RULER prompts per task with no confidence interval on the paper's own points. Discount that part heavily.

What is actually new is the framing: at 10M tokens the indexer, not the attention, is the cost (98% of prefill, Figure 2). Clustering keys in a learned latent space and descending a bucket hierarchy makes the indexer O(T log T) rather than O(T2), which is a real step past ClusterKV, RetroInfer, Squeezed Attention, LycheeCluster and IceCache, all flat or fixed-depth and none evaluated above 1M. The paper says this plainly in Table 1 and §2.2, and the comparison table is honest about the overlap with Reformer, Routing Transformer and Treeformer.

On the shared index list: the stress-test note calls it the decisive unvalidated assumption, and I think that overstates it. Eq. 1 and §3.2D state the head-summed query and the single list per query openly; it is a disclosed design choice, not a hidden premise. It is true that per-head lists would multiply decode bandwidth and eat the 4.6x/42.5x, and that the Appendix A oracle uses the same convention so it cannot separate 'attention is sparse' from 'one list suffices'. But N-LSA already scores buckets by max over heads (Eq. 3) and matches full-attention validation loss at 128k, which is at least partial evidence one latent index can serve several heads. I would file per-head indexing as the obvious follow-up experiment, not a hole in what is claimed.

Where the paper does reach past its evidence is the 'exceeds full attention at 10M' framing (63.9 vs 59.9 on RULER; 53.3 vs 32.2 on PaperTrail tier 1). These are degradation-rate comparisons against a YaRN factor-40 baseline, on tasks where MultiKey 2, MultiKey 3 and CWE sit at 5 or below for every method including full attention. D-LSA (Tree) collapsing to 60/56/55 against 100 on MultiKey 1, MultiValue and VT is blamed on beam search with nothing separating beam error from cluster error, though §5 does acknowledge the tree-search drop.

One correction to the reader's report: PaperTrail is not a fabricated entity. Appendix D and Table 8 describe a constructed benchmark with four controls and not-in-corpus questions, and the controls are clean. That is a genuine contribution.

Send it out. Give it to someone who will audit the timing methodology, and to a long-context eval person who will demand error bars at 10M.

The strongest objection

In D-LSA a single index list J_i is computed from the head-summed query q^(idx)_i = Σ_h q^(attn)_{i,h} W^(idx)_Q (Eq. 1, §3.3) and shared by all attention heads (§3.2, step D). That premise does double duty: it keeps the score matrix S = Q^(idx) C^T (Eq. 5) at one row per query, and it keeps decode at one centroid read per request (Eq. 8, 160 MiB per step at 10M). If heads needed separate lists, prefill flops and decode bandwidth would multiply by the number of heads, eroding the headline 4.6x/42.5x decode speedups, and the accuracy claims would be contingent on an untested design choice. The paper's evidence never isolates the premise. The Appendix A oracle (Figure 8) builds one list per query by summing attention mass over heads, so its 98%-at-k=512 result at 128k — where 512 keys cover 0.4% of the context, ten times denser than k=4096 at 10M — conflates 'attention is sparse' with 'one shared list is enough'. At 10M the tasks that would stress concurrent key selection (MultiKey 2, MultiKey 3, CWE) sit at ≤5 for every method including the full-attention baseline (§E.4, b202), so the surviving margins (63.9 vs 59.9) come from 20 prompts per task with no CI on D-LSA's own points and cannot discriminate. The clearest selection-failure signal in the paper — D-LSA (Tree) at 10M on GLM at 60/56/55 against 100 on MultiKey 1, MultiValue and VT (§E.4) — is attributed to beam search, but no experiment separates beam error from shared-list error. N-LSA already scores buckets by max over heads (Eq. 3) rather than the Eq. 1 sum, so the convention is a design choice whose cost at scale is unmeasured.

The central claim is a conjunction: (i) measured speedups at 10M (22.7x/72.4x prefill, 4.6x/42.5x decode) and (ii) 'keeping similar accuracy across a variety of tasks'. Part (i) is direct measurement with disclosed methodology, per-kernel timings, and an honest statement of the CuTe versus Triton gap (Table 11), so I treat the engineering results as well supported. Part (ii) depends on one structural premise: that a single index list per query, derived from a head-summed query, contains the keys every head needs. That premise underwrites the indexer's cost profile: one row per query in Eq. 5, one centroid read per decode request in Eq. 8. If it fails, both the accuracy claim and the decode speedups as stated are contingent on a design choice the paper chose for efficiency rather than validated necessity. The evidence for the premise is the Appendix A oracle, but that oracle uses the same head-summed convention it is meant to validate, at 128k tokens, so it cannot separate 'sparse attention suffices' from 'a shared list suffices'. At the headline scale, the tasks that would stress the premise (MultiKey 2, MultiKey 3, CWE) are at floor for every method including the dense baseline, and the surviving margins are estimated from 20 prompts per task with no confidence interval on D-LSA's own points. The paper's own limitation statements (b264, b266) and the disclosed tree-search gap on GLM (§E.4) show that selection quality is where accuracy is lost at scale, but no experiment attributes that loss to the shared-list convention versus the clustering and beam search. The proposed check isolates exactly this with a per-head oracle at lengths where a full-attention baseline is still meaningful. A positive result would establish that a cheap shared-list indexer cannot reach the claimed accuracy at scale and would quantify the cost of the fix; a null result would give the premise the direct support it currently lacks and redirect scrutiny to the clustering and beam-search components. The close second concern is the statistical weakness of the 10M comparisons, which the reader's rationale documents thoroughly; I regard that as an evaluation-budget issue, whereas the shared-list question bears on the architecture's validity regardless of evaluation budget. Since the reader's CONDITIONAL verdict already requires that the 10M accuracy claims be treated with this caveat, my read leaves the verdict unchanged. Credit where due: the paper reports its own limitations explicitly (omitted sparse-training stage, N-LSA scale limits, tree-search degradation past 1M on GLM), publishes the fast versus portable kernel gap, and uses a different head-aggregation convention in N-LSA (Eq. 3), showing awareness of head diversity even though D-LSA sums instead.

The referee's report

The problem is real and the engineering is substantial. Two observations frame the contribution well: the indexer accounts for 98% of sparse-attention prefill time at 10M tokens (Figure 2), and a free indexer would buy a further 58× prefill speedup. The manuscript attacks precisely that term, and it does so with shipped artifacts rather than assertions: open code, SGLang integration with tensor and context parallelism, kernels for two GPU generations, a Triton fallback, and per-kernel timings that disclose a 1.35× gap between the CuTe DSL and Triton implementations. Several design elements are parameter-free or nearly so (the training-free variant uses principal directions of the keys; N-LSA adds no parameters), the PaperTrail benchmark is accompanied by a not-in-corpus probe and four controls (Table 8), and the paper makes falsifiable predictions (Figure 6 extrapolates the tree path to 100M tokens) and states its own open problems (§5). If the accuracy claims hold, removing the indexer as the dominant cost at ultra-long context is a genuinely useful result for the field, and the native-training result is a useful independent data point.

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

Serving a language model on a 10 million token prompt is expensive mainly because attention compares every new query with every earlier key. Modern sparse attention fixes part of this by having a small indexer pick which keys to attend to, but that indexer still scores every key or block of keys, so its cost grows quadratically during prefill. The authors measure that at 10M tokens the indexer is 98 percent of a sparse attention layer's prefill time.

Latent Sparse Attention changes what the indexer looks at. Keys are projected into a small 64-dimensional space, groups of four consecutive keys are summed, and Ward's clustering groups similar keys into buckets of about eight keys. Each bucket keeps one centroid and the positions of its keys. A query then scores only bucket centroids, keeps the best ones, and expands them into key positions. A second variant arranges buckets into a hierarchy so a query descends a tree and scores only O(log T) centroids, which makes prefill subquadratic. Both variants always attend to a few sink keys and a recent window of keys.

Two training routes are offered. Distilled-LSA freezes a pretrained model, trains one small projection per attention layer to match the frozen model's own attention distribution, and leaves everything else untouched. Native-LSA trains from scratch on the usual next-token loss, uses the model's own keys, adds no parameters, and stops gradients through the selection. On GLM-5.3-FLASH the distilled version prefills one attention layer 22.7 times faster than the model's own sparse attention at 10M tokens and decodes 4.6 times faster; on QWEN-3.8-27B the prefill speedup over full attention is 72.4 times.

Core claim. The central claim is stated in the abstract: 'On GLM-5.3-FLASH (QWEN-3.8-27B) at 10M tokens, D-LSA speeds up one attention layer by 22.7x (72.4x) in prefill and 4.6x (42.5x) in decode over its original sparse attention (full attention), while keeping similar accuracy across a variety of tasks' (b9), together with the native-training claim: 'N-LSA matches the accuracy of full attention with a training speedup of 1.6x per layer at 128k tokens' (b10). If correct, a semantic indexer over a learned latent cluster hierarchy removes the indexer as the dominant prefill cost at ultra-long context, and a sparse model can be trained from scratch at full-attention quality without adding indexer parameters.

The premise it rests on. The load-bearing premise is that one index list computed from the head-summed query is enough for every attention head. In D-LSA the index query is the sum over heads, q(idx)_i = sum_h q(attn)_{i,h} W(idx)_Q (Eq. 1, §3.3), and the paper states that 'A single J_i is shared across all query heads' (§3.2, step D). Any key that matters to one head but is not prominent in the head-averaged view cannot be selected by this design. The paper's own evidence for the sufficiency of sparse selection uses the same convention: the top-k oracle of Appendix A is built by summing over all heads and picking one list per query (Figure 8 caption), so that experiment cannot distinguish loss from the shared list from loss of the indexer's clustering. A per-head index list would test this premise and is not run.

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

Agentic workflows are increasingly shifting towards long-horizon tasks, such as open-ended scientific work, where models benefit from long context windows. However, at ultra-long context (above 1M tokens), full attention is prohibitively expensive. A promising approach is sparse attention, in which a dedicated indexer selects a subset of keys for the attention. Yet current methods of indexing either still have quadratic cost in context size or lose accuracy at ultra-long context scale. We address this with Latent Sparse Attention (LSA), an efficient attention method that maintains accuracy at ultra-long context. In LSA, keys are hierarchically clustered in a learned latent space, and queries score the hierarchy of clusters instead of scoring every key, making prefill, decode and training faster at long context. We propose two variants, Distilled-LSA (D-LSA), which can be applied to pre-trained models via distillation, and Native-LSA (N-LSA), which is trained natively on the next-token loss alone. On GLM-5.3-FLASH (QWEN-3.8-27B) at 10M tokens, D-LSA speeds up one attention layer by 22.7x (72.4x) in prefill and 4.6x (42.5x) in decode over its original sparse attention (full attention), while keeping similar accuracy across a variety of tasks. N-LSA matches the accuracy of full attention with a training speedup of 1.6x per layer at 128k tokens. LSA offers practical and efficient attention for models to benefit from ultra-long context.

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-11-02

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

“LSA offers practical and efficient attention for models to benefit from ultra-long context.”

How the main claim is stated: asserted 1.00

What the abstract itself states, as probabilities: claims first 0.06 · states limitation 0.16 · human participants 0.03 · controlled comparison 0.92 · randomized assignment 0.02 · states quantitative result 0.99 · compares with prior results 0.97 · 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
Agentic workflows are increasingly shifting towards long-horizon tasks, such as open-ended scientific work, where models benefit from long context windows. background 1.00 0.05 0.02 asserted 0.92
However, at ultra-long context (above 1M tokens), full attention is prohibitively expensive. background 0.80 0.10 0.03 asserted 1.00
A promising approach is sparse attention, in which a dedicated indexer selects a subset of keys for the attention. background 0.96 0.04 0.03 asserted 0.62
Yet current methods of indexing either still have quadratic cost in context size or lose accuracy at ultra-long context scale. gap 0.92 0.05 0.03 asserted 0.99
We address this with Latent Sparse Attention (LSA), an efficient attention method that maintains accuracy at ultra-long context. contribution 1.00 0.87 0.56 asserted 1.00
In LSA, keys are hierarchically clustered in a learned latent space, and queries score the hierarchy of clusters instead of scoring every key, making prefill, decode and training faster at long context. method 0.99 0.70 0.15 asserted 1.00
We propose two variants, Distilled-LSA (D-LSA), which can be applied to pre-trained models via distillation, and Native-LSA (N-LSA), which is trained natively on the next-token loss alone. method 0.65 0.85 0.06 asserted 0.99
On GLM-5.3-FLASH (QWEN-3.8-27B) at 10M tokens, D-LSA speeds up one attention layer by 22.7x (72.4x) in prefill and 4.6x (42.5x) in decode over its original sparse attention (full attention), while keeping similar accuracy across a variety of tasks. result 1.00 0.94 0.20 asserted 1.00
N-LSA matches the accuracy of full attention with a training speedup of 1.6x per layer at 128k tokens. result 1.00 0.94 0.10 asserted 1.00
LSA offers practical and efficient attention for models to benefit from ultra-long context. interpretation 0.97 0.47 0.78 asserted 1.00

What kind of paper the classifier reports this is: method or tool 1.00 · evidence from observation or experiment 0.92

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-11-02: 1 request, 7,707 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 (19)
Figure 1 of the paper
Figure 1. D-LSA and N-LSA overview. Top: one attention layer. The keys are pooled and clustered into buckets. A query ( ) scores the bucket centroids ( ) and attends only to the selected long-range keys (plus sink and window). Bottom: accuracy and performance (P: prefill, D: decode, T: training) for both D-LSA and N-LSA. D-LSA is shown with flat search. Its subquadratic variant, D-LSA (Tree), follows a similar trend (
Figure 2 of the paper
Figure 2. Traditional sparse attention at ultra-long context. One global attention layer of GLM-5.3-FLASH (512k to 10M tokens) on one H200, prefilling the last chunk of 32,768 queries and decoding one token. Speedup of sparse attention over full attention (blue), share of the indexer (%), and potential speedup over sparse attention if the indexer were ‘free’ (green). time of traditional sparse attention (
Figure 3 of the paper
Figure 3. D-LSA design. Left: D-LSA (Flat). Indexer keys: 1 projection and L2 norm, 2 pooling (4:1), 3 bottom-up agglomerative clustering (Ward’s method), 4 bucket cache (centroids and index table). Indexer queries: A sum over query heads, projection and L2 norm, B scoring the cached centroids and selecting the top-p buckets per query, C expanding the buckets into indices (sink + top-k long-range + window), D attention over those indices (one index list per query shared by all query heads). Right: D-LSA (Tree) groups the buckets into a hierarchy of clusters, a query descends using beam search…
Figure 4 of the paper
Figure 4. N-LSA design. The attention layer of N-LSA, which can be trained from scratch on the next-token loss alone. 3.4 N-LSA N-LSA (
Figure 5 of the paper
Figure 5. D-LSA accuracy is on par with full attention and sparse attention baselines on downstream tasks. Shown on knowledge, reasoning and long-context tasks up to 10M tokens. Baseline scores are given with their 95% confidence interval. D-LSA (Flat) is distilled from attention that is already sparse (with no finetuning of the base model itself). On both mod￾els, MultiKey 2, MultiKey 3 and CWE fall the most for every method, the baselines included. We break down RULER by task and PaperTrail by tier in Appendix E. Design comparison. D-LSA (Tree) follows D-LSA (Flat) on QWEN-3.8-27B, but…
Figure 6 of the paper
Figure 6. D-LSA speedup of one global attention layer. Prefill and decode speedup over the baseline attention (log scale), Full Attention for QWEN-3.8-27B and Block Sparse Attention (Flat) for GLM-5.3-FLASH, required memory at 10M with one index key per block of four keys for Block Sparse Attention (Flat), and prefill scaling up to 100M (log-log), extrapolated beyond 10M (shaded)
Figure 7 of the paper
Figure 7. N-LSA training speedup. Models trained natively on the NTP loss with Full Attention, SWA, NSA, PISA and N-LSA. Left: one attention layer, forward and backward, on one H200. Right: validation loss over the training time of the whole model in the decay phase (all on the same data and number of tokens). it reduces them by 9.2× and 2.9× at 10M tokens against baseline Full Attention. On B300, D-LSA (Flat) reduces the TTFT and the TPOT at 10M tokens by 1.6× and 2.2× with CP8 and by 4.8× and 2.6× with TP8 on GLM-5.3-FLASH, and by 5.7× and 1.5× on QWEN-3.8-27B. The speedup of the whole…
Figure 8 of the paper
Figure 8. Top-k Oracle Attention on RULER. QWEN-3.8-27B at 128k tokens. Each query attends to a 4-token sink, a 512-token window and the top-k long-range keys, one list shared by all heads. Process: sum over all heads, pick top-k, renormalise per head over the shared selection. A ATTENTION SPARSITY To test how many keys a query needs to keep accuracy, we let each query of QWEN-3.8-27B attend only to the sink, the window and its true top-k keys (
Figure 9 of the paper
Figure 9. LongDocs. Tokens of the distillation mix by domain and source (left) and by sequence length (right), with the in-house agent traces hatched. never joins two documents. A code document is one reposi￾tory, its files joined in the order of their paths, and an agent trace is one session rendered as text. We hold out 2% of the documents for validation. Distillation training. We distil every indexer on a mix of 352M tokens drawn from LongDocs (
Figure 10 of the paper
Figure 10. PaperTrail. 1 A sample, its fabricated, host and back￾ground papers. 2 One trail, introduced, revised and renamed, and still quoted in its old form after the revision. 3 Questions by tier, and one whose answer is not in the papers. 4 Context sizes, each holding every paper of the size below. 5 Controls. • Trail: a chain of papers that introduces a result, cites it, and later revises and renames it. • Fabricated paper: a paper we write for a trail. • Host paper: a real paper into which we insert passages that cite or use facts from a fabricated paper. • Insertion: a passage we add…
Figure 11 of the paper
Figure 11. D-LSA accuracy on RULER individual tasks. The 13 tasks of RULER from 4k to 10M tokens on QWEN-3.8-27B and GLM-5.3-FLASH, by task group, with their average
Figure 12 of the paper
Figure 12. Reasoning tokens against baselines. Reasoning to￾kens of each method relative to the baseline of its model, on the same questions. Grey bands mark the expected variation, and markers inside them show no measurable change in reasoning length. the median width of the 95% bootstrap intervals of its meth￾ods, and a marker inside it shows no measurable change. Every D-LSA design stays inside its band, except D-LSA (Tree) on GPQA-Diamond with QWEN-3.8-27B, which reasons 11% shorter. E.4 RULER
Figure 15 of the paper
Figure 15. Implementation of the steps of D-LSA. Badges as in
Figure 16 of the paper
Figure 16. Threshold estimate. For one query i. Top: the sampled scores, with θi at or just below the nθ-th best. Bottom: the row, of which about γp buckets score at or above θi and are listed, the top-p among them. 3 Clustering. The clustering does relatively little work: one Gram matrix per cluster block, over its pooled keys, takes about 0.13 Gflop for a whole chunk, against 5.5 Tflop for the bucket scan at 10M tokens. Ward’s method, however, merges buckets in rounds that run one after the other. Each of these rounds scores every pair of buckets and merges the cheapest mutual pairs…
Figure 17 of the paper
Figure 17. B Bucket scan on H200. Left: the thread blocks (colours) over tiles of tq index queries and spans of centroid tiles, and below, candidate scoring and C expansion for one query. Right: one thread block (Algorithm 3, lines 3-9). at σ ⋆ i until Ji holds k. If these buckets hold fewer than k keys outside the sink and the window, Ji holds fewer. These are the keys that an expansion of the buckets best first would select, in another order. The attention does not depend on the order, so Li is never sorted. Prefill and decode differ in where the scores go, how θi is set, and what a…
Figure 18 of the paper
Figure 18. D-LSA with tensor parallelism (TP8). Top: MLA (GLM-5.3-FLASH). Bottom: GQA (QWEN-3.8-27B). Indexer keys: 1 projection (from the replicated latents with MLA, a partial per KV head with GQA), 2 bucket cache (the same on every rank). Indexer queries: A sum over the rank’s query heads and projection (a partial, summed across ranks by one ALLREDUCE, before the projection with MLA), B selecting the index list (the same on every rank), C attention over the rank’s own query heads. other contributes k (idx) j,r = 0. One ALLREDUCE sums the partials, in fp32, into the projections of Equation…
Figure 19 of the paper
Figure 19. D-LSA with context parallelism (CP8). Top: prefill of GLM-5.3-FLASH (PCP8 + DCP8), each rank holding a contiguous span of the query rows. Indexer keys: 1 projection of the whole chunk (on every rank), 2 bucket cache (the same on every rank). Indexer queries: A projection of the rank’s own rows, B selecting their index lists (other ranks’ rows lighter), C marking the selected prefix rows (a 1 B mask, merged across ranks), D gathering those rows from the ranks that hold them (padded), E attention of the rank’s own rows. Bottom: decode of GLM-5.3-FLASH (PCP8 + DCP8) and QWEN-3.8-27B…

Showing 17 of the paper's 19 figures. 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