TL;DR
This paper introduces UniCA, a novel framework that allows powerful pre-trained Time Series Foundation Models (TSFMs) to effectively incorporate diverse "covariates" (external factors like text, images, or categorical data) into their forecasting. UniCA bridges the gap between general TS models and real-world scenarios where such heterogeneous information is crucial, significantly improving forecasting accuracy.
What Problem Does This Paper Address?
Time Series Foundation Models (TSFMs) have shown impressive capabilities by learning general temporal patterns from vast amounts of time series data. However, these models are typically designed for simple, real-valued time series and struggle to leverage "covariates" – external factors that can significantly influence future trends. This is especially true for heterogeneous covariates, which come in various forms like text descriptions, images, or categorical labels (e.g., product IDs, event types). Integrating these diverse data types into existing TSFMs is challenging because they often require specialized preprocessing and fusion techniques, and can disrupt the model's pre-trained generalization abilities. This paper aims to solve this by creating a unified adaptation framework that can seamlessly incorporate both homogeneous and heterogeneous covariates into TSFMs without sacrificing their existing strengths.
Methods
UniCA tackles the challenge of heterogeneous covariates through two main innovations:
- Covariate Homogenization: This process transforms diverse covariate types (categorical, image, text) into a unified, high-level temporal representation. For categorical data, this involves embedding layers. For multimodal data like images or text, modality-specific encoders (e.g., CNNs for images, Transformers for text) are used to extract feature representations. These are then passed through a "Covariate Homogenizer" (CH), which is a simple linear layer, to create a dense, homogeneous temporal representation. This ensures all covariates are in a compatible format.
- Modular Fusion: UniCA decomposes the TSFM into its core components (tokenizer, encoder, predictor) and inserts attention-based fusion modules.
- Pre-Fusion Module: This module integrates past covariate information with the target time series before it enters the TSFM's temporal encoder. It uses a Conditional Attention Pooling (CAP) mechanism to fuse past covariates and static features.
- Post-Fusion Module: This module incorporates future-known covariates after the temporal encoder has processed the target series. It also uses CAP to select relevant future covariate information and then fuses it with the encoded representation using a self-attention layer.
Crucially, UniCA is designed as a plug-in module that keeps the TSFM's parameters frozen, preserving its generalization capabilities.
Datasets
The authors evaluated UniCA on a variety of datasets:
- Unimodal Datasets: 12 publicly available datasets commonly used in covariate-aware forecasting research, covering domains like electricity load forecasting, sales data, and weather.
- Multimodal Datasets:
- Time-MMD: A dataset with paired textual and time series data across nine diverse domains (e.g., Climate, Energy, Health).
- MMSP (Multimodal Solar Power): A dataset containing solar power generation records with temporally aligned satellite imagery and numerical weather predictions as covariates.
Key Insights and Ideas
- Heterogeneous covariates are a major bottleneck for TSFMs: Standard TSFMs are not designed to handle the complexity of diverse data types like images or text as covariates, limiting their real-world applicability.
- Homogenization is key: Transforming diverse covariates into a unified, high-level temporal representation is crucial for effective integration. This allows TSFMs to process them uniformly.
- Attention-based fusion is powerful: UniCA's attention mechanisms allow the model to dynamically select and weigh the importance of different covariates over time, leading to more accurate forecasts.
- Freezing the TSFM backbone is effective: UniCA acts as an adapter, preserving the valuable generalization learned by the TSFM during pre-training, rather than requiring extensive fine-tuning.
- Simple is often better: A simple linear layer for covariate homogenization performed as well as, or better than, more complex MLP structures, suggesting parsimony is beneficial.
Key Results
- Superior performance: UniCA consistently outperformed specialized models and zero-shot or fine-tuned TSFMs across unimodal and multimodal benchmarks. For example, on the MMSP dataset, UniCA achieved a 6.5% reduction in error for TimesFM and 5.9% for Chronos-Bolt.
- Universality: UniCA demonstrated effectiveness across various TSFM architectures (Chronos-Bolt, TimesFM, Time-MoE) and diverse covariate types.
- Robustness: UniCA showed resilience to noisy or irrelevant covariates, effectively filtering them out without significantly degrading performance.
- Efficiency: UniCA added minimal overhead in terms of inference time and trainable parameters.
Limitations and Future Work
- Temporal Alignment Assumption: UniCA assumes temporal alignment between covariates and the target series, which is approximated using imputation. More advanced alignment strategies could be explored.
- Noisy/Conflicting Covariates: While UniCA is robust to noise, severely conflicting covariates could still degrade performance.
- Future Directions: The authors suggest exploring uncertainty-aware fusion, handling non-aligned or partially observed covariates, and incorporating task-specific inductive biases to further enhance robustness and generalizability. They also note that the Time-MMD dataset's limited number of observations might restrict drawing definitive conclusions about modality encoder performance.
Summary updated