Deep Time-series Forecasting Needs Kernelized Moment Balancing

Licheng Pan, Hao Wang, Haocheng Yang, Yuqi Li, Qingsong Wen, Xiaoxi Li, Zhichao Chen, Haoxuan Li, Zhixuan Chu, Yuan Lu

Abstract

Deep time-series forecasting can be formulated as a distribution balancing problem aimed at aligning the distribution of the forecasts and ground truths. According to Imbens' criterion, true distribution balance requires matching the first moments with respect to any balancing function. We demonstrate that existing objectives fail to meet this criterion, as they enforce moment matching only for one or two predefined balancing functions, thus failing to achieve full distribution balance. To address this limitation, we propose direct forecasting with kernelized moment balancing (KMB-DF). Unlike existing objectives, KMB-DF adaptively selects the most informative balancing functions from a reproducing kernel hilbert space (RKHS) to enforce sufficient distribution balancing. We derive a tractable and differentiable objective that enables efficient estimation from empirical samples and seamless integration into gradient-based training pipelines. Extensive experiments across multiple models and datasets show that KMB-DF consistently improves forecasting accuracy and achieves state-of-the-art performance. Code is available at https://anonymous.4open.science/r/KMB-DF-403C.

Introduction: The Autocorrelation Bias

Standard deep time-series forecasting models typically rely on Mean Squared Error (MSE) as their primary training objective. While MSE is effective for point-wise alignment, it operates under the assumption that future data points are conditionally independent. In reality, time-series data is characterized by high autocorrelation—temporal dependencies where future values are intrinsically linked to past and adjacent values.

Ignoring this structure leads to "autocorrelation bias," where models produce over-smoothed predictions that fail to capture sharp transitions or high-frequency fluctuations. While previous attempts have sought to align distributions using Fourier transforms or PCA, they only match a limited set of statistical properties. They fail to satisfy Imbens’ criterion, which requires matching moments across all possible balancing functions to achieve true distributional alignment.

Methodology: Kernelized Moment Balancing (KMB-DF)

To overcome these limitations, we introduce Direct Forecasting with Kernelized Moment Balancing (KMB-DF). This approach moves beyond manually selected statistics by leveraging Reproducing Kernel Hilbert Spaces (RKHS).

Key Innovations

  • Universal Kernels: By employing an exponential kernel, KMB-DF can theoretically approximate any continuous balancing function, allowing the objective to capture high-order moments that simpler methods overlook.
  • Selective Balancing: Since matching an infinite set of functions is computationally infeasible, KMB-DF adaptively identifies the $K$ most informative balancing functions—those that highlight the most significant distributional mismatches—during training.
  • Soft-Margin Relaxation: Inspired by Support Vector Machines, a soft-margin approach is used to prevent overfitting to noise, allowing for small, bounded violations of distribution balance.
  • Differentiable Integration: The framework results in a tractable loss function that can be seamlessly integrated as a regularization term alongside MSE in any gradient-based pipeline, adding negligible computational overhead.

Experimental Results

The effectiveness of KMB-DF was evaluated across several benchmark datasets, including ETT, ECL, Weather, and the challenging M5 retail dataset.

Quantitative Performance

KMB-DF consistently improves the performance of various state-of-the-art architectures, such as CFPT, TimeBridge, Fredformer, and iTransformer. Notably, it achieved an 8.2% error reduction for Fredformer on the ECL dataset.

Quantitative comparison of MSE and MAE across different models and datasets with and without KMB-DF.

Qualitative Fidelity

Beyond numerical metrics, KMB-DF significantly improves the visual quality of forecasts. While MSE-only models tend to "revert to the mean," KMB-DF-trained models preserve the fine-grained fluctuations and sharp transitions present in the ground truth data.

Qualitative snapshots on ETTm1 and ETTh2 datasets comparing ground truth with predictions from models trained with (red) and without (blue) KMB-DF.

Conclusion

KMB-DF provides a rigorous statistical foundation for distribution balancing in time-series forecasting. By ensuring that forecasts match the ground truth across a wide range of balancing functions, it mitigates autocorrelation bias without adding inference latency. Future work will focus on integrating more explicit temporal correspondence into the kernelized framework and scaling the approach to larger foundation models.

Summary updated

BibTeX
@misc{pan2026deep,
  author = {Licheng Pan and Hao Wang and Haocheng Yang and Yuqi Li and Qingsong Wen and Xiaoxi Li and Zhichao Chen and Haoxuan Li and Zhixuan Chu and Yuan Lu},
  title = {{Deep Time-series Forecasting Needs Kernelized Moment Balancing}},
  year = {2026},
  eprint = {2602.00717},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.00717},
}
Figure