TL;DR: Google researchers have introduced TimesFM, a 200-million-parameter foundation model for time-series forecasting. By pretraining a decoder-only transformer on a massive corpus of 100 billion real and synthetic data points, TimesFM achieves out-of-the-box (zero-shot) forecasting accuracy that rivals or beats state-of-the-art supervised models specifically trained on target datasets.
The Challenge of Time-Series Foundation Models
In Natural Language Processing (NLP), Large Language Models (LLMs) act as "foundation models"—massive networks trained on internet-scale data that can perform a variety of text tasks zero-shot, without task-specific fine-tuning.
The authors ask a compelling question: Can we replicate this success for time-series forecasting?
Historically, time-series models are trained from scratch for every specific dataset (e.g., retail sales, server loads, weather). Building a universal time-series model is notoriously difficult because:
- There is no fixed "vocabulary" or grammar for numerical data.
- Time-series have wildly varying context lengths (history), prediction horizons (future), and granularities (minutes, days, months).
- There is a massive shortage of publicly available, high-quality time-series data compared to text.
TimesFM Architecture: Asymmetric Patching
To solve these challenges, the authors built TimesFM (Time-series Foundation Model) using several clever architectural choices.
- Decoder-Only Architecture: Similar to GPT models, TimesFM is trained to look at a sequence of past data and predict the next sequence.
- Patching (Tokens for Time-Series): Instead of feeding the model one data point at a time, the time-series is chopped into contiguous blocks called "patches" (e.g., 32 time-steps). These patches are processed into vectors, acting as the time-series equivalent of "words" or "tokens."
- Asymmetric Patching (The Novel Twist): In standard LLMs, you predict one token at a time. For long-horizon forecasting, doing this step-by-step causes errors to compound. TimesFM solves this by making the output patch longer than the input patch (e.g., inputting 32 steps to predict 128 steps at once). This drastically reduces the number of autoregressive steps needed to forecast far into the future.
- Random Masking: To ensure the model can handle any arbitrary context length (not just exact multiples of the patch size), the authors randomly mask out parts of the first input patch during training.
Pretraining Data Strategy
Because public time-series data is scarce, the authors had to get creative to build a ~100 billion time-point pretraining corpus:
- Real-World Data: 15 years of Google Trends search interest, Wikipedia Pageviews, and standard benchmarks like M4, Traffic, and Electricity datasets.
- Synthetic Data: 3 million generated time-series combining ARMA processes, seasonal patterns (sines/cosines), and trends.
Insight: Synthetic data proved to be a secret weapon. Real-world data is heavily biased toward hourly or daily frequencies. The model initially struggled with underrepresented granularities (like 15-minute intervals) until the authors injected synthetic data. This synthetic data acted as "connective tissue," allowing the model to generalize to any frequency.
Key Results and Zero-Shot Performance
The model was evaluated zero-shot—meaning it never saw the evaluation data during training—on the Monash Forecasting Archive (18 datasets), Darts benchmarks (8 datasets), and Informer/ETT datasets.
- Crushing the Baselines: On the diverse Monash archive, TimesFM outperformed zero-shot LLM baselines (like GPT-3 via
llmtime) by over 25% and beat supervised deep learning models like DeepAR. - Matching Supervised SOTA: On the Informer (ETT) datasets, zero-shot TimesFM matched or beat PatchTST, a state-of-the-art model that was fully trained on the target data.
- Data Efficiency: When the authors did fine-tune TimesFM using just 10% of a target dataset, it outperformed baseline models that were trained on 100% of the dataset.
- Scaling Laws: The authors trained 17M, 70M, and 200M parameter versions of the model and observed a clear, predictable decrease in error rates as compute and model size increased. Notably, at 200 million parameters, TimesFM is tiny compared to modern LLMs, yet vastly outperforms massive LLMs prompted to do math.
Limitations and Future Work
- Point Forecasting Only: Currently, TimesFM outputs exact point predictions. Adding probabilistic forecasting (outputting confidence intervals or quantiles) is a crucial next step for real-world risk management.
- No Covariates: The pre-trained model only looks at the raw historical numbers. It doesn't natively ingest external variables (like weather, holidays, or day-of-the-week) out-of-the-box, though these can be added if the model is fine-tuned.
- Interpretability: Like most deep learning models, TimesFM is a black box compared to traditional statistical methods (like ARIMA), making it harder to explain why it made a specific forecast.
Summary updated