- Rating
- 5
- Clarity
- 4
- Confidence
- 4
- Originality
- 3
- Quality
- 4
- Significance
- 3
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
Paper formatting concerns
No
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.
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.