Series-wise Cross-validation for Global Time Series Forecasting
Organizations: University of Coimbra, CISUC/LASI, DEI Coimbra, Portugal · Faculty of Engineering, University of Porto Porto, Portugal
Abstract
We consider the problem of cross-validation (CV) in time series forecasting, with a focus on global forecasting models based on deep learning. The prevailing CV strategy in forecasting is to partition data across time with the last part of each series used for testing. With global models trained on collections of time series, however, a fundamentally different approach becomes possible: partitioning across series and time. We formalize series-wise CV for global forecasting models and benchmark several instantiations, including K-fold CV, bootstrapping, and Monte Carlo CV, on 11 datasets with 10 neural network architectures. We evaluate CV procedures along five dimensions: performance estimation, overoptimism rate, model selection accuracy, regret, and downstream forecasting performance. We withhold a random fraction of series from training so that they appear only in the test set. This protocol simulates the emergence of new series not seen during training, a common scenario in global forecasting. Under this protocol, our results reveal a nuanced trade-off: series-wise CV yields better downstream forecasting accuracy by guiding model selection toward configurations that generalize across both time and series, while time-wise CV retains a slight advantage for estimating out-of-sample error.
Figures & tables
| Dataset | Frequency | # time series | # observations | Horizon ( ) |
| Tourism | Monthly | 366 | 109,280 | 12 |
| Quarterly | 427 | 42,544 | 4 | |
| M1 | Monthly | 617 | 55,998 | 12 |
| Quarterly | 203 | 9,944 | 4 | |
| M3 | Monthly | 1,428 | 167,562 | 12 |
| Quarterly | 756 | 37,004 | 4 |
| Series-wise | Time-wise | ||||||
|---|---|---|---|---|---|---|---|
| Method | Bootstrap | Holdout | Kf-CV | K-MC-CV | K-Bootstrap | K-Holdout | Time-CV |
| MAPEE | 0.120 | 0.141 | 0.124 | 0.140 | 0.126 | 0.132 | 0.109 |
| Overoptimism | 0.315 | 0.373 | 0.258 | 0.267 | 0.255 | 0.261 | 0.324 |
| Accuracy | 0.242 | 0.364 | 0.242 | 0.303 | 0.152 | 0.212 | 0.273 |
| Regret | 0.023 | 0.019 | 0.044 | 0.016 | 0.019 | 0.020 | 0.034 |
| Series-wise | Time-wise | ||||||
|---|---|---|---|---|---|---|---|
| Methods | Bootstrap | Holdout | Kf-CV | K-MC-CV | K-Bootstrap | K-Holdout | Time-CV |
| ECL | 0.596 | 0.592 | 0.591 | 0.595 | 0.600 | 0.604 | 0.577 |
| Exchange | 0.151 | 0.153 | 0.147 | 0.145 | 0.145 | 0.147 | 0.155 |
| Traffic | 0.702 | 0.671 | 0.688 | 0.691 | 0.691 | 0.677 | 0.692 |
| Weather | 0.976 | 0.920 | 0.939 | 0.928 | 0.940 | 0.934 | 1.115 |
| Hospital | 0.811 | 0.814 | 0.797 | 0.796 | 0.804 | 0.804 | 0.804 |
| Series-wise | Time-wise | ||||||
|---|---|---|---|---|---|---|---|
| Method | Bootstrap | Holdout | Kf-CV | K-MC-CV | K-Bootstrap | K-Holdout | Time-CV |
| MAPEE | 0.119 | 0.109 | 0.108 | 0.127 | 14.321 | 0.105 | 0.092 |
| Overoptimism | 0.306 | 0.424 | 0.255 | 0.252 | 0.242 | 0.261 | 0.306 |
| Accuracy | 0.455 | 0.273 | 0.273 | 0.273 | 0.273 | 0.364 | 0.333 |
| Regret | 0.025 | 0.024 | 0.022 | 0.020 | 0.019 | 0.020 | 0.012 |
| Series-wise | Time-wise | ||||||
|---|---|---|---|---|---|---|---|
| Methods | Bootstrap | Holdout | Kf-CV | K-MC-CV | K-Bootstrap | K-Holdout | Time-CV |
| ECL | 0.592 | 0.583 | 0.587 | 0.598 | 0.594 | 0.596 | 0.594 |
| Exchange | 0.147 | 0.142 | 0.148 | 0.148 | 0.143 | 0.144 | 0.156 |
| Traffic | 0.686 | 0.701 | 0.686 | 0.684 | 0.687 | 0.683 | 0.686 |
| Weather | 0.922 | 0.936 | 0.930 | 0.926 | 0.926 | 0.933 | 0.941 |
| Hospital | 0.813 | 0.797 | 0.801 | 0.797 | 0.808 | 0.797 | 0.800 |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Series-wise | Time-wise | ||||||
|---|---|---|---|---|---|---|---|
| Methods | Bootstrap | Holdout | Kf-CV | K-MC-CV | K-Bootstrap | K-Holdout | Time-CV |
| ECL | 0.586 | 0.595 | 0.585 | 0.586 | 0.586 | 0.606 | 0.574 |
| Exchange | 0.152 | 0.168 | 0.141 | 0.146 | 0.143 | 0.145 | 0.159 |
| Traffic | 0.700 | 0.675 | 0.690 | 0.698 | 0.690 | 0.690 | 0.695 |
| Weather | 1.063 | 0.921 | 0.939 | 0.939 | 0.939 | 0.939 | 1.148 |
| Hospital | 0.806 | 0.807 | 0.800 | 0.796 | 0.806 | 0.821 | 0.808 |
| Series-wise | Time-wise | ||||||
|---|---|---|---|---|---|---|---|
| Methods | Bootstrap | Holdout | Kf-CV | K-MC-CV | K-Bootstrap | K-Holdout | Time-CV |
| ECL | 0.598 | 0.595 | 0.602 | 0.583 | 0.598 | 0.598 | 0.583 |
| Exchange | 0.151 | 0.142 | 0.145 | 0.149 | 0.141 | 0.141 | 0.147 |
| Traffic | 0.686 | 0.684 | 0.684 | 0.684 | 0.684 | 0.686 | 0.687 |
| Weather | 0.945 | 0.898 | 0.940 | 0.920 | 0.942 | 0.920 | 1.050 |
| Hospital | 0.840 | 0.813 | 0.795 | 0.797 | 0.801 | 0.796 | 0.803 |
| Series-wise | Time-wise | ||||||
|---|---|---|---|---|---|---|---|
| Methods | Bootstrap | Holdout | Kf-CV | K-MC-CV | K-Bootstrap | K-Holdout | Time-CV |
| ECL | 0.604 | 0.586 | 0.585 | 0.615 | 0.615 | 0.606 | 0.574 |
| Exchange | 0.152 | 0.148 | 0.154 | 0.142 | 0.152 | 0.154 | 0.159 |
| Traffic | 0.721 | 0.654 | 0.690 | 0.690 | 0.700 | 0.654 | 0.695 |
| Weather | 0.920 | 0.939 | 0.939 | 0.926 | 0.939 | 0.943 | 1.148 |
| Hospital | 0.787 | 0.821 | 0.796 | 0.796 | 0.803 | 0.796 | 0.802 |
| Series-wise | Time-wise | ||||||
|---|---|---|---|---|---|---|---|
| Method | Bootstrap | Holdout | Kf-CV | K-MC-CV | K-Bootstrap | K-Holdout | Time-CV |
| MAPEE | 0.105 | 0.166 | 0.133 | 0.135 | 0.136 | 0.129 | 0.112 |
| Overoptimism | 0.282 | 0.336 | 0.245 | 0.336 | 0.227 | 0.255 | 0.327 |
| Accuracy | 0.091 | 0.455 | 0.364 | 0.091 | 0.182 | 0.273 | 0.182 |
| Regret | 0.031 | 0.008 | 0.073 | 0.021 | 0.022 | 0.018 | 0.043 |
| Series-wise | Time-wise | ||||||
|---|---|---|---|---|---|---|---|
| Method | Bootstrap | Holdout | Kf-CV | K-MC-CV | K-Bootstrap | K-Holdout | Time-CV |
| MAPEE | 0.134 | 0.118 | 0.120 | 0.157 | 0.121 | 0.133 | 0.103 |
| Overoptimism | 0.336 | 0.4 | 0.291 | 0.236 | 0.264 | 0.264 | 0.309 |
| Accuracy | 0.364 | 0.273 | 0.182 | 0.364 | 0.182 | 0.273 | 0.455 |
| Regret | 0.019 | 0.035 | 0.028 | 0.014 | 0.015 | 0.017 | 0.014 |
| Series-wise | Time-wise | ||||||
|---|---|---|---|---|---|---|---|
| Method | Bootstrap | Holdout | Kf-CV | K-MC-CV | K-Bootstrap | K-Holdout | Time-CV |
| MAPEE | 0.122 | 0.140 | 0.119 | 0.127 | 0.122 | 0.132 | 0.114 |
| Overoptimism | 0.327 | 0.382 | 0.236 | 0.227 | 0.273 | 0.264 | 0.336 |
| Accuracy | 0.273 | 0.364 | 0.182 | 0.455 | 0.091 | 0.091 | 0.182 |
| Regret | 0.019 | 0.016 | 0.032 | 0.012 | 0.020 | 0.026 | 0.043 |