Frequency Adaptive Normalization For Non-stationary Time Series Forecasting

Weiwei Ye, Songgaojun Deng, Qiaosha Zou, Ning Gui

TL;DR

This paper introduces Frequency Adaptive Normalization (FAN), a novel, model-agnostic preprocessing method designed to tackle non-stationarity in time series forecasting. By operating in the frequency domain via Fourier transforms, FAN strips out and explicitly predicts both evolving trends and complex seasonal patterns, significantly boosting the accuracy of standard deep learning forecasting models.

What Problem Does This Paper Address?

Real-world time series data—such as traffic flow, electricity consumption, or weather metrics—is notoriously non-stationary. Its underlying statistical properties change over time due to shifting trends and seasonal cycles.

To help deep learning models cope, researchers often use reversible instance normalization (like RevIN). These methods calculate time-domain statistics (mean and variance) for an input window, normalize the data to remove trends, pass it to a forecasting model, and then re-apply the statistics to the output. However, the authors point out a critical flaw: time-domain statistics are blind to changing seasonal patterns. As illustrated in Figure 1, two segments of a time series can have identical means and variances but completely different periodic frequencies.

Figure 1: A sinusoidal signal with linearly varying frequency which is a common example of a non-stationary time series. In the lower-left corner, we plot the Fourier spectrum for three segments of the signal.

Existing frequency-based models try to fix this but assume that these periodicities are constant across the entire dataset, failing to capture instance-by-instance variations.

Methods

FAN solves this by introducing Frequency Residual Learning (FRL), which splits the time series into highly stationary and non-stationary components using the frequency domain:

  1. Normalization (Frequency Filtering): FAN applies a 1D Discrete Fourier Transform (DFT) to each input instance. It identifies the top-$K$ frequency components with the largest amplitudes (which represent the dominant non-stationary trend and seasonal patterns) and filters them out. This leaves a highly stationary residual ($X^{res}$) that is much easier for a standard backbone forecasting model ($g_\theta$) to learn.
  2. Non-Stationary Shift Forecasting: Because seasonal patterns evolve between the input window and the future horizon, FAN uses a lightweight, three-layer Multi-Layer Perceptron (MLP), denoted as $q_\phi$, to explicitly predict how these top-$K$ frequency components will change in the future.
  3. Denormalization (Reintegration): Finally, the predicted stationary residual from the backbone and the predicted non-stationary components from the MLP are added back together to reconstruct the final forecast ($\hat{Y}$).

The entire framework is optimized end-to-end using a multi-task loss function that balances overall forecasting accuracy with a prior guidance loss for the non-stationary components.

Figure 2: An overview of FAN which consists of normalization, frequency residual learning, denor- malization steps, and incorporates a prior loss for non-stationary patterns.

Datasets

The authors evaluated FAN across eight widely used real-world multivariate time series benchmarks:

  • ETT (ETTh1, ETTh2, ETTm1, ETTm2): Electricity Transformer Temperature datasets.
  • Electricity: Hourly electricity consumption of 321 clients.
  • ExchangeRate: Daily exchange rates of 8 countries.
  • Traffic: Hourly traffic load data from San Francisco freeways.
  • Weather: Local weather indicators collected every 10 minutes.

They also generated custom Synthetic Datasets (Syn-5 through Syn-9) consisting of superimposed sinusoidal signals with linearly changing amplitudes to rigorously test FAN under controlled, non-stationary frequency shifts.

Key Insights and Ideas

  • Frequencies Evolve Instance-by-Instance: Rather than assuming a fixed global frequency spectrum for an entire dataset, FAN demonstrates that dominant frequencies vary significantly from one local time window to the next.
  • The Frequency Domain Simplifies Prediction: The authors discovered that a time series' main frequency components change at least 40.27% more slowly than its residual components. This slow evolution explains why a remarkably simple MLP architecture is sufficient to accurately forecast complex non-stationary shifts.
  • Model-Agnostic Boosting: Because FAN acts purely as a symmetric normalization/denormalization wrapper, it can be applied to any forecasting architecture without altering the underlying model.

Key Results

FAN was tested alongside four diverse backbone architectures: DLinear (MLP-based), Informer (Transformer-based), FEDformer (Fourier-enhanced Transformer), and SCINet (CNN-based).

  • Substantial Accuracy Gains: FAN achieved average Mean Squared Error (MSE) improvements ranging from 7.76% to 37.90% across the benchmarks.
  • Outperforming the State-of-the-Art: FAN consistently outperformed existing normalization techniques like RevIN, Dish-TS, and SAN. For instance, it achieved an average MSE improvement of 51.27% on the ExchangeRate dataset.
  • Long-Term Robustness: FAN's performance advantage actually increases with longer prediction horizons. As shown in Figure 3, FAN accurately captures complex, long-term seasonal waveforms (such as weekend traffic drops) where traditional methods flatten out or miss amplitude shifts entirely.
Figure 3: Visualization of long-term 168 steps forecasting results of a test sample in Traffic dataset, using DLinear enhanced with different normalization methods.

Limitations and Future Work

The authors note a few limitations that pave the way for future research:

  • Over-Stationarity: Stripping out too much non-stationary information can occasionally make the residual data "too flat," which might inadvertently degrade the backbone model's capacity to learn subtle dynamics.
  • Heuristic Hyperparameter Selection: The number of top frequencies ($K$) is currently selected using a search-based heuristic or dataset priors (e.g., selecting frequencies with amplitudes within the top 10% of the maximum). Ideally, $K$ should be learned autonomously.
  • Waveform Constraints: Because it relies on a finite number of sinusoidal Fourier components, FAN struggles to efficiently represent sharp, non-sinusoidal periodic patterns, such as square waves.

Summary updated

BibTeX
@inproceedings{ye2024frequency,
  author = {Weiwei Ye and Songgaojun Deng and Qiaosha Zou and Ning Gui},
  title = {{Frequency Adaptive Normalization For Non-stationary Time Series Forecasting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=SWAqFgd5GA},
}
Figure