TimeExpert: Boosting Long Time Series Forecasting with Temporal Mix of Experts

Xiaowen Ma, Shuning Ge, Fan Yang, Xiangyu Li, Yun Chen +3 more
9/27/2025
cs.LG

Official code: xwmaxwma/TimeExpert (18 stars, last commit 2025-09-30).

Abstract

Transformer-based architectures dominate time series modeling by enabling global attention over all timestamps, yet their rigid 'one-size-fits-all' context aggregation fails to address two critical challenges in real-world data: (1) inherent lag effects, where the relevance of historical timestamps to a query varies dynamically; (2) anomalous segments, which introduce noisy signals that degrade forecasting accuracy. To resolve these problems, we propose the Temporal Mix of Experts (TMOE), a novel attention-level mechanism that reimagines key-value (K-V) pairs as local experts (each specialized in a distinct temporal context) and performs adaptive expert selection for each query via localized filtering of irrelevant timestamps. Complementing this local adaptation, a shared global expert preserves the Transformer's strength in capturing long-range dependencies. We then replace the vanilla attention mechanism in popular time-series Transformer frameworks (i.e., PatchTST and Timer) with TMOE, without extra structural modifications, yielding our specific version TimeExpert and general version TimeExpert-G. Extensive experiments on seven real-world long-term forecasting benchmarks demonstrate that TimeExpert and TimeExpert-G outperform state-of-the-art methods. Code is available at https://github.com/xwmaxwma/TimeExpert.

View on arXivView PDF

Code Implementations(1)

181Shell, PythonSep 26, 20251 years ago

Similar Papers

Cite this paper

@article{ma2025timeexpert,
  title  = {TimeExpert: Boosting Long Time Series Forecasting with Temporal Mix of Experts},
  author = {Xiaowen Ma and Shuning Ge and Fan Yang and Xiangyu Li and Yun Chen and Mengting Ma and Wei Zhang and Zhipeng Liu},
  year   = {2025},
  eprint = {2509.23145},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.23145v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.23145.svg)](https://codeofpaper.com/paper/2509.23145)

Discussion