---
title: Layer-Adaptive State Pruning (LAST)
url: https://www.emergentmind.com/topics/layer-adaptive-state-pruning-last
type: topic
---

# Layer-Adaptive State Pruning (LAST)

Layer-Adaptive State Pruning (LAST) is a structured, control-theoretic framework for reducing the state dimensionality of deep state-space models (SSMs) while provably controlling worst-case output distortion. It extends modal truncation concepts from single-layer, linear time-invariant (LTI) systems to multi-layer, nonlinear deep SSMs by introducing globally comparable, layer-adaptive pruning criteria based on energy contributions as measured by $\mathcal{H}_\infty$ norms. LAST enables systematic, one-shot identification and removal of redundant state dimensions in existing SSM architectures with minimal impact on predictive accuracy and without requiring retraining [2411.02824].

## 1. Optimization Objective and Energy-Based Pruning Criteria

LAST targets the reduction of state dimensions in deep SSMs, where an input sequence $u$ is transformed via $L$ successive linear state-space layers $\Sigma^{(1)}, \dots, \Sigma^{(L)}$, each coupled with a 1-Lipschitz activation $\sigma$, yielding output $y_\text{full} = f_\sigma(u; \Sigma^{(1:L)})$. The central objective is to prune a subset $P^{(l)}$ of states per layer so as to minimize the worst-case output energy distortion:
$$
\min_{P^{(1)},\ldots,P^{(L)}} \left\| f_\sigma(u; \Sigma^{(1:L)}) - f_\sigma(u; \hat\Sigma^{(1:L)}) \right\|_2^2
$$
where $\hat\Sigma^{(l)}$ denotes $\Sigma^{(l)}$ with the states in $P^{(l)}$ removed, under a global pruning budget constraint.

The influence of each state is assessed using the discrete-time LTI transfer function matrix $G(z)$ for an SSM layer. The $\mathcal{H}_\infty$ norm, defined as
$$
\|G\|_\infty := \sup_{\theta\in[0,2\pi]} \bar{\sigma} \left( G(e^{j\theta}) \right)
$$
(where $\bar{\sigma}$ is the largest singular value), yields the output energy bound
$$
\|y\|_2^2 \leq \|G\|_\infty^2 \|u\|_2^2.
$$
In the common diagonal parameterization, each state $i$ forms a SISO subsystem with pole $\lambda_i$ and vectors $B_i, C_i$; its transfer function is $G_i(z) = C_i (z I - \Lambda)^{-1} B_i$, and
$$
\|G_i\|_\infty = \frac{\|C_i\|\,\|B_i\|}{1 - |\lambda_i|}.
$$

## 2. Pruning Score Derivation: From Modal Truncation to Layer-Adaptive Scoring

For a single diagonal SSM, the squared error induced by pruning states $P$ is bounded by
$$
\|f_\sigma(u;\Sigma) - f_\sigma(u; \Sigma_{-P})\|_2^2 \leq \sum_{i\in P} \|G_i\|_\infty^2 \|u\|_2^2.
$$
States are thus ranked by local “H-scores”:
$$
H(x_i; \Sigma) = \|G_i\|_\infty^2 = \left( \frac{ \|C_i\|\,|\lambda_i| }{ 1 - |\lambda_i| } \right)^2.
$$
For multi-layer SSMs, pruning a state in layer $l$ propagates through all downstream layers, and the error is similarly bounded by products of $\mathcal{H}_\infty$-norms across layers.

To allow cross-layer comparability, the “LAST score” for state $i$ in layer $l$ normalizes $H(x_i^{(l)})$ by the cumulative H-energy in that layer:
$$
\operatorname{LAST}(x_i^{(l)}) = \frac{ H(x_i^{(l)}; \Sigma^{(l)}) }{ \sum_{j=1}^i H(x_j^{(l)}; \Sigma^{(l)}) }
$$
with states first sorted in descending $H(x_j)$. This energy normalization provides a global criterion for pruning and enables a single threshold selection across all layers.

## 3. LAST Algorithm: One-Shot Layer-Adaptive State Pruning

The LAST algorithm proceeds as a single-pass post-hoc procedure, requiring no retraining. The following pseudocode summarizes its workflow:

- **Input:** Trained SSM layers $\Sigma^{(1)}, \dots, \Sigma^{(L)}$; global pruning ratio $\alpha \in (0,1)$.
- For each layer $l = 1,\dots, L$:
  1. Compute local H-scores $H_i^{(l)}$ as above.
  2. Sort states in descending $H$.
  3. Compute cumulative energies $E_i^{(l)} = \sum_{j=1}^i H_{(j)}^{(l)}$.
  4. Compute LAST-scores $S_i^{(l)} = H_{(i)}^{(l)}/ E_i^{(l)}$.
- Collect all $S_i^{(l)}$ from all layers, sort ascending.
- Select threshold $\tau$ so that fraction $\alpha$ of all states satisfy $S_i^{(l)} \leq \tau$.
- Prune every state with $S_i^{(l)} \leq \tau$.
- **Output:** Pruned SSM $\hat\Sigma^{(1:L)}$.

This workflow leverages precomputed scores from the learned parameters and acts in a one-shot manner.

## 4. Theoretical Guarantees

### Stability

The diagonal SSM parameterization assumes continuous-time poles $\lambda_i$ strictly in the left half-plane (Hurwitz condition). Their zero-order-hold discretization ensures $|e^{\lambda_i\Delta}| < 1$, guaranteeing stability of each layer post-pruning.

### Output Distortion Bound

For pruned sets $P^{(l)}$ in each layer, the cumulative output error satisfies
$$
\|y_\text{full} - y_\text{pruned}\|_2^2 \leq \left( \prod_{k=1}^L \|G^{(k)}_{S^{(k)}}\|_\infty^2 \right) \cdot \sum_{l=1}^L \sum_{i\in P^{(l)}} \|G_i^{(l)}\|_\infty^2 \|u\|_2^2.
$$
Hence, pruning states with small LAST scores provably results in a controlled upper bound on worst-case output distortion.

## 5. Empirical Results Across Benchmark Tasks

LAST was evaluated on standard sequence processing and classification benchmarks—Long Range Arena (LRA) tasks (ListOps, Text, Retrieval, Image, Pathfinder, Path-X), Speech Commands (raw 16 kHz/8 kHz), and pixel-level classification (sMNIST, psMNIST, sCIFAR). Two SSM variants were used: S4D (parallel SISO diagonal systems) and S5 (multi-input multi-output, MIMO, diagonal system).

Key empirical findings (one-shot, no retraining):

| Model   | Avg. % Pruned (All) | Avg. % Pruned (Compressible) | Avg. Accuracy Drop (All) | Avg. Accuracy Drop (Compressible) |
|---------|---------------------|------------------------------|--------------------------|-----------------------------------|
| S4D     | 25                  | 33                           | 0.32                     | 0.42                              |
| S5      | 33                  | 36.7                         | 0.52                     | 0.58                              |

On selected LRA tasks, accuracy loss remained under 1% at pruning ratios up to 80% (S4D/Text), 60% (S5/Text), 60% (S4D/Retrieval), 50% (S5/Retrieval), 10%–30% (Pathfinder/Path-X, model dependent). For pixel tasks (sMNIST baseline 99.55%), S5 retained 99.01% accuracy with 50% pruning. For Speech Commands, at 20% pruning, accuracy dropped negligibly (96.43%→96.31%).

## 6. Significance, Limitations, and Implications

LAST establishes a globally consistent, theoretically justified framework for one-shot, layer-adaptive pruning in deep SSMs. Its control-theoretic approach quantifies state importance via energy contributions, enabling aggressive model compression with minimal accuracy loss and no need for retraining. The revealed redundancy and compressibility in SSMs suggest further research into structural optimization and the efficient design of deep sequential models. While the approach relies on diagonal parameterizations and the Hurwitz condition, the underlying methodology may inspire analogous schemes for more general architectures.

Source: https://www.emergentmind.com/topics/layer-adaptive-state-pruning-last