Lag-Llama: Towards Foundation Models for Probabilistic Time Series Forecasting

Kashif Rasul, Arjun Ashok, Andrew Robert Williams, Hena Ghonia, Rishika Bhagwatkar +13 more
10/12/2023
cs.LGcs.AI

No official code found. Best implementation: time-series-foundation-models/lag-llama (1,602 stars, Apache-2.0, last commit 2025-06-06).

Abstract

Over the past years, foundation models have caused a paradigm shift in machine learning due to their unprecedented capabilities for zero-shot and few-shot generalization. However, despite the success of foundation models in modalities such as natural language processing and computer vision, the development of foundation models for time series forecasting has lagged behind. We present Lag-Llama, a general-purpose foundation model for univariate probabilistic time series forecasting based on a decoder-only transformer architecture that uses lags as covariates. Lag-Llama is pretrained on a large corpus of diverse time series data from several domains, and demonstrates strong zero-shot generalization capabilities compared to a wide range of forecasting models on downstream datasets across domains. Moreover, when fine-tuned on relatively small fractions of such previously unseen datasets, Lag-Llama achieves state-of-the-art performance, outperforming prior deep learning approaches, emerging as the best general-purpose model on average. Lag-Llama serves as a strong contender to the current state-of-art in time series forecasting and paves the way for future advancements in foundation models tailored to time series data.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Lag-Llama: Towards Foundation Models for Probabilistic Time Series Forecasting

1,602201Shell, PythonFeb 7, 20241 years agoApache-2.0
forecastingfoundation-modelslag-llamallamatime-series+6 more

Similar Papers

Cite this paper

@article{rasul2023lagllama,
  title  = {Lag-Llama: Towards Foundation Models for Probabilistic Time Series Forecasting},
  author = {Kashif Rasul and Arjun Ashok and Andrew Robert Williams and Hena Ghonia and Rishika Bhagwatkar and Arian Khorasani and Mohammad Javad Darvishi Bayazi and George Adamopoulos and Roland Riachi and Nadhir Hassen and Marin Biloš and Sahil Garg and Anderson Schneider and Nicolas Chapados and Alexandre Drouin and Valentina Zantedeschi and Yuriy Nevmyvaka and Irina Rish},
  year   = {2023},
  eprint = {2310.08278},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.08278v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.08278.svg)](https://codeofpaper.com/paper/2310.08278)

Discussion