[Paper Review] How to Train Your HiPPO: State Space Models with Generalized Orthogonal Basis Projections
This paper introduces a generalized orthogonal basis projection framework for State Space Models (SSMs), providing a mathematically rigorous interpretation of the S4 model's success in capturing long-range dependencies. By reinterpreting the HiPPO matrix as a decomposition onto exponentially-warped Legendre polynomials, the authors derive new SSM variants—such as S4-FouT for Fourier bases—improving performance to 86% on Long Range Arena and 96% on Path-X, with clearer initialization rules for the timescale parameter.
Linear time-invariant state space models (SSM) are a classical model from engineering and statistics, that have recently been shown to be very promising in machine learning through the Structured State Space sequence model (S4). A core component of S4 involves initializing the SSM state matrix to a particular matrix called a HiPPO matrix, which was empirically important for S4's ability to handle long sequences. However, the specific matrix that S4 uses was actually derived in previous work for a particular time-varying dynamical system, and the use of this matrix as a time-invariant SSM had no known mathematical interpretation. Consequently, the theoretical mechanism by which S4 models long-range dependencies actually remains unexplained. We derive a more general and intuitive formulation of the HiPPO framework, which provides a simple mathematical interpretation of S4 as a decomposition onto exponentially-warped Legendre polynomials, explaining its ability to capture long dependencies. Our generalization introduces a theoretically rich class of SSMs that also lets us derive more intuitive S4 variants for other bases such as the Fourier basis, and explains other aspects of training S4, such as how to initialize the important timescale parameter. These insights improve S4's performance to 86% on the Long Range Arena benchmark, with 96% on the most difficult Path-X task.
Motivation & Objective
- To resolve the lack of theoretical understanding behind S4’s success in modeling long sequences, particularly the role of the HiPPO matrix.
- To provide a general, mathematically coherent framework for constructing SSMs using orthogonal basis functions beyond the original S4 formulation.
- To clarify the role and proper initialization of the timescale parameter Δ in S4, which governs the length of dependencies captured.
- To derive new SSM variants—such as S4-FouT—that naturally encode Fourier-based transforms and local convolutions, generalizing CNNs and STFTs.
- To empirically validate the theoretical framework on function reconstruction and memorization tasks, demonstrating alignment between theory and performance.
Proposed method
- The authors generalize the HiPPO framework by framing SSMs as projections onto orthogonal basis functions under a weighted measure, specifically an exponentially decaying measure.
- They prove that the original S4 state matrix A corresponds to orthogonal projection onto exponentially-warped Legendre polynomials, explaining its effectiveness in long-context modeling.
- The framework allows derivation of new SSMs by choosing alternative basis functions, such as truncated Fourier basis functions, leading to the S4-FouT variant.
- The timescale parameter Δ is interpreted as controlling the effective length of the kernel, with a clear initialization rule based on the desired context window.
- The method introduces a generalized class of Structured State Space Models (TOSSMs) with closure properties under scaling, shift, and unitary transformation, preserving orthonormality and stability.
- Theoretical results are grounded in Pade approximants and continued fractions, showing that the SSM kernel approximates the exponential function via rational functions.
Experimental results
Research questions
- RQ1How can the HiPPO matrix in S4 be interpreted in a mathematically rigorous way, rather than as an empirical initialization?
- RQ2What is the theoretical mechanism by which S4 captures long-range dependencies, and can it be generalized to other basis functions?
- RQ3What is the precise role and correct initialization of the timescale parameter Δ in S4?
- RQ4Can new SSM variants be derived that naturally encode common signal processing operations like the STFT or local convolutions?
- RQ5To what extent do theoretical predictions about basis function alignment match empirical performance on sequence modeling tasks?
Key findings
- The original S4 model is theoretically interpreted as a projection onto exponentially-warped Legendre polynomials under an exponentially decaying measure, explaining its strong long-context performance.
- The new S4-FouT variant, based on truncated Fourier basis functions, achieves state-of-the-art performance on the Path-X task with 96% accuracy, outperforming other SSMs on memorization and continuous signal tasks.
- The generalized framework enables a principled initialization of the timescale parameter Δ, which directly controls the effective length of dependencies modeled by the SSM.
- Theoretical predictions about basis function alignment accurately predict empirical performance, with S4-FouT excelling on tasks requiring spike function encoding and local pattern detection.
- The original S4 model remains the best performer on the most challenging Long Range Arena benchmark, achieving 86% average accuracy, validating its robustness for long-range modeling.
- The framework’s closure properties under scaling, shift, and unitary transformation ensure stable and variance-preserving SSM parameterizations, enabling reliable training.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.