GPU Hierarchy Meets Structured Matrices: Fast Algorithms for State-Space Models
Update NeurIPS 2026 submission m6QBIQ5qCZ: 16 notes
@openreview[bot] · 2026-11-24 15:55 UTC · 9a752b38769a ·
reviews/openreview/m6qbiq5qcz/notes/7wqc8iyv39.json added
+++ b/reviews/openreview/m6qbiq5qcz/notes/7wqc8iyv39.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "7wqc8IYv39",+ "replyTo": "klBRJXkNQf",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer FrCh 2/",+ "comment": "> 3. Can you validate the stability claims on real decay distributions from trained or pretraining Mamba-2/3 runs, not only synthetic prefix-scale sweeps?\n\nYes. In fact, the instability studied in this paper was motivated by the instability observed during the pretraining of Nemotron-H-8B-Base, an 8-billion-parameter Mamba-2/Transformer hybrid trained over a 15-trillion-token horizon. Our synthetic prefix-scale sweeps were designed to isolate and explain the mechanism behind that observed failure.\n\nTo provide direct quantitative evidence on learned decay values, we obtained an activation capture from approximately 9 trillion tokens into the run, at the 51st hybrid layer (a Mamba-2 layer). The capture contains one tensor-parallel shard: two 8192-token sequences across 16 local heads, giving $2 \\times 8192 \\times 16 = 262{,}144$ token/head timestep inputs.\n\nStarting from the captured bf16 timestep projection `dt` and the learned `A` and `dt_bias`, we reproduced the training kernel's fp32 preprocessing:\n\n$$\n\\Delta_t = \\operatorname{softplus}(dt_t + dt\\\\_bias),\n\\qquad\na_t = A\\Delta_t.\n$$\n\nWe then passed these real $a_t$ values through the Triton parallel prefix scan used by the existing implementation. From its prefix sums $s_i$, diff segsum computes each log-decay as $M_{ij} = s_i - s_j$. We compared this with zero-clamped diff segsum and direct segsum, which instead computes $M_{ij} = \\sum_{k=j+1}^{i} a_k$. All methods used identical fp32 $a_t$ inputs, and direct summation in fp64 served as the reference.\n\nThe captured $|a_t|$ values span $4.84 \\times 10^{-8}$ to $3.20 \\times 10^7$, and the magnitude of an fp32 prefix reaches $7.92 \\times 10^8$. With $T=128$ chunking, we evaluated $16{,}646{,}144$ valid segment sums and observed one violation of the required invariant $M_{ij} \\leq 0$. For this adjacent-token segment, the correct log-decay is $-72.3047$. However, the parallel scan produced the rounded prefixes\n\n$$\ns_i = -791{,}996{,}800,\n\\qquad\ns_j = -791{,}996{,}928,\n$$\n\nwhose subtraction gives $M_{ij} = +128$. Thus, a true decay was converted into growth, and fp32 exponentiation of $+128$ returned infinity. This is the monotonicity failure studied in our controlled experiment.\n\nWhile clamping $M_{ij}$ to be non-positive prevents the overflow, it does not recover the correct decay. In the example above, clamping changes $M_{ij} = +128$ to $0$, giving a decay factor of $1$, whereas the correct value is $\\exp(-72.3047) \\approx 4 \\times 10^{-32}$. More broadly, for the near-diagonal entries $1 \\leq i-j \\leq 4$, the the 99th percentile of the absolute entrywise errors in $M_{ij}$ is $2.88$ for clamped diff segsum and $0.0625$ for direct segsum. At $T=64$, matching the chunk size in our kernel experiments, the corresponding errors are $1.46$ and $0.0625$. Direct segsum also reduces the mean near-diagonal error by approximately $48\\times$ at $T=128$ and $23\\times$ at $T=64$."+ },+ "createdAt": "2026-08-02T22:03:41.930Z",+ "modifiedAt": "2026-11-19T16:50:02.177Z",+ "url": "https://openreview.net/forum?id=m6QBIQ5qCZ¬eId=7wqc8IYv39",+ "license": "CC-BY-4.0"+}
reviews/openreview/m6qbiq5qcz/notes/av8naj0mor.json added
+++ b/reviews/openreview/m6qbiq5qcz/notes/av8naj0mor.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "AV8naj0mor",+ "replyTo": "7wqc8IYv39",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer FrCh 3/3",+ "comment": "> 4. Can you provide more backward-pass details: timing breakdowns for dB/dX/dC, gradient correctness checks, and whether hierarchy-aware segsum gives the same stability/speed advantage in backward kernels?\n\nThe same hierarchical idea applies in backward kernels. The chunk-local contributions to `dC`, `dB`, `dX`, `dt`, and `dA` depend on the same decay mask ($E$) used in the forward pass. The `dB`/`dX` computation accesses ($E^\\top$), while `dA`/`dt` requires a gradient through $E$. As such, we use the same hierarchy-aware approach to compute $E$ in backward kernels. Our backward pass uses two kernels: a forward-time kernel that recomputes states on the fly, eliminating the need to save them during the forward pass and reducing activation memory, and a reverse-time kernel that processes chunks from last to first to propagate gradients with respect to the recurrent state. Since `dC` does not depend on `dState`, we compute `dC` during the forward-time kernel, which computes $E$ with the same hierarchical algorithm as forward pass (described in detail in 5.1). For `dB` and `dX`, we compute $E^\\top$ by leveraging the GPU layout in a similar way, where we reconstruct the off-diagonal blocks in the upper-right triangle and zero the lower-left blocks instead to obtain the transpose. We reuse the same $E^\\top$ to compute `dA` and `dt`. \n\nThe latency for the kernel that computes `dC` for `batch = 16, seqlen = 2k, nheads = 64, nheads_bc = 1, headdim_bc = 128, headdim_x = 64` is 1.214 ms while the latency for the kernel that computes `dB`/`dX` is 1.005 ms for a total of 2.219 ms. Compared with a naive implementation of segscan with the same kernels, our optimized version is 20% faster over the baseline, which has a latency of 1.356 for `dC` and 1.305 for `dB` /`dX` for a total of 2.661 ms. \n\nTo validate gradient correctness, we compare gradients from our bf16 CuTe kernel against a fp32 PyTorch autograd reference. As a baseline for the numerical error expected from bf16 arithmetic, we also compare PyTorch’s bf16 gradients against the same fp32 reference. We find the numerical difference between the CuTe kernel and the fp32 reference matches the difference between the bf16 and fp32 reference. \n\n| Gradient | CuTe BF16 vs. PyTorch FP32 | PyTorch BF16 vs. PyTorch FP32 |\n|---|---:|---:|\n| `dC` | 3.98543105e-02 | 5.51970899e-02 |\n| `dB` | 3.88540253e-02 | 5.38356341e-02 |\n| `dX` | 4.14450141e-03 | 5.63682662e-03 |\n| `ddt` | 3.13574433e-01 | 5.46298921e-01 |\n| `dA` | 1.09343421e+00 | 1.73326802e+00 |\n| `dD` | 1.01390824e-01 | 1.23054042e-01 |\n| `dZ` | 4.04468831e-03 | 5.36589604e-03 | \n\n> 5. How sensitive is the split-sequence schedule to T, batch size, number of heads, state dimension, and head dimension? Is T selected analytically from occupancy/traffic estimates or tuned per shape?\n \nThe schedule is primarily sensitive to the sequence length $L$, batch size $B$, and number of heads $H$. Without splitting, the kernel exposes roughly $BH$ independent work items. Increasing $B$ or $H$ therefore reduces the need for sequence splitting, whereas increasing $L$ permits more splits while retaining sufficiently long segments.\n\nWe estimate the useful number of splits from the number of GPU compute units $S$:\n\n$$\nn_{\\mathrm{SM}}\n:=\n\\max\\left(1,\\left\\lfloor \\frac{S}{BH} \\right\\rfloor\\right).\n$$\n\n\nWe separately limit the split count so that each segment remains approximately 4096 tokens or longer. This avoids excessive kernel-launch overhead and boundary-state traffic. The final split count is the smaller of the parallelism-based estimate and this sequence-length-based limit, and the nominal split size is\n\n$$\nT \\approx \\frac{L}{n_{\\mathrm{split}}}.\n$$\n\nThe state and head dimensions affect the amount of computation per work item and the size of the state communicated across split boundaries, so larger dimensions can reduce the relative benefit of splitting. They do not directly enter the current split-count formula; instead, we use a conservative minimum segment length.\n\nThus, the policy combines an analytical, shape-based parallelism estimate with a single empirically chosen minimum segment length of 4096 tokens. We do not perform online benchmarking or tune ($T$) separately for each shape."+ },+ "createdAt": "2026-08-02T22:06:09.633Z",+ "modifiedAt": "2026-11-19T16:50:02.132Z",+ "url": "https://openreview.net/forum?id=m6QBIQ5qCZ¬eId=AV8naj0mor",+ "license": "CC-BY-4.0"+}
reviews/openreview/m6qbiq5qcz/notes/bnvklmaq9b.json added
+++ b/reviews/openreview/m6qbiq5qcz/notes/bnvklmaq9b.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "bnvKLMAq9b",+ "replyTo": "RqWUHgxnjf",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Hierarchy-Aware Segsum Algorithm Exposition (Section 5.1), 5/",+ "comment": "# Part 2: Accumulator-aligned direct reconstruction\nThis baseline treats every causal $16\\times16$ block in the same way:\n```text\n block column\n H0 H1 H2 H3\n +---------+---------+---------+---------+\nWarp 0, H0 | S | 0 | 0 | 0 |\n +---------+---------+---------+---------+\nWarp 1, H1 | S | S | 0 | 0 |\n +---------+---------+---------+---------+\nWarp 2, H2 | S | S | S | 0 |\n +---------+---------+---------+---------+\nWarp 3, H3 | S | S | S | S |\n +---------+---------+---------+---------+\n\nS : reconstructed using row scans\n0 : skipped by causality\n```\nThe two-shuffle scan is efficient for one $8$-column group. In this second attempt, we do not yet distinguish between diagonal and lower off-diagonal blocks. For each row, we scan the causal portion of the 64 columns from right to left in 8-element groups. Each group requires two shuffles, and the running product of the decay values is carried into the next group to the left. A row spanning all eight groups therefore has a maximum dependency chain of $8\\times2=16$ shuffles.\n\nLower off-diagonal blocks receive no special treatment: their entries are simply produced as the row scan reaches earlier column groups. Consequently, each row maintains its own running product and independently reconstructs its mask entries. The two row fragments held by each thread can be processed partly in parallel, but each row retains its own ordered scan.\n\nThis second attempt fixes the placement problem: the threads holding the entries of $CB^{\\mathsf{T}}$ now construct the corresponding entries of $E$ directly, so the dense mask no longer needs to make a round trip through SMEM. However, it still performs too much work:\n\n- It scans the remaining row fragments independently. It therefore misses the rank-one structure of the lower off-diagonal blocks and reconstructs many shared intermediate products.\n- The scan across each row contains an ordered sequence of exchanges resulting in a dependency chain of 16 shuffles, which can be expensive.\n\nThus, matching the accumulator layout fixes **where** the mask is constructed, but not **how much** is recomputed. The remaining opportunity is to keep scans only where the matrix truly requires them."+ },+ "createdAt": "2026-08-02T23:56:34.508Z",+ "modifiedAt": "2026-11-19T16:50:02.126Z",+ "url": "https://openreview.net/forum?id=m6QBIQ5qCZ¬eId=bnvKLMAq9b",+ "license": "CC-BY-4.0"+}
reviews/openreview/m6qbiq5qcz/notes/ds0wnmsytk.json added
+++ b/reviews/openreview/m6qbiq5qcz/notes/ds0wnmsytk.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "DS0WNmSyTk",+ "replyTo": "TWjRVI1VBB",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer xAAb 2/",+ "comment": "> 2. 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.\n\n### Short explanation of the warp-shuffle steps.\n\nAs described in Part 4 of the global exposition, the two warp-shuffle rounds are used in the local scans that construct the diagonal $8\\times8$ 1-SS blocks. For completeness, we summarize their main use here.\n\nGiven decay values $\\alpha_1,\\ldots,\\alpha_8$, the scan computes ``[ α2:8, α3:8, α4:8, α5:8, α6:8, α7:8, α8, 1]``, where $\\alpha_{i:j}=\\prod_{k=i}^{j}\\alpha_k$. \n\n1. Four threads begin with two adjacent decay values each and compute their local pair product:\n\n```text\nt0: [α1, α2] t1: [α3, α4] t2: [α5, α6] t3: [α7, α8]\nt0: P0=α1:2 t1: P1=α3:4 t2: P2=α5:6 t3: P3=α7:8\n```\n\n2. The **first warp shuffle** communicates with the thread immediately to the right:\n\n```text\nt0: P1 t1: P2 t2: P3 t3: 1\n```\n\n3. The **second warp shuffle** communicates with the thread two positions to the right, producing the complete suffixes:\n\n```text\nt0: P1 P2 P3 t1: P2 P3 t2: P3 t3: 1\n```\n\nCombining these suffixes with the original local values gives the required scan entries above.\n\n\n### The effect of number of warp-shuffle steps on overall latency\n\nOur goal is to keep the construction of $E$ cheap enough to hide behind the computation of $CB^{\\mathsf{T}}$. More warp shuffles would make it slower and will place constructing E on the critical path, since tensor-core matrix multiplication is already very fast in GPUs.\n\n\nTo test this, we run the following two sets of experiments:\n\n\n### Experiment 1: Measuring prefill latency increase from additional warp shuffles\n\nWe insert additional dependent warp-shuffle rounds into the mask-construction path while leaving the rest of the kernel unchanged. The modified kernels are used only to measure latency and are not intended to compute the correct mask. We benchmark **prefill latency** and throughput with $B=16$, $L=2048$, $H=64$, one $B/C$ head, $N=64$, $D=128$, and $D_v=64$ on an H100.\n\n| Extra shuffles | Latency (ms) | Effective GB/s |\n|---:|---:|---:|\n| 0 | 0.354 | 2347.54 |\n| 1 | 0.359 | 2310.81 |\n| 2 | 0.362 | 2295.72 |\n| 4 | 0.370 | 2246.11 |\n| 8 | 0.384 | 2162.32 |\n| 16 | 0.415 | 2002.56 |\n| 32 | 0.473 | 1754.65 |\n| 64 | 0.607 | 1367.83 |\n\nHere, $0$ extra shuffles denotes the original kernel, which still contains the two shuffle rounds described above. \n\nThe added latency grows approximately linearly with the number of dependent shuffles, at about $3.9\\,\\mu\\text{s}$ per added shuffle. Thus, additional shuffles directly lengthen the mask-construction dependency path: 16 extra shuffles increase latency by approximately $17\\\\%$, while 64 increase it by approximately $71\\\\%$. This motivates **minimizing the number of shuffles** used in mask construction, which is why our local scan is designed to require only two shuffle rounds.\n\n\n### Experiment 2: Forward pass latency cost of scanning off-diagonal blocks\n\nRecall that in the revised Section 5.1 exposition, Algorithms 2 and 3 both construct $E$ directly in the MMA accumulator layout, eliminating the SMEM round trip. They differ only in how they compute the lower off-diagonal $8\\times8$ blocks. *Accumulator-aligned segsum* (Algorithm 2) performs a two-shuffle scan in every causal block. A complete 64-entry row spans eight such blocks, resulting in a maximum row-wise dependency chain of $2\\times8=16$ warp-shuffle steps. In contrast, *hierarchy-aware segsum* (Algorithm 3) retains the two-shuffle scan only for diagonal blocks and computes the off-diagonal blocks from precomputed rank-one factors.\n\nTo measure the overall latency cost of these additional shuffles, we compare Algorithms 2 and 3 for $B=16$, $L=2048$, $H=64$, one $B/C$ head, $N=64$, $D=128$, and $D_v=64$ on an H100. Replacing rank-one reconstruction with block-wise scans increases **forward-pass latency** from $0.410$ ms to $0.480$ ms, a $17\\\\%$ increase. Thus, even after eliminating the SMEM round trip, scanning every causal block substantially lengthens the mask-construction dependency path. Exploiting the rank-one structure of the off-diagonal blocks avoids these additional shuffles and reduces overall kernel latency."+ },+ "createdAt": "2026-08-02T23:14:43.180Z",+ "modifiedAt": "2026-11-19T16:50:02.037Z",+ "url": "https://openreview.net/forum?id=m6QBIQ5qCZ¬eId=DS0WNmSyTk",+ "license": "CC-BY-4.0"+}
reviews/openreview/m6qbiq5qcz/notes/du62vckszl.json added
+++ b/reviews/openreview/m6qbiq5qcz/notes/du62vckszl.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "du62VcKSzl",+ "replyTo": null,+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Hierarchy-Aware Segsum Algorithm Exposition (Section 5.1), 1/",+ "comment": "# Introduction\n\nTo improve the exposition of Section 5.1, we state the algorithm's central idea upfront and then develop it step by step.\n\nThe central idea is that the 1-SS decay mask decomposes into diagonal blocks—smaller 1-SS matrices that genuinely require scans—strictly lower off-diagonal blocks that are rank one, and upper blocks that are zero by causality. The nonzero off-diagonal blocks can be computed cheaply from precomputed factors. Furthermore, this decomposition maps directly onto the layout of the MMA accumulator, allowing the algorithm to be implemented efficiently on GPUs.\n\nWe develop this algorithm in three stages. We start with a baseline *row-wise direct-segsum* algorithm (Algorithm 1), which provides stable mask computation but must materialize the full mask in shared memory (SMEM) because of a layout mismatch with the MMA accumulator. Our first improvement, *accumulator-aligned segsum* (Algorithm 2), constructs each mask value in the thread that owns the corresponding accumulator entry, eliminating the expensive SMEM round trip; however, it computes a scan for every causal block, creating long row-wise chains of warp shuffles. Our *hierarchy-aware segsum* (Algorithm 3) removes this cost by exploiting the block structure of the 1-SS mask: it retains scans only on diagonal blocks and computes off-diagonal blocks from precomputed factors.\n\n```text\nAlgorithm 1: Row-wise direct segsum\nstable, but materializes the dense mask in shared memory\n |\n | match the MMA accumulator layout\n v\nAlgorithm 2: Accumulator-aligned segsum\nno shared-memory round trip, but scans every causal block\n |\n | exploit the 1-SS block structure\n v\nAlgorithm 3: Hierarchy-aware segsum\nscans only diagonal blocks; computes off-diagonal\nblocks from reusable factors\n```"+ },+ "createdAt": "2026-08-02T23:39:01.351Z",+ "modifiedAt": "2026-11-19T16:50:02.028Z",+ "url": "https://openreview.net/forum?id=m6QBIQ5qCZ¬eId=du62VcKSzl",+ "license": "CC-BY-4.0"+}
reviews/openreview/m6qbiq5qcz/notes/klbrjxknqf.json added
+++ b/reviews/openreview/m6qbiq5qcz/notes/klbrjxknqf.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "klBRJXkNQf",+ "replyTo": "WmZCxDYKrz",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer FrCh 1/",+ "comment": "> 1. Can you add end-to-end measurements for a full Mamba-2/3 block or a small hybrid model, including projections/gating/norms/framework overhead, and report tokens/s, latency, and peak memory for prefill and training?\n\nThank you for the suggestion. We added module-level end-to-end benchmarks for a representative Mamba-2 mixer (29.5M parameters, model width 2,048) on a single NVIDIA H100 80GB, using BF16 and microbatch size 2. This measures the complete block, including projections, convolution, SSD, `dt` processing, gating, normalization, autograd, and framework/allocation overhead. Only the block residual addition and optimizer step are excluded.\n\nLatency is synchronized median wall time over 20 runs after warmup. Peak memory is the incremental allocation above the resident module/framework baseline.\n\n**Prefill**\n\nPaired values are **Original / Hierarchical**.\n\nStatic-cache prefill is measured under inference mode, without decode tokens.\n\n| Prompt | Latency (ms) | Hierarchical speedup | Throughput (tokens/s) | Peak memory (MiB) |\n|---:|---:|---:|---:|---:|\n| 1,024 | 1.226 / 0.820 | $1.495\\times$ | 1,670,454 / 2,497,131 | 197.8 / 100.3 |\n| 2,048 | 1.450 / 0.854 | $1.698\\times$ | 2,825,098 / 4,798,061 | 391.5 / 196.6 |\n| 4,096 | 2.675 / 0.994 | $2.691\\times$ | 3,062,698 / 8,241,363 | 779.0 / 389.3 |\n| 8,192 | 5.165 / 1.844 | $2.800\\times$ | 3,172,181 / 8,883,567 | 1,554.0 / 774.5 |\n\n**Training: forward + backward**\n\n| Sequence | Latency (ms) | Hierarchical speedup | Throughput (tokens/s) | Peak memory (MiB) |\n|---:|---:|---:|---:|---:|\n| 1,024 | 4.203 / 2.216 | $1.897\\times$ | 487,229 / 924,105 | 302.3 / 293.0 |\n| 2,048 | 4.483 / 2.697 | $1.663\\times$ | 913,590 / 1,518,857 | 600.5 / 586.0 |\n| 4,096 | 5.158 / 4.161 | $1.240\\times$ | 1,588,273 / 1,968,793 | 1,197.1 / 1,172.0 |\n| 8,192 | 9.891 / 7.947 | $1.245\\times$ | 1,656,443 / 2,061,587 | 2,390.1 / 2,344.1 |\n\nAt the overall block level, the hierarchical method provides a $1.50$–$2.80\\times$ prefill speedup and a $1.24$–$1.90\\times$ training speedup over the original implementation. It reduces prefill peak memory by approximately $50\\\\%$ and training peak memory by $2$–$3\\\\%$.\n\n> 2. Please clarify the FA4 comparison normalization in Figure 3. Are Mamba and FA4 matched by hidden dimension, output dimension, FLOPs, bytes moved, or model-equivalent layer work? A table with H, D, Dv, total width, total tokens, bytes moved, and arithmetic intensity would help. \n\nWe designed our benchmark set-up to simulate the kernels' realistic usage. In particular, for FA4, we use `headdim_qkv = 128` as it is one of the most commonly-used setting and is the most efficient configuration for FA4. Mamba-based models default to `headdim_qk = 128,headdim_v = 64` with an expansion factor of 2, as recommended by the original authors, whereas FA4 by default has an expansion factor of 1. Using these configuration and the same hidden dimension, Mamba-2 uses $H=64$ while FA4 uses $H=16$, a setting which provides FA4 with a more favorable performance advantage (smallest expansion factor with the more efficient `headdim_v = 128`). \n\n\nWe provide the table enumerating the requested information:\n\n| Attention Mechanism | H | D | D_v | Expanded Width | Model Width | Total Tokens | Bytes Moved (Forward) | \n|---:|---:|---:|---:|---:|---:|---:|---:|\n| Mamba-2 | 64 | 128 | 64 | 4096 | 2048 | 32768 | 0.554 GB \n| FA4 | 16 | 128 | 64 | 2048 | 2048 | 32768 | 0.403 GB \n\n|B | T | Mamba TFLOPs | Mamba AI | FA4 TFLOPs | FA4 AI\n|---:|---:|---:|---:|---:|---:|\n| 32 | 1024 | 0.121 | 218 | 0.104 | 256 |\n| 16 | 2048 | 0.121 | 218 | 0.206 | 512 |\n| 8 | 4096 | 0.121 | 218 | 0.412 | 1024 |\n| 4 | 8192 | 0.121 | 218 | 0.825 | 2048 |\n| 2 | 16384 | 0.121 | 218 | 1.649 | 4096 |\n\nTo compute FLOPS for Mamba, we use `BH(4TDD_v + 2TCD + 2TCD_v + 2TDD_v/C)`, where `B = batch size`, `T = sequence length`, and `C = chunk size`. To compute FLOPS for causal Flash Attention, we use `BH(2T^2D_v + 2T^2D) // 2`."+ },+ "createdAt": "2026-08-02T22:01:49.327Z",+ "modifiedAt": "2026-11-19T16:50:02.172Z",+ "url": "https://openreview.net/forum?id=m6QBIQ5qCZ¬eId=klBRJXkNQf",+ "license": "CC-BY-4.0"+}
reviews/openreview/m6qbiq5qcz/notes/lm9hryc7ke.json added
+++ b/reviews/openreview/m6qbiq5qcz/notes/lm9hryc7ke.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "lM9HRyC7Ke",+ "replyTo": "Wl431MvVTN",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer R78h",+ "comment": "> the authors should more clearly distinguish the broadly applicable algorithmic ideas from the implementation choices that may not transfer directly to other GPU architectures.\n\nWe thank the reviewer for their suggestion for disentangling the algorithmic improvements from hardware-specific gains. In our shared response to the meta review, we show that our implementation is not specific to the older Hopper GPU and **extends to the newer generation of hardware**, e.g., Blackwell, demonstrating the broad applicability of our algorithmic ideas.\n\nOn Blackwell, our hierarchy-aware algorithm continues to outperform current baselines, achieving a nearly constant $0.30-0.32$ ms latency. This is consistently $3.23–3.50\\times$ faster than the official Mamba-2 baseline and overtakes Blackwell-optimized FlashAttention-4 between 2K and 4K tokens and reaches a $4.03\\times$ advantage at 16K. These sustained results show that our algorithmic contributions transfer across evolving GPU architectures. We will add these new benchmarks to our paper.\n\n> 1. How is the split size T selected in practice? Is there an automatic heuristic based on batch size, number of heads, sequence length, and SM count? \n\nSplit size $T$ is automatically determined using the batch size $B$, number of heads $H$, full sequence length $L$, and the device SM count $S$. Without splitting, the kernel exposes roughly $BH$ independent work items. Splitting each sequence into $n_{\\mathrm{split}}$ segments increases this to approximately $BHn_{\\mathrm{split}}$.\n\nWe first compute\n\n$$\nn_{\\mathrm{SM}}\n:=\n\\max\\left(\n1,\n\\left\\lfloor \\frac{S}{BH} \\right\\rfloor\n\\right),\n$$\n\nwhich increases greater parallelism so that we can saturate all SMs on the hardware without deliberately creating a small additional wave. We then cap this value so that each segment contains approximately 4096 tokens or more:\n\n$$\nn_{\\mathrm{split}}\n:=\n\\min\\left(\nn_{\\mathrm{SM}},\nn_{\\mathrm{length}}\n\\right),\n\\qquad\nT \\approx \\frac{L}{n_{\\mathrm{split}}}.\n$$\n\nThe segments are balanced and their boundaries are aligned to 128-token state tiles. Consequently, no splitting is normally used when $BH$ already provides sufficient parallelism, while longer sequences permit additional splits. This automatic heuristic reduces underutilization while limiting the additional state traffic and scheduling overhead introduced at split boundaries. Standard attention decode such as Flash Decoding uses the same split to partition KV cache at small batches and long sequence lengths [1]. We aim to partition enough work to utilize all SMs on the target GPU; for example, 132 on the H100 SXM and 148 on the B200.\n\n\\[1] T. Dao, D. Haziza, F. Massa, and G. Sizov. \"Flash-Decoding for long-context inference.\" PyTorch Blog, 2023."+ },+ "createdAt": "2026-08-02T23:04:10.098Z",+ "modifiedAt": "2026-11-19T16:50:02.120Z",+ "url": "https://openreview.net/forum?id=m6QBIQ5qCZ¬eId=lM9HRyC7Ke",+ "license": "CC-BY-4.0"+}
reviews/openreview/m6qbiq5qcz/notes/n5ubswodfo.json added
+++ b/reviews/openreview/m6qbiq5qcz/notes/n5ubswodfo.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "n5uBswodfO",+ "replyTo": "bnvKLMAq9b",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Hierarchy-Aware Segsum Algorithm Exposition (Section 5.1), 6/",+ "comment": "# Part 3: Combining the 1-SS structure with the accumulator layout\nPart 2 maps the computation to the accumulator layout, but treats every causal block as a scan block $S$. We now combine that layout with the 1-SS structure introduced in the setup. At the $16\\times16$ level, the causal blocks separate into diagonal blocks $D$ and strictly lower off-diagonal blocks $R$:\n```text\n block column\n H0 H1 H2 H3\n +---------+---------+---------+---------+\nWarp 0, H0 | D(0,0) | 0 | 0 | 0 |\n +---------+---------+---------+---------+\nWarp 1, H1 | R(1,0) | D(1,1) | 0 | 0 |\n +---------+---------+---------+---------+\nWarp 2, H2 | R(2,0) | R(2,1) | D(2,2) | 0 |\n +---------+---------+---------+---------+\nWarp 3, H3 | R(3,0) | R(3,1) | R(3,2) | D(3,3) |\n +---------+---------+---------+---------+\n\nD : a smaller 1-SS diagonal block\nR : a rank-one off-diagonal block\n0 : zero by causality\n```\nAt the finer $8\\times8$ level, each $16\\times16$ diagonal block has the form\n```text\n 8 columns 8 columns\n +-------------+-------------+\n8 rows | 1-SS | 0 |\n +-------------+-------------+\n8 rows | rank one | 1-SS |\n +-------------+-------------+\n```\nThe two diagonal $8\\times8$ blocks retain the two-shuffle scan from Part 2. The upper-right block is zero, while the lower-left block and every strictly lower off-diagonal block are rank one. These rank-one blocks can be reconstructed from reusable factors without another scan.\n\nRecall the eight 8-token groups $G_g$ defined in the accumulator-layout setup above.\n\nFor a row group $G_a$ and an earlier column group $G_b$, the block factorizes as\n\n$$\nE_{G_a,G_b}=p^{(a)}\\,m_{a,b}\\,\\bigl(q^{(b)}\\bigr)^{\\mathsf{T}}.\n$$\n\nThe three factors have simple meanings:\n\n- $p^{(a)}$ contains the products from the start of row group $G_a$ through each row position;\n- $q^{(b)}$ contains the products after each column position through the end of column group $G_b$;\n- $m_{a,b}$ is the single product across the complete groups between $G_b$ and $G_a$.\n\nMore precisely, for a local position $r\\in\\\\{0,\\ldots,7\\\\}$,\n\n$$\np^{(g)}[r]=\\prod_{k=8g}^{8g+r}\\alpha_k,\\qquad q^{(g)}[r]=\\prod_{k=8g+r+1}^{8g+7}\\alpha_k.\n$$\n\nWe also define the product across a complete group,\n\n$$\n\\bar{\\alpha_g}=\\prod_{k\\in G_g}\\alpha_k,\n$$\n\nand therefore\n\n$$\nm_{a,b}=\\prod_{\\ell=b+1}^{a-1}\\bar{\\alpha}_{\\ell}.\n$$\n\nFor adjacent groups, there are no complete groups in between, so $m_{a,a-1}=1$.\n## Precompute only the reusable pieces\nThe implementation precomputes the 64 entries of $q$ and the eight complete-group products $\\bar{\\alpha}$. It temporarily stores these 72 reusable values in SMEM, rather than storing all 4096 entries of the mask.\n\nWe do not need a separate pass to precompute $p$. The local scan used for a diagonal block also retains the inclusive product from the start of its group through each row endpoint, which is exactly $p^{(g)}$. In the Part 2 walkthrough, this is the complete active-row product $P_0P_1P_2P_3$. Each warp keeps these row factors in registers for its two 8-row groups.\n\nThis preprocessing depends only on the decay values, so our implementation performs it while the asynchronous MMA for $CB^{\\mathsf{T}}$ is in flight. Applying the finished factors to $CB^{\\mathsf{T}}$ happens afterward, once the accumulator is ready.\n## Move from right to left with a running product\nThe implementation visits the four 16-column groups $H_3,H_2,H_1,H_0$ from right to left. Within each $H_u$, it visits the two constituent 8-column groups also from right to left. Equivalently, the eight groups are visited in the order $G_7,G_6,\\ldots,G_0$.\n\nFor a fixed row group $G_a$, moving from column group $G_b$ to $G_{b-1}$ adds exactly one complete group to the middle of the decay range. The running product therefore updates as\n\n$$\nm_{a,b-1}=m_{a,b}\\bar{\\alpha}_b.\n$$\n\nEach warp maintains the appropriate value of $m$ locally for each of its two 8-row groups. No value is passed from one warp to another during this traversal.\n\nThe right-to-left traversal here applies only to constructing the column groups of the within-chunk mask $E$. It does not reverse the SSM recurrence. All forward recurrent-state propagation remains left to right.\n## Construct each off-diagonal entry where it is used\nWithin an off-diagonal $8\\times8$ block, let $s$ be a thread's local row position and let $r,r+1$ be its two local column positions. The thread reads $p^{(a)}[s]$, the running product $m_{a,b}$, and $q^{(b)}[r],q^{(b)}[r+1]$, then forms\n```text\nMask entries: [ p[s] m[a,b] q[r] p[s] m[a,b] q[r+1] ]\n```\nThese are exactly the two mask values needed for the thread's two accumulator entries. No off-diagonal scan and no dense-mask redistribution are required."+ },+ "createdAt": "2026-08-03T00:12:30.850Z",+ "modifiedAt": "2026-11-19T16:50:01.881Z",+ "url": "https://openreview.net/forum?id=m6QBIQ5qCZ¬eId=n5uBswodfO",+ "license": "CC-BY-4.0"+}
reviews/openreview/m6qbiq5qcz/notes/p6ruijbtjm.json added
+++ b/reviews/openreview/m6qbiq5qcz/notes/p6ruijbtjm.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "p6RUiJbTjM",+ "replyTo": "vbd88LLEu4",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Hierarchy-Aware Segsum Algorithm Exposition (Section 5.1), 3/",+ "comment": "# Part 1: Baseline row-wise direct segsum\nThe algorithm constructs a stable $E$ in a straightforward manner, one row at a time. Writing $\\alpha_k=e^{a_k}$, it directly forms each segment sum $M_{ij}=\\sum_{k=j+1}^{i}a_k$ and sets $E_{ij}=e^{M_{ij}}$. Specifically, for each 64-entry row, two threads split the row, compute these values, and write the completed row of $E$ to SMEM. However, this row-wise thread ownership does not match the MMA accumulator layout described below—the threads that construct a row are generally not the threads that hold the corresponding entries of $CB^{\\mathsf T}$. Therefore, after the MMA produces $CB^{\\mathsf T}$, the accumulator threads must reload the corresponding entries of $E$ from SMEM.\n\nAlthough this method is numerically stable because it forms each segment sum directly, avoiding catastrophic cancellation when subtracting large prefix sums, the resulting SMEM materialization and redistribution are expensive: in our measurements, the row-wise direct-segsum baseline is $1.35\\times$--$1.40\\times$ slower than the hierarchy-aware implementation.\n\nThis motivates a different goal: each thread should construct exactly the mask entries for the $CB^{\\mathsf{T}}$ values that it already holds. We call this **accumulator-layout-aware blockwise computation**. In plain terms, the mask is produced where it will be used."+ },+ "createdAt": "2026-08-02T23:49:06.617Z",+ "modifiedAt": "2026-11-19T16:50:02.000Z",+ "url": "https://openreview.net/forum?id=m6QBIQ5qCZ¬eId=p6RUiJbTjM",+ "license": "CC-BY-4.0"+}
reviews/openreview/m6qbiq5qcz/notes/qxsrlewfci.json added
+++ b/reviews/openreview/m6qbiq5qcz/notes/qxsrlewfci.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "QxSrLewFCI",+ "replyTo": "n5uBswodfO",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Hierarchy-Aware Segsum Algorithm Exposition (Section 5.1), 7/7",+ "comment": "# Summary\nThe two baselines isolate the two problems that the hierarchy-aware algorithm solves:\n\n|Method|How it constructs the mask|Consequence|\n|---|---|---|\n|Row-wise stable baseline|Forms each complete row directly|Stable, but materializes and redistributes the dense mask through SMEM|\n|Accumulator-aligned direct reconstruction|Constructs entries in the threads that consume them|Repeatedly scans causal groups, rebuilds overlapping products, and does not reduce off-diagonal work|\n|Hierarchy-aware algorithm|Scans diagonal blocks and reuses factors elsewhere|Preserves stable direct construction while avoiding both preceding costs|\n\nThe final algorithm therefore proceeds as follows:\n```text\n1. While the MMA is in flight:\n precompute the column factors q and the eight group products alpha_bar;\n compute and retain the diagonal mask values and their row factors p.\n\n2. Once the accumulator is ready, visit the eight column groups right to left:\n set upper blocks to zero;\n use the two-shuffle scan results for diagonal blocks;\n reconstruct lower off-diagonal blocks from p, q, and a running product.\n\n3. Each thread multiplies these mask values into the matching entries of CB^T\n already held in its registers.\n```\nIn this way, the algorithm retains the numerical behavior of stable direct segsum while avoiding both the dense $64\\times64$ SMEM round trip and the repeated off-diagonal scans of the straightforward layout-aware implementation."+ },+ "createdAt": "2026-08-03T00:14:21.651Z",+ "modifiedAt": "2026-11-19T16:50:01.854Z",+ "url": "https://openreview.net/forum?id=m6QBIQ5qCZ¬eId=QxSrLewFCI",+ "license": "CC-BY-4.0"+}
reviews/openreview/m6qbiq5qcz/notes/rqwuhgxnjf.json added
+++ b/reviews/openreview/m6qbiq5qcz/notes/rqwuhgxnjf.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "RqWUHgxnjf",+ "replyTo": "p6RUiJbTjM",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Hierarchy-Aware Segsum Algorithm Exposition (Section 5.1), 4/",+ "comment": "# Accumulator layout and local scan primitive\nIn our kernel, $E$ is a $64\\times64$ mask applied to a $64\\times64$ MMA output tile. This output tile, called the **accumulator**, is held in registers across four warps. Each warp contains 32 threads and owns one contiguous $16\\times64$ row stripe. We use $H_u$ to denote its 16 row indices, and use the same grouping for the columns.\n\nAt the warp level, these row and column groups partition the mask into a $4\\times4$ grid of $16\\times16$ blocks. At the finer level, we divide the 64 positions into eight groups $G_g=\\{8g,\\ldots,8g+7\\}$, where $g\\in\\{0,\\ldots,7\\}$, so that $H_u=G_{2u}\\cup G_{2u+1}$. Every $16\\times16$ block therefore contains four $8\\times8$ blocks, which match the thread-level output layout.\n## Thread-level layout\nWithin each $8\\times8$ accumulator block, each thread holds two adjacent entries in one row:\n```text\n+----+----+----+----+----+----+----+----+\n| T0 | T0 | T1 | T1 | T2 | T2 | T3 | T3 |\n+----+----+----+----+----+----+----+----+\n| T4 | T4 | T5 | T5 | T6 | T6 | T7 | T7 |\n+----+----+----+----+----+----+----+----+\n| T8 | T8 | T9 | T9 |T10 |T10 |T11 |T11 |\n+----+----+----+----+----+----+----+----+\n|T12 |T12 |T13 |T13 |T14 |T14 |T15 |T15 |\n+----+----+----+----+----+----+----+----+\n|T16 |T16 |T17 |T17 |T18 |T18 |T19 |T19 |\n+----+----+----+----+----+----+----+----+\n|T20 |T20 |T21 |T21 |T22 |T22 |T23 |T23 |\n+----+----+----+----+----+----+----+----+\n|T24 |T24 |T25 |T25 |T26 |T26 |T27 |T27 |\n+----+----+----+----+----+----+----+----+\n|T28 |T28 |T29 |T29 |T30 |T30 |T31 |T31 |\n+----+----+----+----+----+----+----+----+\n```\nThis pattern repeats across the full $16\\times64$ stripe. It determines which two entries of each $8$-column group a thread must construct.\n## Two-shuffle scan for an $8$-element row segment\nUnlike the row-wise baseline, the MMA accumulator layout assigns each 8-entry row segment to four threads, with two adjacent entries per thread. A **shuffle** lets one thread read a register value held by another thread in the same warp, without first writing that value to SMEM. The following walkthrough spells out why the local eight-element scan needs exactly two shuffle rounds.\n\nFirst consider the last row of an $8\\times8$ block, with decay values $\\alpha_0,\\ldots,\\alpha_7$. We use the last row because none of its entries is above the diagonal, so it exposes the complete eight-element scan. Relabel the four threads that hold this row as $t_0,t_1,t_2,t_3$. Each holds two adjacent values:\n```text\nThread t0 t1 t2 t3\nDecays [α0, α1] [α2, α3] [α4, α5] [α6, α7]\n```\nThe required suffix products are\n```text\nt0: [ α1:7, α2:7 ]\nt1: [ α3:7, α4:7 ]\nt2: [ α5:7, α6:7 ]\nt3: [ α7, 1 ]\n```\nFirst, each thread forms the product of its local pair:\n```text\nt0: α0:1 t1: α2:3 t2: α4:5 t3: α6:7\n```\nDenote these four pair products by $P_0,P_1,P_2,P_3$. The threads now compute the contribution from all pairs to their right in two shuffle rounds. If a requested thread lies outside this four-thread group, the scan uses the multiplicative identity $1$.\n\nIn the first round, each thread reads the pair product from the thread immediately to its right. It saves that right-side value and also combines it with its own pair product:\n```text\nSaved right-side value:\nt0: P1 t1: P2 t2: P3 t3: 1\n\nTwo-pair aggregate:\nt0: P0 P1 t1: P1 P2 t2: P2 P3 t3: P3\n```\nIn the second round, each thread reads the aggregate held by the thread two positions to its right and multiplies it into the saved value:\n```text\nt0: P1 × (P2 P3) = α2:7\nt1: P2 × P3 = α4:7\nt2: P3 = α6:7\nt3: 1\n```\nEach thread then combines this suffix with the second decay value in its local pair:\n```text\nt0 produces [ α1 × α2:7, α2:7 ] = [ α1:7, α2:7 ]\nt1 produces [ α3 × α4:7, α4:7 ] = [ α3:7, α4:7 ]\nt2 produces [ α5 × α6:7, α6:7 ] = [ α5:7, α6:7 ]\nt3 produces [ α7, 1 ]\n```\nFor an earlier row, decay values after that row's endpoint are set to $1$ during the scan; afterward, entries above the diagonal are set to $0$ and the diagonal entry is set to $1$.\n\nTwo shuffle rounds suffice because each thread first combines its own pair. The first shuffle exchanges neighboring pair products, and the second exchanges the resulting two-pair aggregates. The covered range therefore doubles in each round: one pair, then two pairs, then four pairs."+ },+ "createdAt": "2026-08-02T23:52:08.221Z",+ "modifiedAt": "2026-11-19T16:50:01.977Z",+ "url": "https://openreview.net/forum?id=m6QBIQ5qCZ¬eId=RqWUHgxnjf",+ "license": "CC-BY-4.0"+}
reviews/openreview/m6qbiq5qcz/notes/twjrvi1vbb.json added
+++ b/reviews/openreview/m6qbiq5qcz/notes/twjrvi1vbb.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "TWjRVI1VBB",+ "replyTo": "xmKZp6dCqU",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer xAAb 1/",+ "comment": "We thank the reviewer for the careful and constructive review. We are encouraged that they were impressed by the *\"demonstrated near-optimality of the proposed methods\"* and viewed the paper as making *\"a very significant contribution to the community\"* \n\nTheir primary concern is the clarity of Section 5.1, and we agree with their diagnosis: the original presentation introduced detailed variables and GPU mapping considerations before providing a clear bird’s eye view of the algorithm.\n\nWe have therefore substantially rewritten the exposition. The new version begins with the diagonal and rank-one block structure of the 1-SS mask, illustrates it through a toy example, and then progressively maps this structure onto the GPU hierarchy, the local scan and two warp-shuffle steps, and the complete algorithm. As the PDF cannot be revised during the discussion period, we provide the full exposition in the global response and will incorporate it into the revised Section 5.1; we thank the reviewer for feedback that materially improved how we present one of the paper’s central contributions.\n\nFurthermore, we will also add explicit main-text references to the appendix schematic and pseudocode, together with a brief overview of the Hillis–Steele scan in the revised manuscript.\n\nBelow, we answer each of the reviewer’s specific questions directly. \n\n---\n\n> 1. 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?\n\nThe reviewer is correct in noting that TFLA is closely related to the Split-Sequence algorithm: both methods introduce a larger sequence unit to reduce the number of recurrent states written to HBM while retaining enough GPU parallelism.\n\nThe key difference is how computation is performed within this larger sequence unit. In TFLA, the larger unit is a chunk in the chunkwise-parallel formulation. TFLA computes a quadratic interaction over the larger chunk, increasing FLOPs. It tiles the matrix multiplications to reduce memory use and expose some additional parallelism, but the extra computation remains. For a sequence of length $L$ and TFLA chunk size $C_{\\text{TFLA}}$, the total FLOPs scale as\n\n$$\n\\frac{L}{C_{\\text{TFLA}}} O(C_{\\text{TFLA}}^2) = O(LC_{\\text{TFLA}}).\n$$\n\nSplit Sequence instead keeps the tensor-core compute tile, or chunk size, fixed at $C=64$. A split of length $T$, analogous to $C_{\\text{TFLA}}$, is a separate scheduling unit containing $T/C$ fixed-size chunks. One CTA recurrently processes these chunks while keeping their intermediate states in registers. It therefore never performs a quadratic interaction over the full split. The total FLOPs scale as\n\n$$\n\\frac{L}{C}O(C^2)=O(LC).\n$$\n\nFor comparable state-materialization granularity, $T \\approx C_{\\text{TFLA}} \\gg C$, so Split Sequence requires substantially fewer intra-chunk FLOPs.\n\nWe will revise the related-work discussion to acknowledge the shared motivation and make this distinction explicit."+ },+ "createdAt": "2026-08-02T23:10:53.935Z",+ "modifiedAt": "2026-11-19T16:50:02.066Z",+ "url": "https://openreview.net/forum?id=m6QBIQ5qCZ¬eId=TWjRVI1VBB",+ "license": "CC-BY-4.0"+}
reviews/openreview/m6qbiq5qcz/notes/u3wehp1clj.json modified
+++ b/reviews/openreview/m6qbiq5qcz/notes/u3wehp1clj.json@@ -5,11 +5,12 @@"kind": "meta_review","invitation": "Meta_Review","signature": "Area Chair rmYY","content": {- "metareview": "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:\n\n- Reproducibility - it is not clear if the code will be released, critical for the current contribution.\n- Reviewers requested more explicit FA4 comparisons and end to end model speed measurements. \n- Concerns about over specialization to older Hopper GPU"+ "metareview": "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:\n\n- Reproducibility - it is not clear if the code will be released, critical for the current contribution.\n- Reviewers requested more explicit FA4 comparisons and end to end model speed measurements. \n- Concerns about over specialization to older Hopper GPU",+ "final_justification": "The authors addressed each major reviewer concern releasing code, porting to Blackwell, and performing an end to end comparison. Overall the reviews lean positive and thus I am recommending acceptance."},"createdAt": "2026-07-22T08:00:35.766Z",- "modifiedAt": "2026-11-18T15:23:06.600Z",+ "modifiedAt": "2026-11-19T05:01:55.447Z","url": "https://openreview.net/forum?id=m6QBIQ5qCZ¬eId=U3WehP1cLJ","license": "CC-BY-4.0"}
reviews/openreview/m6qbiq5qcz/notes/vbd88lleu4.json added
+++ b/reviews/openreview/m6qbiq5qcz/notes/vbd88lleu4.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "vbd88LLEu4",+ "replyTo": "du62VcKSzl",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Hierarchy-Aware Segsum Algorithm Exposition (Section 5.1), 2/",+ "comment": "# Setup: Target computation and 1-SS block structure\nRecall that for each chunk, the intra-chunk term requires computing\n\n$$\nP=\\left(CB^{\\mathsf{T}}\\right)\\odot E,\n$$\n\nwhere $E$ is the causal **1-semiseparable (1-SS) decay mask**,\n\n$$\nE_{ij}=\\prod_{k=j+1}^{i}\\alpha_k\\text{ if }j\\le i;\\qquad E_{ij}=0\\text{ if }j>i.\n$$\n\nHere, $\\alpha_k$ is the decay at position $k$.\n\nThe matrix multiplication $CB^{\\mathsf{T}}$ is performed by a tensor-core MMA. The remaining task is to construct the matching entries of $E$ and multiply them into the MMA result with as little extra work and data movement as possible.\n\nNote that all three algorithms below are *direct*: writing $\\alpha_k=e^{a_k}$, each segment sum $M_{ij}=\\sum_{k=j+1}^{i}a_k$ is formed directly in the log domain and $E_{ij}=e^{M_{ij}}$ is exponentiated afterward, avoiding the catastrophic cancellation of diff segsum (Section 4.1). The three algorithms therefore share the same stability guarantee and differ only in where each entry of $E$ is constructed and how much of the work is shared.\n## Structure of the 1-SS mask\nFor compact notation, define $\\alpha_{i:j}=\\prod_{k=i}^{j}\\alpha_k$ for $i\\leq j$.\n\nTo make the block structure concrete, consider a $9\\times9$ mask partitioned into a $3\\times3$ grid of $3\\times3$ blocks:\n```text\n[ 1 0 0 | 0 0 0 | 0 0 0 ]\n[ α1 1 0 | 0 0 0 | 0 0 0 ]\n[ α1:2 α2 1 | 0 0 0 | 0 0 0 ]\n-------------------------+-------------------------+-------------------------\n[ α1:3 α2:3 α3 | 1 0 0 | 0 0 0 ]\n[ α1:4 α2:4 α3:4 | α4 1 0 | 0 0 0 ]\n[ α1:5 α2:5 α3:5 | α4:5 α5 1 | 0 0 0 ]\n-------------------------+-------------------------+-------------------------\n[ α1:6 α2:6 α3:6 | α4:6 α5:6 α6 | 1 0 0 ]\n[ α1:7 α2:7 α3:7 | α4:7 α5:7 α6:7 | α7 1 0 ]\n[ α1:8 α2:8 α3:8 | α4:8 α5:8 α6:8 | α7:8 α8 1 ]\n```\nAt the block level, there are only three types of submatrices:\n```text\n block column\n 0 1 2\n +-----+-----+-----+\nblock row 0 | D | 0 | 0 |\n +-----+-----+-----+\n 1 | R | D | 0 |\n +-----+-----+-----+\n 2 | R | R | D |\n +-----+-----+-----+\n\nD : a smaller 1-SS matrix\nR : a rank-one off-diagonal block\n0 : zero by causality\n```\nEach diagonal block is itself a smaller 1-SS matrix. Every strictly lower off-diagonal block is rank one: every entry can be formed from one value for its row, one value for its column, and one scalar shared by the block.\n\nFor example, block $(2,0)$ can be written as\n```text\n off-diagonal block row factor middle column factor\n\n[ α1:6 α2:6 α3:6 ] [ α6 ]\n[ α1:7 α2:7 α3:7 ] = [ α6:7 ] x α3:5 x [ α1:2 α2 1 ]\n[ α1:8 α2:8 α3:8 ] [ α6:8 ]\n```\nWe note that the $9\\times9$ matrix above is for illustration; our current kernel operates on a $64\\times64$ mask. From this point onward, all dimensions refer to that implementation; the same diagonal, zero, and rank-one structure appears when the mask is divided into $16\\times16$ and $8\\times8$ blocks. The underlying decomposition is not specific to a particular MMA instruction or hardware generation. Before exploiting that structure, we first consider a stable row-wise direct-segsum baseline."+ },+ "createdAt": "2026-08-02T23:41:48.804Z",+ "modifiedAt": "2026-11-19T16:50:02.005Z",+ "url": "https://openreview.net/forum?id=m6QBIQ5qCZ¬eId=vbd88LLEu4",+ "license": "CC-BY-4.0"+}
reviews/openreview/m6qbiq5qcz/notes/vxbgscgvrw.json added
+++ b/reviews/openreview/m6qbiq5qcz/notes/vxbgscgvrw.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "VXbGscgvRw",+ "replyTo": "U3WehP1cLJ",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to the Meta Reviewer / General Response",+ "comment": "## Code Release\nTo address the reproducibility concern, we have provided the link to the AC containing anonymized code during the discussion period, following NeurIPS’s prescribed procedure. The repository contains standalone CuTe-DSL implementations of our optimized Mamba-2 SSD forward and backward kernels for NVIDIA H100 (SM90), together with documented dependencies, build instructions, and scripts and commands for reproducing the reported latency benchmarks. Following the review process, we plan to open-source the complete codebase associated with this work. We hope this addresses the reproducibility concern and would be happy to provide any additional information or clarification. \n\n## FA4 Comparison and Integrated Speed Measurement\nWe refer to our response to Reviewer FrCh, questions 2 and 3, where we elaborate the comparison to FA4 and provide detailed benchmarks on prefill and training speed for the full Mamba layer.\n\n## Blackwell Benchmark\nWe demonstrate that our implementation extends past the Hopper architecture to Blackwell, demonstrating that algorithmic improvements are not specific to Hopper. We ported our forward kernel to Blackwell SM100 and benchmarked it on an NVIDIA GB200. The table reports BF16 latency with $B\\times L=32{,}768$, using the same model dimensions as our main experiments.\n\n| Batch $B$ | Length $L$ | Mamba-2 Hier (ms) | Mamba-2 Orig (ms) | FA4(ms) | Speedup over Orig | Speedup over FA4 |\n|---:|---:|---:|---:|---:|---:|---:|\n| 32 | 1K | 0.320 | 1.033 | 0.162 | 3.23× | 0.51× |\n| 16 | 2K | 0.295 | 1.027 | 0.233 | 3.48× | 0.79× |\n| 4 | 8K | 0.305 | 1.021 | 0.638 | 3.35× | 2.09× |\n| 2 | 16K | 0.304 | 1.064 | 1.224 | 3.50× | 4.03× |\n\nOur hierarchy-aware algorithm maintains nearly constant $0.30-0.32$ ms latency and is consistently $3.23–3.50\\times$ faster than the official Mamba-2 baseline across the full sweep. It overtakes Blackwell-optimized FA4 between 2K and 4K tokens and reaches a $4.03\\times$ advantage at 16K. These results demonstrate that the performance improvements are sustained when moving from Hopper to Blackwell, rather than depending on a peculiarity of the older architecture. More broadly, they support our premise that the techniques can be mapped effectively onto evolving GPU architectures. We will update our paper with these new Blackwell results."+ },+ "createdAt": "2026-08-02T21:39:37.476Z",+ "modifiedAt": "2026-11-19T16:50:02.196Z",+ "url": "https://openreview.net/forum?id=m6QBIQ5qCZ¬eId=VXbGscgvRw",+ "license": "CC-BY-4.0"+}
reviews/openreview/m6qbiq5qcz/notes/wn33ngho4x.json added
+++ b/reviews/openreview/m6qbiq5qcz/notes/wn33ngho4x.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "Wn33NghO4x",+ "replyTo": "DS0WNmSyTk",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer xAAb 3/3",+ "comment": "> 3. 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.\n\nWe thank the reviewer for pointing out this ambiguity. The advantage of Hierarchical Segsum over Direct Segsum is not a better asymptotic complexity, but a more GPU-friendly mapping.\n\nDiff Segsum is fast because it maps naturally to the MMA accumulator layout: pre-compute the length-$C$ cumulative-sum vector; each thread independently construct the mask entries it owns using two cumulative-sum values in RMEM, with no additional communication.\n\nA straightforward Direct Segsum implementation is not compatible with MMA layout. It first constructs and scans the $64\\times64$ mask in a row-major SMEM layout, then reloads it in the MMA accumulator layout. This dense SMEM round trip due to layout incompatibility contributes to its higher latency.\n\nHierarchical Segscan avoids this layout mismatch by exploiting the block structure of the 1-SS mask. It directly computes mask in MMA accumulator registers, eliminating the SMEM round trip. Furthermore, only the diagonal $8\\times8$ blocks require short warp-level scans, while the off-diagonal blocks are constructed locally from their rank-one factors. This further reduces communication and incurs lower latency.\n\n> 4. 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.\n\nThe right-to-left traversal at line 290 does not refer to traversing sequence chunks, nor does it reverse the causal SSM state recurrence. It refers only to the order in which the block columns of the within-chunk mask $E$ are constructed inside a single 64-token chunk.\n\nThese blocks depend solely on the input decay factors $\\alpha$, rather than on recurrent states, and therefore may be evaluated in either order. We use a right-to-left order because it permits the row-side factor to be updated efficiently as\n\n$$\nr^{(a,b-1)} = r^{(a,b)}\\bar{\\alpha}_b.\n$$\n\nThis is an algebraic recurrence over decay products, not the SSM recurrence over states. All forward state propagation, both within and across chunks, remains left-to-right.\n\nWe will revise the text to replace “right-to-left traversal” with “right-to-left traversal of the within-chunk mask’s column blocks” and explicitly clarify this distinction."+ },+ "createdAt": "2026-08-02T23:16:23.363Z",+ "modifiedAt": "2026-11-19T16:50:02.230Z",+ "url": "https://openreview.net/forum?id=m6QBIQ5qCZ¬eId=Wn33NghO4x",+ "license": "CC-BY-4.0"+}