arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.10198cs.LGstat.ML
收藏

SAMformer:通过锐度感知最小化与通道注意力解锁Transformer在时间序列预测中的潜力

SAMformer: Unlocking the Potential of Transformers in Time Series Forecasting with Sharpness-Aware Minimization and Channel-Wise Attention

Paris Descartes University(巴黎笛卡尔大学);LIPADE

Romain Ilbert, Ambroise Odonnat, Vasilii Feofanov, Aladin Virmaux, Giuseppe Paolo, Themis Palpanas, Ievgen Redko

AI总结:

针对Transformer在多变量时间序列长期预测中逊于线性基线的问题,本文发现注意力机制导致泛化能力低下,提出使用锐度感知优化训练的浅层轻量级模型SAMformer,成功逃离不良局部极小值,在真实数据集上超越现有方法且参数显著少于大型基础模型MOIRAI。

摘要:

基于Transformer的架构在自然语言处理和计算机视觉中取得了突破性性能,但在多变量长期预测中仍逊色于更简单的线性基线。为更好理解此现象,我们首先研究了一个玩具线性预测问题,并表明尽管Transformer表达能力高,却无法收敛到真实解。我们进一步确认Transformer的注意力是导致这种低泛化能力的原因。基于此洞察,我们提出了一种浅层轻量级Transformer模型,当使用锐度感知优化进行优化时,能成功逃离不良局部极小值。我们实证表明,该结果扩展至所有常用的真实世界多变量时间序列数据集。特别是,SAMformer超越了当前最先进方法,并与最大的基础模型MOIRAI表现相当,同时参数显著更少。代码可在 https://github.com/romilbert/samformer 获取。

英文摘要:

Transformer-based architectures achieved breakthrough performance in natural language processing and computer vision, yet they remain inferior to simpler linear baselines in multivariate long-term forecasting. To better understand this phenomenon, we start by studying a toy linear forecasting problem for which we show that transformers are incapable of converging to their true solution despite their high expressive power. We further identify the attention of transformers as being responsible for this low generalization capacity. Building upon this insight, we propose a shallow lightweight transformer model that successfully escapes bad local minima when optimized with sharpness-aware optimization. We empirically demonstrate that this result extends to all commonly used real-world multivariate time series datasets. In particular, SAMformer surpasses current state-of-the-art methods and is on par with the biggest foundation model MOIRAI while having significantly fewer parameters. The code is available at https://github.com/romilbert/samformer.

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

↑