Introduction
Traditional time series forecasting has long been treated as a purely numerical challenge, relying on historical data points like price, traffic, or temperature to predict future trends. However, in high-dimensional scenarios—where thousands of variables or channels are tracked simultaneously—numerical patterns alone often fail to capture the underlying drivers of change. This paper introduces TextFusionHTS, a novel dual-tower framework designed to integrate textual metadata into high-dimensional time series forecasting, providing a "contextual anchor" that significantly enhances predictive accuracy.
The TextFusionHTS Architecture
The core innovation of TextFusionHTS lies in its ability to process numerical and textual modalities in parallel before merging them through a sophisticated fusion mechanism. The architecture consists of two primary components:
- Time Series Tower (PatchTST): To handle high-dimensional data efficiently, the model segments the time series into "patches." This approach, inspired by Vision Transformers, captures local semantic patterns while reducing the computational overhead associated with long sequences.
- Text Tower (Llama-3.1 8B): The framework leverages a state-of-the-art Large Language Model (LLM) to encode text descriptions. These descriptions are transformed into semantic vectors, providing the model with qualitative context (e.g., the subject matter of a Wikipedia page) that numerical data lacks.
These two streams are integrated via a Fusion Module using a cross-attention mechanism. In this setup, the text representation serves as the Query ($Q$), while the time series patches act as the Keys ($K$) and Values ($V$). This allows the model to dynamically weigh historical numerical data based on its relevance to the textual context.
Experimental Setup and Datasets
The researchers evaluated TextFusionHTS on two distinct high-dimensional datasets:
- Wiki-People: Daily traffic data for 3,857 Wikipedia pages, paired with the full text of the corresponding articles.
- News: A dataset tracking social media feedback for 26,612 news items related to "Obama," sampled at 20-minute intervals.
These datasets represent challenging forecasting environments where external events and semantic context (the "who" and "what" of the data) are critical to understanding fluctuations.
Key Results and Insights
The integration of text consistently outperformed numerical-only baselines across various metrics and forecasting horizons. As shown in the results below, the text-enabled model ($TextFusionHTS_{wt}$) achieved lower Mean Absolute Error (MAE) and Weighted Absolute Percentage Error (WAPE) compared to the version without text ($TextFusionHTS_{wo}$).
Long-Horizon Gains
A critical finding of the study is that the benefits of textual metadata become more pronounced as the forecasting horizon increases. While numerical momentum is effective for short-term predictions, the "grounding" provided by text becomes a dominant predictor for long-term trends.
Embedding Strategies
The authors also explored how different LLM token representations affect performance. They found that using the [bos] (beginning of sequence) token or a simple average of all token embeddings outperformed the standard [cls] (classification) token. This suggests that for complex forecasting tasks, preserving nuanced semantic meaning is more effective than the highly compressed representations typically used for simple classification.
Conclusion
TextFusionHTS demonstrates that textual metadata is a potent, underutilized resource in high-dimensional time series forecasting. By providing a stable semantic reference for noisy numerical data, the framework achieves state-of-the-art results, particularly in long-term scenarios. Future work may expand this multi-modal approach to include images and audio, further bridging the gap between qualitative context and quantitative prediction.
Summary updated