FilterNet: Harnessing Frequency Filters for Time Series Forecasting

Kun Yi, Jingru Fei, Qi Zhang, Hui He, Shufeng Hao, Defu Lian, Wei Fan

Introduction

In the current landscape of time series forecasting, Transformer-based architectures have become the dominant paradigm. However, despite their success, these models possess inherent limitations, particularly regarding computational efficiency and signal processing robustness. FilterNet introduces a novel alternative by replacing complex self-attention mechanisms with learnable frequency filters. By operating directly in the frequency domain, FilterNet achieves state-of-the-art accuracy while offering significant improvements in speed and memory efficiency.

The Limitations of Transformer-Based Forecasting

While Transformers excel at capturing long-range dependencies, they suffer from three primary "Achilles' heels" in the context of time series data:

  1. Noise Sensitivity: Transformers are often vulnerable to high-frequency noise, which can obscure the underlying temporal patterns.
  2. Limited Spectrum Utilization: Many existing models act as unintentional low-pass filters, failing to utilize important information stored in higher frequency bands.
  3. Computational Complexity: The $O(L^2)$ complexity of self-attention makes scaling to long sequences (thousands of time steps) computationally prohibitive.

The authors illustrate these gaps through a synthetic simulation where a state-of-the-art Transformer (iTransformer) failed to forecast a simple signal composed of three distinct frequencies. In contrast, a basic frequency filter handled the task with ease, suggesting that a signal-processing approach might be more suitable for certain temporal tasks.

Methodology: The FilterNet Architecture

FilterNet adopts an elegantly simple "Normalize-Transform-Filter" pipeline designed to bridge classical signal processing with deep learning:

1. Pre-processing and Transformation

The model begins with Instance Normalization to mitigate the effects of non-stationary data, where mean and variance shift over time. Following this, a Fast Fourier Transform (FFT) converts the time-series signal into the frequency domain.

2. The Frequency Filter Block

This core innovation replaces the attention mechanism with two types of learnable filters:

  • Plain Shaping Filter (PaiFilter): This uses learnable weights to "shape" the signal. It can be implemented as a Universal filter (shared across all variables) or an Individual filter.
  • Contextual Shaping Filter (TexFilter): This acts as a data-dependent filter that adaptively weights frequencies based on the specific input signal, serving as a frequency-domain surrogate for attention.

Unlike previous frequency-based models that simply discarded high frequencies, FilterNet utilizes "all-pass" filters, allowing the model to learn exactly which parts of the spectrum are informative for a given dataset.

3. Reconstruction and Projection

An Inverse FFT (IFFT) converts the filtered signal back to the time domain, and a standard Feed-Forward Network (FFN) projects these extracted patterns into the final forecast.

Experimental Evaluation

FilterNet was evaluated against eight real-world benchmarks, including the Electricity Transformer Temperature (ETT) subsets, Weather, Electricity, Traffic, and Exchange rate datasets.

Key Results

  • Superior Accuracy: FilterNet consistently outperformed SOTA models like iTransformer, PatchTST, and FEDformer. On the Electricity dataset specifically, it achieved significantly lower Mean Squared Error (MSE) than its competitors.
  • Efficiency Gains: Because the core operations occur in the frequency domain, the computational complexity is reduced to $O(L \log L)$. In head-to-head comparisons on the Electricity dataset (321 variables), FilterNet was nearly 12 times faster to train per epoch than PatchTST while using substantially less memory.
  • Robustness: Synthetic tests with added noise demonstrated that FilterNet maintains high accuracy where Transformers' performance degrades, proving its inherent ability to "clean" signals during the forecasting process.

Insights and Discussion

A significant finding of the research is the effectiveness of Channel Sharing. Experiments revealed that sharing filter parameters across different variables (the "Universal" strategy) generally outperformed unique filters for each variable. This suggests that underlying frequency "motifs" are often common across different sensors or channels within the same dataset.

Furthermore, FilterNet demonstrates that frequency filters can effectively approximate the linear and attention mappings used in models like DLinear and PatchTST, but with superior noise robustness and lower overhead.

Conclusion and Future Work

FilterNet represents a shift back toward signal processing wisdom, proving that learnable frequency filters can be more effective and efficient than complex attention mechanisms for time series forecasting. While the model excels in long-term forecasting, future research may explore its application to extremely short-term or irregular time series where frequency patterns are less stable. Additionally, the authors suggest exploring other domain transformations, such as Wavelets, to capture multi-scale temporal dependencies even more effectively.

Summary updated

BibTeX
@inproceedings{yi2024filternet,
  author = {Kun Yi and Jingru Fei and Qi Zhang and Hui He and Shufeng Hao and Defu Lian and Wei Fan},
  title = {{FilterNet: Harnessing Frequency Filters for Time Series Forecasting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=ugL2D9idAD},
}
Figure