TL;DR
This paper introduces TimeFound, a novel transformer-based foundation model for zero-shot time series forecasting. By employing a multi-resolution patching strategy to capture temporal patterns at various scales and pre-training on a massive, diverse dataset, TimeFound demonstrates strong generalization capabilities, outperforming existing state-of-the-art models on unseen datasets without task-specific fine-tuning.
What Problem Does This Paper Address?
Traditional deep learning models for time series forecasting, while powerful, often require extensive task-specific training data. This reliance limits their applicability in scenarios with scarce data or when forecasting across diverse domains and horizons, necessitating "zero-shot" forecasting capabilities. The paper aims to bridge this gap by developing a generalizable foundation model that can perform well on unseen time series data without any further training. This is inspired by the success of large language models (LLMs) in natural language processing, aiming to create a similar paradigm shift for time series forecasting.
Methods
TimeFound is built upon an encoder-decoder transformer architecture, similar to T5. The key innovations lie in its input processing and pre-training strategy:
- Multi-Resolution Patching: Instead of using fixed-size patches for time series data (analogous to tokenization in NLP), TimeFound employs a strategy that divides the time series into patches of multiple different sizes. This allows the model to capture temporal patterns at various scales, which is crucial for handling diverse time series dynamics and frequencies across different domains.
- Input Module: This module first normalizes the input time series using standard scaling to mitigate scale biases. Then, it applies the multi-resolution patching. These patches are then projected into a latent space using projectors specific to each patch size. A point-level binary mask is used to handle padding. Finally, patch embeddings from different resolutions are fused by upsampling and summing them to create a unified input sequence for the transformer.
- Encoder-Decoder Transformer: The encoder uses bi-directional attention to capture historical context, while the decoder uses causal attention for auto-regressive forecasting. Cross-attention in the decoder helps leverage encoded information for predictions.
- Output Module: This module projects the decoder's output into future predictions. It can generate both point forecasts and probabilistic (quantile) forecasts.
- Training Objective: The model is pre-trained using a combination of Mean Squared Error (MSE) loss and Quantile Loss (QL) on a large, diverse time series corpus. This dual objective encourages both accurate point predictions and robust uncertainty estimation.
Datasets
- Pre-training: TimeFound is pre-trained on a large time-series corpus comprising both real-world and synthetic datasets. This corpus is based on the dataset introduced by [Ansari et al., 2024], which includes diverse domains (energy, finance, weather) and frequencies (from minutes to yearly). Data augmentation techniques like TSMixup and Gaussian processes are used to enhance diversity.
- Evaluation: The model is evaluated on 24 unseen datasets, largely consistent with the benchmark introduced in [Ansari et al., 2024]. These datasets cover various domains and granularities. Two evaluation settings are used:
- Standard Last Window: Evaluating performance on the final test window of each dataset.
- Rolling Validation: Evaluating long-horizon forecasting performance by performing rolling predictions across the entire test set on a subset of popular long sequence datasets (ETTh1, ETTh2, ETTm1, ETTm2).
Key Insights and Ideas
- Multi-resolution patching is key for generalization: The paper strongly suggests that capturing temporal patterns at multiple scales through multi-resolution patching is critical for building a generalizable foundation model that can handle diverse time series.
- Patch-based modeling outperforms point-based for long horizons: The results in the rolling validation setting indicate that patch-based modeling (as used by TimeFound, TimesFM, Chronos) is superior to point-based auto-regressive generation for long-horizon forecasting, as it helps mitigate error accumulation.
- Foundation models can achieve strong zero-shot performance: The success of TimeFound demonstrates that pre-training on a massive, diverse dataset can equip models with significant zero-shot forecasting capabilities, reducing the need for extensive fine-tuning.
- A unified approach for diverse time series: The model's ability to perform well across various domains and forecasting horizons highlights the potential for a single foundation model to serve as a universal forecaster.
Key Results
- Superior Zero-Shot Performance: TimeFound achieves competitive or superior zero-shot forecasting performance compared to state-of-the-art foundation models like TimesFM and Chronos on 24 unseen datasets.
- Best Average Performance (MASE): In the standard last window setting, TimeFound achieved the best average performance (geometric mean of MASE), indicating strong generalization across diverse scenarios.
- Strong Long-Horizon Forecasting: In the rolling validation setting, TimeFound demonstrated the best overall performance on long-horizon zero-shot forecasting tasks, consistently delivering strong results across different horizon lengths.
- Model Sizes: The paper pre-trained TimeFound in two sizes: TimeFound-Base (200M parameters) and TimeFound-Large (710M parameters).
Limitations and Future Work
- Univariate Focus: The current work focuses on univariate forecasting, although the authors mention that the univariate model can be applied to multivariate time series by performing channel-independent forecasting.
- Computational Cost: Pre-training large foundation models is computationally intensive.
- Future Work: The paper suggests that future work could explore extending the model to multivariate time series forecasting more directly and investigating more advanced pre-training strategies. The authors also highlight the importance of patch-based modeling for long-horizon forecasting, suggesting further research in this area.
Summary updated