How to Train Your HiPPO: State Space Models with Generalized Orthogonal Basis Projections
About
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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Keyword Spotting | Google Speech Commands v1 (test) | Accuracy96.08 | 68 | |
| Long-sequence modeling | Long Range Arena (LRA) v1 (test) | ListOps60.45 | 66 | |
| Keyword Spotting | Google Speech Commands (test) | Accuracy96.08 | 61 | |
| Sequential Image Classification | Sequential CIFAR10 | -- | 48 | |
| Keyword Spotting | Google Speech Commands V2-35 | Accuracy95.32 | 42 | |
| Sequence Modeling | Long Range Arena (val) | ListOps Accuracy60.45 | 26 | |
| Long-range sequence modeling | LRA 92 (test) | ListOps Accuracy59.6 | 26 | |
| Vital signs prediction | BDIMC healthcare datasets | RR RMSE0.247 | 18 | |
| Image Classification | CIFAR-10S (test) | Accuracy91.8 | 17 | |
| Long-range sequence modeling | Long Range Arena (LRA) (full suite) | ListOps60.45 | 5 |