fastiSSM: Fast inference of state space model with online model approximation in frequency-domain
Jiaxuan Chen1, Yancheng Xie1, Hai Wang1
1School of Integrated Circuit Science and Engineering, University of Electronic Science and Technology of China, No. 2006, Xiyuan Ave, West Hi-Tech Zone, Chengdu, 611731, Sichuan, China.
Abstract:
State space model (SSM) is a promising structure for long sequence time-series forecasting (LSTF) and natural language processing (NLP) applications. Although it has demonstrated superior sequence modeling efficiency and ability to compete with and even outperform the traditional models, the large size of SSM leads to slow speed and excessive memory consumption for inference, prohibiting it from being used in applications with speed/memory/energy constraints, especially on devices with limited resources. In this work, we propose fastiSSM, which accelerates the inference of general SSMs through online model approximation. To overcome the computational efficiency and approximation accuracy challenges in existing model approximation methods for SSMs, we introduce two new techniques in fastiSSM. First, fastiSSM has a parameter-sharing structure in its continuous-time models. With this structure, only one model approximation is needed to generate the compact recurrences for fast inference, compared with multiple ones performed in traditional methods. This brings high model approximation efficiency for fastiSSM. Second, we introduce the frequency-domain based model approximation technique in fastiSSM by exploiting the linear time-invariant (LTI) property of SSM. It results in robust compact models and better error control in model approximation, and finally leads to fast and accurate inference. Comprehensive experiments are performed by comparing fastiSSM with both original recurrence and compact recurrence based inference methods on multiple LSTF and audio generation tasks. Experimental results confirm that fastiSSM is able to approximate SSMs with online computing efficiency and accelerate the inference effectively with marginal error. It outperforms the comparison methods in both model approximation efficiency and inference performance, making it a better choice to accelerate the inference of large-scale SSMs. The fastiSSM code is available as open source on GitHub.
More Related Videos
Related Concept Videos
State Space Representation
Consider an RLC circuit, a...
Linear Approximation in Time Domain
For a simple pendulum with a mass evenly distributed along its length and the center of mass located at half the pendulum's length,...
Linear Approximation in Frequency Domain
In contrast, nonlinear systems do not inherently possess these properties. However, for small deviations around an operating point, a nonlinear system can often be approximated as linear....
State Space to Transfer Function
The transformation process begins with the state-space representation, characterized by the state equation and the output equation. These equations are typically represented as:
Transfer Function to State Space
In an RLC...
Aliasing
If the sampling frequency is below the Nyquist rate, these replicas overlap, preventing the original...


