TL;DR
This paper introduces CHARM, a novel multimodal foundation model for time-series data that leverages textual descriptions of sensors to learn richer, more robust representations. By combining a Joint Embedding Predictive Architecture (JEPA) with a channel-aware Transformer, CHARM achieves strong performance across diverse tasks like forecasting, classification, and anomaly detection, even with limited training data.
What Problem Does This Paper Address?
Time-series data is ubiquitous in critical applications, but current models often struggle with heterogeneity across sensors and domains, requiring significant manual effort for adaptation. Existing foundation models for time series are typically task-specific (e.g., forecasting) or rely on reconstruction-based self-supervised learning, which can be sensitive to noisy sensor data. This paper addresses the need for a general-purpose, robust, and adaptable foundation model for multivariate time series that can effectively leverage auxiliary information like sensor descriptions to improve representation learning.
Methods
CHARM's core innovation lies in its Channel-Aware Representation Model (CHARM), which integrates textual descriptions of sensors into a Transformer architecture. Key components include:
- Contextual Temporal Convolutional Network (TCN): This TCN is modified to be "context-aware" by incorporating channel descriptions, allowing it to learn flexible kernels and control its receptive field based on sensor semantics.
- Contextual Attention Layer: This layer augments standard self-attention with novel mechanisms:
- Description-aware inter-channel attention gating: This gating mechanism, conditioned on channel descriptions, selectively controls cross-channel attention, allowing the model to focus on relevant sensor interactions.
- Description-aware inter-channel time-offset attention: This module explicitly quantifies dependencies between channels at different temporal offsets, enforcing symmetry for parameter efficiency.
- Joint Embedding Predictive Architecture (JEPA): CHARM is trained using a JEPA objective, which predicts latent representations of masked target segments from contextual embeddings. This approach filters out sensor noise and encourages the model to learn higher-level temporal structure, proving more robust than reconstruction-based methods.
- Novel Loss Formulation: A multi-resolution loss encourages consistency at fine-grained and coarser levels of abstraction, promoting stable and usable embeddings.
Datasets
CHARM was trained and evaluated on a variety of datasets, including:
- UEA Dataset: A collection of time-series classification benchmarks.
- Liu-ICE Machine Fault Dataset: For fault diagnosis.
- Electricity Transformer Dataset (ETT): For time-series forecasting.
- Weather Dataset: Meteorological indicators.
- SKAB - Skoltech Anomaly Benchmark Dataset: For anomaly detection.
- Gas Sensor Array Modulation: From UCI Machine Learning Repository.
- Machinery Fault Dataset: For fault diagnosis.
- Metro PT-3 Dataset: For predictive maintenance.
- Human Activity Recognition Trondheim (HEART) dataset: For activity recognition.
- Predictive Maintenance of Hydraulic Systems dataset: For hydraulic system monitoring.
- Exchange Rate dataset: For forecasting.
- UCI Hydraulic Systems dataset: For classification.
Key Insights and Ideas
- Textual descriptions are crucial for time-series representation learning: Integrating sensor descriptions as metadata significantly improves model performance and interpretability, allowing it to understand sensor-specific behavior and generalize across different instrumentation.
- JEPA is a powerful objective for time-series data: Unlike reconstruction-based methods, JEPA's latent-space prediction effectively filters out sensor noise, leading to more robust and transferable representations.
- Channel-aware architectures are essential for multivariate time series: Explicitly modeling inter-channel relationships, guided by textual descriptions, is key to capturing complex dynamics and avoiding representational collapse.
- Foundation models can be made more adaptable: CHARM's design, particularly its use of textual metadata, allows it to generalize across diverse datasets and tasks with minimal fine-tuning, demonstrating a path towards more adaptable foundation models.
Key Results
- Strong performance across tasks: CHARM achieved state-of-the-art or competitive results on multivariate classification (UEA dataset), anomaly detection (UCR and SKAB benchmarks), and long-horizon forecasting (ETT, Weather, Exchange Rate, Illness datasets).
- Parameter efficiency: Even with a frozen encoder, CHARM-LP (linear probe) frequently outperformed much larger foundation models on forecasting benchmarks.
- Robustness to noise: The model showed resilience to noisy or degraded sensor descriptions, indicating that even basic textual information can be beneficial.
- Interpretability: The learned channel gates provided insights into inter-channel dependencies, revealing causal relationships and model behavior.
Limitations and Future Work
- Limited context lengths: The current architecture requires computing attention scores over the entire C × T input, which can be computationally prohibitive for datasets with many channels or long time horizons. Future work could explore downsampling/patching layers or more efficient attention mechanisms.
- Requirement for high-quality sensor descriptions: While the model is robust to some description degradation, high-quality descriptions are still beneficial. Manually curating these descriptions can be labor-intensive and not scalable to large unlabeled datasets. Future work could explore methods for automatically generating or improving descriptions.
- Scalability: While CHARM demonstrates strong performance, further research into more efficient architectures and training strategies is needed to handle extremely long time horizons and a very large number of channels.
- Task-specific fine-tuning: The paper notes that task-specific fine-tuning can further boost performance, suggesting that future work could explore systematic multi-task post-training strategies.
Summary updated