Layer-Adaptive State Pruning for Deep State Space Models

Due to the lack of state dimension optimization methods, deep state space models (SSMs) have sacrificed model capacity, training search space, or stability to alleviate computational costs caused by high state dimensions. In this work, we provide a structured pruning method for SSMs, Layer-Adaptive STate pruning (LAST), which reduces the state dimension of each layer in minimizing model-level output energy loss by extending modal truncation for a single system. LAST scores are evaluated using the $\mathcal{H}_{\infty}$ norms of subsystems and layer-wise energy normalization. The scores serve as global pruning criteria, enabling cross-layer comparison of states and layer-adaptive pruning. Across various sequence benchmarks, LAST optimizes previous SSMs, revealing the redundancy and compressibility of their state spaces. Notably, we demonstrate that, on average, pruning 33% of states still maintains performance with 0.52% accuracy loss in multi-input multi-output SSMs without retraining. Code is available at https://github.com/msgwak/LAST.

Paper

References (49)

Scroll for more · 37 remaining

Similar papers

Peer review

Reviewer xVFN6/10 · confidence 2/52024-07-05

Summary

This submission proposed to conduct pruning on Deep State Space Model (DSSM). Basically, it formulates the output distortion (energy loss) after pruning, the derive that the importance of state is related to $H_{\inf}$ norm, which is used as the pruning criteria. Besides, it proposes to use a greedy optimization by pruning a (entire) subsystem (with the remaining parts intact) to derive the importance of a subsystem (LAST), leading to pruning ratio for this subsystem.

Strengths

1. It is interesting to see pruning in DSSMs and the leading method is coupled with the structure.

Weaknesses

1. Since it is a pioneer work, more comparison method should be used, such as magnitude pruning.

Questions

1. What is the difference between pruning states and parameters?

Rating

6

Confidence

2

Soundness

3

Presentation

2

Contribution

3

Limitations

N.A.

Reviewer y8325/10 · confidence 2/52024-07-08

Summary

In this paper, the authors propose Layer-Adaptive $\mathcal{H}{\infty}$ STate pruning (LAST), a deep state space model (SSM) pruning method that optimizes the state dimension of a deep diagonal SSM in terms of model-level energy loss. Experimental results on different tasks demonstrate that the proposed method performs better than Uniform $\mathcal{H}{\infty}$ and Global $\mathcal{H}{\infty}$ methods.

Strengths

The paper proposes a novel method to prune deep state space models. Experimental results on different tasks demonstrate the effectiveness of the proposed methods.

Weaknesses

In the experiments, the work only compares the proposed method with Uniform $\mathcal{H}{\infty}$ and Global $\mathcal{H}{\infty}$ methods. It would be good if more weight pruning methods could be applied to deep state space models for fair comparisons.

Questions

Could the structured weight pruning methods on the traditional DNNs be applied to the pruning of deep state space models?

Rating

5

Confidence

2

Soundness

3

Presentation

3

Contribution

2

Limitations

The authors have adequately addressed the limitations.

Reviewer c1Mv6/10 · confidence 3/52024-07-17

Summary

Inspired by the traditional layer-adaptive neural network pruning, this paper develops and verifies a layer-adaptive model order reduction (MOR) method to reduce the state dimension in DSSM models. The proposed method reveals state importance and prunes insignificant subsystems for a desired compression level, reducing unnecessary computations while bounding the output energy loss.

Strengths

1. Proposes to use layer-adaptive pruning methods in new areas DSSM models. 2. Extensive experiments among 10 tasks show the robustness and effectiveness of the methods. Besides, it conducts ablation studies on hyper-parameters in Appendix.

Weaknesses

Since I am not an expert in DSSMs area, I just doubt the impact of the state dimension to the computational cost, it might be better to provide some statistics to show the impact. Besides, if this state dimension is very significant, do we have other some related works but not pruning to reduce the state dimension? Can you elaborate more on related works on reducing state dimension?

Questions

As mentioned in the weakness, 1) please use some statistics to show the importance of state dimension? 2) if the state dimension is significant, can you provide more related works on reducing the state dimension, maybe those related works are not from the perspective of pruning to reduce the state dimension, but i think it is meaningful to discuss them.

Rating

6

Confidence

3

Soundness

3

Presentation

3

Contribution

3

Limitations

NA

Authorsrebuttal2024-08-12

LaTex Rendering Issue

Dear Reviewers and Area Chairs, Thank you for taking the time to review our submission. We would like to bring to your attention a concern regarding the LaTeX rendering on the OpenReview platform. Due to a rendering error, some LaTeX formulas in the Title, Abstract, and Rebuttals may not display correctly on the page. This issue can usually be resolved by refreshing the page. However, we have noticed that the Abstract does not always render correctly, even after refreshing. We kindly ask you to refer to the Abstract in the submission for accurate information. We look forward to engaging in the discussion process and hope this does not cause any misunderstandings during the remainder of the discussion period. Sincerely, Authors.

Reviewer c1Mv2024-08-13

Thank you for the authors' response and address my concerns. I would like to keep my positive score.

Reviewer y8322024-08-13

Thank you for the detailed responses and extra experimental comparisons. However, the comparisons with magnitude-based weight pruning methods cannot fully address my concern as magnitude-based pruning is a very straightforward approach. I highly suggest that the authors compare the proposed method with more well-designed approaches. In conclusion, I would not oppose to accept this paper. I would like to keep my rating as 5: Borderline accept.

Authorsrebuttal2024-08-14

We appreciate the reviewer's careful review and further feedback on our rebuttal. We agree that comparing the proposed method with other pruning methods beyond magnitude-based pruning could provide a clearer validation of our work. While magnitude-based pruning is straightforward, it is an effective and strong baseline, as it continues to be widely used in studies on iterative pruning, pruning schedules, or pruning on large language models (Sun et al. [2024], K. Xu et al. [2023], M. Gupta [2024]). Notably, LAST and $\mathcal{H}\_{\infty}$ pruning significantly outperform it, highlighting its necessity in SSM. Additionally, the previous comparison can be viewed as one for one-shot pruning methods, which are particularly useful when dealing with scaled models compared to iterative methods. In response to the remaining reviewer's concern, we present the following results for a scaling-based pruning method using batch normalization statistics as another baseline. **Uniform Scaling-based Pruning** (Liu et al. [2017]) This method uses the scale $\gamma^{(l)}\in\mathbb{R}^h$ trained in the $l$th batch normalization layer as the criterion for channel pruning out of $h$ channels. Specifically, we used $\gamma^{(l-1)}$ to prune $\mathbf{B}^{(l)}$ and $\gamma^{(l)}$ to prune $\mathbf{C}^{(l)}$ in consideration of the input-output processing scheme of SSM. | Method | Average pruning ratio | Average accuracy loss $\downarrow$ | Importance | | - | - | - | - | | Uniform scaling-based | 33.00 (36.67) | 25.84 (28.71) | $\gamma_k^{(l-1)}$ and $\gamma_k^{(l)}$ for channel $k$ | Due to time constraints, we could not test pruning methods that involve retraining, such as using a designed loss function or tracking gradient flow. We promise to include comparison experiments with other well-designed pruning methods in the final version of the paper. Additionally, although we considered recent feature statistics-based pruning methods, we noticed that further research is needed, especially in observing specific patterns in feature vectors within SSM. As we are the first to explore pruning in SSM, designing new criteria for state pruning is akin to suggesting a new algorithm. We hope the reviewer considers our work a foundational study that suggests appropriate pruning criteria and directions for SSM. --- M. Sun et al. A simple and effective pruning approach for large language models. In *The International Conference on Learning Representations*, 2024. K. Xu et al. Efficient joint optimization of layer-adaptive weight pruning in deep neural networks. In *Proceedings of the IEEE/CVF International Conference on Computer Vision*, 2023. M. Gupta, et al. Is complexity required for neural network pruning? a case study on global magnitude pruning. In IEEE Conference on Artificial Intelligence, 2024. Z. Liu et al. Learning efficient convolutional networks through network slimming. In *Proceedings of the IEEE international conference on computer vision*, 2017.

Reviewer xVFN2024-08-13

Response to Author

Thanks for your detailed response and appended experiments. For my first concern on magnitude pruning, author has defined a similar experiment setting for DSSM. Though author claimed that the parameters pruning and DSSM pruning is quite different in rebuttal to y832, I did not catch the main idea of the difference. Besides, author further claimed that the `there is a fundamental disparity between unstructured and state pruning methods in SSMs, making it unfair to compare them` in discussion with xVFN, which is me. I fail to see the disparity explanation, is that the anwser to my question? Similar situation happens in the anwser to the question, I fail to understand the explanation. Overall, I keep my score for I can not fully understand DSSM and how it is different with normal deep nerual network, especially in pruning.

Authorsrebuttal2024-08-14

Thank you for taking the time to read our rebuttal. Due to space constraints, we had to distribute our responses across several rebuttals. We appreciate your thorough review of all the details. ### **Correction of misunderstanding** We apologize for any confusion caused by our use of 'disparity' and for not clearly referencing the relevant response to the reviewer's question. To clarify, we used 'disparity' to describe the performance gap between unstructured pruning and state pruning (a type of structured pruning), which is evident in our response. As shown in the previous rebuttal, structured pruning (state pruning) outperforms unstructured pruning even in randomly pruned cases, which clearly shows the effect of using state pruning granularity by excluding the other factors that might affect the performance. Thus, what we intended to deliver to Reviewer y832 was that **the presented table contains only state pruning**, omitting unstructured pruning due to the significant performance difference between unstructured/structured versions of every pruning method. In another way, our intention may be better conveyed by replacing 'fundamental' with 'trivial.' Therefore, that part does not conflict with the explanation that state pruning is a type of neural network pruning but is tailored for SSM. ### **Additional comments to the previous rebuttal** The equations used in our explanation are based on the standard form of system matrices in SSM, consistent with the notation in our submission. To assist the reviewer's understanding, we define key terminology and a detailed illustration of state pruning. Pruning granularity refers to the specific pattern or structure of parameters to be pruned, such as individual weights, entire neurons, channels, or states. For example, channel pruning prunes all parameters corresponding to an insignificant channel. Likewise, state pruning prunes all parameters corresponding to an insignificant state. For a DSSM layer's training parameters $\mathbf{\Lambda}$, $\mathbf{B}$, and $\mathbf{C}$, such that $x_{k+1}=\mathbf{\Lambda}x_k+\mathbf{B}u_k$ and $y_k=\mathbf{C}x_k$, the specific parameters for a state $i$ are the $i$th diagonal element $\lambda_i$ of $\mathbf{\Lambda}$, the $i$th row vector $\mathbf{B}_i$ of $\mathbf{B}$, and the $i$th column vector $\mathbf{C}_i$ of $\mathbf{C}$. For instance, if the 2nd state is identified as insignificant in a DSSM layer with the state dimension of 4, by masking the insignificant parameters to 0, the system matrices before and after pruning would be as follows: $x_{k+1}=\begin{bmatrix} \*&&& \\\ &0&& \\\ &&\*& \\\ &&&\*\end{bmatrix}x_k + \begin{bmatrix} \*&\*&\*&\* \\\ 0&0&0&0 \\\ \*&\*&\*&\* \\\ \*&\*&\*&\* \end{bmatrix} u_k$ $y_{k}=\begin{bmatrix} \*&0&\*&\* \\\ \*&0&\*&\* \\\ \*&0&\*&\* \\\ \*&0&\*&\* \end{bmatrix}x_k$ In this sense, we would like to reiterate that we responded to the question 'What is the difference between pruning states and parameters?' by 'As in channel pruning (He et al. [2017]), the term of state pruning represents its pruning granularity. That is, the difference arises in the unit of parameters being pruned at once, and the act of pruning training parameters follows the same approach as traditional pruning methods'.

Authorsrebuttal2024-08-14

Toy example of the proposed method

We understand that DSSM might be relatively new to some reviewers, having been proposed only a few years ago and primarily applied to sequential data. However, it is a well-established attention-drawing network rooted in linear system theory, demonstrating superior performance on sequences with continuous properties. Similar to how other works have developed structured pruning for specific models like the diffusion model (G. Fang et al. [2023]), our work offers a network optimization method tailored to DSSMs. To illustrate DSSM and its pruning, we present an explicit time-domain toy example evaluating state importance. Consider a simple single-input single-output (SISO) system with a four-dimensional state vector parameterized and trained in a DSSM layer. The numerical values in the matrices represent the layer’s training parameters, totaling 12 in this example. **Example system of a DSSM layer** $x_{k+1}=\begin{bmatrix}0.9&&& \\\ &0.7&& \\\ &&0.5& \\\ &&&0.3\end{bmatrix}x_k+\begin{bmatrix}1 \\\ 1 \\\ 1 \\\ 1 \end{bmatrix}u_k$ $y_{k}=\begin{bmatrix}1&1&1&1\end{bmatrix}x_k$ Assuming the input consistently comes in as 1 and $x_{-1}=[0,0,0,0]$, the state and output of the given system would be as follows: | | Input $u_k$ | State $x_k$ | Output $y_k$ | | - | - | - | - | | $k=0$ | $1$ | $[1,1,1,1]$ | $4$ | | $k=1$ | $1$ | $[1.9,1.7,1.5,1.3]$ | $6.4$ | | $k=2$ | $1$ | $[2.71,2.19,1.75,1.39]$ | $8.04$ | As the state-output matrix is $[1,1,1,1]$, the state directly contributes to the output. Although the diagonal terms $\lambda_i$ are linear, e.g., 0.9, 0.7, 0.5, 0.3, their contributions to the output show nonlinear differences, e.g., 2.71, 2.19, 1.75, 1.39. This nonlinearity occurs because each state component, influenced by the diagonal term, decays at different rates, leading to varying impacts on the output. Thus, we learn that the magnitude of $\lambda_i$ alone cannot fully determine the relative importance of each state. When the $B$ and $C$ matrices vary from this simple example, their effects must also be considered. Moreover, since DSSM processes sequence data, not one-shot data, the analysis of how the model processes data can be more intuitive and comprehensive in the frequency domain. As explained in the Response to Reviewer y832, the $\mathcal{H}\_{\infty}$ norm measures the maximum frequency-domain gain of each subsystem, and the proposed method even considers the contribution of each layer to the entire model. Specifically, $\mathcal{H}\_{\infty}$ and LAST scores can evaluate the importance of each state (subsystem) in the previous example system, as follows: | State | $\mathcal{H}\_{\infty}$ score | LAST score | | - | - | - | | $\lambda_0$ | $(1\cdot 1)/(1-0.9)^2=100$ | $100/100=1$ | | $\lambda_1$ | $(1\cdot 1)/(1-0.7)^2=11.11$ | $11.11/(11.11+100)=0.099$ | | $\lambda_2$ | $(1\cdot 1)/(1-0.5)^2=4$ | $4/(4+11.11+100)=0.034$ | | $\lambda_3$ | $(1\cdot 1)/(1-0.3)^2=2.04$ | $2.04/(2.04+4+11.11+100)=0.017$ | For both methods, insignificant states can be identified by their smaller scores, allowing us to prune the corresponding parameters. Although not explicitly demonstrated in this example, the LAST score is particularly useful when dealing with multiple DSSM layers, as it enables the comparison of states across different layers by evaluating the relative contribution of each subsystem to the entire model. Consequently, by pruning the two insignificant states (i.e., pruning 6 corresponding parameters), the resulting pruned DSSM reduces the total number of parameters by 6, as shown below. $x_{k+1}=\begin{bmatrix}0.9& \\\ &0.7\end{bmatrix}x_k+\begin{bmatrix}1 \\\ 1\end{bmatrix}u_k$ $y_{k}=\begin{bmatrix}1&1\end{bmatrix}x_k$ --- G. Fang et al. Structural pruning for diffusion models. In *Advances in Neural Information Processing Systems*, 2023.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC