arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.24023cs.LG
收藏

RAM:用 MLP 替代 Attention 以实现高效的多元时间序列预测

RAM: Replace Attention with MLP for Efficient Multivariate Time Series Forecasting

School of Artificial Intelligence(人工智能学院);School of Intelligence Science and Technology(智能科学与技术学院);Department of Computer Science and Technology(计算机科学与技术系);School of Electronic Science and Engineering(电子科学与工程学院)

Suhan Guo, Jiahong Deng, Yi Wei, Hui Dou, Furao Shen, Jian Zhao

AI总结:

本文提出 RAM 剪枝策略,用前馈层、残差连接和层归一化替代注意力机制,在 STF 与 LTSF 模型中大幅降低 FLOPs,同时保持接近 SOTA 的预测性能。

摘要:

基于 Attention 的架构已在时间序列预测任务中无处不在,包括时空预测(STF)和长期时间序列预测(LTSF)。然而,我们对其有效性原因的理解仍然有限。在本工作中,我们提出了一种新颖的剪枝策略,即 $\textbf{R}$eplace $\textbf{A}$ttention with $\textbf{M}$LP(RAM,用 MLP 替代 Attention),该策略仅使用前馈层、残差连接和层归一化来近似注意力机制,以用于多元时间序列预测中的时间和/或空间建模。具体而言,Q、K 和 V 投影、注意力分数计算、注意力分数与 V 之间的点积以及最终投影都可以从基于注意力的网络中移除,而不会显著降低性能,从而使给定网络与其他 SOTA 方法相比仍保持一流水平。RAM 为时空模型实现了 62.579% 的 FLOPs 降低,且性能下降不到 2.5%;为 LTSF 模型实现了 42.233% 的 FLOPs 降低,且性能下降不到 2%。

英文摘要:

Attention-based architectures have become ubiquitous in time series forecasting tasks, including spatio-temporal (STF) and long-term time series forecasting (LTSF). Yet, our understanding of the reasons for their effectiveness remains limited. In this work, we propose a novel pruning strategy, $\textbf{R}$eplace $\textbf{A}$ttention with $\textbf{M}$LP (RAM), that approximates the attention mechanism using only feedforward layers, residual connections, and layer normalization for temporal and/or spatial modeling in multivariate time series forecasting. Specifically, the Q, K, and V projections, the attention score calculation, the dot-product between the attention score and the V, and the final projection can be removed from the attention-based networks without significantly degrading the performance, so that the given network remains the top-tier compared to other SOTA methods. RAM achieves a $62.579\%$ reduction in FLOPs for spatio-temporal models with less than $2.5\%$ performance drop, and a $42.233\%$ FLOPs reduction for LTSF models with less than $2\%$ performance drop.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑