Effectively Modeling Time Series with Simple Discrete State Spaces

Michael Zhang, Khaled K. Saab, Michael Poli, Tri Dao, Karan Goel +1 more
3/16/2023
cs.LGcs.AI

No official code found. Best implementation: HazyResearch/spacetime (180 stars, Apache-2.0, last commit 2023-03-17).

Abstract

Time series modeling is a well-established problem, which often requires that methods (1) expressively represent complicated dependencies, (2) forecast long horizons, and (3) efficiently train over long sequences. State-space models (SSMs) are classical models for time series, and prior works combine SSMs with deep learning layers for efficient sequence modeling. However, we find fundamental limitations with these prior approaches, proving their SSM representations cannot express autoregressive time series processes. We thus introduce SpaceTime, a new state-space time series architecture that improves all three criteria. For expressivity, we propose a new SSM parameterization based on the companion matrix -- a canonical representation for discrete-time processes -- which enables SpaceTime's SSM layers to learn desirable autoregressive processes. For long horizon forecasting, we introduce a "closed-loop" variation of the companion SSM, which enables SpaceTime to predict many future time-steps by generating its own layer-wise inputs. For efficient training and inference, we introduce an algorithm that reduces the memory and compute of a forward pass with the companion matrix. With sequence length $\ell$ and state-space size $d$, we go from $\tilde{O}(d \ell)$ naïvely to $\tilde{O}(d + \ell)$. In experiments, our contributions lead to state-of-the-art results on extensive and diverse benchmarks, with best or second-best AUROC on 6 / 7 ECG and speech time series classification, and best MSE on 14 / 16 Informer forecasting tasks. Furthermore, we find SpaceTime (1) fits AR($p$) processes that prior deep SSMs fail on, (2) forecasts notably more accurately on longer horizons than prior state-of-the-art, and (3) speeds up training on real-world ETTh1 data by 73% and 80% relative wall-clock time over Transformers and LSTMs.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code for SpaceTime 🌌⏱️. Proposed in Effectively Modeling Time Series with Simple Discrete State Spaces, ICLR 2023.

18026PythonMar 2, 20233 years agoApache-2.0

Similar Papers

Cite this paper

@article{zhang2023effectively,
  title  = {Effectively Modeling Time Series with Simple Discrete State Spaces},
  author = {Michael Zhang and Khaled K. Saab and Michael Poli and Tri Dao and Karan Goel and Christopher Ré},
  year   = {2023},
  eprint = {2303.09489},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.09489v1},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.09489.svg)](https://codeofpaper.com/paper/2303.09489)

Discussion