Flash PD-SSM: Memory-Optimized Structured Sparse State-Space Models
summary
The gist
FLASH PD-SSM proposes a novel State-Space Model that achieves comparable throughput to widely-used structured SSMs while providing significantly better expressivity…
In short
FLASH PD-SSM introduces a novel State-Space Model that balances high performance with better expressivity than existing structured models. It achieves comparable throughput to Mamba2 while significantly improving memory efficiency by redesigning the selection mechanism, reducing memory complexity from O(LN^2) to O(LN).
Key concepts
- State-Space Models (SSMs)
- These are mathematical models that describe a system's state over time based on a set of linear equations. They are used in sequence modeling because they can efficiently capture temporal dependencies, offering a good trade-off between computational speed and the complexity of patterns they can learn.
- Structured Sparse SSMs
- These are SSMs where the transition matrix has a specific, structured pattern rather than being fully random. This structure allows the model to be much more efficient in terms of computation and memory compared to unstructured models, which can be too costly for large sequences.
- Expressivity Guarantees
- This refers to the model's theoretical ability to represent different types of patterns, specifically Finite-State Automata (FSA). FLASH PD-SSM maintains optimal guarantees, meaning it can emulate any FSA with N states using a single layer of hidden size N.
- Soft-Selection vs. Hard Selection
- The original PD-SSM used soft selection for choosing transitions, which caused high memory overhead. FLASH PD-SSM replaces this with hard selection, redesigning the mechanism to reduce memory complexity from O(LN^2) to O(LN), leading to significant efficiency gains.
Terminology used across episodes
This episode discusses
- Flash PD-SSM: Memory-Optimized Structured Sparse State-Space Models · Paper Radio
- The UEA multivariate time series classification archive, 2018
- Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computation
- Nemotron-H: A Family of Accurate and Efficient Hybrid Mamba-Transformer Models
- Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge
- Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Models
- Mamba: Linear-Time Sequence Modeling with Selective State Spaces
- Mechanistic Design and Scaling of Hybrid Architectures
- WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- An Empirical Study of Mamba-based Language Models
- Structured Linear CDEs: Maximally Expressive and Parallel-in-Time Sequence Models
- TransXSSM: A Hybrid Transformer State Space Model with Unified Rotary Position Embedding
The paper
Flash PD-SSM: Memory-Optimized Structured Sparse State-Space Models · Read on arXiv
Aleksandar Terzic, Francesco Carzaniga, Nicolas Menet, Yannick Biehl, Michael Hersche, Thomas Hofmann, Abbas Rahimi
IBM Research – Zurich Department of Computer Science ETH Zurich
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, most structured transition matrix forms are highly efficient both in runtime and memory consumption, but suffer from limited expressivity. Building on recent work on structured sparse SSMs, we propose PD-SSM, a novel SSM that achieves comparable throughput to widely-used structured SSMs with significantly better expressivity guarantees. PD-SSM maintains a trainable set of structured sparse matrices, a single one of which is discretely 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 PD-SSM against a suite of alternative models on synthetic mechanistic and state-tracking tasks, finding that its theoretical expressivity is achieved in practice. Second, on multivariate time-series tasks involving sequences of length over 17,000, we find that PD-SSM defines a new state-of-the-art (SoTA) accuracy among competing SSM methods. Finally, we demonstrate that 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. Up to 3B parameters, its training speed matches that of widely used SSMs, with less memory than DeltaNet and Gated DeltaNet. Code is available at https://github.com/IBM/flash-pdssm.
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: I'm Tom.
Jane: And I'm Jane, here with Lu, Meng and our in-house large language model, Lalam.
Tom: We're looking at the paper: "Flash PD-SSM: Memory-Optimized Structured Sparse State-Space Models".
Paper summary: Tom: Hey Jane, so we're looking at this paper today, Flash PD-SSM: Memory-Optimized Structured Sparse State-Space Models. The main thing they're tackling is that big trade-off between efficiency and expressivity in state space models.
Jane: That’s right, Tom. Basically, unstructured transition matrices give you the most expressive power because you can model any finite state automaton transitions, but that comes with really high compute and memory costs. Most structured ones are efficient for training and running but they are limited in what they can actually represent.
Lu: The whole point of this paper is proposing Flash PD-SSM as a novel state space model that manages to get throughput comparable to those efficient structured models while providing much better expressivity guarantees than what's currently available <ref:2605.19150#pg1>.
Meng: But the motivation seems to be fixing this memory issue. I saw they were building on work like PD-SSM, but that version had a problem where generating those input dependent matrices cost O(L N two) in memory <ref:2605.19150#pg2>.
Tom: Exactly, and the key contribution they make here is a novel selection mechanism. They redesign the soft selection mechanism to be a hard selection instead, which changes the complexity of generating those matrices from O(L N two K) down to O(L N K) for compute and memory <ref:2605.19150#pg3>.
Jane: So they managed to cut down the memory cost from O(L N two) to just O(L N), which is a big win for running these models at scale, even though they still keep the expressivity high.
Lu: And they claim that this design maintains optimal theoretical expressivity guarantees by allowing Flash PD-SSM to emulate any finite state automaton with N states using just a single layer with hidden size N <ref:2605.19150#pg3>. They do this by mapping the state transition function to a matrix A of the form P q less than or equal to enc of delta of q and sigma times enc of q, where Q is the set of states and enc is some encoding scheme <ref:2605.19150#pg3>.
Meng: Okay, so theoretically it can do what unstructured models can do expressively-wise, but practically it’s efficient enough for production use. What about the real performance numbers?
Tom: They show synthetic state-tracking accuracy on a collection of FSA emulation tasks that gets ninety-six point three percent average accuracy <ref:2605.19150#pg3>, which is substantially better than diagonal models like Mamba two, which got fifty eight point nine percent average <ref:2605.19150#pg4>.
Jane: That synthetic tracking result sounds really impressive because it puts them ahead of other structured models too, like Gated DeltaProduct with eighty point seven percent average <ref:2605.19150#pg3>. They also have scores on mechanistic capability tests that are comparable to Mamba, hitting sixty nine point two percent versus sixty nine point three percent <ref:2605.19150#pg4>.
Lu: And they also report time-series modeling results, achieving state of the art accuracy on the UEA multivariate time-series classification task and reaching comparable mean squared error on the PPG-Daglia ti task <ref:2605.19150#pg3>. These results confirm that Flash PD-SSM is at the frontier for expressivity, throughput, and memory usage <ref:2605.19150#pg3>.
Meng: From an engineering standpoint, I’m interested in how it runs on real traffic. The paper mentions a three phase CUDA kernel implementation for the recurrence computation to exploit GPU parallelism <ref:2605.19150#pg4>, and they show the forward CUDA kernel achieves around eighty two percent of the theoretical peak memory bandwidth of the GPU <ref:2605.19150#pg4>. That sounds like solid hardware utilization.
Tom: It sounds efficient, but we have to remember they are using straight-through estimators for training, which can lead to biased gradients <ref:2605.19150#pg9>. That's a potential issue when we move into deeper language modeling tasks.
Jane: Yeah, that’s something the authors themselves flag as a modeling complexity that needs attention <ref:2605.19150#pg9>. So even with these great expressivity and efficiency gains, the training process itself has its own known challenges.
Lu: The paper shows they use this performance on natural language state-tracking tasks, surpassing Mamba two's out of distribution accuracy by up to ten percent while keeping throughput comparable <ref:2605.19150#pg4>. Plus, for pure language modeling, they hybridize it with DELTA-PD to get better accuracy and throughput than the base Flash PD-SSM <ref:2605.19150#pg4>.
Meng: So what does this mean for deploying things? It seems like an effective drop-in replacement for hybrid language models, improving both in natural language state-tracking and common language modeling scenarios <ref:2605.19150#pg1>.
Tom: Exactly, it seems like a solid upgrade over the existing structured SSMs we use today when we want that balance of speed and capability without the massive memory overhead. We're looking at models with increased throughput and decreased memory consumption compared to SSMs widely used in frontier language models <ref:2605.19150#pg1>.
Jane: It really seems like a practical piece of research, showing that we can push expressivity boundaries without completely sacrificing the speed we need for real-world applications. So, next up, we're going to look at what this all means for the bigger picture.
Conclusion: Tom: So we've seen how Flash PD-SSM manages to get high expressivity while cutting down memory usage significantly compared to other structured state space models.
Jane: Right, so the title itself says this paper is about taking those structured sparse state space models and making them more memory efficient.
Lu: It’s about solving that trade off between how much complex behavior you can model and how much computer memory you need for it.
Meng: But what does this actually mean for me when I'm trying to deploy a model? Is this something that will run smoothly on my hardware, or is it still too heavy?
Tom: Well, the core idea is a new way to pick the state transitions that cuts down the memory needed from O of L N two to just O of L N.
Jane: That reduction in memory complexity means these models can handle much longer sequences without running out of space.
Lalam: The authors are showing that this method keeps the theoretical expressivity high, meaning it can still model complex patterns, like finite state automaton transitions.
Meng: High expressivity is great on paper, but I need to know if that translate to something useful when I put this in a real language model pipeline.
Tom: It does show up well in benchmarks for both natural language state tracking and general language modeling tasks.
Jane: So the big picture is that we're getting models that are faster and more capable than what's been common for a long time.
Lu: The authors also point out some complexities, though, specifically about using straight-through estimators in training which can sometimes lead to biased gradients.
Meng: Biased gradients are a real problem when you’re trying to train something like this really deeply.
Tom: They acknowledge that modeling those training issues is still an open area for future research and they suggest looking into that more.
Jane: So while the model itself is efficient and expressive, the training process needs some refinement before it's perfect.
Meng: It sounds like a solid improvement for deployment, but we have to keep an eye on those training hurdles.
Tom: Exactly, it’s not just about the model running fast; it’s about making sure we can actually train and trust what the model learns.
More episodes
- 2512.06840-CADE: Continual Weakly-supervised Video Anomaly Detection with Ensembles
- 2602.06195-Debiased DPO for Diffusion Models
- 2602.08430-Understanding and Optimizing Attention-Based Sparse Matching for Diverse Local Features
- The day in conversation for 2026-12-05
- Daily Summary for 2026-12-05
- 2602.17322-Leveraging Contrastive Learning for a Similarity-Guided Tampered Document Data Generation Pipeline
- 2603.12388-Deployment-Oriented Session-wise Meta-Calibration for Landmark-Based Webcam Gaze Tracking
- 2604.13856-Any3DAvatar: Fast and High-Quality Full-Head 3D Avatar Reconstruction from Single Portrait Image
- 2605.24604-LC-Flow: Learning Local Continuous Optical Flow and Confidence from events
- 2606.14389-SIMILR: Single-Image Multi-Instance Joint 3D Object Reconstruction and Pose Estimation Leveraging Recurrence