Unlocking the Power of Mixture-of-Experts for Task-Aware Time Series Analytics

Xingjian Wu, Zhengyu Li, Hanyin Cheng, Xiangfei Qiu, Jilin Hu, Chenjuan Guo, Bin Yang · Submission to ICLR 2026 · Withdrawn

TL;DR

Different time series tasks rely on fundamentally contrasting feature hierarchies—forecasting preserves low-level patterns, whereas imputation and classification depend on deep semantic shifts. PatchMoE is a task-aware Mixture-of-Experts (MoE) architecture that dynamically adapts routing decisions across network depth via a recurrent gating mechanism. Combined with a dual-dimension load-balancing loss, PatchMoE captures both temporal dynamics and cross-channel correlations, establishing a unified backbone across five core time series tasks.

What Problem Does This Paper Address?

In computer vision and NLP, general architectures like ResNets or Transformers serve as foundational backbones across diverse tasks. In time series analytics, however, specialized models still dominate individual niches like long-term forecasting, anomaly detection, missing data imputation, or classification.

The authors observe a key reason: different time series tasks require fundamentally distinct representation hierarchies. Centered Kernel Alignment (CKA) analysis reveals that top-performing models maintain high representational similarity between early and deep layers during forecasting, but drastically transform representations (exhibiting low similarity) during imputation and classification. Existing MoE methods, typically borrowed from NLP token-prediction setups, route tokens identically across layers without tracking depth-dependent semantic evolution. Furthermore, prevailing Channel-Independent (CI) transformers prevent cross-channel interference at the cost of failing to capture multivariate dependencies.

Methods

[ Multivariate Time Series ] 
           │
           ▼
[ RevIN & Patch Embedding ] ──► Channel-Independent Tokens
           │
           ▼
┌────────────────────────────────────────────────────────┐
│ Transformer Layer l                                   │
│  ├── Multi-Head Self-Attention (Temporal extraction)   │
│  └── PatchMoE Block                                   │
│       ├── Recurrent Noisy Gating (RNG-Router)         │
│       │    └── GRU cell integrates hidden states h_l-1│
│       │        and MSA output X_El across depth       │
│       ├── Shared Experts (General temporal patterns)   │
│       └── Routed Experts (Sparse channel & time links)│
└────────────────────────────────────────────────────────┘
           │
           ▼
[ Task Heads ] ──► Forecasting | Anomaly Det. | Imputation | Classification

PatchMoE replaces standard Transformer Feed-Forward Networks (FFNs) with a specialized MoE layer:

  • Recurrent Noisy Gating (RNG-Router): Rather than routing each layer in isolation, a shared GRU cell tracks hidden states across layers ($l = 1 \dots L$). It conditions expert assignment on both current token representations and upstream layer history, producing a conditional Gaussian distribution $\mathcal{N}(\mu_l, \sigma_l)$ with noisy resampling during training for exploration.
  • Shared vs. Routed Experts: Inspired by architectures like DeepSeek, each block uses $N_s$ shared experts (to model general temporal baselines) and $N_r$ fine-grained routed experts (Top-$k$ activated to capture nuanced temporal and cross-channel dynamics).
  • Temporal & Channel Load Balancing Loss: Tokens from all channels and time patches are routed simultaneously. To avoid expert collapse, the objective $\mathcal{L}_{bal} = \alpha \mathcal{L}_{tem} + \beta \mathcal{L}_{cha}$ penalizes routing decisions where identical experts are repeatedly chosen across the same timestamp or channel index, enforcing sparse, balanced multivariate interactions.

Datasets

The authors benchmarked PatchMoE without task-specific architectural redesigns:

  • Univariate Forecasting: All 8,068 univariate series from the Time Series Forecasting Benchmark (TFB).
  • Multivariate Forecasting: 8 standard benchmarks (ETTh1, ETTh2, ETTm1, ETTm2, Weather, Electricity, Solar, Traffic).
  • Anomaly Detection: 8–9 datasets from the TAB benchmark (including CalIt2, Credit, GECCO, Genesis, MSL, NYC, PSM, SMD, SMAP).
  • Imputation: Electricity, Weather, and ETT subsets under missingness ratios from 12.5% to 50%.
  • Classification: 10 diverse datasets from the UEA Time Series Classification Archive.

Key Insights and Ideas

  • Hierarchical task-awareness: Tracking routing distributions across layers proves that the network dynamically adjusts its behavior per task. In forecasting, expert assignments remain relatively static from Layer 1 to Layer 3 (relying on shallow features). In imputation, routing shifts radically across layers to construct high-level semantic clusters.
  • Bridging Channel Independence (CI) and Dependence (CD): Instead of using full cross-channel attention (which is computationally expensive and prone to overfitting), PatchMoE embeds tokens independently, then captures inter-channel correlations through shared expert selection.
  • Shared experts stabilize routing: Unburdening routed experts from learning ubiquitous baseline temporal patterns prevents routing bottlenecks on massive datasets.

Key Results

  • Univariate Forecasting: Outperformed recent baselines (TimeKAN, Amplifier, TimeMixer) across 8,068 series, lowering mean symmetric MAPE to 19.95 (compared to 20.77 for TimeKAN and 21.87 for PatchTST).
  • Multivariate Forecasting: Delivered marked error reductions on large-scale datasets, achieving 7.6% lower MSE on Electricity and 9.0% lower MSE on Solar compared to PatchTST.
  • Imputation & Anomaly Detection: Outperformed specialized baselines like TimeMixer++ on Electricity imputation (MSE of 0.052 vs. 0.109) and achieved state-of-the-art Affiliated-F1 and AUC on the TAB benchmark.
  • Classification: Reached an average accuracy of 74.11% across 10 UEA datasets, exceeding both specialized CNN (TimesNet: 73.6%) and transformer (iTransformer: 70.52%) alternatives.
  • Ablations: Removing the RNG-Router degraded forecasting MSE by 4.2%, while removing shared experts caused a 6.9% performance drop on large-scale benchmarks like Traffic.

Limitations and Future Work

  • Capacity vs. Overfitting Trade-offs: Adding deeper MoE layers ($L > 3$) and larger expert pools ($N_r > 10$) substantially improves performance on large datasets (Solar, Traffic), but triggers overfitting on smaller benchmarks (ETTh1, ETTm2).
  • Static Expert Allocation: The current design uses fixed Top-$k$ selection and expert counts across all series, rather than dynamically scaling expert capacity based on input dimensionality or sequence variability.

Summary updated

BibTeX
@misc{wu2025unlocking,
  author = {Xingjian Wu and Zhengyu Li and Hanyin Cheng and Xiangfei Qiu and Jilin Hu and Chenjuan Guo and Bin Yang},
  title = {{Unlocking the Power of Mixture-of-Experts for Task-Aware Time Series Analytics}},
  year = {2025},
  eprint = {2509.22279},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.22279},
}
Figure