Introduction
Moirai 2.0 represents a significant evolution in time-series foundation models. By adopting a streamlined, decoder-only architecture, it demonstrates that "less is more"—outperforming its predecessor while being 30x smaller and 2x faster. This model achieves state-of-the-art efficiency and accuracy on the GIFT-EVAL benchmark through a transition to causal training and a novel multi-quantile decoding strategy.
Addressing the Complexity of Time Series
Time series forecasting is inherently challenging due to non-stationarity, irregular sampling, and domain-specific variations. While first-generation models like Moirai 1.0 were promising, they often relied on complex masked-encoder designs adapted from computer vision and NLP. These designs were frequently data-inefficient—with only a small fraction of tokens contributing to the loss—and utilized complex "mixture of distributions" outputs that were difficult to optimize. Moirai 2.0 simplifies this architecture to enhance training efficiency, inference speed, and probabilistic accuracy.
Methodology: A Decoder-Only Approach
Moirai 2.0 shifts from an encoder-only masked approach to a decoder-only autoregressive architecture, aligning it with the design of modern Large Language Models (LLMs).
Key technical innovations include:
- Quantile Forecasting: Instead of predicting distribution parameters (like mean and sigma), the model directly predicts nine specific quantiles (0.1 to 0.9). This is optimized using the pinball loss, which offers greater robustness to outliers.
- Multi-Token Prediction: To improve long-term efficiency, the model predicts multiple future patches simultaneously from a single hidden state.
- Autoregressive Multi-Quantile Decoding: This novel inference strategy uses a "depth-2 expand-then-collapse" method. It samples multiple plausible futures and collapses them into a coherent set of quantiles for the next step, effectively preserving uncertainty.
- Standardized Patching: The model moves to a single-patch size, simplifying the overall pipeline.
Training Data and Evaluation
The model was trained on a massive corpus of 36 million time series (approximately 295 billion observations), including:
- GIFT-EVAL Pretrain & TrainTest: Curated real-world datasets.
- Chronos-Mixup & KernelSynth: Synthetic data designed to improve generalization.
- Internal Salesforce Data: Anonymized CloudOps telemetry providing high-frequency real-world patterns.
Evaluation was performed using the GIFT-EVAL benchmark, covering 97 task configurations across 55 datasets.
Key Insights: Efficiency and Scaling
- Causal Training Efficiency: The decoder-only setup allows the model to calculate loss for every token in a sequence, making it significantly more data-efficient than masked models.
- The Scaling Plateau: Interestingly, the "Small" variant (11M parameters) outperformed larger versions (87M and 305M). This suggests that for current time-series data scales, architectural refinement and data quality are more critical than raw parameter count.
- Quantiles vs. Distributions: Direct quantile regression proved more stable and accurate than fitting complex mixture distributions, which often suffer from unstable gradients in noisy environments.
- KV Caching: The architecture supports KV caching, enabling up to 17x speedups for iterative forecast extensions.
Performance Results
Moirai 2.0 Small (11M parameters) consistently outperformed Moirai 1.0 Large (311M parameters) across key metrics.
- Speed and Size: The model is twice as fast and 30 times smaller than the previous state-of-the-art version of Moirai.
- Benchmark Ranking: It currently ranks 5th among 37 foundation models on the GIFT-EVAL leaderboard, offering an exceptional trade-off between accuracy and computational cost.
- Domain Robustness: Strong performance was noted in Web/CloudOps and Finance domains.
Limitations and Future Directions
Despite its successes, Moirai 2.0 currently focuses on univariate data, treating multivariate series as independent. It does not yet incorporate external covariates like weather or holidays. Additionally, performance tends to decline over very long forecast horizons. Future work will likely explore larger, more diverse datasets and new scaling laws tailored specifically for time-series foundation models.
Summary updated