acceptodds
Published as a conference paper at NeurIPS 2026

Flash PD-SSM: Memory-Optimized Structured Sparse State-Space Models

Aleksandar Terzic, Francesco S. Carzaniga, Nicolas Menet, Yannick Biehl, Michael Hersche, Thomas Hofmann, Abbas Rahimi
18 views

Abstract

State-space models (SSMs) face a fundamental trade-off between efficiency and expressivity that is mainly dictated by the structure of the model's transition matrix. Unstructured transition matrices enable maximal expressivity, as measured by their ability to model finite-state automaton (FSA) transitions, but come at a prohibitively high compute and memory cost. In contrast, diagonal and other structured transition matrices suffer from limited expressivity, but are highly efficient both in runtime and memory consumption. Building on recent work on structured sparse SSMs, we propose Flash PD-SSM, a novel SSM that achieves comparable throughput to diagonal models with optimal expressivity guarantees. Flash PD-SSM keeps a collection of structured sparse matrices, from which a single matrix is selected at each time-step, enabling FSA expressiveness at the level of unstructured matrices while maintaining the efficiency required for training models at scale. First, we validate Flash PD-SSM against a suite of alternative models on common mechanistic and synthetic state-tracking tasks, showing that its theoretical expressivity is achieved in practice. Moreover, on multivariate time-series tasks involving sequences of length over 17,000, Flash PD-SSM defines a new state-of-the-art (SoTA) accuracy among competing SSM methods. Second, we demonstrate that Flash PD-SSM is an effective drop-in replacement for hybrid LLMs, yielding improvements both in natural language state-tracking and in common language modeling scenarios. Finally, we show that our highly efficient design results in increased throughput and decreased memory consumption with respect to SoTA SSMs widely used in frontier language models.

Keywords:
Sydney, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 49%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.33 over 3 reviews, above 49% of the others.
Reviewer_uni4OpenReview ↗
Rating
3
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

The submission proposes FLASH PD-SSM, a memory-optimized structured sparse state-space model intended to retain the FSA/state-tracking expressivity of PD-SSM while removing PD-SSM’s expensive sparse transition matrix generation. The key idea is to directly select a structured sparse transition matrix from a learned dictionary at each time step, rather than forming and sparsifying an input-dependent dense combination. This reduces the claimed matrix-generation memory complexity from (O(LN^2)) to (O(LN)), and the authors combine this with a custom hardware-aware Triton/CUDA recurrence implementation.

Strengths and weaknesses

Strengths

  1. Improving the expressivity-efficiency trade-off of SSMs is highly relevant for long-context and hybrid language models.
  2. Replacing PD-SSM’s expensive dense-combination-and-sparsification path with direct sparse dictionary selection is conceptually clean and appears to preserve the intended finite-state transition mechanism.
  3. The custom recurrence implementation and runtime/memory evaluation make the work more practically relevant.
  4. The synthetic FSA results are strong and support the claim that structured sparse SSMs can outperform diagonal/DPLR alternatives on tasks where transition expressivity matters.

Weaknesses

  1. The paper frames FLASH PD-SSM as a drop-in replacement for frontier hybrid LLMs, but the actual LM pretraining experiments are only at 100M and 230M scale. The larger Granite4/Nemotron-H experiments train only inserted layers while freezing the base model. These are useful experiments, but they do not fully establish that FLASH PD-SSM is a robust replacement in full-scale frontier LLM pretraining.

  2. The strongest LM result comes from a DELTA-PD hybrid, while pure FLASH PD-SSM performs worse than pure DeltaNet. This weakens the claim that FLASH PD-SSM alone is a superior SSM backbone. The paper acknowledges this but does not sufficiently explain it.

  3. Adding trainable FLASH PD-SSM layers before attention layers in frozen Granite4/Nemotron-H models is not obviously equivalent to comparing SSM mechanisms under matched trainable-parameter, compute, and optimization budgets. Stronger controls are needed, such as extra Mamba2/DeltaNet layers with identical parameter count, LoRA/adapters, small MLP adapters, and same trainable-budget baselines.

  4. Single-layer forward/backward A100 measurements are useful, but the deployment claim would be stronger with end-to-end training and inference throughput, memory, and latency for complete hybrid models, including long-context prefill and autoregressive decoding.

  5. The method depends on custom Triton/CUDA kernels and many training/evaluation details. The checklist says no new assets are provided. For a systems-oriented architecture paper, code and kernels are important for verifying speed, memory, and correctness claims.

Questions
  1. Can the authors provide end-to-end throughput, memory, and latency for complete DELTA-PD models, not only single-layer measurements?
  2. In the Granite4/Nemotron-H experiments, how many trainable parameters are added for each method? Can the authors compare against parameter-matched Mamba2/DeltaNet insertions, LoRA/adapters, and generic trainable adapter layers?
  3. Why does pure FLASH PD-SSM underperform pure DeltaNet in language modeling, despite strong synthetic state-tracking results? Is the issue optimization, representation, discrete routing, lack of continuous associative memory, or something else?
  4. Can the authors provide more evidence that the method scales beyond 230M LM pretraining? Even a smaller-token scaling trend across several model sizes would help.
  5. Will the authors release the custom kernels and scripts required to reproduce the runtime/memory results?
  6. How sensitive are the results to the number of dictionary matrices, heads, temperature schedule, and chunk size in realistic language-model training?
Limitations

It notes that pure FLASH PD-SSM underperforms in language modeling. However, the limitations section is too short relative to the breadth of claims. It should more explicitly discuss optimization instability, sensitivity to STE/temperature schedules, hardware dependence of speedups, limited LM scale, and the fact that the strongest LM results rely on hybridization rather than pure FLASH PD-SSM.

Paper formatting concerns

NA

Reviewer_iKXROpenReview ↗
Rating
5
Clarity
4
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper introduces FLASH PD-SSM, a memory-optimized parallel variant of the structured sparse state-space model (PD-SSM). This approach addresses the memory and computational bottlenecks of the original PD-SSM while maintaining its expressivity across synthetic tasks. This is achieved by replacing the combination of dictionary matrices with a direct, discrete selection mechanism. The authors show that this architectural change reduces memory complexity and maintains finite-state automaton (FSA) performance. The model is validated across a wide selection of tasks and ablations, showing good performance on synthetic state tracking, multivariate time-series classification, and as a drop-in layer in hybrid LLMs. However, the empirical results also indicate that pure FLASH PD-SSM models underperform relative to the DeltaNet baseline on standard language modelling tasks. Hence the practical utility of the proposed method is currently best realised when used as a complementary sparsely inserted layer within hybrid LLM architectures or when used in other sequence modelling domains with more dependence on state tracking.

Strengths and weaknesses are in no particular order of importance.

Strengths and weaknesses

Strengths

S1 The structure of the paper is well organized and the writing is clear. The experiments are clearly motivated throughout the paper and the results are well presented.

S2 The paper follows a very thorough experimental regime, with a large number of ablation studies and comparisons to baselines. The model shows good results on synthetic state tracking and fares decently on MADLAB showing particularly good compression efficiency. The model performs well as a layer within a hydrid model for language modelling. The model is also validated on other domains such as time series forecasting and classification, showing that the model is not limited to language modelling. Recent models were also tested.

S3 The comprehensive runtime and memory profiling of the model gives a clear picture of the real-world utility of the model and its potential for deployment in large-scale language models. A sweep of practical sequence lengths for LLM pretraining were profiled and the model matched or exceeded the baselines at typical sequence lengths.

S4 The ablations performed are comprehensive and the dependency on dictionary size and gradient estimator choice is well explored.

Weaknesses

W1 While seemingly novel as applied to a parallelised state-space model for language modelling, the idea of learning to select transition weights is not new and has been explored in the control theory background literature. See Switching State-Space Models/Kalman Filters/Dynamical Systems literature for example. There is a lack of discussion of this prior work and how it relates to the proposed approach. In my view the contribution of this work is a parallelised version of the switching control theory literature rather than a novel contribution to the field of state-space models.

W2 When exclusively using FLASH PD-SSM on the language pretraining task the performance is weaker than the baseline DeltaNet model. Hybridisation methods in LLMs commonly produce models better than either of the two models alone. Given the baselines my interpretation is that the strong performance on the synthetic tasks does not generalise clearly to the language modelling task. As a result FLASH PD-SSM does not appear to be a strong candidate for the main language modelling layer, but rather a candidate layer to sparingly include in a hybrid model to augment its performance on tasks where its base layer is weak.

Questions

Q1 The approach of learning to select weights (in this case fast weights) seems to be similar in nature to sparse Mixture of Experts (MoE) transformer layers. Do you see any connection between your work and MoE? Similarly with Sparse Attention.

Q2 Do your kernels primarily make use of Tensor Cores on GPUs? Do you know what fraction of the total compute is performed on Tensor Cores and what the percentage of theoretical peak FLOPS is achieved? If there is compute on both CUDA and Tensor Cores have you considered using asynchronous compute to overlap the two? Have you profiled the performance of your kernels on H100/B100 GPUs? RTX 30XX, 40XX, and 50XX follow a similar architecture to the A100, so I would expect similar performance improvements on those GPUs, but how does this scale to the larger tensor core architectures of the H100 or B100? Does the sparsity structure of your algorithm map nicely to other compute primitives?

Q3 I recognize the parameter matching and good latency/memory use of the model. What is the origin of the memory efficiency of the model over the Mamba/GDN baselines? Is there a smaller state size for a given number of parameters than other SSMs? It would be helpful if the total state sizes of the models were explicitly reported or if the exact scaling formulas were provided.

Q4 Have you considered more gradient estimators or discretisation methods other than STE and Gumbel-Softmax? Additionally, have you considered using a unified bank of potential weights that each column could select from, rather than picking between dictionaries?

Q5 Given the set of baselines in Table 1, why were the same set of baselines not used for the MADLAB experiments?

Limitations

Yes

Paper formatting concerns

No

Final justification

As stated in my comment to the authors: I think that the connections highlighted will make the originality more clear to a reader. The results presented in the rebuttals also strengthen the work overall. I am updating my recommendation to accept.

I also updated the originality score from 2 to 3.

The scale of the experiments are larger than I would usually expect, and it is not something I would want to over index on. However, Flash PD-SSM does show impressive scaling performance.

Reviewer_PYkbOpenReview ↗
Rating
5
Clarity
4
Confidence
4
Originality
3
Quality
4
Significance
3
Read review
Summary

This paper develops on foundations built by the PD-SSM model. The PD-SSM model parametrised the transition matrix as the product of a column one-hot matrix and a complex-valued diagonal matrix (hence so named PD-SSM). In terms of expressivity, it has been shown that PD-SSM can emulate any finite state automata. However, the bottleneck is the generation of the input-dependent matrices that PD-SSM utilises. The Flash PD-SSM model introduced here address this issue through sparsifying the matrix dictionary , reducing the cost down to O(LN)\mathcal{O}(LN) while maintaining theoretical expressivity properties.

Strengths and weaknesses

Strengths:

The modification to PD-SSM is novel, and custom CUDA kernels have been designed for the new model.

The empirical evaluations are extensive, both synthetic tasks and also real world-data web data (FineWeb) are used for evaluation. The proposed method achieves comparable performance to the PD-SSM on synthetic state-tracking tasks, while being over 30 times faster. The new model also has low memory requirements. Interesting hybrid models are created, which gives convincing, state-of-the-art performance.

In terms of the presentation, the paper is well-written and a full pseudo-code Is included to help the reader understand the proposed method.

Weaknesses:

I think at times the observation/results omit some limitations. When comparing the runtime, it is a bit disingenuous as Flash PD-SSM is noticeably slower than Mamba2 for lower lengths (Figure 4), however, only the 4% improvement at length 5120 is pointed out in the text.

Similarly (with reference to how well the paper sits in literature), Table 1, which takes some results from [56] seems to have trimmed off the models introduced in that paper (SLiCEs). SLiCEs performed around the mid-80s, which means that although their performance sits only below Mamba3 and the PD-SSM models, they outperform the other baselines.

In terms of soundness, the claim of “contained additional computational cost” required to improve the LLM’s capabilities should be quantified.

A minor suggestion: Reference to relevant section when discussing synthetic state-tracking, mechanistic capabilities, and time series modelling in contributions.

Questions

For equation (2), why is this argmax rather than max when the text seem to say “MksparseM_k^{\text{sparse}} are generated from a dictionary of KK dense matrices Mk,k∈[K]M_k, k\in [K] by selecting the single largest element in each column”?

How are the candidate layers chosen in Section 4.3?

Limitations

The authors mention the potential of yielding biased gradients and the lack of detailed existing work in the literature, and further work to be done about the underperformance in language modelling tasks. However, I think that the slower than Mamba2 runtime for lower lengths can be also mentioned in this section.

Paper formatting concerns

N/A

Final justification

I had quite a positive assessment of the paper at initial review. I believe the authors addressed my concerns and those of the other reviewers well, therefore I maintained my score of 5 (accept).

1 comment

We thank the Reviewer for highlighting the novelty of our approach and the broadness of our evaluations. We also appreciate the interest in our hybrid models.

We now clarify all aspects of the manuscript indicated by the Reviewer, especially the concerns about the performance of Flash PD-SSM at shorter lengths.

We address each point in detail below.


W1. Runtime comparison with Mamba2

The Reviewer correctly points out that at small sequence lengths, the overhead of Flash PD-SSM dominates the runtime, making it slower than Mamba2. We believe that such sequence lengths are unlikely to be encountered in practice, making this limitation relative only to synthetic benchmarks. We now clarify this aspect explicitly in the manuscript:

Section 4.1:

Figure 4 illustrates that Flash PD-SSM achieves a runtime comparable to that of Mamba2 [11] over a wide range of sequence lengths, showing a slowdown for shorter sequences (up to 50% for very short lengths of 512) while being faster at the more relevant, longer sequence lengths (up to 4% faster at length 5120).

W2. Comparison with SLICE

The Reviewer correctly noted the omission of SliCE-based methods from the FSA table. We omitted it because of space constraints and the fact that the SLiCE methods were never tested on language modeling; we wanted to keep the focus on methods for which more general applicability has been demonstrated. However, we intend to reintroduce SLiCE methods to the corresponding table, given that we fully re-use their experimental setup.

W3. Additional cost

The claim "contained additional computational cost" refers to the addition of layers into an existing model to enhance its capabilities. In this sense, any inserted layers (be it Mamba2 or Flash PD-SSM) represent additional cost. In our benchmark specifically, we show that adding only 10% more layers notably improves performance, more so when those layers are Flash PD-SSM. We now reformulate the claim to make it more explicit.

W4. Sections reference

We find the Reviewer's suggestion helpful, and revised the manuscript accordingly.

Q1. Argmax

We thank the Reviewer for pointing this out. The argmax is the correct expression, and we should have noted that the resulting matrix is a one-hot matrix with the active entry being the index of the largest element in each column.

Q2. Inserted layers

As mentioned in the paper, we follow the model designs of Granite 4 resp. NemotronH to decide where to insert the layers, and closely follow the sizes of the original layers as well. In particular, each of the model we consider is hybrid and contains several self-attention layers. We use this design choice to place the inserted SSM layers before each self-attention layer. In practice, for the Granite4-1B model, the trainable parameters for Mamba2 insertion are 134,041,984, for Mamba3 insertion 134,774,976, for Flash PD-SSM insertion 134,667,264, and for Gated DeltaNet 151,437,312. Only Gated DeltaNet is moderately higher than the others. Moreover, given that the computational complexities of Mamba2, Mamba3, and Flash PD-SSM roughly match, the overall setup is consistent.

We now also include Mamba3 as a candidate layer, together with an ablation using parameter-matched LoRA following Reviewer uni4's suggestion. The results are shown below (the two remaining models will be filled as soon as they finish):

Granite4NemotronH
300M1B3B7B9B12B30B
LoRA38.0854.3756.4748.2083.95--
Mamba253.2972.8185.3287.6579.8982.0489.14
Mamba354.9276.4485.3377.09$ \dagger $$ \dagger $82.34
DeltaNet49.6468.5984.1288.6382.0284.7790.45
Flash PD-SSM53.4274.9590.6889.7989.8989.2591.77

As can be seen, Flash PD-SSM remains the SSM with the highest accuracy across most models.

[$ \dagger $] Mamba3 insertion results in unstable gradients for the models indicated, and the training cannot finish.

Comments on the paper

1 comment
Meta-review

The paper makes the expressive but impractical PD-SSM construction efficient. Instead of forming and then sparsifying a new dense transition matrix at every token, it learns a dictionary of sparse transition maps and selects one map based on the current input. The model then uses that map to update its recurrent state, training the two discrete selection steps with straight-through gradient estimates. This preserves PD-SSM’s ability to represent arbitrary finite-state transitions while reducing transition-generation memory from quadratic to linear scaling in the state size. The method shows strong length-generalizing state tracking.

The main concern is that the language-modeling claims are broader than the evidence. Pure FLASH PD-SSM underperforms pure DeltaNet, full pretraining is limited to 100M and 230M models, and the larger experiments train only newly inserted layers. The results therefore support the proposed model as a useful specialized component more strongly than as a general replacement for existing SSM layers. The response should explain the pure model’s underperformance and either provide stronger evidence for the broader replacement claim or narrow the claim accordingly.

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

Related papers

Loading the map…

Discussion (0)

Sign in to comment.