FRWKV:Frequency-Domain Linear Attention for Long-Term Time Series Forecasting

Qingyuan Yang, Shizhuo Deng, Dongyue Chen, Da Teng, Zehua Gan
12/8/2025
cs.LG

Official code: yangqingyuan-byte/FRWKV (2 stars, last commit 2026-01-20).

Abstract

Traditional Transformers face a major bottleneck in long-sequence time series forecasting due to their quadratic complexity $(\mathcal{O}(T^2))$ and their limited ability to effectively exploit frequency-domain information. Inspired by RWKV's $\mathcal{O}(T)$ linear attention and frequency-domain modeling, we propose FRWKV, a frequency-domain linear-attention framework that overcomes these limitations. Our model integrates linear attention mechanisms with frequency-domain analysis, achieving $\mathcal{O}(T)$ computational complexity in the attention path while exploiting spectral information to enhance temporal feature representations for scalable long-sequence modeling. Across eight real-world datasets, FRWKV achieves a first-place average rank. Our ablation studies confirm the critical roles of both the linear attention and frequency-encoder components. This work demonstrates the powerful synergy between linear attention and frequency analysis, establishing a new paradigm for scalable time series modeling. Code is available at this repository: https://github.com/yangqingyuan-byte/FRWKV.

View on arXivView PDF

Code Implementations(1)

20Shell, PythonSep 4, 20259 months ago

Similar Papers

Cite this paper

@article{yang2025frwkvfrequencydomain,
  title  = {FRWKV:Frequency-Domain Linear Attention for Long-Term Time Series Forecasting},
  author = {Qingyuan Yang and Shizhuo Deng and Dongyue Chen and Da Teng and Zehua Gan},
  year   = {2025},
  eprint = {2512.07539},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.07539v2}
}

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

Discussion