Abstract
Time series foundation models have recently gained a lot of attention due to their ability to model complex time series data encompassing different domains including traffic, energy, and weather. Although they exhibit strong average zero-shot performance on forecasting tasks, their predictions on certain critical regions of the data are not always reliable, limiting their usability in real-world applications, especially when data exhibits unique trends. In this paper, we propose a selective forecasting framework to identify these critical segments of time series using shapelets. We learn shapelets using shift-invariant dictionary learning on the validation split of the target domain dataset. Utilizing distance-based similarity to these shapelets, we facilitate the user to selectively discard unreliable predictions and be informed of the model's realistic capabilities. Empirical results on diverse benchmark time series datasets demonstrate that our approach leveraging both zero-shot and full-shot fine-tuned models reduces the overall error by an average of 22.17% for zero-shot and 22.62% for full-shot fine-tuned model. Furthermore, our approach using zero-shot and full-shot fine-tuned models, also outperforms its random selection counterparts by up to 21.41% and 21.43% on one of the datasets.
Introduction
Time Series Foundation Models (TSFMs), such as Chronos or Tiny Time Mixers (TTM), have significantly advanced the field of forecasting by providing robust zero-shot performance across diverse domains. However, these models often possess "blind spots"—specific segments where predictions become highly unreliable, particularly during abrupt structural shifts or unique local trends. In high-stakes environments like energy trading or traffic management, a model that is accurate "on average" but fails during critical volatility is insufficient.
This paper addresses the challenge of Selective Forecasting. The goal is to enable a model to recognize when a specific input pattern is likely to result in high error, allowing it to "abstain" from making a prediction. By identifying these high-risk zones, the reliability of the remaining forecasts is significantly enhanced.
Methodology
The proposed framework introduces a three-stage pipeline to augment TSFMs with self-awareness regarding their predictive limitations.
- Error Identification: A pre-trained TSFM (e.g., TTM) is evaluated on a validation dataset. Segments where the Mean Squared Error (MSE) exceeds a predefined threshold are flagged as "trouble zones."
- Shapelet Learning: The framework applies shift-invariant dictionary learning to these high-error segments to extract shapelets. These shapelets serve as interpretable "fingerprints" of local patterns that historically confuse the model, such as specific sharp dips or plateaus.
- Selective Discarding: During inference, the distance between new test samples and the learned shapelets is calculated using Z-normalized Euclidean distance. If a segment closely matches a known high-error shapelet, the prediction is discarded based on a user-defined "drop percentage" ($dp$).
This approach is model-agnostic and does not require retraining the underlying foundation model, making it a flexible add-on for existing systems.
Experimental Results
The framework was evaluated on six benchmark datasets, including the Electricity Transformer Temperature (ETT) subsets, Exchange Rate, and Traffic data. These datasets encompass various seasonalities and noise levels.
Key findings include:
- Significant Error Reduction: The framework reduced MSE by an average of 22.17% for zero-shot models and 22.62% for fine-tuned models.
- Superiority over Random Baselines: The shapelet-guided selection outperformed random discarding by up to 21.43%, proving that the learned shapelets effectively capture systematic model failures rather than random noise.
- Interpretability: Visual analysis confirmed that shapelets successfully identified specific problematic trends, such as steep downward movements preceding spikes in the Traffic dataset, providing engineers with intuitive insights into model weaknesses.
Discussion and Conclusion
The core philosophy of this work is that a missing prediction is often more valuable than a misleading one. By utilizing shapelets as interpretable proxies for uncertainty, the framework bridges the gap between black-box foundation models and the reliability requirements of real-world applications.
A current limitation is the potential for distribution shift; shapelets learned from historical validation data may not capture novel "trouble patterns" in evolving environments. Future research will explore adaptive shapelet learning to update the dictionary of high-risk patterns in real-time, ensuring the model remains self-aware as data distributions change.
Summary updated