Legendre Memory Units
A recurrent neural network cell that maintains its hidden state using the mathematically optimal linear dynamics derived from HiPPO's Legendre-polynomial memory, giving it strong long-range memory with a compact number of parameters.
Prerequisites: HiPPO Memory for Long-Range Dependencies, Recurrent Neural Networks
Ordinary recurrent cells like LSTMs learn their memory dynamics entirely from data, and that memory tends to fade over long sequences because nothing forces the learned recurrence to preserve distant history well. The Legendre Memory Unit (LMU) takes a different approach: instead of learning the recurrence dynamics from scratch, it hard-wires them to a closed-form solution — the same HiPPO derivation that produces the mathematically optimal linear ODE for compressing a continuous history into a fixed-size vector of coefficients under a Legendre polynomial basis.
Concretely, an LMU cell maintains a memory vector updated by a fixed, non-learned linear recurrence (the discretized HiPPO-Legendre matrices and ), which is then fed into standard learnable nonlinear layers to produce the cell's hidden state and output, much like an LSTM's gates operate on top of its cell state. Because the memory update itself is fixed by a mathematically derived formula rather than learned, the LMU needs very few parameters to represent long time windows accurately, and it demonstrably preserves information over thousands of time steps — well beyond where standard recurrent cells begin to degrade — while using far fewer parameters to do so.
LMUs have been used for tasks needing genuine long-range memory with tight parameter budgets, such as embedded or low-power sequence processing, and they served as an early proof-of-concept that HiPPO-style fixed linear memory could outperform fully learned recurrence, a lineage that continues in later structured state-space sequence models.
The Legendre Memory Unit replaces a recurrent cell's learned memory dynamics with the closed-form, mathematically optimal HiPPO-Legendre linear recurrence, giving it strong long-range memory over thousands of steps with far fewer parameters than a standard LSTM needs to approximate the same behavior.
Related concepts
Further reading
- Voelker, Kajic, Eliasmith, Legendre Memory Units: Continuous-Time Representation in Recurrent Neural Networks (2019)