Data augmentation is a crucial technique for improving model generalization and robustness, particularly in deep learning models where training data is limited. Although many augmentation methods have been developed for time series classification, most are not directly applicable to time series forecasting due to the need to preserve temporal coherence. In this work, we propose Temporal Patch Shuffle (TPS), a simple and model-agnostic data augmentation method for forecasting that extracts overlapping temporal patches, selectively shuffles a subset of patches using variance-based ordering as a conservative heuristic, and reconstructs the sequence by averaging overlapping regions. This design increases sample diversity while preserving forecast-consistent local temporal structure. We extensively evaluate TPS across nine long-term forecasting datasets using five recent model families (TSMixer, DLinear, PatchTST, TiDE, and LightTS), and across four short-term forecasting datasets using PatchTST, observing consistent performance improvements. Comprehensive ablation studies further demonstrate the effectiveness, robustness, and design rationale of the proposed method.
Key Contributions
TPS (Temporal Patch Shuffle):
Time Series Forecasting implementation: time_series_forecasting/utils/augmentations.py
Long-term forecasting (9 datasets × 4 horizons): TPS is rank-1 in most settings (e.g., DLinear: 35/36 wins for MSE; 34/36 wins for MAE).
Short-term traffic forecasting (PeMS03/04/07/08 with PatchTST): TPS wins on most metrics (e.g., PeMS03: MSE/MAE 0.104/0.216).
Classification (mean ± std): TPS improves both univariate MiniRocket (0.804 ± 0.0098) and multivariate MultiRocket (0.643 ± 0.0253).
Citation
If you find this repository useful, please cite our paper:
bibtex
1@misc{bakhshaliyev2026temporalpatchshuffletps,
2 title={Temporal Patch Shuffle (TPS): Leveraging Patch-Level Shuffling to Boost Generalization and Robustness in Time Series Forecasting},
3 author={Jafar Bakhshaliyev and Johannes Burchert and Niels Landwehr and Lars Schmidt-Thieme},
4 year={2026},
5 eprint={2604.09067},
6 archivePrefix={arXiv},
7 primaryClass={cs.LG},
8 url={https://arxiv.org/abs/2604.09067},
9}
Acknowledgements
This work builds upon and extends prior research on time series data augmentation, particularly frequency-domain and wavelet-based methods:
These methods form strong baselines for time series forecasting augmentation, and TPS is designed as a complementary approach that operates directly in the temporal domain via patch-level transformations.
We also acknowledge that parts of the experimental pipeline and augmentation comparisons build upon publicly available implementations of these methods.
Additionally, TPS is evaluated on modern forecasting architectures, including: