TimesFM (Time-series Foundation Model) is a forecasting foundation model based on a decoder-only Transformer, pretrained on a large amount of time-series data. It splits a series into short segments (patches) used as tokens and learns to predict "the next segment," just as a language model predicts the next word. On data it was never trained on, it forecasts without additional training (zero-shot) with accuracy close to models trained specifically for that data. Das, Kong, Sen, and Zhou of Google Research introduced it in 2023 in "A decoder-only foundation model for time-series forecasting," published at ICML 2024.
Earlier deep learning forecasting models (DeepAR, N-BEATS, PatchTST, and others) were typically trained per dataset. The paper asks whether, as with language models, "a single large pretrained model can be applied directly to new series," and achieves this through two ingredients:
- Large, diverse training data: Hundreds of billions of time points combining Google Trends search interest, Wikipedia page views, synthetic series, and more (about 380 billion points in total in Table 1 of the paper). It covers a range of granularities, including hourly, daily, weekly, and monthly.
- A decoder-only Transformer with patches as input: It has the same form as a language model and can be pretrained efficiently.
The model has 200 million parameters, far smaller than large language models. Even so, it was more accurate than using language models such as GPT-3 directly for forecasting (llmtime).
In this article, the past span used as the basis for forecasting is called the context window (length in the paper's notation; also called the context), and the span to be forecast is called the horizon (length ). TimesFM produces the horizon in units of output patches (length 128), repeating until the required length is reached.

