[Paper Review] HiPPO: Recurrent Memory with Optimal Polynomial Projections
HiPPO introduces online memory via optimal polynomial projections with time-varying measures, unifying and extending memory mechanisms like LMU and RNN gates, and proposing HiPPO-LegS for timescale-robust memory with strong empirical results.
A central problem in learning from sequential data is representing cumulative history in an incremental fashion as more data is processed. We introduce a general framework (HiPPO) for the online compression of continuous signals and discrete time series by projection onto polynomial bases. Given a measure that specifies the importance of each time step in the past, HiPPO produces an optimal solution to a natural online function approximation problem. As special cases, our framework yields a short derivation of the recent Legendre Memory Unit (LMU) from first principles, and generalizes the ubiquitous gating mechanism of recurrent neural networks such as GRUs. This formal framework yields a new memory update mechanism (HiPPO-LegS) that scales through time to remember all history, avoiding priors on the timescale. HiPPO-LegS enjoys the theoretical benefits of timescale robustness, fast updates, and bounded gradients. By incorporating the memory dynamics into recurrent neural networks, HiPPO RNNs can empirically capture complex temporal dependencies. On the benchmark permuted MNIST dataset, HiPPO-LegS sets a new state-of-the-art accuracy of 98.3%. Finally, on a novel trajectory classification task testing robustness to out-of-distribution timescales and missing data, HiPPO-LegS outperforms RNN and neural ODE baselines by 25-40% accuracy.
Motivation & Objective
- Provide a formal framework to online compress and remember past information using polynomial projections governed by time-varying measures.
- Unify existing memory mechanisms (e.g., LMU, GRU/LSTM gates) under a single theoretical construction.
- Derive new memory update rules (e.g., HiPPO-LegS) that are timescale-robust and efficient.
- Demonstrate theoretical guarantees (gradient bounds, update efficiency) and empirical gains on long-range dependency benchmarks.
Proposed method
- Formulate memory as online function approximation of f(t) using a polynomial subspace with respect to a measure μ^(t).
- Use orthogonal polynomials for μ^(t) to obtain optimal coefficient representations c(t) = coef_t(proj_t(f)).
- Show that c(t) evolves according to a linear ODE: d/dt c(t) = A(t)c(t) + B(t)f(t) and discretizes to efficient recurrences.
- Instantiate HiPPO for LegT, LagT, LegS measures to derive corresponding update rules (including LMU-equivalent and LegS).
- Demonstrate that LegS uses a scaled Legendre measure μ^(t) = (1/t) on [0,t], yielding timescale-invariant updates with O(N) per-step complexity for LegS recurrences.
- Connect HiPPO memory to gated RNNs by showing N=1 recovers gate-like dynamics, including GRU/LSTM-style behavior.
Experimental results
Research questions
- RQ1Can online function-approximation via time-varying polynomial projections provide a unified memory mechanism for sequences without pre-specifying timescales?
- RQ2How do different measures μ^(t) affect memory dynamics, stability, and scalability of online polynomial projection memory?
- RQ3What are the theoretical advantages (e.g., gradient bounds, timescale robustness) and practical performance gains of HiPPO-LegS compared to traditional RNNs and LMU?
- RQ4Can HiPPO-based memories be efficiently integrated into standard neural architectures and scale to millions of time steps?
- RQ5Do HiPPO-based models exhibit robustness to distribution shifts in timescale and missing data?
Key findings
- HiPPO recovers LMU from first principles and explains gating-like behavior in RNNs as a low-order HiPPO case.
- HiPPO-LegS provides timescale-robust memory with O(N) per-step updates and bounded gradients, outperforming baselines on long-term tasks.
- On permuted MNIST, HiPPO-LegS achieves 98.3% test accuracy, setting a new state-of-the-art among recurrent models.
- HiPPO-LegS generalizes across unseen timescales and missing data in trajectory classification, outperforming RNN and neural ODE baselines by 25–40% accuracy.
- LegS is invariant to input timescale, and gradient flow remains stable, with theoretical error bounds improving with input smoothness.
- Function reconstruction experiments show LegS achieving up to 470,000 time-step updates per second on CPU, significantly faster than LSTM/LMU.
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.