TL;DR
AIRE-Prune is a post-training, structured pruning method for State Space Models (SSMs) that slashes state dimensions by minimizing long-run output-energy distortion. By evaluating the total energy a state contributes over an infinite time horizon, it removes an average of 60.8% of states across diverse sequence benchmarks with a negligible 0.29% drop in accuracy—all without any retraining.
What Problem Does This Paper Address?
Deep State Space Models (SSMs)—such as S4, S5, and Mamba—have emerged as powerful alternatives to Transformers for modeling long sequences. However, their computational and memory footprints are heavily driven by the state dimension ($n$). While models are often over-parameterized to ensure stable and expressive training, keeping these large state dimensions during inference leads to unnecessary computational overhead.
Prior attempts at model order reduction (MOR) either break the efficient diagonal structure that modern SSMs rely on, or rely on worst-case frequency-domain gains ($H_\infty$ bounds). These worst-case metrics tend to be overly conservative because they optimize for peak amplifications that typical real-world workloads rarely trigger. AIRE-Prune addresses this gap by introducing a typical-case, energy-based pruning framework specifically tailored for deep, diagonal SSM stacks.
Methods
AIRE-Prune introduces a structured, layer-adaptive pruning strategy based on Asymptotic Impulse-Response Energy ($H_2$ energy).
- Energy-Based Ranking: Instead of looking at static weight magnitudes or worst-case gains, AIRE-Prune measures how much total output energy a specific state (mode) transmits over an infinite time horizon when excited by a unit impulse input.
- Closed-Form Scores: For a stable discrete-time diagonal SSM layer, this energy decomposes additively across modes. The authors derive a fast, closed-form formula for each mode $i$: $$\text{EnergyScore}_{\text{local}}(x_i) = E_i = \frac{\|C_{:,i}\|_2^2 \|B_{i,:}\|_2^2}{1 - |\lambda_i|^2}$$ This score elegantly combines controllability ($B$), observability ($C$), and the pole's damping factor ($\lambda$).
- Prefix-Normalized Global Scoring: Because energy scales vary wildly across different layers, the local scores are sorted and normalized using a running prefix sum. This "hazard-rate" normalization maps all layer scores to a common global scale, allowing practitioners to apply a single global threshold ($\tau$) across the entire network.
Datasets
The method was rigorously evaluated using:
- Long Range Arena (LRA): A standard benchmark suite designed to probe long-context dependencies, including ListOps (2k length), Text (4k length), Retrieval (4k length), Image (1k length), Pathfinder (1k length), and the challenging Path-X (16k length).
- Speech Commands: A 35-way real-world audio keyword recognition dataset with a sequence length of 16,000.
Key Insights and Ideas
- Typical-Case > Worst-Case: Shifting the pruning philosophy from $H_\infty$ (worst-case peak gain) to $H_2$ (average impulse energy) yields much higher compression rates. It turns out that preserving the states that handle typical energy flow is enough to maintain model accuracy.
- The "Elbow" Phenomenon: Thanks to prefix normalization, AIRE-Prune exhibits a distinct step-like accuracy profile. Performance remains completely flat up to a high pruning threshold before dropping sharply. This clear head-tail separation makes it easy for engineers to find the optimal compression sweet spot.
- Layer Collapse as a Feature: At aggressive pruning ratios, the global threshold completely eliminates certain low-energy layers. This transitions the method from fine-grained state thinning to macro block-level deletions, which are highly favored by modern hardware accelerators.
Key Results
AIRE-Prune was tested across multiple SSM architectures, primarily focusing on S5 (MIMO), but also validating on S4D and Mamba (S6).
- Massive State Reduction: Across the LRA suite with S5, AIRE-Prune removed an average of 60.8% of states while incurring a tiny 0.29% average accuracy drop without retraining.
- Task-Specific Resilience: On the Text, Pathfinder, and Path-X tasks, the method safely pruned 80%, 80%, and 70% of states, respectively, with virtually zero loss in accuracy. Even on the notoriously rigid ListOps dataset, it achieved 20% compression safely.
- Real-World Speedups: Transferring the kept states into dimension-reduced models yielded 1.2× to 2.9× wall-clock inference speedups and 19% to 65% reductions in parameter count on an NVIDIA H100 GPU.
Limitations and Future Work
While AIRE-Prune excels on linear time-invariant cores, modern architectures like Mamba introduce input-dependent (time-varying) state transitions. For these selective SSMs, the state matrices change dynamically with every token, meaning the closed-form $H_2$ energy cannot be computed statically pre-inference.
The authors note this limitation and suggest that future work could involve using Monte-Carlo sampling over gating dynamics to estimate average energy profiles, extending AIRE-Prune's benefits to large language models.
Summary updated