Deep learning models are typically built on the assumption that data is "stationary"—that the statistical properties like mean and variance remain constant over time. In the real world, time series data is rarely so cooperative. Whether it is the seasonal surge of solar power, the volatile swings of the stock market, or the sudden shift in traffic patterns during a pandemic, time series data is fundamentally non-stationary.
When the distribution of data shifts, models trained on past scales often fail to generalize to new ones. To solve this, a powerful research direction has emerged: Reversible Instance Normalization (RevIN) and its variants. This approach decouples the "shape" of a temporal pattern from its "scale," allowing models to learn universal dynamics that persist even as the underlying baseline drifts.
The Problem of Distribution Shift
Standard neural networks struggle with time series because they are sensitive to absolute magnitudes. If a model learns to predict electricity load based on a range of 100–200 MW, it may become "blind" or produce erratic results when a new factory opens and the baseline shifts to 500–600 MW.
As Ailing Zeng and colleagues argued in Are Transformers Effective for Time Series Forecasting?, sophisticated architectures like Transformers can be outperformed by simple linear models if they cannot handle these shifting distributions. The core issue is that the self-attention mechanism is often permutation-invariant, making it difficult for the model to distinguish between a structural trend and a temporary fluctuation when the global scale is constantly moving.
The Mechanism: Normalize, Predict, Denormalize
The most effective solution identified across recent literature—from CT-PatchTST to SAMformer—is a symmetric three-step process:
- Normalization: Before the data enters the model, each input instance is standardized using its own mean and variance. This "centers" the data, transforming a drifting signal into a stationary one.
- Prediction: The core model (whether a Transformer, MLP, or Linear layer) processes this standardized data. Because the input is now within a stable range (e.g., zero mean, unit variance), the model can focus entirely on learning the relative temporal patterns.
- Denormalization: Once the model produces a forecast, the original mean and variance from the input are "added back" to the output. This restores the prediction to its original physical scale.
This "reversible" aspect is crucial. As Zhe Li demonstrates in Revisiting Long-term Time Series Forecasting, this simple wrapper allows a single linear layer to capture periodicities that would otherwise be obscured by non-stationary trends.
Why It Works: Decoupling Shape from Scale
The intuition behind reversible normalization is that it allows the model to "ignore the level and focus on the change." In clinical settings, for instance, Mingyue Cheng uses instance normalization in the HMF framework to predict blood pressure drops. Every patient has a different baseline; by normalizing the data, the model learns what a drop looks like, regardless of whether the patient's starting pressure is high or low.
Similarly, in the Traffic4Cast competition, Alexey Shpilman and Nina Lukashina showed that scaling current inputs to match historical distributions allowed models trained on 2019 data to remain accurate during the unprecedented traffic shifts of 2020.
Beyond Simple Scaling: Adaptive and De-stationary Methods
While basic RevIN uses simple mean and variance, more recent work has sought to make this process more "intelligent."
- De-stationary Transformers: Yong Liu and Mingsheng Long pointed out in Non-stationary Transformers that standard normalization can "blind" a model by making different patterns look identical. They proposed "De-stationary Attention," which re-incorporates the lost statistical information directly into the attention mechanism to preserve the nuances of the original signal.
- Adaptive Normalization: Frameworks like SAN (Slicing Adaptive Normalization) by Zhiding Liu break time series into local "slices" to capture fine-grained distribution shifts that occur within a single window.
- Learnable Normalization: Marcus A. K. September introduced EDAIN, which replaces static scaling with a learnable layer that can handle outliers and skewed distributions automatically.
The Foundation of Zero-Shot Generalization
Perhaps the most significant evidence for this direction comes from the rise of Time Series Foundation Models (TSFMs). A study by Ihab Ahmed and colleagues in A Comparative Study on How Data Normalization Affects Zero-Shot Generalization found that using Reversible Instance Normalization can reduce zero-shot forecasting errors by up to 89%.
By removing the "distraction" of absolute scale, reversible normalization allows a model trained on electricity data to potentially provide useful forecasts for traffic or weather, as it has learned the fundamental "language" of temporal dynamics rather than just memorizing specific values.