Abstract
TimesFM (Time-series Foundation Model) is a 200-million parameter decoder-only transformer designed to bring the success of Large Language Models to the domain of time-series forecasting. Trained on a massive corpus of 100 billion real-world and synthetic timepoints, TimesFM demonstrates remarkable zero-shot capabilities, rivaling or exceeding the performance of specialized, state-of-the-art supervised models across diverse datasets.
Introduction
The "foundation model" paradigm has revolutionized natural language processing, where models like GPT-4 perform complex tasks without explicit task-specific training. Researchers at Google Research have extended this concept to time-series forecasting with TimesFM. This model suggests that a single, large-scale pretrained model can provide high-accuracy "out-of-the-box" forecasts for a wide variety of temporal data, marking a shift from fragmented, dataset-specific modeling to a more universal approach.
The Challenge of Universal Time-Series Modeling
Creating a foundation model for time-series is inherently difficult due to three primary factors:
- Lack of a Natural Vocabulary: Unlike text, time-series data is continuous and lacks a predefined grammar.
- Variable Requirements: Models must accommodate diverse history lengths (context) and prediction horizons across different frequencies (e.g., hourly vs. monthly).
- Data Scarcity: Aggregating high-quality, diverse time-series data at the scale required for foundation models is significantly more challenging than scraping text from the internet.
Methodology: Decoder-Only Architecture
TimesFM utilizes a decoder-only transformer architecture, optimized for time-series data through several key innovations:
- Patching: The model processes data in "patches" of 32 timepoints rather than individual points. This approach captures local temporal patterns more effectively and improves computational efficiency.
- Asymmetric Patching: A unique feature of TimesFM is its use of longer output patches (128 timepoints) compared to input patches. This design minimizes the number of auto-regressive steps required for long-term forecasting, thereby reducing error propagation.
- Causal Masking: Similar to LLMs, the model is trained to predict subsequent patches based on historical context, using a specialized masking strategy to handle varying context lengths.
Pretraining at Scale
To address data scarcity, the authors compiled a diverse pretraining corpus:
- Real-world Data: Over 300 billion timepoints from sources like Wikipedia Pageviews and Google Trends, alongside standard public datasets (M4, Electricity, Traffic).
- Synthetic Data: 3 million synthetic series generated via ARMA processes and seasonal patterns to ensure exposure to a wide range of mathematical trends.
- Scaling: Experiments confirmed that performance scales predictably with model size (up to 200M parameters) and data volume.
Evaluation and Results
TimesFM was evaluated in a zero-shot setting—meaning it was not trained on the target datasets—against established benchmarks:
- Monash Archive: TimesFM emerged as the top-performing model, outperforming prominent supervised models like DeepAR and WaveNet.
- Darts Benchmarks: The model performed competitively with statistical methods like ARIMA and other recent LLM-based approaches.
- ETT Datasets: TimesFM matched the performance of PatchTST, the current state-of-the-art for long-term supervised forecasting.
Key Insights
- Zero-Shot Viability: A pretrained foundation model can match or exceed the accuracy of models specifically trained on target data.
- Synthetic Data Benefits: Including synthetic data significantly enhances generalization, particularly for low-frequency data (quarterly/yearly).
- Domain-Specific Pretraining: Finetuning experiments showed that pretraining on time-series data is more effective than repurposing frozen text-based LLMs for forecasting.
Limitations and Future Directions
While a significant advancement, TimesFM currently focuses on univariate data and point forecasts. Future work aims to incorporate external covariates (e.g., weather, holidays), provide probabilistic uncertainty estimates through quantile losses, and improve the interpretability of the model's "black box" forecasts.
TimesFM represents a pivotal step toward a "GPT-3 moment" for time-series, potentially ending the need for bespoke model training for every new forecasting task.
Summary updated