- Rating
- 5
- Clarity
- 2
- Confidence
- 5
- Originality
- 4
- Quality
- 4
- Significance
- 4
Read review
Summary
This paper addresses the problem of inefficient usage of hardware by SSM-style attention alternatives, causing them to be slower than flash attention implementations of attention for short sequences. The paper identifies unnecessary chunk-boundary state writes to HBM and redundant segment-sum implementations as bottlenecks. It addresses the former by decoupling chunk size (which is determined by the optimized WGMMA kernel tile sizes) from split size (which determines the granularity of chunk assignments to CTAs) to enable inter-chunk communication through shared memory at cost to parallel execution potential (which is unused anyway due to the hardware constraints on Hopper architecture). It addresses the latter by materializing decay value matrix tiles in CUDA core registers instead of in shared memory. The overall result is a 4x speedup against the official Triton Mamba implementation, leading the proposed method to be 4x faster than Flash Attention 4 at sequence lengths >8K.
Strengths and weaknesses
Quality
The paper's claims are well tested, being compared against state of the art implementations of respective algorithms, including those optimized by industrial experts for real-world deployment. The methods are compared against a variety of architectures with a variety of implementations, demonstrating a significant speedup. I was also impressed by the memcpy baseline, as well as the demonstrated near-optimality of the proposed methods.
Clarity
The paper is very well written and generally very clear, with the glaring exception of Section 5.1, which describes a key part of the paper. The bottlenecks being addressed are explained well, and the split-sequence algorithm is also presented clearly. However, the hierarchy-aware segsum algorithm remains a mystery to me.
I believe this section would benefit significantly from the inclusion of diagrams, pseudocode, a toy example, and a motivation-style explanation of the algorithm. The current presentation introduces a large number of variables and implementation details before providing a clear bird's-eye overview of the proposed approach, making the section difficult to follow. The highly detailed explanation could even be moved to the appendix, with the main text focusing first on intuition and high-level understanding.
Unfortunately, the clarity of this key section is currently poor enough that I cannot support accepting the paper in its present form. However, I believe the paper otherwise makes a very significant contribution to the community, and I would be willing to raise my score to an accept if the authors substantially rewrite this section to improve clarity. Please also see my questions below, which should be addressed as part of such a revision.
The split-sequence algorithm is wll-motivated and clear enough to understand in its current form, however it would be best for the paper to refer the reader to the pseudocode and diagrams in the appendix (which currently are not referenced at any point in the main body of the paper). Furthermore, in order for the paper to be self-contained, a brief overview of the Hillis-Steele scan (which is repeatedly cited in the paper) should be added to the appendix alongside a reference to it in the main body of the paper; this is particularly important because it would help establish how the examples in Appendix D arise in practical workloads. .
Significance
The issue addressed by the paper is highly significant, and the solutions posed appear to be robust and adaptible without significantly affecting the algorithm's original output, which may allow the methods to be applied to models that were originally pretrained with other implementations with low effort. The bottleneck analysis is also a valuable contribution offered by this paper.
Originality
The algorithms proposed appear to be highly novel, I expect future work to draw inspiration from them for future innovation.
Questions
-
The related work appendix claims that Tiled Flash Linear Attention adds tiling inside the larger chunk, which sounds quite similar to the proposed split-sequence algorithm from the paper. Can you explain the difference between your proposed method and TFLA's method?
-
The paper claims to require only 2 warp-shuffle steps. Please give a short explanation of the warp-shuffle steps you are referring to and indicate their effect on overall latency (based on experiments or previous work) to explain the significance of this claim.
-
Lines 305-307 were unclear to me. Can you explain your speed comparison against the diff segsum from section 4.1? I understood the diff segsum algorithm and why it is fast (O(C) complexity for the cumsum and then each segsum can becomputed just-in-time in O(1) complexity), however I do not understand how your algorithm is more efficient than the direct segsum method from section 4.2.
-
Line 290 says that the proposed algorithm traverses the chunks first right-to-left (while line 169 says that the former algorithm is run left-to-right, which makes sense to me assuming the sequence indices grow from left to right). Given that states are computed in order of the sequence (left-to-right) due to the recurrent nature of SSM architectures, how can you perform this algorithm right-to-left? You need all of the first states in a chunk to be computed before you can compute the final state.
Limitations
Yes
Paper formatting concerns
No paper formatting concerns
Final justification
The concerns and questions I raised in my review have been satisfiably resolved, conditioned on the author's responses being incorporated into the camera-ready version of the paper.
Meta-review
The paper proposes an approach for accelerating SSM computation using split sequence scheduling and hierarchy aware stable segsum. This lets to an implementation outeperforming the official mamba-2 and other highly optimized methods as well as its potential to change the crossover in terms of sequence length at which SSM can provide benefits. The reviewers appreciated the methods and the performance. The main concerns are: