HiPPO Functional Memory: Coordinate-Queryable Attention for Irregular Time Series
Organizations: Imperial College London
Abstract
Irregular time series require models to answer temporal queries at arbitrary coordinates, yet existing approaches typically retain observation-dependent representations that must be repeatedly resolved for each query. We introduce HiPPO Functional Memory (HiPPO-FM), a functional-memory attention operator that compiles an irregular history into a reusable coordinate-addressable state. Instead of storing observation-indexed tokens or latent trajectories, HiPPO-FM writes observations into a fixed-rank functional space and performs direct coordinate evaluation through matched functional geometry. Kernel-smoothed HiPPO coordinates and Gram-based readout define a shared write/read mechanism, while observed-support self-attention enables content-dependent representations before compression. We characterize the induced finite-dimensional query space and derive an error decomposition separating functional geometry approximation from learned-memory mismatch. Across continuous-coordinate reconstruction, irregular representation learning, real-world extrapolation, and event-sequence prediction, HiPPO-FM consistently improves strong irregular time-series baselines, achieving strong reconstruction accuracy on Spiral, competitive performance across 20 UEA datasets, improved real-world extrapolation, and superior results on several irregular event benchmarks. After encoding, the compact functional state can be reused across different query sets without reprocessing the observation history.
Figures & tables
| Metric | Transformer | Neural ODE | Latent ODE | Neural CDE | ContiFormer | HiPPO-FM | |
|---|---|---|---|---|---|---|---|
| Task = Interpolation ( ) | |||||||
| 0.02 | RMSE ( ) | 0.95 0.21 | 1.03 0.19 | 1.16 0.25 | 1.32 0.95 | 0.69 0.16 | 0.42 0.08 |
| MAE ( ) | 0.95 0.17 | 1.01 0.14 | 1.14 0.20 | 1.31 0.91 | 0.70 0.13 | 0.42 0.09 | |
| 0.2 | RMSE ( ) | 2.09 0.72 | 1.89 0.25 | 2.50 0.94 | 2.29 1.59 | 0.58 0.14 | 0.61 0.22 |
| MAE ( ) | 1.74 0.29 | 1.65 0.10 | 2.04 0.47 | 1.89 1.17 | 0.55 0.11 | 0.51 0.11 | |
| 2 | RMSE ( ) | 2.49 0.41 | 2.18 0.14 | 2.32 0.39 | 2.24 0.94 | 2.06 2.39 | 0.69 0.22 |
| Mask Ratio | 30% Dropped | 50% Dropped | 70% Dropped | Overall (equal-drop) | ||||
|---|---|---|---|---|---|---|---|---|
| Metric | Avg. ACC. ( ) | Avg. Rank ( ) | Avg. ACC. ( ) | Avg. Rank ( ) | Avg. ACC. ( ) | Avg. Rank ( ) | Overall ACC ( ) | Overall Rank ( ) |
| GRU-D | 0.7140 | 5.50 | 0.7080 | 5.88 | 0.6793 | 6.14 | 0.7004 | 9.00 |
| GRU- | 0.7255 | 5.35 | 0.7124 | 5.68 | 0.6876 | 5.10 | 0.7085 | 7.00 |
| ODE-RNN | 0.7211 | 5.75 | 0.7150 | 5.23 | 0.6949 | 5.20 | 0.7104 | 6.00 |
| Neural CDE | 0.5156 | 9.18 | 0.5174 | 9.00 | 0.5028 | 8.90 | 0.5119 | 11.00 |
| mTAN | 0.5587 | 8.58 | 0.5447 | 9.23 | 0.5219 | 8.80 | 0.5418 | 10.00 |
| Model | Metric | Synthetic | Neonate | Traffic | MIMIC | StackOverflow | BookOrder |
|---|---|---|---|---|---|---|---|
| HP | LL ( ) | ||||||
| Accuracy ( ) | – | ||||||
| RMSE ( ) | |||||||
| RMTPP | LL ( ) | ||||||
| Accuracy ( ) | – | ||||||
| RMSE ( ) |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Code | # Train | # Test | Length | # Classes | # Variables |
|---|---|---|---|---|---|---|
| ArticularyWordRecognition | AWR | 275 | 300 | 144 | 25 | 9 |
| BasicMotions | BM | 40 | 40 | 100 | 4 | 6 |
| CharacterTrajectories | CT | 1422 | 1436 | 182 | 20 | 3 |
| DuckDuckGeese | DDG | 60 | 40 | 270 | 5 | 1345 |
| Epilepsy | EP | 137 | 138 | 207 | 4 | 3 |
| ERing | ER | 30 | 270 | 65 | 6 | 4 |
| Algorithm 1. Encode once, query many times |
|---|
| Input: zero-filled observed history and a query set . |
| Output: reusable state . |
| Determine valid observed positions and the observed-support coordinate transform. |
| Encode the observed support with the MHA-to-FM encoder. |
| Write the encoded values into the output FM and solve for . |
| Discard observation-token activations after returning . |
| Representation | Persistent state | Query access |
|---|---|---|
| Observation-indexed attention | resolve against retained observations | |
| Latent ODE/CDE | latent state | query-dependent integration |
| HiPPO-FM | plus metadata | direct functional readout |
| Dataset | GRU-D | GRU- | ODE-RNN | CADN | N. CDE | S5 | mTAN | TST | ContiFormer | t-PatchGNN | HiPPO-FM |
|---|---|---|---|---|---|---|---|---|---|---|---|
| AWR | 0.8467 | 0.8878 | 0.8878 | 0.9378 | 0.7056 | 0.8933 | 0.7322 | 0.9244 | 0.9322 | 0.7789 | 0.9500 |
| BM | 0.8417 | 0.8917 | 0.8417 | 0.8500 | 0.3500 | 0.8167 | 0.7500 | 0.9583 | 0.9250 | 0.9500 | 0.9000 |
| CT | 0.9740 | 0.9705 | 0.9817 | 0.9612 | 0.8572 | 0.9749 | 0.4053 | 0.9640 | 0.9687 | 0.9615 | 0.9626 |
| DDG | 0.5067 | 0.5600 | 0.5600 | 0.5267 | 0.1933 | 0.5733 | 0.6067 | 0.6600 | 0.6600 | – | 0.6667 |
| EP | 0.9203 | 0.9251 | 0.9155 | 0.9010 | 0.4662 | 0.8696 | 0.5894 | 0.9469 | 0.9058 | 0.9251 | 0.9565 |
| ER | 0.7679 | 0.7568 | 0.7309 | 0.8259 | 0.7259 | 0.8173 | 0.7136 | 0.8321 | 0.8358 | 0.7889 | 0.7469 |
| Dataset | GRU-D | GRU- | ODE-RNN | CADN | N. CDE | S5 | mTAN | TST | ContiFormer | t-PatchGNN | HiPPO-FM |
|---|---|---|---|---|---|---|---|---|---|---|---|
| AWR | 0.8611 | 0.8844 | 0.8900 | 0.9367 | 0.6933 | 0.8911 | 0.7189 | 0.9233 | 0.9367 | 0.7756 | 0.9544 |
| BM | 0.9000 | 0.9333 | 0.9250 | 0.9083 | 0.3083 | 0.7750 | 0.8500 | 0.9417 | 0.9417 | 0.9750 | 0.9667 |
| CT | 0.9656 | 0.9754 | 0.9779 | 0.9181 | 0.8647 | 0.9659 | 0.3942 | 0.9582 | 0.9663 | 0.9568 | 0.9582 |
| DDG | 0.5667 | 0.5533 | 0.5600 | 0.5467 | 0.2267 | 0.5467 | 0.5867 | 0.6200 | 0.6600 | – | 0.6467 |
| EP | 0.9348 | 0.9493 | 0.9275 | 0.9251 | 0.4541 | 0.8575 | 0.5628 | 0.9517 | 0.9130 | 0.9155 | 0.9614 |
| ER | 0.7827 | 0.7728 | 0.7469 | 0.8284 | 0.7346 | 0.7988 | 0.7123 | 0.8321 | 0.8420 | 0.7556 | 0.7247 |
| Dataset | GRU-D | GRU- | ODE-RNN | CADN | N. CDE | S5 | mTAN | TST | ContiFormer | t-PatchGNN | HiPPO-FM |
|---|---|---|---|---|---|---|---|---|---|---|---|
| AWR | 0.8611 | 0.8944 | 0.9067 | 0.9356 | 0.7778 | 0.8956 | 0.7600 | 0.9133 | 0.9144 | 0.7600 | 0.9322 |
| BM | 0.8833 | 0.8833 | 0.9333 | 0.8750 | 0.2667 | 0.7917 | 0.8250 | 0.9333 | 0.9333 | 0.9917 | 0.9500 |
| CT | 0.9615 | 0.9731 | 0.9659 | 0.8728 | 0.8635 | 0.9547 | 0.3679 | 0.9420 | 0.9633 | 0.9422 | 0.9325 |
| DDG | 0.5933 | 0.5467 | 0.5200 | 0.5400 | 0.2467 | 0.5667 | 0.5733 | 0.5800 | 0.5733 | – | 0.6867 |
| EP | 0.9058 | 0.9348 | 0.9251 | 0.8865 | 0.5531 | 0.8623 | 0.5362 | 0.9275 | 0.9082 | 0.9034 | 0.9565 |
| ER | 0.7556 | 0.7457 | 0.7111 | 0.7691 | 0.7765 | 0.7654 | 0.6543 | 0.7741 | 0.8333 | 0.7395 | 0.6210 |
| Dataset | Model | MSE | s/epoch | GiB | Parameters |
|---|---|---|---|---|---|
| PhysioNet | CRU | 4.121 | 28,654 | ||
| HiPPO-FM | 0.196 | 55,978 |
Irregular Time-Series Modeling
Irregular time-series modeling learns from observations that arrive at uneven times, across variables, or with missing values.
See all 103 papers