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

FreEformer:用于多元时间序列预测的频率增强Transformer

FreEformer: Frequency Enhanced Transformer for Multivariate Time Series Forecasting

School of Intelligence Science and Technology, Peking University(北京大学智能科学与技术学院)

Wenzhen Yue, Yong Liu, Xianghua Ying, Bowei Xing, Ruohao Guo, Ji Shi

AI总结:

FreEformer通过DFT将时间序列转换到频域,并引入额外可学习矩阵与L1归一化增强注意力,在十八个基准上优于现有模型。

摘要:

本文提出了FreEformer,一种简单而有效的模型,利用频率增强Transformer进行多元时间序列预测。我们的工作基于这样的假设:频谱提供了序列在不同频率上组成的全局视角,并且非常适合鲁棒表示学习。具体来说,我们首先使用离散傅里叶变换(DFT)将时间序列转换到复数频域。然后,将Transformer架构应用于频谱以捕获跨变量依赖关系,其中实部和虚部分别独立处理。然而,我们观察到原始注意力矩阵表现出低秩特性,从而限制了表示多样性。这可以归因于频域固有的稀疏性以及原始注意力中Softmax对强值的聚焦特性。为了解决这个问题,我们通过向原始注意力矩阵引入一个额外的可学习矩阵,然后进行逐行L1归一化来增强原始注意力机制。理论分析表明,这种增强的注意力机制提高了特征多样性和梯度流。大量实验表明,FreEformer在涵盖电力、交通、天气、医疗保健和金融的十八个真实世界基准上持续优于最先进的模型。值得注意的是,增强的注意力机制也持续提高了最先进的基于Transformer的预测器的性能。

英文摘要:

This paper presents \textbf{FreEformer}, a simple yet effective model that leverages a \textbf{Fre}quency \textbf{E}nhanced Trans\textbf{former} for multivariate time series forecasting. Our work is based on the assumption that the frequency spectrum provides a global perspective on the composition of series across various frequencies and is highly suitable for robust representation learning. Specifically, we first convert time series into the complex frequency domain using the Discrete Fourier Transform (DFT). The Transformer architecture is then applied to the frequency spectra to capture cross-variate dependencies, with the real and imaginary parts processed independently. However, we observe that the vanilla attention matrix exhibits a low-rank characteristic, thus limiting representation diversity. This could be attributed to the inherent sparsity of the frequency domain and the strong-value-focused nature of Softmax in vanilla attention. To address this, we enhance the vanilla attention mechanism by introducing an additional learnable matrix to the original attention matrix, followed by row-wise L1 normalization. Theoretical analysis~demonstrates that this enhanced attention mechanism improves both feature diversity and gradient flow. Extensive experiments demonstrate that FreEformer consistently outperforms state-of-the-art models on eighteen real-world benchmarks covering electricity, traffic, weather, healthcare and finance. Notably, the enhanced attention mechanism also consistently improves the performance of state-of-the-art Transformer-based forecasters.

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

↑