Skip to main content
QUICK 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 Science被引用 13
一句话总结

SpaceTime 引入一个伴随矩阵状态空间模型,以提升时间序列的表示能力、长序列预测能力和效率,在若干基准上取得了最先进的结果。

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.

研究动机与目标

  • 动机:时间序列建模的挑战:表达能力、长时间跨度预测,以及高效的训练/推理。
  • 提出一种伴随矩阵的离散时间状态空间公式,以捕捉自回归过程。
  • 开发一个多 SSM SpaceTime 层,可并行学习多个 SSM 并进行数据预处理。
  • 引入闭环预测机制,使在单个 SSM 层内实现长时间跨度预测成为可能。
  • 提供一种利用伴随矩阵结构实现亚二次前向传播的算法。

提出的方法

  • 将状态转移矩阵 A 参数化为伴随矩阵,以表达 ARMA 风格的过程。
  • 在每个 SpaceTime 层表示多个 SSM,以扩展表达能力并实现并行计算。
  • 通过一维卷积和基于 FFT 的方法来计算 SSM,以实现高效的训练和推理。
  • 引入一个闭环变体,学习预测未来输入,以在不进行循环步进的情况下实现长时间跨度的预测。
  • 通过对伴随 SSM 的权重初始化,将数据预处理思想(差分、平滑)直接融入 SpaceTime。

实验结果

研究问题

  • RQ1伴随矩阵 SSM 是否能够表示像 ARIMA 和指数平滑这样的基本时间序列过程?
  • RQ2与先前的 SSM 和基于 Transformer 的模型相比,SpaceTime 是否在更长的时间范围内显著提升预测准确性?
  • RQ3SpaceTime 架构在长序列上训练时是否具有足够的计算效率?
  • RQ4闭环 SSM 方法如何影响多步预测的稳定性和准确性?
  • RQ5SpaceTime 层是否为非平稳数据提供有用的内置预处理效果(差分、平滑)?

主要发现

  • SpaceTime 可以通过伴随 SSM 表示 ARIMA、指数平滑和可控线性系统。
  • SpaceTime 在 ECG、语音和预测基准上达到最先进或接近最先进的结果,在多个任务中包括最佳或第二最佳 AUROC。
  • SpaceTime 在较长的时间范围内表现更出色,并且在未见的时间范围上具有良好的迁移性。
  • SpaceTime 在真实世界数据上的训练显著加速,与 Transformers 和 LSTMs 相比,实际耗时显著下降。
  • 一种高效的亚二次推理算法将每层前向传播成本从 O(d ℓ) 降至 O(d + ℓ),使用基于 FFT 的卷积和谱方法。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。