Introducing Spectral Attention for Long-Range Dependency in Time Series Forecasting

Bong Gyun Kang, Dongjun Lee, Hyung-Sik Kim, Dohyun Chung, Sungroh Yoon
2/3/2026

No official code found. Best implementation: DJLee1208/BSA_2024 (8 stars, last commit 2024-12-10). 1 more below.

Abstract

Sequence modeling faces challenges in capturing long-range dependencies across diverse tasks. Recent linear and transformer-based forecasters have shown superior performance in time series forecasting. However, they are constrained by their inherent inability to effectively address long-range dependencies in time series data, primarily due to using fixed-size inputs for prediction. Furthermore, they typically sacrifice essential temporal correlation among consecutive training samples by shuffling them into mini-batches. To overcome these limitations, we introduce a fast and effective Spectral Attention mechanism, which preserves temporal correlations among samples and facilitates the handling of long-range information while maintaining the base model structure. Spectral Attention preserves long-period trends through a low-pass filter and facilitates gradient to flow between samples. Spectral Attention can be seamlessly integrated into most sequence models, allowing models with fixed-sized look-back windows to capture long-range dependencies over thousands of steps. Through extensive experiments on 11 real-world time series datasets using 7 recent forecasting models, we consistently demonstrate the efficacy of our Spectral Attention mechanism, achieving state-of-the-art results.

View on arXivView PDF

Code Implementations(2)

DJLee1208/BSA_2024Community100%
81PythonOct 28, 20241 years ago
Apache-2.0

The code for the paper "Introducing Spectral Attention for Long-Range Dependency in Time Series Forecasting" published at NeurIPS 2024

00Oct 21, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{kang2026introducing,
  title  = {Introducing Spectral Attention for Long-Range Dependency in Time Series Forecasting},
  author = {Bong Gyun Kang and Dongjun Lee and Hyung-Sik Kim and Dohyun Chung and Sungroh Yoon},
  year   = {2026},
  eprint = {2410.20772},
  archivePrefix = {arXiv},
  doi    = {10.52202/079017-4337},
  url    = {https://arxiv.org/abs/2410.20772},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.20772.svg)](https://codeofpaper.com/paper/2410.20772)

Discussion