TL;DR
This paper introduces Lag-Llama, a novel foundation model for probabilistic time-series forecasting. Lag-Llama demonstrates impressive zero-shot generalization capabilities on unseen datasets, outperforming traditional supervised methods, and the authors explore its scaling behavior with model size.
What Problem Does This Paper Address?
The field of time-series forecasting has traditionally focused on training models for specific domains and datasets. However, the success of "foundation models" in areas like natural language processing and computer vision has inspired researchers to explore similar large-scale, general-purpose models for time series. The challenge lies in building models that can generalize well to diverse, unseen time-series data without task-specific fine-tuning. This paper aims to address this by developing a foundation model for univariate probabilistic time-series forecasting and investigating its performance and scaling properties.
Methods
The core of this work is the Lag-Llama model, a transformer-based architecture inspired by LLaMA. A key innovation is the use of lag features as the primary input representation. Instead of using raw time series values or patches, Lag-Llama constructs input vectors by sampling historical values at specific time lags corresponding to the frequency of the data (e.g., daily, weekly, monthly). This approach is designed to capture temporal patterns and seasonalities effectively.
The model is trained on a large corpus of diverse time-series datasets in a self-supervised manner. For forecasting, it predicts the parameters of a chosen probability distribution (initially a Student's t-distribution) for future time steps. To handle the varying magnitudes of time series, a value scaling heuristic is employed, normalizing series based on their local mean and variance. The authors also investigate neural scaling laws to understand how the model's performance changes with its size and training data, fitting smoothly broken power-law functions to these relationships.
Datasets
Lag-Llama is trained on a large collection of time series datasets, including those from the Monash Time Series Repository and other commonly used sources. For evaluation, the paper specifically reserves the M4 Weekly and Traffic datasets. These datasets are kept completely unseen during training to rigorously test the model's out-of-distribution generalization capabilities.
Key Insights and Ideas
- Lag Features are Powerful: The paper highlights that using carefully chosen lag features, rather than raw data or patches, can be a highly effective way to represent time-series data for transformer models, especially for capturing seasonality.
- Zero-Shot Generalization is Achievable: Lag-Llama demonstrates that a single, large-scale model trained on diverse data can achieve competitive, and sometimes superior, performance on unseen time-series forecasting tasks without any task-specific fine-tuning.
- Scaling Matters: The research confirms that, similar to other domains, increasing the size of the model and the training data generally leads to improved performance in time-series forecasting.
- "Stable" Regime Identified: The authors observe a "stable" regime where the model consistently outperforms baselines beyond a certain model size, suggesting a threshold for effective generalization.
Key Results
- Lag-Llama shows good zero-shot prediction capabilities on unseen "out-of-distribution" time-series datasets.
- On the Traffic dataset, Lag-Llama outperforms all supervised baselines in zero-shot settings.
- While performance on M4 Weekly was not superior to baselines, the results indicate significant potential for further research and model improvements.
- The study fits empirical scaling laws for the zero-shot performance as a function of model size, allowing for extrapolation and prediction of future performance.
Limitations and Future Work
The authors acknowledge that this is a work-in-progress. Key limitations and future directions include:
- Ablation Studies: Further investigation into various architectural design choices and model selection strategies is planned.
- Leave-One-Out Evaluation: Assessing zero-shot performance across a wider spectrum of datasets by systematically leaving one out for testing.
- Few-Shot and Many-Shot Learning: Evaluating the model's performance after fine-tuning on downstream datasets.
- Scaling Further: Continuing to scale up model size and the diversity of training data.
- Distribution Heads: Exploring more expressive distribution heads beyond the Student's t-distribution, such as normalizing flows and copulas.
- Covariates: While the current model primarily uses lag features, future work could incorporate other forms of covariates.
Summary updated