NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Unveiling the Potential of Text in High-Dimensional Time Series Forecasting

Xin Zhou, Weiqing Wang, Shilin Qu, Zhiqiang Zhang, Christoph Bergmeir

TL;DR

While recent work has explored blending text with low-dimensional time series, high-dimensional forecasting—spanning thousands of series and complex dynamics—has remained strictly numerical. TextFusionHTS introduces a dual-tower cross-attention architecture that fuses numerical series representations from PatchTST with semantic embeddings from Meta's Llama-3.1 8B. The results demonstrate that incorporating text descriptions consistently reduces forecasting errors across diverse horizons.

What Problem Does This Paper Address?

Traditional time series forecasting models rely almost entirely on historical numerical values. When dealing with high-dimensional time series (hundreds or thousands of parallel channels, such as website traffic across thousands of pages or engagement across thousands of news topics), purely numerical models often struggle to capture the underlying drivers behind sudden shifts or diverse patterns.

Recent multimodal approaches have begun using Large Language Models (LLMs) to inject context into time series, but these have almost exclusively focused on low-dimensional settings. This paper addresses the gap by asking: Can static textual metadata meaningfully improve forecasting performance in complex, high-dimensional time series systems?

Methods

The authors propose TextFusionHTS, a dual-tower framework that couples a patch-based time series encoder with a frozen open-source LLM:

  • Time Series Representation (Key & Value): The numerical input sequence is processed using PatchTST. The series is divided into local patches, enabling the model to retain localized temporal dynamics while preserving sub-series structure. The resulting patch embeddings serve as the Key ($K$) and Value ($V$) matrices ($z_{ts} \in \mathbb{R}^{p \times d_{ts}}$).
  • Text Representation (Query): Text descriptions associated with each series (e.g., article summaries or page content) are processed through Meta Llama-3.1 8B. The model averages the token embeddings across the text sequence to produce a single pooled semantic vector $z_{tx} \in \mathbb{R}^{d_{tx}}$, which acts as the Query ($Q$).
  • Cross-Attention Fusion: A cross-attention module queries the patch-level numerical representations with the text embedding ($\text{CrossAttention}(Q, K, V)$), enabling the model to dynamically weight which temporal patches are most relevant to the given text description.
  • Forecasting Head: A feed-forward linear layer maps the fused multimodal embedding directly into the future prediction horizon $h$.
Time Series ──> PatchTST (Encoder)  ──> Key, Value ──┐
                                                     ├──> Cross-Attention ──> Linear Head ──> Forecast
Text Input  ──> Llama-3.1 8B (Mean) ──> Query      ──┘

Datasets

The authors evaluated their approach on two high-dimensional datasets containing paired text:

  1. Wiki-People: Daily traffic data from Wikipedia (July 2015 to December 2016) sourced from a Kaggle competition. The authors retained 3,857 English Wikipedia page series and crawled textual descriptions directly from the corresponding Wikipedia articles. (Input length: 7 days; horizons: 7, 14, 21, 28, and 35 days).
  2. News: Social feedback on Facebook related to 26,612 news items on the topic of "Obama" sampled at 20-minute intervals over an 8-month period (November 2015 to July 2016). (Input length: 9 steps / 3 hours; horizons: 1, 3, 9, 12, and 15 steps).

Key Insights and Ideas

  • Dynamic interaction with static text: A persistent challenge in multimodal forecasting is that text descriptions are often static, whereas time series are dynamic. By computing cross-attention between a text Query and patch-level time series Keys/Values, the model learns context-dependent associations across different temporal windows rather than applying a flat, uniform bias.
  • Text helps most when temporal context runs thin: The improvements brought by textual context are particularly pronounced across longer forecasting horizons, where numerical autocorrelation degrades and external contextual clues provide the missing signal.
  • Text pooling strategy matters: The authors compared using the [cls] token, the [bos] token, and mean token pooling. While short horizons showed little sensitivity, [cls] degraded at longer forecast horizons (failing to preserve whole-sequence semantics), while [bos] and average pooling provided superior contextual representations.

Key Results

Experiments compared $\text{TextFusionHTS}_{wt}$ (with text) against $\text{TextFusionHTS}_{wo}$ (purely numerical PatchTST baseline) across Mean Absolute Error (MAE) and Weighted Absolute Percentage Error (WAPE):

  • News Dataset: Adding text reduced errors across all forecast horizons. For instance:
  • Horizon 1: MAE dropped from 0.3464 to 0.3367; WAPE dropped from 0.0625 to 0.0607.
  • Horizon 15: MAE dropped from 1.2275 to 1.2031; WAPE dropped from 0.2390 to 0.2343.
  • Wiki-People Dataset: Text integration lowered errors in 9 out of 10 evaluation settings (with the sole exception being WAPE at horizon 21):
  • Horizon 7: MAE decreased from 0.5751 to 0.5734; WAPE from 0.5209 to 0.5194.
  • Horizon 35: MAE decreased from 0.7906 to 0.7873; WAPE from 0.7108 to 0.7079.

Limitations and Future Work

  • Single static text modality: The framework currently pairs time series with static textual descriptions rather than streaming or timestamp-aligned news feeds.
  • Limited modality breadth: The authors emphasize that additional sensory inputs—such as imagery and audio—could provide deeper context in specific domains (e.g., streaming platforms, retail).
  • Evaluation scope: While the tested datasets span thousands of series, testing across broader industrial high-dimensional domains (such as energy grids, financial portfolios, or sensor arrays) remains an open direction.

Summary updated

BibTeX
@inproceedings{zhou2024unveiling,
  author = {Xin Zhou and Weiqing Wang and SHILIN QU and Zhiqiang Zhang and Christoph Bergmeir},
  title = {{Unveiling the Potential of Text in High-Dimensional Time Series Forecasting}},
  booktitle = {TSALM @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=pElYHYU2yN},
}
Figure