arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1907.00235cs.LGstat.ML
收藏

时间序列预测中局部性增强与内存瓶颈突破的Transformer

Enhancing the Locality and Breaking the Memory Bottleneck of Transformer on Time Series Forecasting

University of California Santa Barbara(加州大学圣巴巴拉分校)

Shiyang Li, Xiaoyong Jin, Yao Xuan, Xiyou Zhou, Wenhu Chen, Yu-Xiang Wang, Xifeng Yan

摘要:

时间序列预测是许多领域的重要问题,包括预测太阳能发电厂的能量输出,电力消耗和交通拥堵情况。在本文中,我们建议用Transformer [1]来处理这样的预测问题。虽然在我们的初步研究中对它的性能印象深刻,但我们发现它的两个主要弱点:(1)局部不可知性:规范Transformer架构中的逐点点积自注意对局部上下文不敏感,这可能使模型在时间序列中容易出现异常;(2)内存瓶颈:规范Transformer的空间复杂度与序列长度$L$成二次增长,使得直接建模长时间序列不可行。为了解决这两个问题,我们首先提出了卷积自注意,通过产生查询和关键字与因果卷积,使局部上下文可以更好地纳入注意力机制。然后,我们提出了LogSparse Transformer,只有$O(L(\log L)^{2})$内存成本,提高预测精度的细粒度和强长期依赖性的时间序列在有限的内存预算。我们在合成数据和真实世界数据集上的实验表明,它比最先进的。

英文摘要:

Time series forecasting is an important problem across many domains, including predictions of solar plant energy output, electricity consumption, and traffic jam situation. In this paper, we propose to tackle such forecasting problem with Transformer [1]. Although impressed by its performance in our preliminary study, we found its two major weaknesses: (1) locality-agnostics: the point-wise dot-product self-attention in canonical Transformer architecture is insensitive to local context, which can make the model prone to anomalies in time series; (2) memory bottleneck: space complexity of canonical Transformer grows quadratically with sequence length $L$, making directly modeling long time series infeasible. In order to solve these two issues, we first propose convolutional self-attention by producing queries and keys with causal convolution so that local context can be better incorporated into attention mechanism. Then, we propose LogSparse Transformer with only $O(L(\log L)^{2})$ memory cost, improving forecasting accuracy for time series with fine granularity and strong long-term dependencies under constrained memory budget. Our experiments on both synthetic data and real-world datasets show that it compares favorably to the state-of-the-art.

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

↑