Abstract
Can meta-learning discover generic ways of processing time series (TS) from a diverse dataset so as to greatly improve generalization on new TS coming from different datasets? This work provides positive evidence to this using a broad meta-learning framework which we show subsumes many existing meta-learning algorithms. Our theoretical analysis suggests that residual connections act as a meta-learning adaptation mechanism, generating a subset of task-specific parameters based on a given TS input, thus gradually expanding the expressive power of the architecture on-the-fly. The same mechanism is shown via linearization analysis to have the interpretation of a sequential update of the final linear layer. Our empirical results on a wide range of data emphasize the importance of the identified meta-learning mechanisms for successful zero-shot univariate forecasting, suggesting that it is viable to train a neural network on a source TS dataset and deploy it on a different target TS dataset without retraining, resulting in performance that is at least as good as that of state-of-practice univariate forecasting models.
Introduction
Deep learning has revolutionized many fields, but in univariate time-series forecasting, it often faces a "cold start" problem. Traditional statistical models, such as ARIMA or ETS, are essentially "plug-and-play": they estimate parameters on a single series and provide a forecast immediately. In contrast, standard deep neural networks typically require massive, problem-specific datasets and extensive training before they become useful.
This research addresses a fundamental question: Can we learn a "general theory of forecasting" from a diverse set of time series and apply it to a completely new dataset without any further training? This concept, known as zero-shot transfer, would allow practitioners to deploy high-performing neural models even when historical data for a specific task is scarce.
Methodology
The paper presents two major contributions: a unified theoretical framework for meta-learning and an empirical validation through the lens of the N-BEATS architecture.
A Unified Meta-Learning Framework
The authors define a broad framework consisting of an "inner loop" for fast adaptation to a specific task and an "outer loop" for slow learning of general patterns across many tasks. They demonstrate that several prominent meta-learning algorithms, including MAML and Prototypical Networks, are special cases of this framework.
N-BEATS as Meta-Learning
A key theoretical insight is the re-interpretation of N-BEATS, a state-of-the-art forecasting architecture. The authors prove that N-BEATS’ "doubly residual" structure—where each block subtracts its "backcast" from the input—is mathematically equivalent to an iterative meta-learning update. As a time series passes through the blocks, the model effectively adapts its internal parameters to that specific series on-the-fly, eliminating the need for gradient descent at inference time.
Datasets
The study utilizes several classic forecasting benchmarks and introduces a massive new dataset:
- M4 & M3: The gold standards of forecasting competitions, containing 100,000 and 3,003 series respectively.
- Tourism: Monthly, quarterly, and yearly indicators of tourism activity.
- Electricity & Traffic: High-frequency hourly data representing utility usage and road occupancy.
- FRED: A new large-scale dataset derived from Federal Reserve Economic Data, containing 290,000 diverse economic time series, serving as a robust "source" dataset for training general-purpose models.
Key Insights and Ideas
Residuals as Adaptation Mechanisms
While residual connections are often viewed as a means to facilitate gradient flow, this paper argues they serve a functional purpose in forecasting: allowing the model to gradually expand its expressive power for a specific input series. Each block acts as a sequential update to the previous one.
The Power of Non-linearity and Weight Sharing
The meta-learning effect relies on internal non-linear functions. Without non-linearity, multiple blocks would collapse into a single linear operator, losing the ability to adapt to the specific data's curvature. Furthermore, the authors found that weight sharing across blocks—using the same parameters for every adaptation step—provided the best generalization and allowed for significant model compression (10–30x) without sacrificing accuracy.
Cross-Domain Transfer
Surprisingly, a model does not necessarily need to see "similar" data to forecast well. A model trained on monthly economic data (FRED) can, after simple scale normalization, produce high-quality forecasts for hourly electricity demand. This suggests fundamental "shapes" in time-series data transcend specific domains.
Key Results
The empirical results challenge the necessity of task-specific training for deep learning models in forecasting.
- Beating the Experts: An N-BEATS model trained on the M4 dataset and tested zero-shot on the M3 dataset outperformed the original M3 competition winner (the Theta method).
- Generalization: In almost all cases, the zero-shot N-BEATS model (trained on M4 or FRED) performed as well as, or better than, advanced statistical models specifically fit to the target data.
Limitations and Future Work
- Scaling Requirement: Zero-shot transfer across different domains requires a specific scaling/descaling preprocessing step to handle varying magnitudes (e.g., GDP vs. temperature).
- Univariate Focus: This work focuses on univariate forecasting. Extending this meta-learning logic to multivariate settings remains a future challenge.
- Few-Shot Learning: Future research could explore the "few-shot" regime, where a pre-trained model is slightly fine-tuned on a small amount of target data.
Summary updated