Introduction
In time series forecasting, the prevailing academic trend focuses on developing increasingly complex model architectures to achieve State-of-the-Art (SOTA) performance. However, industrial applications often reveal that the strategy employed to train and deploy these models is as critical as the architecture itself. Existing libraries, while powerful, often impose rigid constraints on forecasting strategies or struggle with non-aligned data.
Tsururu is an open-source Python library designed to bridge this gap. It shifts the focus from "which model to use" to "which strategy to apply." By providing a modular framework, Tsururu enables researchers and practitioners to experiment with various global/multivariate approaches and multi-step prediction strategies, unlocking predictive potential that standard implementations frequently overlook.
The Tsururu Framework
Tsururu’s core innovation lies in its modular architecture, which strictly separates the underlying model from the forecasting strategy. This allows for a "mix-and-match" approach to pipeline construction.
As illustrated in the overview above, the pipeline encompasses preprocessing, feature generation, strategy selection, and model training. The library supports a wide array of models, ranging from gradient boosting (CatBoost, SketchBoost) to advanced deep learning architectures like PatchTST and GPT4TS.
Multi-step Forecasting Strategies
Tsururu implements several key strategies for multi-step prediction:
- Recursive: Predicts a single step and feeds it back as input for the next.
- MIMO (Multi-Input Multi-Output): Predicts the entire horizon simultaneously.
- Direct: Utilizes separate model instances for each step in the horizon.
- FlatWideMIMO (FWM): An effective but underutilized approach that treats the horizon index as an input feature.
- Recursive-MIMO: A hybrid approach that combines elements of both strategies.
Advanced Preprocessing and Normalization
A standout feature of Tsururu is the LastKnownNormalizer (LKN). Unlike standard global scaling, LKN normalizes data relative to the most recent observed value in the history. This technique helps models adapt to local shifts in data distribution, a common challenge in real-world time series.
Experimental Results and Insights
The authors evaluated Tsururu using the Influenza-Like Illness (ILI) dataset, a benchmark known for its complex temporal structures and annual periodicity.
Strategy as a Hyperparameter
The experiments confirmed that the optimal strategy is model-dependent. For instance, while MIMO is often the default for neural networks, the hybrid Rec-MIMO strategy yielded superior results for several top-tier models. Notably, GPT4TS paired with a Recursive (MH=6) strategy achieved the lowest Mean Absolute Error (MAE) of 0.7804.
Statistical Significance of LKN
The impact of preprocessing was rigorously tested. A Critical Difference Diagram demonstrates that the combination of standard scaling and LKN is statistically superior to other common normalization methods.
Key Findings
- Global vs. Multivariate: "Global" models (one model for all series) frequently outperformed complex multivariate models that attempt to capture inter-series dependencies.
- Boosting Performance: When combined with the FlatWideMIMO strategy, gradient boosting models remained highly competitive with modern deep learning approaches.
Conclusion and Future Work
Tsururu provides a robust platform for ablation studies and benchmarking in time series forecasting. Future development aims to include more flexible strategies (e.g., DirRec), automated neural network construction, and support for mixed-frequency datasets. By treating the forecasting strategy as a primary hyperparameter, Tsururu offers a more comprehensive path toward optimizing predictive performance.
Summary updated