potentialpaper

DashAttention: Differentiable and Adaptive Sparse Hierarchical Attention

Yuxiang Huang, Nuno Gonçalves, Federico Alvetreti, Lei Li, Xu Han, Edoardo Ponti, Andre Martins, Marcos Vinicius Treviso

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Current hierarchical attention methods, such as NSA and InfLLMv2, select the top-kk relevant key-value (KV) blocks based on coarse attention scores and subsequently apply fine-grained softmax attention on the selected tokens. However, the top-kk operation assumes the number of relevant tokens for any query is fixed and it precludes the gradient flow between the sparse and dense stages. In this work, we propose DashAttention (Differentiable and Adaptive Sparse Hierarchical Attention), which leverages the adaptively sparse α\alpha-entmax transformation to select a variable number of blocks according to the current query in the first stage. This in turn provides a prior for the second-stage softmax attention, keeping the entire hierarchy fully differentiable. Contrary to other hierarchical attention methods, we show that DashAttention is non-dispersive, translating to better long-context modeling ability. Experiments with large language models (LLMs) show that DashAttention achieves comparable accuracy as full attention with 75% sparsity and a better Pareto frontier than NSA and InfLLMv2, especially in high-sparsity regimes. We also provide an efficient, GPU-aware implementation of DashAttention in Triton, which achieves a speedup of up to 3.3×3.3\times over FlashAttention-3 at inference time. Overall, DashAttention offers a cost-effective strategy to model long contexts.

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 paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:46 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

Overall, the reviewers find that the paper proposes an interesting and practically useful sparse-attention method. The work could be further strengthened by addressing the following concerns:

(1) Evaluation on longer contexts. The current submission considers context lengths of up to 16K tokens. It would be valuable to evaluate the method on substantially longer contexts, such as 32K, 64K, and 128K tokens, to better demonstrate its scalability and effectiveness in long-context settings.

(2) Experiments across broader model families. The current evaluation is limited to MiniCPM as the base model. Additional experiments on other representative model families, such as Qwen and DeepSeek, would help establish whether the proposed method generalizes across different architectures and model families.

I have read the authors' response to the reviewers as well as the reviewers' feedback. The reviewers are consistenty satisfied with the rebuttal, particularly with the addtional empirical results. Therefore, I would like to recommend an acceptance.

(3) Hyperparameter analysis. A more detailed discussion and empirical analysis of the key hyperparameters, as also suggested by Reviewer hsmC, would be helpful. In particular, sensitivity analyses could clarify the robustness of the method to different hyperparameter settings and provide practical guidance for its application.

(4) End-to-end serving benchmarks for efficiency evaluation. As noted by Reviewer hsmC, evaluating the method in end-to-end serving settings using systems such as vLLM or SGLang would provide a more realistic assessment of its practical efficiency. Reporting metrics such as latency, throughput, and memory usage would make the efficiency claims more convincing.

Final justification

Accept as a poster. For details, please refer to my meta review.

Area Chair zgoM · Meta-reviewOpenReview ↗
Final justification
Accept as a poster. For details, please refer to my meta review.
Read meta-review
Meta-review

Overall, the reviewers find that the paper proposes an interesting and practically useful sparse-attention method. The work could be further strengthened by addressing the following concerns:

(1) Evaluation on longer contexts. The current submission considers context lengths of up to 16K tokens. It would be valuable to evaluate the method on substantially longer contexts, such as 32K, 64K, and 128K tokens, to better demonstrate its scalability and effectiveness in long-context settings.

(2) Experiments across broader model families. The current evaluation is limited to MiniCPM as the base model. Additional experiments on other representative model families, such as Qwen and DeepSeek, would help establish whether the proposed method generalizes across different architectures and model families.

I have read the authors' response to the reviewers as well as the reviewers' feedback. The reviewers are consistenty satisfied with the rebuttal, particularly with the addtional empirical results. Therefore, I would like to recommend an acceptance.

(3) Hyperparameter analysis. A more detailed discussion and empirical analysis of the key hyperparameters, as also suggested by Reviewer hsmC, would be helpful. In particular, sensitivity analyses could clarify the robustness of the method to different hyperparameter settings and provide practical guidance for its application.

(4) End-to-end serving benchmarks for efficiency evaluation. As noted by Reviewer hsmC, evaluating the method in end-to-end serving settings using systems such as vLLM or SGLang would provide a more realistic assessment of its practical efficiency. Reporting metrics such as latency, throughput, and memory usage would make the efficiency claims more convincing.

1 comment
Authors · CommentOpenReview ↗

Response to Meta Review

We sincerely than the AC and all the reviewer for devoting their effort in reviewing our papers, and provide such valuable comments. Here are our response to the four weaknesses raised by the meta review.


W1: Evaluation on longer contexts.

We have included additional results of RULER tested at 32K, 64K, and 128K context lengths. Please refer to our response to hsmC's W1. Empirical results show that the proposed method, DashAttention, consistently outperform NSA and InfLLMv2 under longer context lengths.

W2: Experiments across broader model families.

DashAttention only modifies the attention module, and shall be orthogonal to other model architectural improves, i.e., Qwen's QK-Norm and Deepseek's MoE. Also, the MiniCPM-4's architecture is very close to standard Llama. Therefore, we believe that our conclusion should be generalizable. We have provided results on another model architecture, Tiny-Aya-Base, and DashAttention can consistently outperform our strongest baseline, InfLLMv2, on the RULER benchmark. Please refer to the Official Comment to reviewer hsmC for more details.

W3: Hyperparameter analysis.

Please refer to our response to hsmC's Q3. We have provide a more detailed discussion on the hyperparameters we introduced in DashAttention.

W4: End-to-end serving benchmarks for efficiency evaluation.

Please refer to our response to hsmC's W3. Integrating sparse attentions into serving frameworks requires huge amount of engineering work that we are currently unable to accomplish due to the limited time in the discussion period. Also, similar methods, e.g., NSA, InfLLMv2, FSA, have not included their implementation into vLLM and SGLang's mainline. Benchmarking at kernel level is the standard way of testing efficiency in this line of work.


Again, we thank you very much on organizing the initial meta reviews. Should you have any further questions, please do not hesitate to contact us.

Reviewer gSzpOpenReview ↗
Rating
5/6
Confidence
4/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

DashAttention targets long-context sparse attention by replacing fixed top-kk chunk routing with α\alpha-entmax routing, then applying token-level softmax only inside routed chunks with a weak routing-derived prior. The evidence is continual pretraining on MiniCPM-4 1B/3B/8B models, evaluation on RULER and HELMET at 16K context, general-task checks, a non-dispersion theorem for head aggregation, and isolated Triton kernel benchmarks. The claimed contribution is an adaptive, differentiable, GPU-aware hierarchical sparse attention method that is faster than full attention and stronger than NSA/InfLLMv2 under similar sparsity.

Strengths and weaknesses

The paper has a clear and useful idea: replace fixed top-k block routing in hierarchical sparse attention with alpha-entmax routing, so the number of selected chunks can vary by query, head, and layer. This is a meaningful improvement over fixed-budget sparse attention, especially for long-context retrieval where the amount of relevant evidence is not fixed. The method is also practical: it keeps the expensive token-level softmax only inside selected chunks and gives a GPU-oriented implementation with bit-packed masks and Triton kernels.

The empirical results are reasonably strong. On RULER-16K, DashAttention consistently improves over NSA and InfLLMv2 at comparable sparsity for 1B, 3B, and 8B models. The gains are especially clear on multi-key retrieval tasks, where adaptive routing is expected to matter. On HELMET, the overall gains are smaller, but the Recall improvements are consistent and substantial. The paper also checks general short-context performance and shows that DashAttention does not noticeably hurt standard capabilities. The speed results are also useful: the reported kernel benchmarks show consistent speedups over FlashAttention and InfLLMv2 across context lengths and sparsity levels.

The main weakness is that some claims are stronger than the evidence. The paper repeatedly describes the method as fully differentiable, but Stage 2 still uses the support induced by entmax as a hard sparse mask. Entmax is differentiable within fixed-support regions and piecewise differentiable at support changes, so this is better than top-k, but not as clean as the wording suggests. The authors should state this more carefully.

The theoretical result is relevant but limited. The non-dispersion theorem supports the use of sparse entmax aggregation, but it relies on a sublinear-support assumption. The paper does not prove that the trained DashAttention models satisfy this assumption. Therefore, the theorem should be presented as motivation for the design rather than a full explanation of the empirical gains.

Some ablations are not strong enough. The local chunk summarization mechanism gives only a small gain over mean pooling in the reported ablation, so it is not clear that this component is essential. Also, the prior-bias mechanism is used with very large sigma values, which makes the prior weak and makes the method operationally close to entmax-based block selection followed by ordinary block-sparse softmax. This is still a good method, but the paper should isolate the contribution of the prior more clearly.

The evaluation would be stronger with repeated runs, confidence intervals, or bootstrap estimates. This matters because some HELMET overall gains over InfLLMv2 are small, especially at 3B and 8B. The current results are promising but not enough to claim uniform improvement across all long-context tasks. The speed evaluation is also a kernel benchmark rather than end-to-end serving throughput, so the claimed inference speedup should be interpreted carefully.

Overall, I find the submission technically sound and useful. The idea is simple but well targeted, the implementation is practical, and the RULER plus Recall results support the core claim that adaptive routing helps retrieval-heavy long-context sparse attention. The paper should weaken some theory and differentiability claims, add statistical reliability, and better isolate the prior mechanism, but the contribution is likely useful to the community.

Questions
  1. Can the authors clarify the exact gradient path through the entmax-induced support mask? In particular, do chunks outside the active support receive any useful gradient signal, or is the differentiability only within the current active support?

  2. The non-dispersion theorem assumes sublinear entmax support. Can the authors report empirical support-size scaling with context length, or otherwise weaken the claim that the theorem explains the behavior of DashAttention?

  3. How much of the gain comes from entmax adaptive support versus the prior-induced bias in Stage 2? Please add an ablation comparing entmax mask only, entmax mask plus prior, and a simple dynamic top-k or top-p router.

  4. Are the HELMET gains statistically reliable? Please report confidence intervals, bootstrap estimates over examples, or repeated training/evaluation runs, especially for the 3B and 8B overall scores.

  5. Can the authors provide end-to-end prefill and decoding throughput in a real serving setup, including KV-cache management and router-produced masks? The current kernel benchmark is useful but does not fully support production-level speed claims.

  6. How were gamma, sigma, chunk size, and the sparsity targets selected? Were any of these tuned using RULER or HELMET scores?

Limitations

Yes, the paper mentions lack of integration into vLLM/SGLang.

Final justification

The rebuttal addresses my main concerns with new experiments, and the gains remain consistent. While not all concerns are fully resolved, I find the additional evidence sufficient to increase my rating from Borderline accept to Accept.

Formatting concerns

No formatting concerns.

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We sincerely thank you for your time and effort on reviewing our paper.


W1: Some claims are stronger than the evidence regarding the entmax transformation.

Thanks for pointing this out. To clarify, entmax is differentiable almost everywhere, as per the original paper. In DashAttention, the chunks that receive 0 priors do not participate in the backpropagation, which is aligned to the original entmax design.

W2 & Q2: The theoretical result is relevant but limited

Our assumption of sublinear amount of activation is based on observation, and also follows the assumption of ASEntmax [1] paper’s Prop 1. To validate this assumption, we conduct a simple numerical experiment. By assuming attention logits are Normal, we sample z1,z2,⋯ ,zN∼N(0,σ2)z_1, z_2, \cdots, z_N \sim N(0, \sigma^2), and compute p=1.5-entmax(z)\text{p} = 1.5 \text{-entmax}(\text{z}). We report the density (%) w.r.t. various N,σN, \sigma. The following results show that when increasing the sequence length NN, the density decreases, showing that the density grows in a sub-linear trend.

NN σ=0.5\sigma = 0.5 σ=1\sigma = 1 σ=2\sigma = 2
128 23.06 9.51 4.09
256 14.36 5.55 2.28
512 8.72 3.28 1.27
1024 5.13 1.82 0.70
2048 2.99 1.03 0.38

W3 & Q3: Some ablations are not strong enough

The prior is kept weak (large σ\sigma) because the chunk summaries are only a coarse approximation of each block: a strong prior pushes the token-level attention toward this approximation error, as the ablation shows (σ\sigma = 10 drops RULER to 82.0, Table 10). The prior still plays two roles: it defines the Stage-2 support, and it is the path through which gradients reach Stages 0-1, keeping the router and the summary head trainable. The reviewer is right that in the forward pass increasing σ\sigma approximates the limit case of entmax block selection followed by block-sparse softmax.

On the requested ablation: "entmax mask only" cannot be trained, because a hard mask passes no gradient to Stages 0-1; the router would stay untrained and the summaries frozen at mean pooling, which is close to the InfLLMv2 design we already compare against. The σ\sigma sweep in Table 10 is the controlled study of prior strength: from a strong prior (σ\sigma = 10, 82.0) to a nearly hard mask (σ\sigma = 1e12, where the bias and its gradient are scaled by 1e-12), with 83.1 / 83.6 / 83.1 for 1e4 / 1e8 / 1e12.

On a dynamic top-k or top-p router: there is no principled rule for choosing a per-query k, which is the problem entmax solves. Top-p over softmaxed chunk scores does give an adaptive support, but it is equally non-differentiable, so it also cannot train Stages 0-1; it aggregates dense softmax probabilities across GQA heads before selection, which is dispersive by Thm. 1; and it requires a per-query sort, while the entmax threshold is computed sort-free (see AdaSplash [3]).

On local attention: we agree the average gain over mean pooling is modest (83.6 vs. 83.3) and will temper the wording. We keep the component because it costs nothing: it initializes exactly at mean pooling, and the Stage-0 kernel is identical, so there is no inference overhead.

W4 & Q4: The evaluation would be stronger with repeated runs, confidence intervals, or bootstrap estimates.

The gains that support our main claim are large and consistent: on RULER 8B, 83.6 vs. 78.9 (InfLLMv2) and 55.0 (NSA); on HELMET Recall 8B, 88.3 vs. 81.4; on multi-key retrieval MK3, 86.0 vs. 52.0. These margins are far above plausible evaluation noise. We agree that the 3B overall HELMET gap (34.3 vs. 34.2) can be within noise, and we will reword Sec. 5.1 to claim clear gains on retrieval-heavy tasks and parity on the remaining HELMET categories. Regarding protocol, the official HELMET benchmark [4] reports task-averaged scores, and recent sparse-attention papers [5], [6], [7] follow the same practice, which we adopted.

W5 & Q5: The speed evaluation is also a kernel benchmark rather than end-to-end serving throughput

We acknowledge the importance of vLLM/SGLang integration for real-world utility. However, full integration is a HUGE engineering project, as it requires (a) paged management of the chunk-summary cache together with the paged KV cache, (b) attention kernels that walk the bit-packed mask over paged memory, (c) a scheduler aware of per-request variable sparsity, and (d) efficient implementations for all of that. To our knowledge, the sparse paths of prior works (e.g., NSA, InfLLMv2, FSA) have not been adopted in mainline vLLM/SGLang yet, so kernel-level benchmarking is currently the standard way to compare these attention operators without serving-stack confounders such as request-level scheduling and CPU costs. Because attention dominates the per-token cost at long context (see Figure 2(a) in [8]), kernel gains are indicative of, though not identical to, serving gains; we will state this caveat explicitly in Sec. 5.2.

On router-produced masks: Stage-2 cost depends only on how many chunks each query visits, not on which chunks they are, so a mask at matched sparsity reproduces the compute and memory traffic of a real mask; mask content can matter only through second-order cache effects, which average out across queries and batches.

Q1: Can the authors clarify the exact gradient path through the entmax-induced support mask?

We would like to respectfully clarify the smoothness of entmax, since it is stronger than the reviewer suggests. For 1<α<21 < \alpha < 2 (we use α\alpha = 1.5), α\alpha-entmax is continuously differentiable everywhere, including at support changes. Its Jacobian has the closed form dp/dz=(diag(s)−ss⊤)/(1⊤s)dp/dz = (diag(s) - s s^\top) / (1^\top s), with sj=pj2−αs_j = p_j^{2-\alpha} on the support and 0 elsewhere [6]. When a coordinate leaves the support, pj→0p_j \to 0 and its Jacobian entries vanish continuously, so there is no kink. The "piecewise differentiable" picture is correct for sparsemax (α=2\alpha = 2), where sjs_j jumps between 1 and 0, but not for 1.5-entmax.

Stage 2 does not apply a separate hard mask over a dense computation. Its support is the set of chunks with nonzero prior, equivalently those with finite bias di,j=(log⁡wi,c(j)−μi)/σd_{i,j} = (\log w_{i,c(j)} - \mu_i)/\sigma (Prop. 1). As routing mass w→0w \to 0, the bias tends to minus infinity and the chunk’s contribution vanishes continuously. This contrasts with top-k, where dropping a block causes a discontinuous output change and the selection step has no gradient. Thus, the end-to-end map is continuous and differentiable except when a chunk score lies exactly at the entmax threshold, a measure-zero set, as in ReLU networks—the standard meaning of “fully differentiable.” We will state this more precisely in Sec. 3 and App. A, replacing the weaker “piecewise” description.

On the gradient path: loss -> Stage-2 softmax with bias d -> routing probabilities w -> entmax Jacobian -> chunk logits -> query q_i and chunk summaries -> the Stage-0 summary head and the key projections. Chunks with exactly zero routing mass receive zero gradient for that query. This is intentional: it keeps the backward pass sparse (Sec. 3.5) and mirrors ReLU's zero region. These chunks still train for two reasons. (1) Support is query-, head-, and position-dependent, so a chunk excluded for one query is often active for others in the same batch, receiving gradients through its keys and summary. (2) The Jacobian vanishes continuously at the boundary, allowing chunks to enter and leave the support smoothly. The α\alpha schedule (1.25 -> 1.5) also keeps support denser early, so most chunks receive direct signal before sparsity increases.

Q6: How were gamma, sigma, chunk size, and the sparsity targets selected? Were any of these tuned using RULER or HELMET scores?

Very little tuning is needed, the same settings transfer across all three model scales, and none of them were selected by searching over RULER or HELMET accuracy.

Chunk size B = 64 was fixed to match the block size of NSA and InfLLMv2, and it is an inference-time knob: a model trained with B = 64 runs at B in {16, 32, 64, 128} with no retraining (Table 7).

α\alpha = 1.5 is the standard, historically performant and well-behaved choice in the entmax literature [1], [9], [3], and admits faster solvers; gamma only sets the average sparsity at inference, so that we can match the baselines' sparsity budgets and sweep the Pareto frontier (Fig. 2); it is a matching constraint, not an accuracy knob. The 75% target itself is inherited from the baselines' training configuration.

σ\sigma is robust: accuracy is stable for all sufficiently large values (sigma in {1e4, 1e8, 1e12} gives 83.1 to 83.6 RULER avg.); only an overly strong prior hurts (82.0). We chose a large sigma to keep the prior weak, and Table 10 verifies that this choice is not delicate.


[1] Peters, Ben, Vlad Niculae, and André FT Martins. "Sparse sequence-to-sequence models."

[2] Vasylenko, Pavlo, et al. "Long-context generalization with sparse attention."

[3] Gonçalves, Nuno, et al. "Adasplash-2: Faster differentiable sparse attention."

[4] Yen, Howard, et al. "Helmet: How to evaluate long-context language models effectively and thoroughly."

[5] Lai, Xunhao, et al. "MiniMax Sparse Attention."

[6] Fu, Yaosheng, et al. "SparDA: Sparse Decoupled Attention for Efficient Long-Context LLM Inference."

[7] Liu, Siran, et al. "RRAttention: Dynamic Block Sparse Attention via Per-Head Round-Robin Shifts for Long-Context Inference."

[8] Jiang, Huiqiang, et al. "Minference 1.0: Accelerating pre-filling for long-context llms via dynamic sparse attention."

[9] Correia, Gonçalo M., Vlad Niculae, and André FT Martins. "Adaptively sparse transformers."

Reviewer hsmCOpenReview ↗
Rating
4/6
Confidence
4/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

DashAttention proposes a hierarchical sparse attention mechanism that replaces the fixed top-k block routing used in methods such as NSA and InfLLMv2 with an adaptive α-entmax router. The method first summarizes each local chunk with a learned local-attention summarization head, then applies α-entmax over chunk-level scores to select a variable number of chunks, and finally performs token-level sparse softmax attention over the routed chunks with a prior derived from the routing weights. The intended advantage is that the routing stage becomes adaptive and differentiable, instead of relying on a fixed non-differentiable top-k selection. The paper also provides a theoretical discussion about dispersion in softmax head aggregation and presents a Triton implementation with kernel-level speedups over FlashAttention-3, NSA, and InfLLMv2. Experiments on MiniCPM-4 1B/3B/8B models show improvements over NSA and InfLLMv2 on RULER and HELMET at around 75% sparsity.

Strengths and weaknesses

Strengths:

The motivation is reasonable. Fixed top-k routing is a clear limitation of hierarchical sparse attention because different queries, heads, and layers may require different numbers of relevant chunks. The use of α-entmax for adaptive sparse routing is technically natural and gives the method a cleaner differentiable path than top-k block selection.

Weaknesses:

Weaknesses:

  1. The empirical scope is limited for a paper about long-context sparse attention. The main results are at 16K context length, but the real value of sparse attention should become clearer at much longer lengths such as 32K, 64K, or 128K. Without these results, it is hard to judge whether the method scales robustly.

  2. The evaluation is limited to MiniCPM-4 model variants. It is unclear whether the same gains would hold for other model families, different architectures, different GQA settings, or stronger long-context base models.

  3. The efficiency results are mostly kernel-level benchmarks, not end-to-end serving results. They do not include full transformer-layer costs, QKV projection, MLP layers, paged KV cache, request scheduling, batching behavior, or real deployment overhead. Therefore, the reported speedups may overstate the practical serving benefit.

4/ The benchmark setup for DashAttention partly uses randomized active-block masks to isolate Stage 2 cost. This makes the comparison cleaner in one sense, but it also means the measured speed does not fully reflect the real cost and irregularity of actual entmax-generated routing masks.

  1. The theoretical analysis is interesting but narrow. It focuses on dispersion in softmax head aggregation, but it does not prove that the complete DashAttention pipeline reliably preserves important long-range evidence after chunk summarization and sparse routing.
Questions

Please see weaknesses.

  1. Can the authors provide end-to-end serving benchmarks in vLLM or SGLang, including paged KV cache, continuous batching, and real request scheduling?

  2. What are the results at 32K, 64K, and 128K context lengths?

  3. How sensitive is the method to chunk size, α, γ, and σ? How much tuning is required for a new model or task?

  4. What is the latency variance caused by adaptive sparsity across different requests?

  5. Can the authors report results using actual entmax-generated masks in the efficiency benchmark instead of randomized masks?

  6. Can the authors provide failure cases where the chunk summarization or router misses important evidence?

  7. How does sparse DashAttention perform on general short-context tasks if it is not switched back to full softmax attention at inference?

Limitations

yes

Final justification

The author partially addressed my concerns. I will raise my score to 4.

Formatting concerns

N/A

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We sincerely thank you for your time and effort on reviewing our paper.


W1 & Q2: Evaluation at a longer context lengths

TFollowing your suggestion, we evaluate our 1B models on RULER at a context length of 32K. For the 64K and 128K evaluations, we start from the 16K-context versions of the 1B models and perform a short stage of continual pre-training at a 64K context length. The following results show that DashAttention outperforms NSA and InfLLMv2 on longer context lengths.

RULER-32K S1 S2 S3 MK1 MK2 MK3 MV MQ VT CWE FWE QA1 QA2 Avg. Sparsity
FullAttn 100.0 100.0 98.0 96.0 48.0 24.0 63.5 79.0 40.8 1.0 73.3 28.0 34.0 60.4 100.0
NSA 94.0 46.0 40.0 26.0 2.0 0.0 31.0 25.5 25.6 4.2 58.0 24.0 24.0 30.8 87.5
InfLLMv2 100.0 92.0 94.0 62.0 20.0 4.0 52.5 56.5 36.8 1.0 74.0 22.0 28.0 49.5 87.5
DashAttention 100.0 98.0 88.0 84.0 16.0 2.0 76.5 67.5 44.0 0.8 67.3 20.0 26.0 53.1 88.4
RULER-64K S1 S2 S3 MK1 MK2 MK3 MV MQ VT CWE FWE QA1 QA2 Avg. Sparsity
FullAttn 100.0 100.0 90.0 84.0 26.0 0.0 29.5 46.5 62.0 0.4 61.3 18.0 24.0 49.4 0.0
NSA 100.0 32.0 32.0 22.0 2.0 0.0 13.0 15.0 19.2 0.2 73.3 28.0 24.0 27.8 90.6
InfLLMv2 100.0 92.0 86.0 50.0 4.0 0.0 22.0 32.5 46.4 0.4 78.7 26.0 24.0 43.2 90.6
DashAttention 100.0 92.0 80.0 54.0 4.0 0.0 41.0 62.5 38.0 0.2 59.3 34.0 30.0 45.8 91.6
RULER-128K S1 S2 S3 MK1 MK2 MK3 MV MQ VT CWE FWE QA1 QA2 Avg. Sparsity
FullAttn 100.0 98.0 72.0 78.0 10.0 0.0 30.5 33.0 0.4 0.2 61.3 12.0 18.0 39.5 0.0
NSA 92.0 12.0 4.0 8.0 0.0 0.0 7.0 10.0 30.4 0.4 70.0 18.0 14.0 20.5 95.1
InfLLMv2 100.0 50.0 46.0 32.0 4.0 0.0 16.5 20.0 2.4 0.2 68.0 12.0 22.0 28.7 95.1
DashAttention 100.0 70.0 58.0 60.0 2.0 0.0 34.5 42.5 40.8 0.0 62.7 20.0 16.0 39.0 95.3

W2: Other model families

Our method is only a modification at the attention module, so it should be orthogonal to other architectures, i.e., QK-Norm, MoE, hybrid-models, etc. Note that due to the limited time of the response period, we are currently unable to conduct long-context continual pretraining on other existing models since the training process takes substantial costs. We will explore this direction in our future work. It is worth noticing that mixing sparse attention layers with linear attention/sliding window layers to extrapolate the context length is a growing trend in the model-architecture research community. Various papers, e.g., MiniCPM-SALA [1], HiLS-Attention [2], have shown the potential of applying sparse attentions to other model architecture. We are training models with different architectures at this point, and we apologize that we are not able to provide the results yet. We will include these results later in the discussion period.

W3 & Q1: End-to-end serving experiments

We acknowledge the importance of vLLM/SGLang integration for real-world utility. However, full integration is a HUGE engineering project. It requires (a) paged management of the chunk-summary cache together with paged KV cache, (b) attention kernels that walk the bit-packed mask over paged memory, (c) a scheduler aware of per-request variable sparsity, and (d) efficient implementations for all of that. Also, to our knowledge, the sparse paths of our prior works, e.g., NSA, InfLLMv2, FSA, etc., have not been adopted in the mainline vLLM/SGLang yet, so kernel-level benchmarking is currently the standard way to compare these attention methods. Because attention dominates the per-token cost at long context (as shown in Figure 2(a) in [3]), kernel gains are indicative of (though not identical to) serving gains. We will clarify this explicitly in Sec. 5.2.

W4 & Q5: Uses randomized active-block masks to isolate Stage 2 cost.

The randomization affects only Stage 2. Stages 0-1 run before selection and over all chunks, so their cost does not depend on which chunks are selected. Stage 2's cost is determined by how many chunks each (query, KV-head) pair visits, not by which chunks they are. Injecting a random mask at a target sparsity therefore (i) reproduces the compute and memory traffic of a real mask at that sparsity, and (ii) lets us set the effective sparsity equal to the top-k baselines' budgets, making the sweep directly comparable! Mask content can matter only through second-order cache effects (for example L2 reuse of neighboring chunks), which average out across queries and batches thus we expect differences within measurement noise.

W5: Theoretical analysis being too narrow

We have provided a detailed description of DashAttention’s non-dispersive property in Appendix E. The intuition of investigating this property is that although top-k sparse attention is non-dispersive, the softmax head aggregation in NSA and InfLLMv2 still need to merge the logits of compressed attention after softmax. By introducing softmax back, they unavoidably have the dispersion problem. However, DashAttention does not have this drawback, since entmax at compressed attention (stage-1) is not dispersive. Head aggregation in DashAttention is acting as an “or” function for all query heads, therefore, there is no dispersion problem at stage 1. Thus, the stage 2 is also non-dispersive, and the whole DashAttention is refrained from dispersion.

The reason why we discuss this is to show that similar to ASEntmax, DashAttention’s good long-context performance can also be reasoned to the non-dispersion property. We will acknowledge the limitations of our current theoretical analysis, and we will delve into the theory’s side of DashAttention in our future work.

Q3: How sensitive is the method to chunk size, α, γ, and σ? How much tuning is required for a new model or task?

Very little tuning is needed and the same settings transfer across all three model scales.

  • B is an inference-time knob: a model trained with B=64 runs at B = {16, 32, 64, 128} with no retraining. Smaller B gives finer selection and better accuracy at matched ~75% sparsity at the cost of higher routing overhead (RULER avg. 84.7 / 83.6 / 79.4 / 74.5 for B = 16/32/64/128 (Table 7)).
  • alpha=1.5 is the standard, historically performant and well-behaved choice in the entmax literature ([4], [5], [6]). Plus, it admits faster solvers (see [6]).
  • gamma is used to set the average sparsity at inference, so that we can match the baselines' sparsity budgets and sweep the Pareto frontier (Fig. 2).
  • sigma is robust: accuracy is stable for all sufficiently large values (sigma = {1e4, 1e8, 1e12} gives 83.1-83.6 RULER avg.); only an overly strong/opinionated prior hurts (82.0). See Table 10.

Q4: What is the latency variance caused by adaptive sparsity across different requests?

Latency is a monotone function of the observed density, so the question reduces to how much the density varies. (i) Latency is bounded on both sides: Stages 0-1 have fixed cost, and Stage 2 costs at least the local window and at most full attention. (ii) The measured sparsity varies little across benchmarks (75.4-75.7%) and its structure is consistent (Fig. 3: consistently denser early layers, sparser middle layers).

Q6:Can the authors provide failure cases where the chunk summarization or router misses important evidence?

When the evidence tokens lie in a chunk dominated by distractor text, the chunk summary might under-represent them, and the router may drop that chunk. Two existing results support this explanation: (i) the degradation concentrates on hard retrieval and grows with chunk size MK3 accuracy is 100.0 / 86.0 / 68.0 / 58.0 for B = 16/32/64/128 at matched sparsity (Table 7), i.e., shrinking B, which reduces dilution, recovers the evidence; (ii) otherwise, degradation appears mainly in the extreme-sparsity regime (Fig. 5).

Q7: How does sparse DashAttention perform on general short-context tasks if it is not switched back to full softmax attention at inference?

We believe that the compressed attention should be deprived when conducting short-context inference since they introduce additional cost and can slow down inference. Note that NSA cannot remove compressed attention under short context length, otherwise would induce training-inference mismatch, which is one of the major flaws of NSA. Table 3 proves that models trained with DashAttention can also remove stage-1, which can also achieve the dense-sparse switchable feature introduced in InfLLMv2.


[1] Team, MiniCPM, et al. "Minicpm-sala: Hybridizing sparse and linear attention for efficient long-context modeling."

[2] Hu, Xiang, et al. "Hierarchical Sparse Attention Done Right: Toward Infinite Context Modeling."

[3] Jiang, Huiqiang, et al. "Minference 1.0: Accelerating pre-filling for long-context llms via dynamic sparse attention."

[4] Peters, Ben, Vlad Niculae, and André FT Martins. "Sparse sequence-to-sequence models."

[5] Correia, Gonçalo M., Vlad Niculae, and André FT Martins. "Adaptively sparse transformers."

[6] Gonçalves, Nuno, et al. "Adasplash-2: Faster differentiable sparse attention."

Authors · CommentOpenReview ↗

Supplementary Experimental Results for W2

To evaluate DashAttention on other model architectures, we conduct an 8K context length continual pretraining on Tiny-Aya-Base [7] for 10B tokens using full attention, InfLLMv2, and DashAttention. Tiny-Aya-Base is a 4B hybrid model with interleaved sliding-window attention (SWA) and full attention layers and parallelized FFN. InfLLMv2 and DashAttention are applied to the full attention layers while we keep the SWA layers untouched. We evaluate the trained models on RULER-8K with 4K activated tokens for both InfLLMv2 and DashAttention. The results are as follows.

Method S1 S2 S3 MK1 MK2 MK3 MV MQ VT CWE FWE QA1 QA2 Avg.
Full Attention 100.0 100.0 97.0 90.0 96.0 91.0 91.0 97.0 94.4 24.2 63.7 69.0 54.0 82.1
InfLLMv2 100.0 100.0 97.0 88.0 84.0 75.0 96.3 96.8 95.4 24.2 62.3 63.0 55.0 79.8
DashAttention 100.0 100.0 99.0 93.0 96.0 80.0 91.3 96.8 87.0 28.4 62.7 69.0 54.0 81.3

The results above show that DashAttention can also outperform the strongest baseline in our paper, InfLLMv2, on other model architectures. The conclusion obtained in this paper can generalize to a broader model family and our modifications to the attention module is orthogonal to other model architectural improvements.


[7] Tiny Aya: Bridging Scale and Multilingual Depth

Reviewer MS6VOpenReview ↗
Rating
5/6
Confidence
4/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 a block-sparse attention approach with adaptive sparsity, which first uses alpha-entmax to compute block-level attention, using learned query to obtain block-level keys; then the attention weights (which are sparse) are used for block selection in token-level attention, with the block-level attention weights as a prior to allow differentiability. Hardware-efficient implementation is provided, and theoretical analysis shows that this avoids dispersion. Empirical studies indicate satisfactory results.

Strengths and weaknesses

The paper addresses the issue of limited flexibility of attention budget in block-sparse attention methods by using a self-sparsifying block-level sparse attention for block selection in token-level attention. The general methods, the approach to incorporate block-level selection scores into token-level computation, and the analysis in attention dispersion are sound and well-motivated, the hardware-aware implementation is valuable, and empirical results are generally convincing. I only have a few concerns, as listed below.

Questions

L130: Will the use of the union of the selected blocks bloat the following stage? How much overlap do the selected blocks of query heads within each GQA group have?

L103 mentions that qˉ\bar{q} is a per-head vector, but from Algo. 1 it seems that each block has its own qˉ\bar{q} pre-applied with RoPE. I guess it is because the query is placed at different positions with RoPE for each block? Where is the query vector placed?

Sec 3.4 is a bit difficult to follow as it tries to resolve two problems (weakening prior & handle diagonal chunks) together; I recommend the authors to split them into two subsections.

L172: Missing period

I'm a bit confused by Table 4. Why training with DA and evaluating with FA could produce results better than FA?

L248-249: I think that NSA should be similar to full attention if the context length < SWA window size, not "compressed attention without sparsity"?

Limitations

yes

Final justification

The paper introduces a good solution to the problem of adaptive sparsity, and the rebuttal resolves all my concerns. Hence I would give a clear Accept to this work.

Formatting concerns

none

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We sincerely thank you for your time and effort for reviewing our paper.


Q1: L130: Will the use of the union of the selected blocks bloat the following stage? How much overlap do the selected blocks of query heads within each GQA group have?

The union of the selected blocks within each query group may increase the overall density. However, in our benchmarks, sparsity is measured after taking the union, as this is the effective sparsity that directly determines the achievable speedup. To quantify the impact of the union operation, we evaluate RULER-MK2 with a 64K context length. The sparsity before and after the union is 97.48% and 92.16%, respectively. So, while the union slightly reduces sparsity, the model still maintains a high level of sparsity and thus retains substantial potential for acceleration.

Q2: L103 mentions that is q^bar a per-head vector, but from Algo. 1 it seems that each block has its own q^bar pre-applied with RoPE. I guess it is because the query is placed at different positions with RoPE for each block? Where is the query vector placed?

We introduce only one additional trainable vector, qˉ\bar q, for each attention head. For each block, we apply the RoPE transformation corresponding to the block’s average position (by taking the mean) to qˉ\bar q, thereby avoiding the introduction of overly strong positional biases across different blocks.

Q3: Sec 3.4 is a bit difficult to follow as it tries to resolve two problems (weakening prior & handle diagonal chunks) together; I recommend the authors to split them into two subsections.

Thank you for your suggestion! In the revised manuscript, we will divide Section 3.4 into two subsubsections, Sections 3.4.1 and 3.4.2, to discuss prior weakening and the handling of diagonal chunks separately.

Q4: I'm a bit confused by Table 4. Why training with DA and evaluating with FA could produce results better than FA?

This is a somewhat unexpected phenomenon that we observed, and similar findings were also reported in the InfLLMv2 paper [1]. The purpose of this experiment is to investigate whether the model can still perform inference using full softmax attention. For shorter context lengths, or in other settings where sparse attention may not be necessary, it remains important that the model retain the ability to perform full-attention inference. Tables 3 and 4 demonstrate that this capability is preserved, thereby improving the model’s utility in both sparse- and full-attention scenarios.

Q5: L248-249: I think that NSA should be similar to full attention if the context length < SWA window size, not "compressed attention without sparsity"?

Thank you for raising this question. We will clarify this point by adding the following explanation in the revised manuscript. For NSA, inference at short context lengths can only be performed using compressed attention without effective sparsity. That is, the value of top-kk must be greater than or equal to the total number of chunks. Since the NSA attention output, o=ocomp+osparse+oswa\textbf{o}=\textbf{o}^{\mathrm{comp}}+\textbf{o}^{\mathrm{sparse}}+\textbf{o}^{\mathrm{swa}}, explicitly includes the compressed-attention output, removing this component at inference time would introduce a training–inference mismatch and substantially degrade model performance. Therefore, compressed attention must still be computed and added to the final attention output. We consider this a major design limitation of NSA, as it reduces inference efficiency at short context lengths, where sparse attention is unnecessary. In contrast, InfLLMv2 and DashAttention do not suffer from this issue and can disable compressed attention when operating on short contexts.


[1] Zhao, Weilin, et al. "Infllm-v2: Dense-sparse switchable attention for seamless short-to-long adaptation."

Comments on the paper

2 comments
Authors · CommentOpenReview ↗

Kind Reminder to Review Our Rebuttal

Dear Reviewers,

Thank you for your valuable feedback. We have carefully addressed your concerns and provided explanations in our response. We would greatly appreciate it if you could review our clarification and reconsider your evaluation and score. Since the discussion period is comming to the end, please ask us without hesitation if there are remaining problems or questions.

Best regards,

The Authors

Area Chair zgoM · CommentOpenReview ↗

Request for Engagement During the Author-Reviewer Discussion Phase

Dear PCs,

Thank you very much for your time and effort in reviewing the paper.

As the author–reviewer discussion phase is approaching its conclusion, we kindly ask you to take a moment to review the authors' rebuttal and, if appropriate, facilitate further discussion with the authors. Active engagement during this stage is important to ensure that the reviewers' concerns are fully addressed and that the final decision is based on a thorough and balanced evaluation.

Thank you again for your support and dedication to the review process.

Best regards,

AC

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…