- Introduced by
- Xiaoming Shi et al.
- Year
- 2024
- Type
- Sparse mixture-of-experts autoregressive foundation model
- Family
- Time-series forecasting
What does it do?
Time-MoE is a billion-scale autoregressive foundation model for general-purpose time-series forecasting, introduced by Shi et al. in 2024 and accepted at ICLR 2025.
It uses a decoder-only transformer in which the feed-forward blocks are replaced by sparse Mixture-of-Experts (MoE) layers, so the parameter count can reach the billions while only a small subset of experts runs for each token. The model is designed for univariate series.
The intuition behind the method
Think of Time-MoE as a large panel of specialists, where a router sends each time-step token to only a few of them. Because most experts are inactive for any given token, the total capacity of the model can be much larger than the computation spent on a single prediction. Forecasting heads for different horizons sit on one shared backbone and read the same internal representation.
History
Time-MoE was introduced by Shi, Wang, Nie, Li, Ye, Wen and Jin, with the first author listed as X. Shi, in a 2024 publication later accepted at ICLR 2025. The work belongs to the line of research that applies scaling ideas from large language models to time-series foundation models, and it uses sparse MoE layers to increase capacity without a matching rise in per-token computation.
When to use it
Choose Time-MoE when you need a general-purpose forecaster for individual univariate series, especially when the target series has little or no history and training a dedicated model is not practical, or when one shared model must serve many series and several horizons. It is also a reasonable candidate when labeled fine-tuning data is limited, provided that adaptation is compared against zero-shot use on held-out data. Do not choose it when the question depends on explicit dependencies among several variables, since the design processes each series on its own, or when the series is very short and the long-context pretraining cannot help. If calibrated uncertainty bands are required, plan a separate validation step. TimesFM and Chronos, both listed as related methods, address similar zero-shot forecasting settings.
Limitations and considerations
- The design targets univariate forecasting; cross-series dependencies are not modeled natively, and multivariate use requires adaptation
- The largest variant has up to 2.4 billion parameters, so deployment demands substantial memory even though per-token compute is sparse
- Autoregressive decoding feeds predictions back as inputs, so errors can accumulate over long horizons
- Transfer quality depends on how well the Time-300B pretraining corpus covers the target domain; series far from it may forecast poorly
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Only K of N experts run for each token, so total parameter count can grow without a proportional rise in per-token feed-forward computation
- Pretraining on a large corpus is intended to support zero-shot forecasting on series that were not part of training
- Horizon-specific heads on a shared backbone allow predictions for several horizons to come from one representation rather than from separate models
- The next-step training objective is the same for every training series, so no task-specific labels are needed for pretraining
Applications
- Forecasting a single univariate series, such as one load or demand record, when little history exists for training a dedicated model
- Producing forecasts for many series with one shared model instead of maintaining a separate model for each series
- Multi-horizon planning, where short and longer forecasts for the same series are needed together
- Screening new series with zero-shot forecasts before deciding whether task-specific training is justified
How it works
How it works
Each observation of a univariate series is mapped by a learned linear projection to a d-dimensional embedding h_t, so the transformer receives a sequence of point embeddings that plays a role similar to token embeddings in a language model. Input values are typically normalized before embedding. The exact scaling scheme, context length and maximum forecast horizon are implementation details of the released model and should be taken from its documentation before use.
Formula
\text{Given a univariate time series } \mathbf{x} = (x_1, x_2, \ldots, x_T), \text{ each scalar observation } x_t \text{ is projected to a token embedding } \mathbf{h}_t = \mathbf{W}_e \, x_t + \mathbf{b}_e \in \mathbb{R}^d.In each transformer layer, the dense feed-forward network is replaced by a block of N expert networks. A router g scores the experts for each token, the top-K experts are selected, and the block returns the sum of their outputs weighted by the router's gate values. Because only K of the N experts run per token, the total number of parameters can grow without a proportional increase in per-token feed-forward computation.
Formula
\text{In each transformer layer, a sparse MoE feed-forward block replaces the dense FFN: } \mathbf{y}_t = \sum_{k \in \mathcal{K}(t)} g_k(\mathbf{h}_t) \, E_k(\mathbf{h}_t), \text{ where router } g(\cdot) \text{ selects top-}K \text{ experts from } N \text{ and } \mathcal{K}(t) \subseteq \{1,\ldots,N\}.Forecasting heads for different horizons h in the set H read the same representation h_t from the shared backbone. Training them together lets them share what the backbone learns while each head specializes in its own horizon. The set of supported horizons and the way heads are combined with step-by-step decoding are defined by the released model configuration and should be checked there before use.
Formula
\text{Multiple forecasting heads operate at different resolutions: } \hat{x}_{t+h} = f_{\theta_h}(\mathbf{h}_t), \text{ for horizon steps } h \in \mathcal{H}, \text{ allowing the model to share representations while specializing predictions per horizon.}The model is trained with a next-step objective that minimizes the negative log-likelihood of each observation given the preceding ones, and the joint forecast over H steps is factorized as a product of conditional predictions. Where forecasts are produced by rolling the model forward, each predicted value is fed back into the context before the next one is predicted, so errors made early in the rollout can propagate into later steps.
Formula
\text{Forecasts are generated autoregressively: } p(x_{T+1}, \ldots, x_{T+H} \mid x_1, \ldots, x_T) = \prod_{h=1}^{H} p(x_{T+h} \mid x_1, \ldots, x_{T+h-1}; \theta), \text{ with next-token prediction loss } \mathcal{L} = -\sum_t \log p(x_{t+1} \mid x_{\leq t}).Common pitfalls
- Applying the model to very short series does not exploit its long-context pretraining and may give little advantage over simpler baselines
- Naive fine-tuning on a small dataset can overwrite the general representations learned during pretraining; limited adaptation should be compared with zero-shot use on held-out series
- Router collapse, where a few experts receive most tokens, wastes the capacity that sparse MoE layers are meant to provide; expert utilization should be monitored during fine-tuning
- Multi-step forecasts are built from the model's own earlier predictions, so treating heuristic bands from the autoregressive rollout as calibrated uncertainty without separate validation can mislead downstream decisions
Frequently asked questions
How does Time-MoE differ from a standard transformer forecasting model?
Standard transformer forecasters use dense feed-forward layers in which all parameters act on every token. Time-MoE replaces these blocks with sparse MoE layers, so each token passes through only K of N experts. This lets the total parameter count, and with it model capacity, grow substantially while the per-token feed-forward computation stays bounded by K experts.
Can Time-MoE handle multivariate time series?
Time-MoE is designed for univariate forecasting, and each series is processed on its own. A multivariate dataset can only be handled by applying the model to each variable separately, which does not capture dependencies between variables. Tasks where those dependencies matter may need a model built for multivariate input.
What is Time-300B and why does it matter?
Time-300B is the large corpus used to pretrain Time-MoE. Pretraining on a diverse collection of time series is what the model relies on for zero-shot transfer to datasets it has not seen. Forecast quality on your data depends on how well your domain resembles the pretraining data, so validate on held-out series from your domain.
Related methods
Sources
Shi, X., Wang, S., Nie, Y., Li, D., Ye, Z., Wen, Q., & Jin, M. (2024). Time-MoE: Billion-scale time series foundation models with mixture of experts. ICLR 2025.
Open publication reference