cs.LGOct 29, 2026

IMRouter: Imbalance-aware Temporal Pattern Routing for LLM-based Time Series Forecasting

Authors: Xin Yang, Cai Xu, Haishun Chen, Ying Liu, Jie Zhao, Wei Zhao, Ziyu Guan

Organizations: Xidian University, Xi’an, Shaanxi, China · Chang’an University, Xi’an, Shaanxi, China

Abstract

Accurate time series forecasting (TSF) is essential for Web applications, such as traffic monitoring and online resource management. Recent advances in leveraging pre-trained large language models (LLMs) have shown promising performance in TSF. However, existing LLM-based TSF methods largely optimize the overall forecasting objective while overlooking temporal pattern imbalance (TPI), where different temporal patterns occur at highly unequal frequencies. Our empirical analysis reveals that TPI is prevalent across widely used TSF benchmarks, with substantially higher forecasting errors on less frequent patterns. To address this issue, we propose IMRouter (Imbalance-aware Temporal Pattern Routing), a novel framework that mitigates TPI-induced biases in both temporal representation learning and cross-modal alignment. Specifically, IMRouter introduces Pattern-Adaptive Temporal Representation Learning (PATR), which leverages gradient conflict and local gradient density to guide expert specialization. By penalizing incompatible expert assignments with density-aware weighting, PATR reduces the dominance of frequent optimization signals in router training. Furthermore, Routing-Guided Semantic Alignment (RGSA) transfers the pattern-specific knowledge learned by the router to cross-modal alignment through mutual information maximization, preserving distinctive temporal information across different patterns. Extensive experiments on benchmark datasets demonstrate the effectiveness of IMRouter, particularly in improving forecasting performance on less frequent temporal patterns.

Figures & tables

Appendix figures & tables3 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. FreSia: Frequency-Semantic Instantiation and Alignment for Multivariate Time Series Analysis

    Oct 5, 2026Yubo Wang, Hui He, Hezhe Qiao +2Multivariate Time Series ForecastingFrequency-Domain Time Series Modeling

  2. FM-LLM: A frequency-enhanced mixture-of-experts framework for adapting LLMs to time series forecasting

    Aug 12, 2026Rentao Gu, Yihang Ding, Junjie Li +5Zero-Shot Time Series ForecastingTime Series Forecasting