English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

Google TimesFM Explained: How a 200M-Parameter Time-Series Foundation Model Achieves Zero-Shot Forecasting

Forum topic · 小凯 · 2026-06-02

Summary

TimesFM is Google Research's open-source time-series foundation model built on a 200M-parameter decoder-only Transformer pretrained on 100 billion time points. The post explains its key innovations: continuous-value patches as tokens (32-point input patches, 128-point output patches), long output patches that cut autoregressive steps for long-horizon forecasting, and random masking that lets the model handle arbitrary context lengths. Pretrained mostly on Wikipedia page views (~374B points) plus Google Trends, synthetic ARMA/trend/seasonality data, and benchmark datasets, TimesFM achieves zero-shot accuracy close to or better than fully supervised models: scaled MAE of 0.6846 on the Monash Archive (beating N-BEATS) and 0.36 average MAE on ETT (matching PatchTST). TimesFM 2.5 (Sept 2025) halves parameters to 200M, extends context to 16,384 points, adds an optional 30M quantile head, and tops the GIFT-Eval zero-shot leaderboard. The article also covers limitations: bolted-on probabilistic forecasting, weak covariate support, no calendar features, untested robustness on dirty real-world data, and Wikipedia-heavy training bias.

Paper: *A decoder-only foundation model for time-series forecasting* (ICML 2024) GitHub: google-research/timesfm (16K+ stars) Latest version: TimesFM 2.5 (September 2025)

TL;DR

TimesFM is the first open-source time-series foundation model from Google Research. Using a 200M-parameter decoder-only Transformer pretrained on 100 billion time points, its zero-shot forecasting accuracy rivals or beats fully supervised models trained per dataset. TimesFM 2.5 (2025) halves the parameters, extends the context 8x, and tops the GIFT-Eval zero-shot leaderboard.

Why it matters

Time-series forecasting underpins finance, energy, retail, and supply chains. The traditional approach trains and tunes a separate model per dataset (ARIMA's p/d/q, Transformer layers/heads, PatchTST patch sizes), making transfer costly. GPT showed NLP could be "pretrain once, use zero-shot everywhere." TimesFM asks whether time series can work the same way. The answer is yes — but token definition has to be reinvented.

Architecture: Patched decoder-only Transformer

| Component | Config | |---|---| | Architecture | Decoder-only Transformer | | Layers | 20 | | Model dimension | 1280 | | Attention heads | 16 | | Parameters | 200M | | Input patch length | 32 | | Output patch length | 128 | | Max context | 512 → 16,384 (v2.5) |

Continuous patches as tokens. Time series have no discrete vocabulary, so TimesFM groups 32 consecutive points into an input patch (via an InputResidualBlock MLP mapped to dim 1280) and treats each patch as one token, processed by 20 layers of causal self-attention.

Output patches longer than input patches. Unlike LLMs that generate one token at a time, TimesFM predicts 128 future points per output patch. Forecasting 256 steps needs just 2 autoregressive steps instead of 8, substantially reducing error accumulation and compute.

Arbitrary-context masking. During training, a random number r ∈ [0, 31] of leading points is masked from the first patch, so the model sees every context length from 1 to 512. At inference, non-multiple lengths are zero-padded with masking flags.

Pretraining data: 100B time points

| Source | Points | |---|---| | Wikipedia page views (2012–2023) | ~374B (dominant) | | Google Trends (22K queries) | ~540M | | Synthetic data (ARMA + trends + seasonality + steps) | 6.1B | | M4 competition dataset | ~23M | | Electricity/traffic/weather/traffic benchmarks | ~200M |

The mix is 80% real / 20% synthetic, with real data grouped equally by frequency. Synthetic series combine 2–8 piecewise-linear trends, ARMA(p,q), and sinusoids with random weights. Training used TPUv5e, global batch size 4096, peak LR 5e-4 with cosine decay, 1.5M steps — only 2 days for the 200M model.

Results: zero-shot ≈ fully supervised

Monash Archive (18 datasets, geometric mean scaled MAE):

  • TimesFM (zero-shot): 0.6846
  • N-BEATS (supervised): 0.7005
  • PatchTST (zero-shot): 0.8619
  • llmtime / GPT-3 (zero-shot): 0.9371
  • ETT (8 tasks, avg MAE): TimesFM zero-shot 0.36 vs PatchTST supervised 0.37 (not statistically significant). On ETTm1-96, TimesFM zero-shot MAE is 0.19 vs PatchTST supervised 0.33 — 42% better with no task-specific training.

    TimesFM 2.5: smaller, longer, stronger

    | Dimension | 2.0 | 2.5 | |---|---|---| | Parameters | 500M | 200M | | Context length | 2048 | 16,384 | | Probabilistic forecasting | No | Optional 30M quantile head | | Frequency indicator | Required | Auto-inferred | | GIFT-Eval | Top tier | Zero-shot #1 (point + probabilistic) |

    Halving parameters while improving accuracy suggests architecture and data efficiency matter more than scale. The 16K context lets the model see multiple seasonalities (yearly + weekly + daily) at once without manual preprocessing.

    Competitive landscape

  • TimesFM (Google): decoder-only, 200M, open source; long output patches + masking
  • Chronos (Amazon): encoder-decoder (T5-based), tokenized time series
  • MOIRAI (Salesforce): encoder-decoder, multi-scale patches
  • Time-MoE: decoder-only + MoE, 50M params, 300B training points
  • TimeGPT (Nixtla): closed source, first to propose the concept
  • llmtime: encodes series as text for GPT-3.5/4, extremely costly
  • TimesFM's edge is engineering completeness: open weights, PyTorch/Flax backends, HuggingFace hosting, BigQuery integration.

    Limitations

    1. Probabilistic forecasting was bolted on — the original paper is point-prediction only; the 2.5 quantile head is an add-on, unlike Chronos which models distributions during training. 2. Half-hearted covariate support — the paper admits "We did not pretrain with covariates"; zero-shot covariates are handled via residual linear regression only. 3. Calendar blindness — the model doesn't know day-of-week, month, or holidays, a hard gap for retail promotions and holiday traffic. 4. Boundaries of generality — Monash benchmarks are relatively clean; robustness to missing values, outliers, and regime shifts is untested. 5. Wikipedia bias — 374B of the training points come from Wikipedia page views, possibly overfitting to human-attention patterns and transferring poorly to domains like industrial sensors.

    Key takeaways

    1. A scaling law exists for time series, but tokenization must be reinvented — continuous patches with long output patches are the crux. 2. Output length > input length is an effective way to reduce autoregressive steps: time series can be predicted in blocks, unlike word-by-word text. 3. 200M parameters against 100B data points shows data efficiency, not parameter count, is the core advantage. 4. Zero-shot is the starting point: fine-tuning on 10% of data gains a further 12–19%. Best practice: zero-shot baseline plus light fine-tuning for production.

    References

  • Das, A., Kong, W., Sen, R., & Zhou, Y. (2023). *A decoder-only foundation model for time-series forecasting*. arXiv:2310.10688. ICML 2024.
  • Das, A., et al. (2024). *TimesFM with experimental quantiles*. GitHub: google-research/timesfm.
  • Das, A., Faw, M., Sen, R., & Zhou, Y. (2024). *In-Context Fine-Tuning for Time-Series Foundation Models*. arXiv:2410.24087.
  • GIFT-Eval Benchmark: https://huggingface.co/spaces/Salesforce/GIFT-Eval
  • TimesFM 2.5 on HuggingFace: https://huggingface.co/google/timesfm-2.5-200m-pytorch

Tags

#google#timesfm#time-series-forecasting#foundation-models#zero-shot-learning#transformers#machine-learning#open-source

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/177980733