[论文解读] Triformer: Triangular, Variable-Specific Attentions for Long Sequence Multivariate Time Series Forecasting--Full Version
Triformer 为长序列多变量时间序列预测提出了一种三角形、变量特定的注意力机制,通过基于片段的注意力机制实现线性复杂度,同时通过紧凑轻量的参数分解实现变量特定建模。在四个不同数据集上,其在准确率和效率方面均优于最先进方法。
A variety of real-world applications rely on far future information to make decisions, thus calling for efficient and accurate long sequence multivariate time series forecasting. While recent attention-based forecasting models show strong abilities in capturing long-term dependencies, they still suffer from two key limitations. First, canonical self attention has a quadratic complexity w.r.t. the input time series length, thus falling short in efficiency. Second, different variables' time series often have distinct temporal dynamics, which existing studies fail to capture, as they use the same model parameter space, e.g., projection matrices, for all variables' time series, thus falling short in accuracy. To ensure high efficiency and accuracy, we propose Triformer, a triangular, variable-specific attention. (i) Linear complexity: we introduce a novel patch attention with linear complexity. When stacking multiple layers of the patch attentions, a triangular structure is proposed such that the layer sizes shrink exponentially, thus maintaining linear complexity. (ii) Variable-specific parameters: we propose a light-weight method to enable distinct sets of model parameters for different variables' time series to enhance accuracy without compromising efficiency and memory usage. Strong empirical evidence on four datasets from multiple domains justifies our design choices, and it demonstrates that Triformer outperforms state-of-the-art methods w.r.t. both accuracy and efficiency. This is an extended version of "Triformer: Triangular, Variable-Specific Attentions for Long Sequence Multivariate Time Series Forecasting", to appear in IJCAI 2022 [Cirstea et al., 2022a], including additional experimental results.
研究动机与目标
- 解决标准自注意力在长序列预测中的二次方复杂度问题。
- 通过建模多变量时间序列中不同变量的独立时间动态,提升预测准确率。
- 在实现变量特定建模的同时,保持高效率和低内存占用。
- 设计一种适用于真实世界应用中长时程预测的可扩展架构。
- 在多样化领域中,通过实证验证三角注意力和变量特定参数的有效性。
提出的方法
- 提出片段注意力(PA),一种新型注意力机制,仅在片段内的时间戳与单个伪时间戳之间计算注意力,实现每片段的线性复杂度。
- 构建一种三角形多层架构,其中每一层仅处理前一层生成的伪时间戳,使输入尺寸呈指数级缩小,同时保持整体线性复杂度。
- 提出一种轻量级参数分解方法:将投影矩阵分解为共享(变量无关)和紧凑的变量特定组件,以捕捉独特的时间模式,同时不增加计算开销。
- 采用全连接神经网络作为预测器,相比循环或自回归解码器,提升了训练效率。
- 使用 t-SNE 可视化分析学习到的记忆表征,表明变量特定的记忆按时间相似性聚类。
- 引入基于生成器的方法,将可学习的伪时间戳与输入长度解耦,为未来扩展支持动态输入尺寸。
实验结果
研究问题
- RQ1三角形多层注意力机制是否能在保持线性复杂度的同时,有效建模多变量时间序列中的长程依赖?
- RQ2与共享的、变量无关的参数相比,启用变量特定的注意力参数是否能提升预测准确率?
- RQ3在序列长度和变量数量增加时,该方法在准确率和训练效率方面如何扩展?
- RQ4学习到的注意力记忆在多大程度上反映了各变量真实的时间模式?
- RQ5该模型是否能在不重新训练的情况下,泛化到不同输入长度和预测时长?
主要发现
- Triformer 通过其三角形架构实现 O(H) 的线性复杂度,使其显著优于标准自注意力等二次方模型。
- 在 ECL 数据集上,Triformer 实现 MSE 为 0.183,MAE 为 0.279,准确率全面超越所有基线方法,同时保持快速训练速度。
- 训练运行时间分析表明,随着序列长度 H 增加,Triformer 保持稳定,优于 StemGNN 和 AGCRN 等方法,后者在长序列下扩展性能差。
- 所有方法的推理时间均低于每样本 13.3 ms,证实了其具备实时应用能力。
- t-SNE 可视化结果表明,学习到的记忆表征按时间相似性聚类,验证了模型捕捉各变量独立模式的能力。
- 消融实验表明,当 a=5 时达到表达能力与效率的最佳平衡,进一步增加 a 值不再提升性能。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。