Skip to main content
QUICK REVIEW

[Paper Review] Effectively Modeling Time Series with Simple Discrete State Spaces

Michael Zhang, Khaled K. Saab|arXiv (Cornell University)|Mar 16, 2023
Time Series Analysis and ForecastingComputer Science13 citations
TL;DR

SpaceTime introduces a companion-matrix state-space model to improve expressivity, long-horizon forecasting, and efficiency for time series, achieving state-of-the-art results on several benchmarks.

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 $ ilde{O}(d \ell)$ naïvely to $ ilde{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.

Motivation & Objective

  • Motivate time series modeling challenges: expressivity, long-horizon forecasting, and efficient training/inference.
  • Propose a companion-matrix discrete-time state-space formulation to capture autoregressive processes.
  • Develop a multi-SSM SpaceTime layer that learns multiple SSMs in parallel and can preprocess data.
  • Introduce a closed-loop forecasting mechanism to enable long-horizon predictions within a single SSM layer.
  • Provide an algorithm for sub-quadratic forward passes exploiting the companion matrix structure.

Proposed method

  • Parameterize the state transition matrix A as a companion matrix to express ARMA-like processes.
  • Represent multiple SSMs per SpaceTime layer to scale expressivity and enable parallel computation.
  • Compute SSMs via 1-D convolutions and FFT-based methods for efficient training and inference.
  • Introduce a closed-loop variant that learns to predict future inputs to enable long-horizon forecasting without recurrent stepping.
  • Incorporate data preprocessing ideas (differencing, smoothing) directly into SpaceTime via weight initialization of companion SSMs.

Experimental results

Research questions

  • RQ1Can a companion matrix SSM represent fundamental time-series processes like ARIMA and exponential smoothing?
  • RQ2Does SpaceTime improve forecasting accuracy, especially on longer horizons, compared to prior SSM and transformer-based models?
  • RQ3Is the SpaceTime architecture computationally efficient enough to train on long sequences?
  • RQ4How does the closed-loop SSM approach affect multi-step forecasting stability and accuracy?
  • RQ5Do SpaceTime layers provide useful built-in preprocessing effects (differencing, smoothing) for nonstationary data?

Key findings

  • SpaceTime can represent ARIMA, exponential smoothing, and controllable linear systems via companion SSMs.
  • SpaceTime achieves state-of-the-art or near-state-of-the-art results across ECG, speech, and forecasting benchmarks, including best or second-best AUROC on multiple tasks.
  • SpaceTime demonstrates superior performance on longer horizons and transfers well to unseen horizons.
  • SpaceTime significantly speeds up training on real-world data, with substantial wall-clock time reductions compared to Transformers and LSTMs.
  • An efficient sub-quadratic inference algorithm reduces forward pass cost from O(d ℓ) to O(d + ℓ) per layer, using FFT-based convolutions and spectral techniques.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.