Investigating the effects of the patch size in Time Series Foundation Models
Organizations: Université Paris-Saclay, Inria, CEA Palaiseau, France · CMAP, École polytechnique, IP Paris Électricité de France R&D Palaiseau, France · CMAP, École polytechnique, IP Paris Palaiseau, France · Université Paris-Saclay, Inria, CNRS, LISN Gif-sur-Yvette, France
Abstract
Patch size is a central design choice in patch-based time-series foundation models, controlling temporal resolution, sequence length, and computational cost. We study how this choice interacts with transformer architecture through a controlled comparison of encoder-only and decoder-only forecasting models trained with the same data mixture and optimization budget. Across 97 GIFT-Eval tasks, encoder-only models consistently benefit from smaller patches, whereas decoder-only performance follows a U-shaped trend, with an intermediate patch size performing best in aggregate. Dataset-level results further show that the preferred decoder patch size increases with the forecasting horizon. For encoder-only models, increasing context length improves performance across patch sizes, although the gains diminish beyond a context length of 2048. Finally, training-compute and CPU-latency Pareto analyses reveal complementary regimes: decoder-only models provide efficient low-cost alternatives, while encoder-only models attain the highest overall accuracy. These results show that the choice of patch size and architecture should be made depending on the forecasting horizon and deployment constraints.
Figures & tables
| Model family | Patch size | Context length |
|---|---|---|
| Encoder-only | 4 | 1024 |
| Encoder-only | 8 | 1024, 2048 |
| Encoder-only | 16, 32, 64 | 1024, 2048, 4096 |
| Decoder-only | 16, 32, 64, 128, 256 | 2048 |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Layers | Heads | Quantiles | Parameters | |
|---|---|---|---|---|---|
| Encoder-only | 1024 | 20 | 16 | 99 | - M |
| Decoder-only | 1024 | 20 | 16 | 9 | – M |
| Model family | Context length | |||||||
|---|---|---|---|---|---|---|---|---|
| Encoder-only | 1024 | 5 | 5 | 5 | 5 | 5 | – | – |
| Encoder-only | 2048 | – | 5 | 5 | 5 | 1 | – | – |
| Encoder-only | 4096 | – | – | 5 | 5 | 5 | – | – |
| Decoder-only | 2048 | – | – | 1 | 2 | 3 | 3 | 3 |
Time-Series Foundation Models
Time-series foundation models are pretrained sequence models designed to transfer across forecasting, classification, anomaly detection, and other temporal tasks.
See all 320 papers