Authors: Researchers from Central South University, the University of Amsterdam, and Zhejiang Lab (Presented at NeurIPS 2024)
Introduction
Predicting the future state of complex systems is a fundamental challenge in machine learning, particularly when the underlying statistical properties of the data shift over time—a phenomenon known as non-stationarity. In time series forecasting, non-stationarity manifests as evolving trends and seasonal patterns that violate the assumption that the future will mirror the past. While deep learning models have made significant strides in this field, their performance often degrades when faced with real-world data where the "rules" of the signal are constantly changing.
To address this, researchers have introduced Frequency Adaptive Normalization (FAN), a model-agnostic framework designed to handle non-stationarity by operating in the frequency domain. By identifying and isolating dominant periodic components, FAN allows forecasting models to focus on stable, stationary residuals, leading to significant improvements in predictive accuracy.
The Challenge of Non-Stationarity
Most modern time series models rely on normalization techniques to stabilize training. Standard methods, such as Reversible Instance Normalization (RevIN), typically calculate the mean and variance of an input window to "flatten" the data before it enters the model. After the model generates a prediction, these statistics are added back to restore the original scale.
However, mean and variance primarily capture the trend of a signal. They are largely ineffective at handling evolving seasonality. For instance, if a signal's frequency gradually shifts (e.g., a damping oscillation), the mean and variance may remain constant while the structural pattern changes. Current normalization methods are "blind" to these frequency-domain shifts, forcing the backbone forecasting model to learn complex, non-stationary periodicities that it is often ill-equipped to handle.
Methodology: Frequency Adaptive Normalization (FAN)
FAN introduces a two-stage process that treats seasonality as a distribution shift to be normalized rather than just a feature to be learned. The framework consists of three core components: Frequency Residual Learning, Non-stationary Shift Forecasting, and Reconstruction.
1. Frequency Residual Learning (FRL)
Instead of relying solely on time-domain statistics, FAN utilizes the Discrete Fourier Transform (DFT) to analyze the input signal. It identifies the top $K$ dominant frequency components—the primary periodic patterns within the window. These components are then transformed back into the time domain and subtracted from the original signal. This process yields a "stationary residual," a cleaner and more stable signal that is easier for the backbone model to process.
2. Non-stationary Shift Forecasting
Because the dominant frequencies themselves may evolve over the forecasting horizon, they cannot simply be added back unchanged. FAN employs a lightweight Multi-Layer Perceptron (MLP) to predict the shift in these top $K$ frequency components. This ensures that the "seasonal" part of the prediction accounts for future changes in the signal's periodic structure.
3. Reconstruction
The final forecast is the summation of two parts: the output from the backbone model (predicting the stationary residual) and the output from the MLP (predicting the non-stationary seasonal/trend shift).
Key Innovation: Unlike previous Fourier-based approaches that use a fixed set of frequencies for an entire dataset, FAN is instance-wise. It dynamically identifies the most relevant frequencies for every specific input window, allowing it to adapt to local variations in the data.
Experimental Evaluation
The authors evaluated FAN across eight widely recognized multivariate time series benchmarks, including ETT (Electricity Transformer Temperature), Traffic, Electricity, Weather, and ExchangeRate. To test the framework's versatility, it was applied as a wrapper to four distinct model architectures: DLinear (MLP-based), Informer and FEDformer (Transformer-based), and SCINet (CNN-based).
Key Results
- Significant Accuracy Gains: FAN achieved average Mean Squared Error (MSE) improvements ranging from 7.76% to 37.90% across the benchmarks.
- Superiority over State-of-the-Art: FAN consistently outperformed other competitive normalization methods, such as RevIN, SAN, and Dish-TS. The performance gap was particularly pronounced in datasets with heavy seasonality, such as Traffic and Electricity.
- Computational Efficiency: Compared to recent methods like SAN, FAN utilized 29.79% fewer parameters while delivering superior results on the Traffic dataset, demonstrating its efficiency.
- Long-term Robustness: The researchers observed that the performance advantage of FAN increased as the prediction horizon grew longer, suggesting that frequency-domain normalization is especially beneficial for long-term forecasting.
Conclusion and Future Work
Frequency Adaptive Normalization represents a significant shift in how non-stationarity is handled in time series forecasting. By moving beyond simple mean and variance normalization and explicitly modeling the evolution of periodic patterns, FAN provides a robust, model-agnostic solution for complex real-world data.
While highly effective, the authors note some areas for future exploration. The current reliance on a fixed hyperparameter $K$ (the number of frequency components) could be improved with an autonomous selection mechanism. Additionally, while FAN excels with sinusoidal patterns, future iterations may need to better address non-periodic waveforms, such as sharp square waves or purely stochastic jumps. Nevertheless, FAN sets a new benchmark for adaptive normalization in the field of time series analysis.
Summary updated