LeMoLE: LLM-enhanced Mixture of Linear Experts for Time Series Forecasting

Lingzheng Zhang, Yimin Zheng, Lifeng Shen, Shiyuan Piao, Ziyue Li, Fugee TsungSubmission to ICLR 2025 · Withdrawn

TL;DR

Instead of forcing expensive Large Language Models (LLMs) to act as time series generators, LeMoLE uses a frozen LLM purely as a text encoder to modulate an ensemble of fast, lightweight linear experts with diverse lookback horizons. By fusing global and dynamic text metadata through Feature-wise Linear Modulation (FiLM), LeMoLE outperforms complex deep networks and alignment-based time-series LLMs while maintaining high inference speed.

What Problem Does This Paper Address?

While deep learning models—especially Transformers—dominate long-term time series forecasting, recent empirical work has shown that simple linear models (e.g., DLinear, RLinear) often match or exceed their accuracy with minimal computational overhead. However, simple linear models struggle to capture complex non-linear dynamics and varying long-range dependencies.

To overcome this, recent approaches (such as Time-LLM, AutoTimes, and GPT4TS) have attempted to "reprogram" or align pre-trained LLMs to directly process and generate time series data. Unfortunately, using an LLM directly as the time-series predictor introduces massive computational costs, slow autoregressive decoding, and often degraded accuracy due to the fundamental syntactic mismatch between language tokens and continuous numerical time series. LeMoLE addresses this dilemma: Can we leverage the rich semantic knowledge of LLMs to guide forecasting without incurring the latency and parameter overhead of using an LLM as the forecasting engine?

Methods

LeMoLE (LLM-Enhanced Mixture of Linear Experts) separates semantic representation from temporal numerical forecasting:

  1. Mixture of Linear Experts with Multi-Scale Lookback: Instead of using identical lookback windows across experts, LeMoLE feeds $M$ sub-series of differing window lengths ($w_1 \ge w_2 \ge \dots \ge w_M$) to separate linear projections. This encourages different experts to specialize in distinct short-term and long-term patterns.
  2. Text Feature Extraction via Frozen LLM: A frozen language model (GPT-2) encodes two prompt modalities:
  3. Static Prompt ($P_S$): Contextual data source information (e.g., sensor locations, domain descriptions, variable semantics).
  4. Dynamic Prompt ($P_D$): Time-dependent metadata (textual timestamp sequences covering the lookback window).
  5. FiLM Conditioning and Fusion: Rather than concatenating or cross-attending tokens, LeMoLE uses lightweight linear layers to project the LLM embeddings into affine scaling ($\gamma$) and shifting ($\beta$) parameters via Feature-wise Linear Modulation (FiLM). The combined output of the linear experts is modulated sequentially by the static and dynamic text representations.
  6. Lightweight CNN Aggregator: A shallow convolutional neural network blends the conditioned representations to produce the final forecast horizon $\hat{Y}_{T+1:T+H}$.
  7. Frequency-Domain Variant (LeMoLE-F): The authors also explore replacing time-domain linear layers with complex-valued frequency interpolation (inspired by FITS) via Fast Fourier Transforms (FFT).

Datasets

The authors evaluate LeMoLE on four standard real-world forecasting benchmarks:

  • ETTh1 and ETTm1: Electricity Transformer Temperature datasets recorded at 1-hour and 15-minute intervals, exhibiting non-stationary characteristics.
  • Electricity (ECL): Hourly electricity consumption of 321 clients from 2012 to 2014, showing strong periodic behavior.
  • Traffic: Hourly road occupancy rates along the San Francisco freeway network (2015–2016).

No new benchmarks are introduced; standard 7:1:2 train/validation/test splits are followed.

Key Insights and Ideas

  • LLMs are better conditioners than forecasters: Passing time series tokens through multi-billion parameter LLMs adds immense compute for questionable predictive benefit. Using LLMs as contextual modulators for linear experts captures semantic priors while keeping inference fast and lightweight.
  • Prompt roles depend on stationarity: Ablation experiments show that dynamic prompts (timestamps) are critical for non-stationary datasets (like ETT), providing local temporal context. Conversely, static dataset descriptions are more influential for highly periodic, stationary datasets (like Electricity).
  • Time domain beats frequency domain for multi-scale experts: In comparisons with LeMoLE-F, time-domain linear experts performed better because frequency-interpolation baselines (like FITS) prioritize low frequencies, oversmoothing local variations across multi-window experts.

Key Results

  • Full Long-Term Forecasting: Across horizons $H \in \{96, 192, 336, 720\}$, LeMoLE achieves the lowest overall average MSE of 0.115, outperforming:
  • Mixture-of-experts linear baseline MoLE (0.135, a ~23.2% MSE reduction)
  • TimeMixer (0.159)
  • LLM-based models: AutoTimes (0.182, ~29.9% reduction), Time-LLM (0.172), and GPT4TS (0.137, ~11.8% reduction)
  • Leading Transformer baselines like PatchTST (0.164) and iTransformer (0.178).
  • Few-Shot Forecasting (10% Data): LeMoLE achieves an average MSE of 0.155, significantly outperforming AutoTimes (1.017), GPT4TS (0.520), and PatchTST (0.208).
  • Inference Speed & Efficiency: At horizon $H=720$, LeMoLE-T achieves an inference time of 1.306 seconds, compared to 68.86s for AutoTimes and 22.87s for Time-LLM, while requiring only ~3.85M trainable parameters (vs. 58.55M for Time-LLM).

Limitations and Future Work

  • Channel Independence: Following channel-independent conventions, the model operates on single channels without explicitly modeling inter-channel cross-correlations inside the linear experts.
  • Reliance on Metadata Quality: The model relies on informative prompt design; forecasting performance is sensitive to the accuracy and granularity of both dataset descriptions and timestamps.
  • Frequency-Domain Underperformance: The frequency-based variant (LeMoLE-F) lagged behind the time-domain variant, indicating that multi-resolution frequency interpolation requires further exploration.

Summary updated

Abstract

Recent research has shown that large language models (LLMs) can be effectively used for real-world time series forecasting due to their strong natural language understanding capabilities. However, aligning time series into semantic spaces of LLMs comes with high computational costs and inference complexity, particularly for long-range time series generation. Building on recent advancements in using linear models for time series, this paper introduces an LLM-enhanced mixture of linear experts for precise and efficient time series forecasting. This approach involves developing a mixture of linear experts with multiple lookback lengths and a new multimodal fusion mechanism. The use of a mixture of linear experts is efficient due to its simplicity, while the multimodal fusion mechanism adaptively combines multiple linear experts based on the learned features of the text modality from pre-trained large language models. In experiments, we rethink the need to align time series to LLMs by existing time-series large language models and further discuss their efficiency and effectiveness in time series forecasting. Our experimental results show that the proposed LeMoLE model presents lower prediction errors and higher computational efficiency than existing LLM models.
BibTeX
@misc{zhang2024lemole,
  author = {Lingzheng Zhang and Yimin Zheng and Lifeng Shen and Shiyuan Piao and Ziyue Li and Fugee Tsung},
  title = {{LeMoLE: LLM-enhanced Mixture of Linear Experts for Time Series Forecasting}},
  year = {2024},
  eprint = {2412.00053},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.00053},
}
Figure