State-Resolving Attention for Length-Extrapolating Transformers
Zicheng Liu, Di Wu, Jintao Chen, Di Huang
NeurIPS 2026
TL;DR. State-Resolving Attention decouples long-context attention into content filtering and temporal state resolution, enabling position-encoding-free length extrapolation on repeated-update tasks.
Abstract. Long-context failures are often framed as retrieval failures: a model must find a relevant token among many distractors. However, many practical long-context settings are better understood as state-tracking problems: dialogue histories contain corrections to earlier preferences, code traces repeatedly assign values to variables, document histories revise previous claims, and tool-use trajectories update the current task state. In these settings, a model must not only identify relevant tokens, but also resolve which relevant occurrence is currently valid. We propose Sieve Attention, a position-encoding-free attention mechanism for length-extrapolating Transformers. SRA decomposes attention into two operations: content filtering and temporal state resolution. For each query, SRA first applies a sparse content filter over the full prefix to identify candidate state updates, and then applies a sequential hazard allocation process only over the selected candidates. This resolves repeated updates according to their relative order without relying on external positional encodings, allowing irrelevant intervening tokens to be ignored before recency is applied. We formalize the mechanism and show that its final attention support is contained in the sparse candidate set, that filtered distractors receive exactly zero mass, and that attention ratios among selected candidates are independent of global sequence length and absolute position. Experiments on repeated associative recall and copy tasks show strong extrapolation far beyond the training context length. On long-context evaluation and language-model pretraining, SRA improves long-context behavior while remaining competitive with standard Transformer baselines. These results suggest that content-first, time-second state resolution is a useful inductive bias for long-context models that must track evolving information.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:50 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper proposes State-Resolving Attention (SRA), a length-extrapolating attention mechanism using entmax and stick-breaking. It reports gains on synthetic length-extrapolation tasks and modest pretraining gains on 1B and 3B models. Reviewer scores are 5, 3, 5 (average 4.3). Two reviewers vote to accept and one is borderline reject, and all three converge on a shared set of tractable concerns.
The most important concerns are the following. First, there are no multi-seed runs or error bars, so the modest pretraining gains could be within seed variance. Second, the gradient semantics of the hard entmax support mask are under-specified (Ms7R). Third, several baselines are missing: NoPE on RULER, a top-k or thresholded mask paired with stick-breaking (which would isolate the entmax stage from the stick-breaking stage), and standard length-extension recipes such as PI, YaRN, or PoSE as alternatives to the softmax-plus-RoPE baseline that collapses to zero at four times the training length. Fourth, efficiency reporting stops well short of the 128k regime where the paper claims benefit. One additional point: the entmax threshold τ_α is a global function of the logits, and the fused-kernel section does not describe how it is computed under tiling. A partial approximation there would weaken the length-invariance claim.
The paper is heading toward acceptance if these concerns are addressed. The authors should focus on multi-seed error bars, at least one length-extension baseline on RULER, and clarifying the fused-kernel τ_α computation.
Addendum after the discussion period.
Reviewer_Ms7R raised from 3 to 4 and the other two held (final scores 5, 5, 4).
The authors delivered two of the three priorities above. The RULER length-extension baseline was not run, since a server failure cost them the 1B checkpoints and raw logs, so they ran position interpolation on the synthetic side and committed to PI, YaRN, and NoPE on RULER in the revision.
AC's recommendation is accept. The camera-ready should carry the committed RULER baselines and the enlarged NoPE comparison Reviewer_yCPv asked for.
Final justification
All three reviewers are positive after the rebuttal (5, 5, 4), with Reviewer_Ms7R raising from 3 to 4. The authors delivered multi-seed error bars, the stage-isolation ablations, and the exact tiled computation of the entmax threshold. The RULER length-extension baseline was lost to a server failure and is committed for the revision.
Read meta-review
Meta-review
This paper proposes State-Resolving Attention (SRA), a length-extrapolating attention mechanism using entmax and stick-breaking. It reports gains on synthetic length-extrapolation tasks and modest pretraining gains on 1B and 3B models. Reviewer scores are 5, 3, 5 (average 4.3). Two reviewers vote to accept and one is borderline reject, and all three converge on a shared set of tractable concerns.
The most important concerns are the following. First, there are no multi-seed runs or error bars, so the modest pretraining gains could be within seed variance. Second, the gradient semantics of the hard entmax support mask are under-specified (Ms7R). Third, several baselines are missing: NoPE on RULER, a top-k or thresholded mask paired with stick-breaking (which would isolate the entmax stage from the stick-breaking stage), and standard length-extension recipes such as PI, YaRN, or PoSE as alternatives to the softmax-plus-RoPE baseline that collapses to zero at four times the training length. Fourth, efficiency reporting stops well short of the 128k regime where the paper claims benefit. One additional point: the entmax threshold τ_α is a global function of the logits, and the fused-kernel section does not describe how it is computed under tiling. A partial approximation there would weaken the length-invariance claim.
The paper is heading toward acceptance if these concerns are addressed. The authors should focus on multi-seed error bars, at least one length-extension baseline on RULER, and clarifying the fused-kernel τ_α computation.
Addendum after the discussion period.
Reviewer_Ms7R raised from 3 to 4 and the other two held (final scores 5, 5, 4).
The authors delivered two of the three priorities above. The RULER length-extension baseline was not run, since a server failure cost them the 1B checkpoints and raw logs, so they ran position interpolation on the synthetic side and committed to PI, YaRN, and NoPE on RULER in the revision.
AC's recommendation is accept. The camera-ready should carry the committed RULER baselines and the enlarged NoPE comparison Reviewer_yCPv asked for.
Final justification
All three reviewers are positive after the rebuttal (5, 5, 4), with Reviewer_Ms7R raising from 3 to 4. The authors delivered multi-seed error bars, the stage-isolation ablations, and the exact tiled computation of the entmax threshold. The RULER length-extension baseline was lost to a server failure and is committed for the revision.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes a new attention variant, called Sieve Attention, for length extrapolation. The motivation is to not only identify the relevant tokens, but also resole the state-tracking problems. To solve this, Sieve attention can be factorized into two parts. The first part is a content sieve, which select the relevant tokens. The second part is a sequential allocation over candidates: the attention scores are further calculated through a stick-breaking process. In addition to the algorithm innovations, the authors also consider the engineering efforts to fuse the attention calculation in a tiled kernel.
To validate the effectiveness, the authors first use a toy setup (small model, short training context length, and synthetic tasks) to showcase that Sieve attention can still maintain performance on extremely OOD context lengths. Comparing with Softmax Attention with flash attention implementation, the efficiency is slightly worse. The authors also conduct language modelling experiments to show under 1B and 3B model scales, the LM performance is comparable with softmax attention and stick-breaking attention. Meanwhile, Sieve Attention also exceeds the baselines on RULER benchmark without long-context training.
Strengths and weaknesses
Strengths
-
The paper is well-written with clear storytelling. It first started with the good motivations that current LLMs struggle with two challenges in long context scenarios: relevant token identification and tracking the temporal states. Then the methodology directly hits those two challenges along with the kernel implementation optimisation. The evaluation also follows the pipeline from synthetic to realistic scenarios, which is convincing.
-
Long context is always one of the important topics in LLM community. This paper contributes a new attention variant, which demonstrates promising empirical results. I believe it could be impactful for practitioners.
Weaknesses
-
The performance of Softmax + RoPE can be quickly degraded in long context scenario due to the OOD token distance for RoPE. One may alternatively consider NoPE as a baseline. It is good to see Softmax+NoPE serves as one baseline. It can also strengthen the paper by including this baseline in Figure 6.
-
The common practice to mitigate the length extrapolation in Softmax + RoPE is to have mid-training, or length extension. I am wondering whether Sieve Attention can still maintain the advantages (e.g., RULER evaluation scores) under such a setup.
-
Since the focus of this paper is long context, then it is better to have some visuals on the efficiency under long-context scenarios. Currently, in Figure 4, it seems that only about tokens are considered. How about the efficiency under 128 K token lengths, as used in RULER evaluation?
Questions
-
When formulating the problem setup, for a query at position j, it should be able to attend from token to not . Why token is overlooked in the attention output in equation (2), definition of sparse state tracking in equation (5), and also equation (7).
-
In the Table 2 on pre-training evaluation, what size of training data is used?
-
What's the specific formula for in equation (3) and (4)?
-
What's the theoretical estimation of time and memory complexity of Sieve Attention? I am wondering the reason why its efficiency is suboptimal compared to flash attention. Is this because of the theory or kernel optimisation could be further improved?
-
Can we increase the sparsity parameter to improve the efficiency compared to flash attention.
Limitations
Yes
Final justification
Overall, I think this is a good paper. The authors' response resolved most of my concerns. I will maintain my score to support the acceptance.
Formatting concerns
No
3 comments
Thanks for the authors' response, which resolved most of concerns. Regarding the NoPE baseline (the response to W1), I suggest the authors to enlarge the model size and extend the context length in the final revision. I will maintain my score to support the acceptance.
Sure! We will make it in the revised version. Thanks again for all of your efforts and support!
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes Sieve / State-Resolving Attention, a position-encoding-free attention mechanism for length extrapolation in Transformer LMs. It separates attention into:
- content filtering via sparse entmax to select candidate relevant tokens, then
- temporal state resolution via a stick-breaking / hazard allocation process over only those candidates. The core intended use case is long-context state tracking with repeated updates, e.g., “latest value for key A,” rather than simple needle retrieval. The paper provides simple support/invariance properties and reports strong synthetic extrapolation plus improvements on long-context LM and RULER evaluations.
Strengths and weaknesses
Strengths
- Clear and useful problem framing: The paper distinguishes long-context retrieval from state tracking, which is a meaningful perspective for dialogue, code traces, tool use, and document revision histories.
- Simple, intuitive mechanism: Sieve Attention cleanly separates: content-based sparse filtering, and temporal recency allocation over selected candidates. This matches last-write-wins tasks well.
- Theoretical properties are mostly correct: The support containment, excluded-distractor invariance, and candidate-ratio claims follow from the mechanism, assuming a fixed candidate set and fixed logits.
- Strong synthetic results: The MQRAR and Copy experiments are well aligned with the claimed inductive bias and show impressive extrapolation beyond the training length.
- Good conceptual ablation through baselines: Comparing against softmax, entmax, and stick-breaking helps isolate the roles of sparsity and sequential recency.
- Evidence beyond toy tasks: The paper includes LM pretraining, long-context NLL, and RULER results, which makes the claim more plausible than if it relied only on synthetic tasks.
weakness:
- Gradient/support-mask behavior is unclear: The method uses entmax to choose a hard candidate set, then discards entmax weights. It is not clear how gradients flow through this support decision or whether the mask is treated as hard, approximate, or straight-through.
- Theory is conditional and somewhat limited: The propositions are correct but mainly say what happens after the candidate set is fixed. They do not prove that the model will recover the right support, nor that whole-model behavior is invariant to inserted distractors.
- Entmax threshold computation is under-specified: Exact global entmax support over long causal prefixes is nontrivial, especially in a fused tiled kernel. The implementation details are not sufficient to verify correctness.
- Experimental reproducibility is weak: Important details are missing for pretraining data, token budget, learning rate, batch size, optimizer settings, compute resources, and long-context evaluation setup.
- No error bars / variance: The checklist says best-performing runs are reported for synthetic experiments, which weakens confidence in the reported gains.
- Baselines could be stronger: Missing or underemphasized comparisons include NoPE softmax/entmax, ALiBi, stronger RoPE scaling variants, top- filtering, normalized vs. unnormalized Sieve, and hybrid sparse/recency ablations.
- Inductive bias is narrow: Sieve is well suited to latest-update retrieval, but may fail on earliest-occurrence tasks, dense aggregation, counting, multi-hop reasoning, or tasks requiring exact positional distance.
- Efficiency claims need more support: Throughput plots lack hardware, batch size, sequence length settings, backward-pass details, sparsity levels, and comparison against optimized practical baselines.
Questions
- Clarify training through the entmax support mask. The method uses entmax to define a hard candidate set, then discards the entmax weights. How are gradients handled for tokens outside the support? Is the mask treated as non-differentiable, straight-through, approximate, or fully differentiated through entmax support changes?
- Explain exact support computation in the fused kernel. Computing the entmax threshold over a long causal prefix is nontrivial. How does the tiled implementation compute the global support exactly or approximately without materializing dense attention?
- Add lightweight ablations isolating the two stages. A useful rebuttal experiment would compare Sieve against: entmax attention using entmax weights directly, top-/threshold filtering plus stick-breaking, and stick-breaking over the full prefix. This would test whether gains come from sparse support, the sequential allocator, or their combination.
- Report variance and full numerical tables for key experiments. The checklist suggests best-of-seed reporting for synthetic tasks. Please report mean/std over seeds for synthetic experiments and numeric RULER results for all task groups, not only selected plots.
- Clarify scope by testing one “misaligned” task. Since Sieve encodes a latest-relevant-update bias, a small diagnostic on first-write-wins, counting/aggregation, or exact-position retrieval would help establish boundaries. This need not be large-scale pretraining.
Limitations
- The limitations do not discuss the hard entmax support mask, especially how mistaken exclusions are unrecoverable and how gradients behave.
- They do not sufficiently discuss the implications of using an unnormalized output with null mass.
Final justification
Thanks for the clarification from authors. It looks good to me.
Formatting concerns
NA
2 comments
Rebuttal
We thank the reviewer for an exceptionally thorough review, the questions on gradient semantics and stage isolation motivated experiments that materially sharpened our understanding of the method. We answer every question and weakness point across two comments: Q1, Q2, W8, and Q3/W6 with the full multi-seed ablation table; W2, Q5, the null-mass discussion, and Q4 with numeric RULER values and reproducibility.
Q1 / W1 — gradient semantics of the entmax support mask. The mask is hard and non-differentiated: S_j = supp(entmax_1.5(z_j)) is computed under stop-gradient, the entmax weights are discarded, and gradients reach the logits only through the stick-breaking hazards σ(z_i), i ∈ S_j. There is no straight-through estimator. Two consequences we state explicitly, with new empirical characterization: (1) recovery from mistaken exclusions is indirect, an excluded token re-enters the support only when the loss pushes down the logits of included distractors so that the adaptive threshold τ_α falls; this route exists but is slow, making training step-size- and sharpness-sensitive. (2) The stable recipe is a mildly widened support during training with lr 1.5e-4, with it, every seed and configuration we report trains to ~100% in-distribution. We will document the recipe and its working ranges, and add both points to the Limitations section in the revision.
Q2 / W3 — exact support computation in the fused kernel. τ_α is a global function of each query row, and we compute it exactly with a two-pass scheme, analogous to how online softmax splits max/normalizer computation: pass 1 streams key tiles to obtain the row statistics for the α=1.5 threshold; pass 2 recomputes tile logits, applies the exact threshold to form the support, and performs the log-space allocation via a reverse running sum of softplus. No approximation of the support is involved, so Props. 1-3 hold for the kernel output as stated; we will spell this out in the revision.
W8 — efficiency reporting. The measurements we can provide in-window are from the (re-implemented) reference code: forward-only, batch 1, single H100, toy configuration, 131k-token contexts in 3.4 s at 4.3 GB peak memory, ~1.5x an identically-chunked softmax, while materializing dense attention already needs 49 GB at 32k, consistent with the O(Ld) memory claim. Measured support sparsity at the query positions is ~1% of the prefix at 4k context. We will extend Fig. 4 in the revision with fused-kernel throughput at 128k, backward-pass cost, and FlashAttention as the optimized practical baseline.
Q3 / W6 — stage-isolation ablations and stronger baselines. All requested variants were run on the re-implemented pipeline with 5 random seeds. MQRAR: trained at length 64; 4 repeatedly-updated keys, 64 key / 64 value ids in a 256-token vocabulary, 12 queries:
| Method | ID | 4x | 16x | 64x | 256x | 1024x |
|---|---|---|---|---|---|---|
| Softmax+RoPE | 100.0 ± 0.0 | 5.9 ± 3.2 | 5.2 ± 3.4 | 3.7 ± 2.8 | 4.1 ± 2.4 | 2.3 ± 1.6 |
| Softmax (NoPE) | 98.5 ± 0.5 | 15.1 ± 4.1 | 3.8 ± 1.4 | 1.8 ± 1.0 | 1.5 ± 0.9 | 1.9 ± 1.0 |
| ALiBi | 100.0 ± 0.0 | 99.5 ± 0.0 | 92.4 ± 0.0 | 84.3 ± 2.1 | 80.7 ± 4.4 | 73.3 ± 9.4 |
| α-Entmax+RoPE | 100.0 ± 0.0 | 10.4 ± 8.7 | 11.1 ± 8.1 | 11.3 ± 8.5 | 9.3 ± 7.5 | 6.6 ± 5.3 |
| α-Entmax (NoPE) | 99.8 ± 0.0 | 2.6 ± 0.4 | 1.8 ± 0.2 | 1.9 ± 0.7 | 1.4 ± 0.3 | 2.1 ± 0.4 |
| Stick-Breaking | 100.0 ± 0.0 | 53.0 ± 28.0 | 34.7 ± 28.2 | 34.6 ± 29.5 | 30.4 ± 27.7 | 16.1 ± 14.8 |
| Top-k + Stick-Breaking (k=8) | 100.0 ± 0.0 | 25.5 ± 14.5 | 5.4 ± 4.7 | 1.7 ± 0.6 | 1.2 ± 0.5 | 1.6 ± 0.9 |
| Sieve, normalized output | 100.0 ± 0.0 | 93.4 ± 5.4 | 60.8 ± 20.0 | 37.8 ± 23.5 | 22.8 ± 11.8 | 14.3 ± 7.6 |
| Sieve Attention | 100.0 ± 0.0 | 96.4 ± 2.5 | 83.9 ± 11.9 | 76.6 ± 12.0 | 60.8 ± 18.2 | 54.8 ± 25.4 |
Stage isolation. Each stage alone fails: entmax weights used directly (NoPE) collapse; stick-breaking over the full prefix is seed-unreliable; replacing the adaptive entmax support with a fixed top-k filter also collapses, out of distribution, the correct update's rank among raw logits degrades with length while the adaptive threshold support retains it. The benefit comes specifically from the combination.
ALiBi. Its hard-coded linear recency penalty is length-invariant by construction, and on MQRAR, where the correct update is always among the most recent content matches, it matches or exceeds every method. The same hard-coded bias fails when relevant content is arbitrarily far: on Copy, where the match distance grows with sequence length, ALiBi collapses, consistent with its known long-range retrieval weakness on RULER-style benchmarks. Sieve applies recency only within the content-selected candidate set and therefore handles both regimes; we will add this instructive comparison to the revision.
Normalized vs unnormalized Sieve. Comparable means but consistently ~2x the seed variance for the normalized variant, supporting the unnormalized choice as the more reliable one.
W2 — "the propositions are conditional; nothing shows the model recovers the right support or that whole-model behavior is distractor-invariant." We agree the propositions are conditional on the produced candidate set, so we tested the whole-model claims directly. We splice K irrelevant assignment pairs between the last relevant update and the query section of otherwise identical MQRAR prompts:
| +0 | +32 | +128 | +512 | +2048 pairs | |
|---|---|---|---|---|---|
| Softmax+RoPE | 100.0 | 10.5 | 3.3 | 1.6 | 2.1 |
| Stick-Breaking | 100.0 | 62.5 | 3.7 | 1.7 | 1.7 |
| Sieve | 100.0 | 100.0 | 100.0 | 99.9 | 97.3 |
With 2048 inserted pairs, the trained Sieve model's answers are essentially unchanged, while stick-breaking's hazards on every intervening token absorb the stick and softmax disperses, the whole-model counterpart of Prop. 2 that the conditional propositions alone cannot provide. On support recovery: at 4x length the learned filter keeps ~4 candidates with 0.91 of the attention mass on the current update, and the ±2.5 pp seed spread at 4x indicates the right support is found reliably, not occasionally.
Q5 / W7 misaligned-task diagnostics We ran two, bracketing the inductive bias from both sides. First-write-wins : Softmax+RoPE 100/58.6/18.8/16.1; Stick-Breaking 100/100/100/100; Sieve 100/100/100/100. First occurrences are causally detectable at encoding time, so position-free content selection alone isolates them, the recency allocator does not misfire here. Exact-position retrieval: Softmax+RoPE 100/11.5/2.7/2.1; Stick-Breaking 100/71.0/42.4/43.8; Sieve 99.8/12.6/7.9/7.7. Here Sieve is, as our Limitations predict, among the worst extrapolators: "being the k-th token" is not expressible by content filtering. The two diagnostics delineate the boundary: Sieve's advantage is specific to content-selectable update tracking, largest for last-write-wins, unnecessary for first-write-wins, absent for position-defined queries; counting/aggregation remain out of scope.
Limitation 2 — unnormalized output and null mass. The residual mass a_∅ acts as a learned abstention: the output shrinks toward the residual stream when no candidate takes the stick, and the unnormalized masses are what make the pairwise ratios length-invariant (Prop. 3); normalizing rescales by 1/(1−a_∅), which reintroduces a dependence on how much total stick the prefix consumed. Empirically the normalized variant reaches comparable mean accuracy with roughly twice the seed variance, supporting the unnormalized choice. We will add this discussion to the Limitations section in the revision.
Q4 variance. Every synthetic cell now carries mean ± std over 5 seeds, superseding the checklist's "best-run" reporting on the synthetic side. We additionally ran a 12-run seed-controlled byte-level LM study: Sieve matches softmax in-distribution and remains within 0.18 nats of its ID value at 16x context while softmax+RoPE degrades 5-fold, full table in our reply to yCPv, whose Fig.6 question it also answers.
Q4 numeric RULER values. we present exact values, together with the per-subtask breakdown over all RULER task groups and the NoPE / length-extension baselines the AC requested, for the revision.
| Accuracy (%) | 4k | 8k | 16k | 32k | 64k | 128k |
|---|---|---|---|---|---|---|
| Overall — Softmax+RoPE | 68 | 5 | 0 | 0 | 0 | 0 |
| Overall — Stick-Breaking | 81 | 65 | 43 | 22 | 10 | 4 |
| Overall — Sieve Attention | 98 | 79 | 53 | 35 | 20 | 9 |
| NIAH — Softmax+RoPE | 100 | 2 | 0 | 0 | 0 | 0 |
| NIAH — Stick-Breaking | 100 | 80 | 50 | 24 | 9 | 2 |
| NIAH — Sieve Attention | 100 | 90 | 65 | 41 | 24 | 16 |
| Variable Tracking — Softmax+RoPE | 15 | 0 | 0 | 0 | 0 | 0 |
| Variable Tracking — Stick-Breaking | 94 | 83 | 75 | 39 | 19 | 8 |
| Variable Tracking — Sieve Attention | 99 | 92 | 87 | 63 | 41 | 30 |
Two observations the plots compress: (i) the Variable Tracking gap — the task group most aligned with the paper's state-tracking hypothesis, is the largest and most persistent; (ii) both RoPE baselines are effectively at zero from 16k on, so the extrapolation ordering of the synthetic study carries over to the pretrained models.
W4 reproducibility. The synthetic pipeline is fully specified across these comments and the code will be released. The 1B/3B pretraining follows the stick-breaking attention setup (Tan et al., 2025) with all three attention variants matched: ~1T tokens of a permissively-licensed open-source mixture in two stages, context 4096, batch 1024 sequences. The revision will spell out both recipes in the appendix.
We thank the reviewer again, these requests measurably improved the paper's empirical grounding, and we would be glad to run further diagnostics or clarify any remaining point during the discussion period.
Request before the author discussion window closes
Dear Reviewer Ms7R,
As the author discussion window closes on August 3, we wanted to gently follow up on our July 28 response, which includes the multi-seed stage-isolation ablations, the whole-model distractor experiment, and the misaligned-task diagnostics you requested. We would be happy to run any further experiments or clarify any point while we can still respond.
Thank you for your time and effort in reviewing our manuscript.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper reframes the long-context problem from retrieval to state-tracking as many realistic tasks require identifying a small set of relevent states and updates as opposed to retrieving a few relevant tokens. To this end, the authors propose sieve attention, which decomposes attention into two stages: a sparse content filter using entmax and a sequential allocator (via hazard allocation) over the selected candidates. The authors provide theoretical intuition for understanding why sieve attention works, along with comprehensive empirical results demonstrating length generation on both synthetic tasks and real-world benchmarks.
Strengths and weaknesses
Strengths:
- The framing is genuinely useful to the community: drawing a line between retrieval and state tracking is a useful lens to think about the long-context problem
- As a sidebar, people have attempted to resolve long context with recurrent or state space models. I think this work does a great job of reconciling the idea of maintaining running states while not entirely replacing the attention mechanism. As such, I find the attempt to integrate the sieve attention into a pretrained model compelling.
- I appreciate the combination of synthetic + real benchmarks + ablation w/ entmax and stick-breaking on their own.
- The community has been of slowly arriving at the view that positional encoding hamstrings long-context, making your approach work without positional encoding agrees with this hypothesis, and is interesting in its own right.
- The propositions were helpful in understanding why exactly sieve attention works. The distractor invariance + support containment makes the decomposition clearer to me.
- I found the log-space allocation a clever trick.
- The complexity analysis and fused kernel are a particularly nice addition.
Weaknesses:
- Small presentation issue, but I’m assuming SRA stands for state-resolving attention, but this is never mentioned anywhere.
- The improvements on the language-model pretraining benchmarks (Table 2) are modest, I would like to see multiseed evaluation or some sort of statistical significance so I know these gains are meaningful.
- I would appreciate more experiments. While MQRAR and copy are compelling, I would appreciate some finetuning benchmarks, for example, long horizon reasoning or via coding or mathematics.
- Can I get specific experiments that support each proposition? Especially since the authors make some practical adjustments to the algorithm, it would be helpful to see the exact tradeoff, or precisely, why sieve attention should recover the correct supports in realistic language modeling settings.
Questions
Can you provide multi-seed results for some of the experiments? Stick-breaking seems to capture most of the extrapolation benefit? When exactly does sieve provide large improvements over stick-breaking? Are there precise regimes where you’d prefer one of the other? Suppose you tried learning the optimal sparsity level per head/layer. Is this feasible? Would this improve the terminal performance?
Limitations
yes
Final justification
Please see our thread; the reviewers resolved most of my concerns regarding methodology and mechanistically attributing gains to their contribution (sieve-attention). The only item that remains is more realistic, long-horizon finetuning benchmarks, which the authors agree to scope for revision. Overall, I confirm my score of acceptance (5), and believe that the framing and method alone are of value to the community.
Formatting concerns
n/a
3 comments
Rebuttal
lResponse to Reviewer CEuq
We thank the reviewer for the encouraging assessment and for the questions on statistical significance and the Sieve-vs-stick-breaking regime, both are now answered with data. (Also fixing the presentation slip you caught: SRA = State-Resolving Attention (= Sieve Attention); we will state this at first use and unify naming in the revision.)
Multi-seed results. We re-ran the full synthetic study on a re-implemented pipeline with 5 random seeds; MQRAR (exact match %, mean ± std, trained at length 64):
| Method | ID | 4x | 16x | 64x | 256x | 1024x |
|---|---|---|---|---|---|---|
| Softmax+RoPE | 100.0 ± 0.0 | 5.9 ± 3.2 | 5.2 ± 3.4 | 3.7 ± 2.8 | 4.1 ± 2.4 | 2.3 ± 1.6 |
| α-Entmax+RoPE | 100.0 ± 0.0 | 10.4 ± 8.7 | 11.1 ± 8.1 | 11.3 ± 8.5 | 9.3 ± 7.5 | 6.6 ± 5.3 |
| Stick-Breaking | 100.0 ± 0.0 | 53.0 ± 28.0 | 34.7 ± 28.2 | 34.6 ± 29.5 | 30.4 ± 27.7 | 16.1 ± 14.8 |
| Sieve Attention | 100.0 ± 0.0 | 96.4 ± 2.5 | 83.9 ± 11.9 | 76.6 ± 12.0 | 60.8 ± 18.2 | 54.8 ± 25.4 |
On the pretraining side, a 12-run seed-controlled byte-level LM study (wikitext-2, 6 layers, context 512, 4 attention mechanisms × 3 seeds, NLL/byte at 1-16x) shows the ID parity and OOD gaps are far outside seed noise: Sieve 1.011 ± .005 vs softmax 1.013 ± .005 in-distribution (both clearly below stick-breaking's 1.058 ± .004), Sieve lowest of all methods at 2x (1.042 ± .002) and within 0.18 nats of ID at 16x, while softmax+RoPE degrades to 5.087 ± .252. Full 1B/3B multi-seed re-runs will be in the revision.
When exactly does Sieve beat stick-breaking? Two regimes emerge. (i) Reliability at any length: SB reaches a length-robust solution only for some seeds (±28 pp at 4x above), while Sieve reaches it for every seed (±2.5 pp) — the factorization removes the seed lottery. (ii) Distractor density: SB's hazards act on every intervening token, so irrelevant pairs spliced into a fixed prompt absorb stick mass (answer accuracy 62.5% at +32 inserted pairs, 3.7% at +128), while Sieve filters them before allocation (≥97% through +2048 pairs — a 65x longer prompt). When contexts are short or distractor-free the two are near-equivalent — consistent with the ID column.
Experiments supporting the propositions. Beyond machine-precision unit tests of Props. 1-3 in the code (to be released), the trained-model evidence maps onto each: support containment and zero distractor mass ↔ the measured attention at 4x length (Sieve keeps 4 nonzero entries with 0.91 mass on the current update, vs softmax spreading with 0.85 on an unrelated recent token and 0.02 on the current one); invariance to excluded distractors ↔ the splicing experiment above; length-invariant allocation ↔ Sieve's flat accuracy curves relative to all baselines. On "why should the right supports be recovered in realistic settings": the byte-LM study is our current evidence (ID parity with softmax requires the filter not to discard useful context), and the practical adjustment it relies on — a training-time temperature 2 on the sieve stage that widens the support during optimization — is exactly the tradeoff knob; we will document it and its effect explicitly in the revision.
Finetuning benchmarks (long-horizon reasoning, coding, mathematics). We agree these would strengthen the evaluation; they require the pretrained checkpoints and are beyond the response window, so we scope them for the revision, with RULER and the LM studies as the current realistic-task evidence.
Learned per-head/layer sparsity. Feasible — a per-head temperature (equivalently α) on the sieve-stage logits is learnable end-to-end through the hazards; a training-free length-adaptive support variant already improves Copy at long lengths (51.8 vs 35.5 at 64x), and we will discuss learned sparsity as future work in the revision.
Thank you again, if additional significance analyses (e.g., paired per-seed comparisons) or other diagnostics would be helpful, we would be glad to provide them during the discussion.
Thank you for your response and for running the additional experiments. I will maintain my score!
Thanks for all of your efforts! They help us a lot.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
Response to Reviewer yCPv
We thank the reviewer for the positive evaluation and for several precise technical questions; we answer each below.
W1 — NoPE in the Fig. 6 comparison. We provide it at small scale with seed control: a 12-run byte-level LM study on wikitext-2 (6 layers, d=384, trained at context 512; 4 attention mechanisms × 3 seeds; NLL/byte at 1-16x the training context, mean ± std):
NoPE solves ID (best NLL) but degrades 3.8-fold by 16x — removing positional encodings alone does not confer extrapolation; the sequential allocator over a filtered support is what stabilizes it (Sieve matches softmax ID and is lowest of all methods at 2x). We will add the Softmax-NoPE curve to Fig. 6 in the revision.
W2 — does Sieve keep its advantage under length-extension recipes? In-window we evaluated position interpolation on the synthetic side (5 Softmax+RoPE checkpoints, eval-time RoPE rescaling): PI lifts MQRAR 4x from 5.9 ± 3.2 to 56.4 ± 12.4 but still collapses from 16x on (12.3 ± 4.9, then ≤3), while Sieve needs no eval-time adjustment (96.4 ± 2.5 at 4x, 63.9 ± 11.9 at 16x). PI/YaRN on RULER requires the pretrained 1B checkpoints and will be added in the revision.
W3 / Q4 — efficiency at 128k and complexity. Worst-case compute is O(L²d) like dense attention (the prefix must be scanned to score candidates); memory is O(Ld) since neither the attention matrix nor the support is materialized. Our reference implementation runs 128k-token contexts on a single H100 (forward pass: 3.4 s, 4.3 GB peak, ~1.5x an identically-chunked softmax), while materializing dense attention already needs ~49 GB at 32k. The remaining gap to FlashAttention comes from kernel maturity — the fused kernel adds a second pass and a reverse cumulative sum and has received far less tuning — not from asymptotic cost; the revision will extend Fig. 4 to 128k with FlashAttention as the optimized baseline.
Q1 — why is token j excluded in Eqs. (2)/(5)/(7)? Stick-breaking convention: the allocator ranges over strictly preceding tokens; including j would let every query trivially select itself. (The public stick-breaking kernel exposes both conventions via
attend_current; our results use the strict one, matching the paper's equations.) We will clarify this in the revision.Q2 — size of the pretraining data in Table 2. Both the 1B and 3B models (all three attention variants, matched) follow the pretraining setup of stick-breaking attention (Tan et al., 2025): ~1T tokens of a permissively-licensed open-source data mixture, trained in two stages (a medium-quality mixture, then a decay stage that mixes in a small amount of high-quality and synthetic data), context length 4096, batch size 1024 sequences, Power learning-rate schedule with warmup. We will state this explicitly in the revision together with the full recipe.
Q3 — formula for τ_α. For α = 1.5, τ is the unique scalar with Σ_i [z_i/2 − τ]²₊ = 1 (after the (α−1) scaling); it is computable exactly by sorting (Peters & Martins 2019, Alg. 2) or bisection, and exactly under tiling via a two-pass scheme (pass 1 accumulates the associative row statistics for the threshold across key tiles; pass 2 applies it and allocates). We will add the formula and algorithm reference to Section 2 in the revision.
Q5 — can α be increased for efficiency? Yes — larger α (equivalently a sharper temperature) shrinks the candidate set and with it the allocation/aggregation cost, at the accuracy trade-off shown in Fig. 4-right; α can also be learned per head, which we will discuss as future work in the revision.
Thank you again, we welcome any follow-up questions in the discussion.