arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.02344cs.LGcs.AI
收藏

自门控注意力用于高效时间序列预测

Self-Gating Attention for Efficient Time Series Forecasting

School of Automation, Southeast University(自动化学院,东南大学);School of Electrical Engineering and Computer Science, The University of Queensland(电气工程与计算机科学学院,昆士兰大学)

Dezheng Wang, Tong Chen, Wei Yuan, Congyan Chen, Shihua Li, Hongzhi Yin

AI总结:

提出自门控注意力(SGA),通过共享可学习矩阵和输入相关残差分量实现线性复杂度,在保持预测性能的同时提升推理效率。

摘要:

Transformer架构在时间序列预测中展现出强大潜力,其中多头自注意力被广泛用于捕获历史时间戳之间的时间依赖关系。然而,标准自注意力的时间和内存复杂度相对于回溯长度呈二次增长。这种成本可能限制其在资源受限或高吞吐量预测系统中的应用,而这些系统需要快速且内存高效的推理。通过定性和定量分析,我们观察到时间序列预测中的自注意力图通常包含跨不同时间戳的冗余模式。这一现象可能与许多真实世界时间序列中重复的时间模式和相对稳定的时间相关性有关。受此观察启发,我们提出了自门控注意力(SGA),一种即插即用的注意力机制,它用共享可学习矩阵和输入相关的残差分量来表示注意力分数。共享矩阵捕获常见的注意力模式,而残差分量捕获输入相关的变化。通过这种方式,SGA避免了标准注意力分数计算中使用的查询和键投影,从而实现了相对于回溯长度的线性和分数矩阵内存复杂度。我们将SGA集成到多个预测骨干网络中,并与标准自注意力及轻量级注意力变体在九个公开的真实世界数据集上进行比较,这些数据集涵盖电力、金融、天气、医疗监测、人类活动和气候记录。结果表明,SGA在公共基准测试上提高了推理效率,同时保持了与最先进注意力机制相当的预测性能。这些基准测试结果提供了面向部署的证据。

英文摘要:

Transformer architectures have shown strong potential in time series forecasting, where multi-head self-attention is widely used to capture temporal dependencies across historical timestamps. However, standard self-attention has quadratic time and memory complexity with respect to the look-back length. This cost may limit its use in resource-constrained or high-throughput forecasting systems, where fast and memory-efficient inference is important. Through qualitative and quantitative analyses, we observe that self-attention maps in time series forecasting often contain redundant patterns across different timestamps. This phenomenon can be related to the repeated temporal patterns and relatively stable temporal correlations in many real-world time series. Motivated by this observation, we propose Self-Gating Attention (SGA), a plug-and-play attention mechanism that represents the attention score with a shared learnable matrix and an input-dependent residual component. The shared matrix captures common attention patterns, while the residual component captures input-dependent variations. In this way, SGA avoids the query and key projections used in standard attention score computation, leading to linear time and score-matrix memory complexity with respect to the look-back length. We integrate SGA into several forecasting backbones and compare it with standard self-attention and lightweight attention variants on nine publicly available real-world datasets covering electricity, finance, weather, medical monitoring, human activity, and climate records. The results show that SGA improves inference efficiency on public benchmarks while maintaining competitive forecasting performance against state-of-the-art attention mechanisms. These benchmark results provide deployment-oriented evidence.

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

↑