PofoliaDaily literature tracker

arXiv (Cornell University)· 2019· Preprint

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

Shiyang Li, Xiaoyong Jin, Yao Xuan, Xiyou Zhou et al.

Short summary

LogSparse Transformer incorporates causal convolutions for local context awareness and achieves O(L(log L)^2) memory complexity, outperforming state-of-the-art on time series forecasting.

AI-generated from the title and abstract; the full text is not read.

Key points

  • Canonical Transformer is locality-agnostic and has quadratic memory complexity, limiting its use in time series forecasting.
  • Causal convolutions are introduced to produce queries and keys, enhancing local context incorporation in the attention mechanism.
  • LogSparse Transformer reduces memory complexity to O(L(log L)^2), making it feasible for long time series with fine granularity.
  • The proposed model outperforms state-of-the-art methods on both synthetic and real-world time series forecasting tasks.

AI-generated from the title and abstract; the full text is not read.

Abstract

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.

The authors' abstract, as published at the source. arXiv (Cornell University), 2019 · DOI ↗

TakeawaysPremium Ask the paperFree account

Continue with a free account

Ask the paper: 5 free questions a day about this paper; save it, get its citation, new summaries every day for your field. Takeaways are Premium.

Continue free on the web

Sign in with Google or Apple; no card needed. You come back to this paper.

On your phone:

Field: Signal Processing

Signal ProcessingComputer Science