Motivations
Normally, we usually use moments of each order such as mean and variance to describe the distribution of the time series. In fact, time series data often suffers from a severe distribution shift. Some existing methods try to disentangle the time series into the composition of trend and seasonality to alleviate this problem, but it still affects the performance of time series forecasting.
RevIN
To eliminate the impact caused by the change of moments, RevIN directly removes non-stationary information from the input sequences, specifically, the mean and standard deviation of the instances. The figure and code below demonstrates the mechanism of RevIN.
1 |
|
We can directly apply RevIN to any existing time series model layers. RevIN removes mean and variance of time series to normalize different channels as follows. We can see that RevIN normalizes the input data while keeping the alignment of different channels of time series. In the meanwhile, the learnable affine parameters of RevIN help the model to learn the discrepancies (almost caused by trend) between different segmentations so as to mitigate distribution shift problem. Table below shows the performance of RevIN applied to existing time series forecasting models.