Dynamic TMoE: A Drift-Aware Dynamic Mixture of Experts Framework for Non-Stationary Time Series Forecasting
June 29, 2026 ยท View on GitHub
This repository contains the official implementation of Dynamic TMoE, accepted as a poster at ICML 2026.

Dynamic TMoE framework architecture
๐ Overview
Dynamic TMoE is an adaptive Mixture of Experts (MoE) framework for non-stationary time series forecasting. It overcomes the rigidity of traditional MoEs by using Maximum Mean Discrepancy (MMD) to detect distribution shifts, dynamically expanding or pruning its heterogeneous expert pool to optimize capacity. Paired with a temporal memory router for stable, context-aware expert selection, Dynamic TMoE achieves state-of-the-art results across nine benchmarks, outperforming advanced baselines by reducing MSE and MAE by an average of 10.4% and 7.8%, respectively.
๐ Quick Start
Environment Setup
To set up the environment, install Python 3.10 and the required dependencies:
conda create -n dynamic_tmoe python=3.10
conda activate dynamic_tmoe
pip install -r requirements.txt
Dataset Preparation
Place the benchmark datasets in the ./dataset folder with the following structure:
dataset/
โโโ ETT-small/
โ โโโ ETTh1.csv
โ โโโ ETTh2.csv
โ โโโ ETTm1.csv
โ โโโ ETTm2.csv
โโโ electricity/
โ โโโ electricity.csv
โโโ traffic/
โ โโโ traffic.csv
โโโ weather/
โ โโโ weather.csv
โโโ exchange_rate/
โ โโโ exchange_rate.csv
โโโ illness/
โโโ national_illness.csv
Running Experiments
Run the following scripts for different long-term forecasting benchmarks:
# eg. ETTh1 benchmarks
bash ./scripts/ETTh1.sh
๐ Citation
If you find this repository useful, please cite our paper:
@inproceedings{
zhu2026dynamic_tmoe,
title={Dynamic {TMoE}: A Drift-Aware Dynamic Mixture of Experts Framework for Non-Stationary Time Series Forecasting},
author={Jiawen Zhu and Shuhan Liu and Di Weng and Yingcai Wu},
booktitle={Forty-third International Conference on Machine Learning},
year={2026},
url={https://openreview.net/forum?id=JabkBcaoa9}
}
๐ Acknowledgement
We thanks to the following repositories for their invaluable code and datasets: