TimeMixer icon indicating copy to clipboard operation
TimeMixer copied to clipboard

Why is input normalization (mean/std) needed after scaling? Performance drops if removed

Open JasonAlexTan opened this issue 1 year ago • 1 comments

Hi, I noticed that in the code, there are two normalization steps for the input data:

  • First, the data is scaled (e.g., MinMaxScaler or similar scaling method).
  • Then, for each input sequence (with input length), the mean is subtracted and divided by the standard deviation.

I’m curious about the reason for applying the second normalization step (subtracting the mean and dividing by std) after the initial scaling. When I remove this second normalization across the input length, I observe a noticeable drop in model performance. Could you please explain why this additional normalization is necessary? What is the intuition or theoretical reason behind it?

JasonAlexTan avatar Apr 30 '25 15:04 JasonAlexTan

Thanks for your interest in this work. This scaling approach is inherited from Informer (Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting). As for the stationary approach, it was based on this paper (non-stationary transformers and revin). You can refer to these works.

kevinliu2000 avatar Dec 11 '25 03:12 kevinliu2000