TL;DR
AIRE-Prune is a novel post-training method that slashes the computational cost of State Space Models (SSMs) by pruning up to 60% of their internal states with negligible accuracy loss. By ranking states based on their "asymptotic impulse-response energy"—essentially how much they contribute to the model's output over time—it identifies and removes redundant components without requiring expensive retraining.
Introduction
Deep State Space Models (SSMs) like S4, S5, and Mamba have emerged as powerful alternatives to Transformers for processing long sequences. However, their efficiency is heavily tied to the state dimension ($n$). A larger $n$ allows for more complex memory but drastically increases memory and compute requirements during inference.
Currently, researchers often over-parameterize these models during training to ensure stability and capacity. Once trained, there are few principled ways to "right-size" the state dimension. Previous attempts either used simple magnitude-based pruning (which ignores the dynamics of the system) or worst-case frequency-domain measures (like $H_\infty$ gain), which can be overly conservative and fail to capture the "typical" behavior of the model.
The AIRE-Prune Approach
The authors introduce AIRE-Prune (Asymptotic Impulse-Response Energy for State PRUNing), which treats model reduction as an energy-minimization problem.
- Energy-Based Ranking: Instead of looking at weight magnitudes, AIRE-Prune calculates a closed-form score for each state based on its total output energy over an infinite time horizon when excited by a unit impulse. This score naturally accounts for three critical factors: how easily a state is excited (controllability), how much it affects the output (observability), and how slowly it decays (damping).
- Closed-Form Efficiency: The score is calculated using a simple formula derived from the model's parameters ($\Lambda, B, C$), making it extremely fast to compute compared to methods requiring iterative solvers.
- Prefix-Normalization: To compare states across different layers (which might have vastly different scales), the authors use a "hazard-rate" normalization. This allows for a single global threshold to be applied across the entire deep stack.
Experimental Setup
The method was evaluated on standard long-context benchmarks:
- Long Range Arena (LRA): Includes tasks like ListOps, byte-level Text classification (IMDB), Retrieval (AAN), Image classification (CIFAR-10), and the challenging Pathfinder and Path-X tasks (sequences up to 16k tokens).
- Speech Commands: A 35-way keyword recognition benchmark using raw audio waveforms.
The authors tested AIRE-Prune across various SSM architectures, including S5 (MIMO), S4D, and Mamba (S6).
Key Insights and Results
Pruning based on "typical-case" energy (related to the $H_2$ norm) proves significantly more effective for deep neural networks than classical "worst-case" control theory measures ($H_\infty$). Worst-case measures focus on peak amplification that may rarely occur in practice.
- Massive State Reduction: On average, AIRE-Prune removed 60.8% of states across all tasks.
- Negligible Accuracy Drop: This reduction resulted in an average accuracy decrease of only 0.29 percentage points—all without any retraining.
- Real-World Speedups: On the S5 architecture, the method yielded inference speedups between 1.2x and 2.9x and reduced total parameters by 19% to 65%.
- The "Elbow" Effect: Accuracy remains remarkably stable as states are pruned until a specific "elbow" point is reached, after which it drops sharply. This suggests that trained SSMs have a clear separation between a small set of "vital" states and a large "tail" of redundant ones.
- Layer-Selective Behavior: AIRE-Prune doesn't prune layers uniformly. For some tasks, it might remove entire layers that fall below the global energy threshold, effectively simplifying the model's depth as well as its width.
Limitations and Future Work
- One-Shot Focus: The paper focuses on "one-shot" pruning without retraining. While this demonstrates the strength of the ranking metric, incorporating retraining could likely push the compression limits even further.
- Diagonal Assumption: The current mathematical derivation relies on the diagonal (or diagonalizable) structure common in modern SSMs. Extending this to non-diagonal or fully non-linear recurrent systems remains an open challenge.
- Hardware Awareness: While the paper shows theoretical and measured speedups, the authors suggest that future work could better align the pruning with specific hardware kernels (like block-structured sparsity) to maximize wall-clock efficiency.
Summary updated