TimesFM (Time Series Foundation Model) is a pretrained decoder-only transformer developed by Google Research that forecasts future values of a time series without training on the target dataset. In time series & forecasting, it belongs to the class of time series foundation models, which apply the pretrain-once, use-anywhere approach of large language models to numerical sequences.
Introduced in a 2024 paper presented at ICML and released with open weights, TimesFM was pretrained on roughly 100 billion real and synthetic time points. It delivers zero-shot forecasts whose accuracy on public benchmarks is often close to supervised models trained specifically for each dataset, which makes it a practical baseline for teams with many series and little modeling time.
How TimesFM turns a history into a forecast
TimesFM forecasts by splitting the input history into fixed-length patches, embedding each patch as a token and predicting the next patches autoregressively with causal self-attention. The design mirrors a language model, except that the tokens are short numeric windows rather than words.
- The context window is normalized per series, so the model sees shapes rather than absolute magnitudes.
- Each input patch of 32 points passes through a residual multilayer perceptron that produces a token embedding.
- A stack of decoder-only transformer layers attends only to earlier patches.
- An output block maps each token to a longer output patch of 128 points, which lets the model cover long horizons in few steps.
- For horizons beyond one output patch, predictions are fed back as new context and decoding continues.
The asymmetry between short input patches and long output patches is a deliberate choice. It reduces the number of autoregressive steps, which limits the error accumulation that affects recursive forecasting with short steps.
Pretraining data and model versions
The breadth of the pretraining corpus is what allows TimesFM to generalize. Google combined search interest series from Google Trends, Wikipedia page views, public benchmark collections and large volumes of synthetic series generated from autoregressive, seasonal and trend processes to cover patterns that real data underrepresents.
The model has been released in several versions, each changing size, maximum context or output options. Version details matter because context length directly limits how much history, and therefore how many seasonal cycles, the model can use.
| Version | Parameters | Maximum context | Notable change |
|---|---|---|---|
| TimesFM 1.0 | About 200 million | 512 points | Original research release |
| TimesFM 2.0 | About 500 million | 2,048 points | Larger model and longer context |
| TimesFM 2.5 | About 200 million | Up to about 16,000 points | Smaller model, optional quantile head |
Beyond the open checkpoints, the model is offered inside BigQuery ML through a forecasting function, so analysts can call it from SQL without managing infrastructure. Exact limits differ between releases, so practitioners should verify the settings of the checkpoint they deploy.
TimesFM compared with other forecasting approaches
TimesFM competes with both classical statistical methods and other deep forecasters, and the right choice depends on data volume, need for interpretability and available compute. The table below contrasts the main families.
| Approach | Training on target data | Strengths | Weaknesses |
|---|---|---|---|
| TimesFM | None required | Fast deployment across many series | Limited native covariate support |
| ARIMA and ETS | Per series fitting | Interpretable and statistically grounded | Manual tuning for each series |
| DeepAR and PatchTST | Supervised on the dataset | Strong accuracy with enough data | Requires training pipeline and tuning |
| Chronos | None required | Probabilistic tokenized forecasts | Slower sampling at inference |
| TimeGPT | None required | Hosted service with fine-tuning | Closed weights and external API |
In published evaluations, TimesFM in zero-shot mode matched or approached tuned supervised baselines on collections such as the Monash archive and Darts. It does not consistently beat a well-tuned seasonal naive forecast or ETS model on every series, which is why benchmarking on one’s own data remains essential.
The decisive advantage of TimesFM is operational rather than purely statistical. A single pretrained model can serve thousands of series, including new ones with short histories, without maintaining a separate fitted model per series. That property makes it attractive as a global forecasting model in organizations where data science capacity is the real bottleneck.
Configuring TimesFM for practical use
Using TimesFM well depends on a few inference settings rather than on training. The most influential settings are context length, horizon, frequency handling and whether probabilistic output is requested.
| Setting | Typical choice | Effect on the forecast |
|---|---|---|
| Context length | Several seasonal cycles | More history captures seasonality and trend |
| Forecast horizon | One to a few output patches | Longer horizons add recursive uncertainty |
| Frequency indicator | High, medium or low | Guides the model toward plausible dynamics |
| Quantile output | 10th to 90th percentile | Supports risk-aware planning decisions |
| Covariate regression | Known future drivers | Adds effects of prices or holidays |
Because the model was trained without external drivers, exogenous covariates are handled through an auxiliary in-context regression rather than inside the transformer itself. Teams with strong promotion or price effects should test whether this add-on captures them adequately.
Limitations and common mistakes with TimesFM
TimesFM is a strong general-purpose baseline, but it has clear limits. It cannot know about structural breaks absent from the history, and its quantile estimates are not guaranteed to be calibrated for a specific domain.
- Too short a context hides weekly or yearly seasonality and degrades accuracy.
- Skipping a baseline comparison risks adopting a model that loses to a naive forecast.
- Ignoring intermittent demand leads to poor results on sparse series with many zeros.
- Assuming no leakage is unsafe, since public benchmarks may overlap the pretraining corpus.
Evaluation should use rolling-origin time series cross-validation with metrics such as MASE, because a single holdout window can flatter or punish any model by chance.
A non-technical view
TimesFM is a computer model that predicts what comes next in a series of numbers. Examples are daily sales, web traffic or energy use. Google trained it on a huge number of past series.
Because of that training, it has seen many common patterns. It knows weekly cycles, slow growth and sudden dips. You can give it a new history, and it makes a forecast right away. Nobody needs to build a model first. It works a little like an experienced planner who has studied thousands of charts. It is a good starting point, not a guarantee, so its forecasts should still be checked against simpler methods.
A concrete example
A regional grocery chain needs weekly demand forecasts for about 12,000 product and store combinations. Its analytics team previously fitted separate ETS models, which took hours to tune and broke whenever new products appeared with little history.
The team runs TimesFM in zero-shot mode with two years of weekly history as context and a 13-week horizon. On a rolling evaluation over the last six months, TimesFM reduces MASE by roughly 8 percent against the existing ETS setup on regular items, while a seasonal naive baseline still performs better on a small group of highly intermittent products.
The outcome is a hybrid process: TimesFM forecasts most of the catalog in minutes, a dedicated intermittent demand method covers sparse items, and planners use the quantile output to set safety stock.