TimesFM

On this page 7

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.

  1. The context window is normalized per series, so the model sees shapes rather than absolute magnitudes.
  2. Each input patch of 32 points passes through a residual multilayer perceptron that produces a token embedding.
  3. A stack of decoder-only transformer layers attends only to earlier patches.
  4. An output block maps each token to a longer output patch of 128 points, which lets the model cover long horizons in few steps.
  5. 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.

VersionParametersMaximum contextNotable change
TimesFM 1.0About 200 million512 pointsOriginal research release
TimesFM 2.0About 500 million2,048 pointsLarger model and longer context
TimesFM 2.5About 200 millionUp to about 16,000 pointsSmaller model, optional quantile head
Main TimesFM releases and their characteristics

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.

ApproachTraining on target dataStrengthsWeaknesses
TimesFMNone requiredFast deployment across many seriesLimited native covariate support
ARIMA and ETSPer series fittingInterpretable and statistically groundedManual tuning for each series
DeepAR and PatchTSTSupervised on the datasetStrong accuracy with enough dataRequires training pipeline and tuning
ChronosNone requiredProbabilistic tokenized forecastsSlower sampling at inference
TimeGPTNone requiredHosted service with fine-tuningClosed weights and external API
Forecasting approaches compared with TimesFM

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.

SettingTypical choiceEffect on the forecast
Context lengthSeveral seasonal cyclesMore history captures seasonality and trend
Forecast horizonOne to a few output patchesLonger horizons add recursive uncertainty
Frequency indicatorHigh, medium or lowGuides the model toward plausible dynamics
Quantile output10th to 90th percentileSupports risk-aware planning decisions
Covariate regressionKnown future driversAdds effects of prices or holidays
Key inference settings and their effects

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.