用小波变换和差分注意力提升时序预测精度
WDformer: A Wavelet-based Differential Transformer Model for Time Series Forecasting
- 结合小波变换实现时频域联合表征,捕捉多分辨率特征
- 在多个真实数据集上达到当前最优性能
- 适合需要高精度时序建模的场景,如金融与交通预测
时序预测广泛应用于气象降雨预测、交通流量分析、金融预测及系统运行负载监控。由于时序数据稀疏,仅依赖时域或频域建模难以充分挖掘多域信息。传统注意力机制常过度关注无关历史信息,引入噪声导致预测偏差。本文提出WDformer,一种基于小波的差分Transformer模型。通过小波变换对时序数据进行多分辨率分析,利用时频域联合表征精准提取反映数据本质特征的关键成分。同时,在反向维度上应用注意力机制,捕捉多变量间关系;设计差分注意力机制,通过两个独立Softmax注意力矩阵的差异计算注意力分数,强化关键信息关注,抑制噪声。WDformer在多个挑战性真实数据集上取得当前最优(SOTA)结果,验证了其准确性和有效性。代码已开源:https://github.com/xiaowangbc/WDformer。
原文摘要 · Abstract (English)
Time series forecasting has various applications, such as meteorological rainfall prediction, traffic flow analysis, financial forecasting, and operational load monitoring for various systems. Due to the sparsity of time series data, relying solely on time-domain or frequency-domain modeling limits the model's ability to fully leverage multi-domain information. Moreover, when applied to time series forecasting tasks, traditional attention mechanisms tend to over-focus on irrelevant historical information, which may introduce noise into the prediction process, leading to biased results. We proposed WDformer, a wavelet-based differential Transformer model. This study employs the wavelet transform to conduct a multi-resolution analysis of time series data. By leveraging the advantages of joint representation in the time-frequency domain, it accurately extracts the key information components that reflect the essential characteristics of the data. Furthermore, we apply attention mechanisms on inverted dimensions, allowing the attention mechanism to capture relationships between multiple variables. When performing attention calculations, we introduced the differential attention mechanism, which computes the attention score by taking the difference between two separate softmax attention matrices. This approach enables the model to focus more on important information and reduce noise. WDformer has achieved state-of-the-art (SOTA) results on multiple challenging real-world datasets, demonstrating its accuracy and effectiveness. Code is available at https://github.com/xiaowangbc/WDformer.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。