Introduction
Deep State Space Models (SSMs), such as S4 and S5, have emerged as powerful alternatives to Transformers for modeling long-range dependencies in sequential data. However, their efficiency is heavily tied to the state dimension ($n$). To ensure stability and capture complex dynamics, researchers often over-provision these dimensions, leading to high memory usage and slower inference. Unlike standard neural networks where weights can be pruned based on magnitude, SSMs are dynamical systems where a "small" weight might still represent a critical resonance or long-term memory. This paper introduces LAST (Layer-Adaptive STate pruning), a structured pruning method designed specifically for Deep SSMs that leverages classical control theory to optimize state dimensions across a model's layers.
Methodology
LAST treats each layer as a dynamical system and prunes based on "output energy loss" using a multi-step principled approach:
- $H_\infty$ Scoring: Instead of looking at weight magnitudes, LAST calculates the $H_\infty$ norm for each subsystem. In control theory, this norm measures the maximum possible gain of a system across all frequencies. Subsystems with low $H_\infty$ norms contribute very little to the final output and are candidates for pruning.
- Energy Normalization: Simply comparing $H_\infty$ norms across layers is ineffective because different layers have different total gains. LAST normalizes the scores by the total energy of the remaining states in that specific layer. This is the core innovation that allows for fair comparison across the network depth.
- Cross-Layer Comparison: This normalization enables a "global" pruning strategy. The model can decide to prune a high percentage of states from a redundant layer while preserving states in a critical bottleneck layer.
- Structured Pruning: When a state is pruned, the corresponding rows and columns in the state transition matrices ($\mathbf{A}, \mathbf{B}, \mathbf{C}$) are removed, leading to actual hardware-level speedups and memory savings.
Experimental Setup
The authors evaluated LAST across a wide range of sequence modeling benchmarks, including:
- Long Range Arena (LRA): Tasks such as ListOps, Text (IMDB), Retrieval (AAN), Image (CIFAR-10 pixels), Pathfinder, and Path-X (sequence length 16,384).
- Speech Commands: Raw audio classification at 16kHz and 8kHz.
- Pixel-level Image Classification: Sequential MNIST (sMNIST), Permuted sMNIST (psMNIST), and sequential CIFAR-10 (sCIFAR).
Key Results and Insights
Efficiency and Accuracy
LAST demonstrates that previous SSM architectures are significantly over-parameterized. On average, 33% of states in MIMO (Multi-Input Multi-Output) models can be removed with only a 0.52% average accuracy loss—notably, this is achieved without any retraining. On the Retrieval task, this pruning led to a 1.7x inference speedup and a 40% reduction in peak GPU memory usage.
The Importance of Frequency-Domain Scoring
The research reveals that magnitude-based pruning (common in CNNs/Transformers) fails for SSMs. Frequency-domain importance ($H_\infty$) is a much more reliable indicator of a state's value. Analysis shows that states representing very fast decays (high-frequency noise) or extremely high-frequency oscillations are typically the first to be pruned, suggesting these dynamics are often redundant for the target tasks.
Robustness
Pruned models maintained the unique SSM ability to generalize across different sampling rates. For example, models trained on 16kHz audio and tested on 8kHz retained their performance edge after pruning. Furthermore, LAST consistently outperformed "Uniform" pruning and "Global $H_\infty$" (pruning without energy normalization), particularly at high compression ratios.
Limitations and Future Work
While LAST provides a robust framework for one-shot pruning, the authors suggest that integrating the method into the training loop (iterative pruning) could yield even higher compression rates. Additionally, while the method is effective across 10 diverse tasks, the optimal pruning ratio varies significantly by task (e.g., Text is highly compressible, while ListOps is not). Future research may focus on automated ways to find the optimal pruning budget for new tasks and using these findings to design better initialization schemes that avoid wasting parameters on insignificant dynamics from the start.
Summary updated