Fredformer: Frequency Debiased Transformer for Time Series Forecasting

Xihao Piao, Zheng Chen, Taichi Murayama, Yasuko Matsubara, Yasushi Sakurai
6/13/2024
170 citations
cs.LGcs.AI
transformer-attention

Official code: chenzRG/Fredformer (116 stars, Python, last commit 2025-06-11).

Abstract

The Transformer model has shown leading performance in time series forecasting. Nevertheless, in some complex scenarios, it tends to learn low-frequency features in the data and overlook high-frequency features, showing a frequency bias.

Show full abstract

This bias prevents the model from accurately capturing important high-frequency data features. In this paper, we undertook empirical analyses to understand this bias and discovered that frequency bias results from the model disproportionately focusing on frequency features with higher energy. Based on our analysis, we formulate this bias and propose Fredformer, a Transformer-based framework designed to mitigate frequency bias by learning features equally across different frequency bands. This approach prevents the model from overlooking lower amplitude features important for accurate forecasting. Extensive experiments show the effectiveness of our proposed approach, which can outperform other baselines in different real-world time-series datasets. Furthermore, we introduce a lightweight variant of the Fredformer with an attention matrix approximation, which achieves comparable performance but with much fewer parameters and lower computation costs. The code is available at: https://github.com/chenzRG/Fredformer

View on arXivView PDF

Code Implementations(1)

chenzRG/FredformerOfficial100%
11620Python, ShellFeb 8, 20241 years ago

Similar Papers

Cite this paper

@article{piao2024fredformer,
  title  = {Fredformer: Frequency Debiased Transformer for Time Series Forecasting},
  author = {Xihao Piao and Zheng Chen and Taichi Murayama and Yasuko Matsubara and Yasushi Sakurai},
  year   = {2024},
  eprint = {2406.09009},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.09009v4}
}

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/2406.09009.svg)](https://codeofpaper.com/paper/2406.09009)

Discussion