Abstract
Time series analysis has traditionally relied on task-specific models that treat input channels as anonymous numerical streams, limiting their ability to generalize across heterogeneous sensor arrays. We present CHARM (CHannel-Aware Representation Model), a 7M-parameter foundation model that integrates textual sensor descriptions to learn domain-aware representations. By utilizing a Contextual Temporal Convolutional Network and a Joint Embedding Predictive Architecture (JEPA), CHARM achieves state-of-the-art performance across classification, forecasting, and anomaly detection tasks. Our results demonstrate that natural language can serve as a universal bridge, providing the necessary context for robust, transferable time series embeddings.
Introduction
Despite the success of foundation models in natural language processing and computer vision, time series analysis remains fragmented. Most existing models are dataset-specific; a change in sensor configuration often necessitates retraining from scratch. This lack of flexibility stems from a fundamental lack of sensor-awareness. Standard architectures treat input channels as anonymous data streams, failing to distinguish between fundamentally different physical processes like vibration, pressure, or temperature.
CHARM addresses this by incorporating textual descriptions of each channel into the model's architecture. By "knowing" what a sensor measures, the model can leverage cross-domain knowledge, applying insights from one industrial setting to another based on shared physical properties described in natural language.
The CHARM Architecture
CHARM introduces three major innovations to enable context-aware representation learning:
- Description-Aware Featurization: Instead of static filters, CHARM employs a Contextual Temporal Convolutional Network (TCN). Textual descriptions are processed through a frozen text embedding model to generate dynamic "soft gates" and convolutional kernels, allowing the model to adapt its feature extraction to the specific sensor type.
- Contextual Attention Layers: A custom attention mechanism incorporates inter-channel gating and time-offset attention, both conditioned on textual descriptions. This allows the model to learn complex, time-lagged dependencies between specific sensors.
- JEPA-Style Training: To avoid overfitting on high-frequency sensor noise, CHARM uses a Joint Embedding Predictive Architecture (JEPA). The model is trained to predict the latent representations of masked segments rather than reconstructing raw signals, resulting in more semantically meaningful features.
Experimental Evaluation
CHARM was evaluated across a diverse suite of benchmarks, including 15 datasets from the UEA Multivariate Time Series Classification archive, the Skoltech Anomaly Benchmark (SKAB), and standard forecasting datasets like ETT and Weather.
Key Results
- Classification: CHARM set a new state-of-the-art (SOTA) on the UEA benchmark, outperforming prior representation learning methods by an average of 1.5%.
- Anomaly Detection: On the SKAB benchmark, CHARM improved the SOTA F1 score by 0.08 and significantly reduced the Missed Alarm Rate (MAR).
- Forecasting: The model surpassed existing SOTA results across multiple ETT variants, Exchange Rate, and Illness datasets.
Discussion and Insights
The success of CHARM highlights the potential of text as a universal bridge for time series data. By providing a linguistic prior, the model can effectively transfer knowledge between disparate domains. Furthermore, the use of latent prediction via the JEPA framework proves more robust than traditional reconstruction-based methods, which often struggle with the inherent noise in raw sensor data.
While CHARM demonstrates significant improvements, its performance is tied to the quality of textual metadata. Future research will focus on handling vague descriptions and optimizing the computational complexity of the $O(C^2 T^2)$ self-attention mechanism for high-dimensional sensor arrays.
Conclusion
CHARM represents a significant step toward general-purpose foundation models for time series. By giving models a "sense of context" through natural language, we unlock the ability to learn representations that are not only accurate but also transferable and interpretable across a wide range of real-world applications.
Summary updated