Abstract
Unsupervised Domain Adaptation (UDA) leverages labeled source data to train models for unlabeled target data. Given the prevalence of multivariate time series (MTS) data across various domains, the UDA task for MTS classification has emerged as a critical challenge. However, for MTS data, correlations between variables often vary across domains, whereas most existing UDA works for MTS classification have overlooked this essential characteristic. To bridge this gap, we introduce a novel domain shift, correlation shift, measuring domain differences in multivariate correlation. To mitigate correlation shift, we propose a scalable and parameter-efficient Correlation Adapter for MTS (CATS). Designed as a plug-and-play technique compatible with various Transformer variants, CATS employs temporal convolution to capture local temporal patterns and a graph attention module to model the changing multivariate correlation. The adapter reweights the target correlations to align the source correlations with a theoretically guaranteed precision. A correlation alignment loss is further proposed to mitigate correlation shift, bypassing the alignment challenge from the non-i.i.d. nature of MTS data. Extensive experiments on four real-world datasets demonstrate that (1) compared with vanilla Transformer-based models, CATS increases over 10% average accuracy while only adding around 1% parameters, and (2) all Transformer variants equipped with CATS either reach or surpass state-of-the-art baselines.
Introduction
In Unsupervised Domain Adaptation (UDA), the goal is to transfer knowledge from a labeled source domain to an unlabeled target domain. For Multivariate Time Series (MTS), this typically involves handling "feature shift"—variations in the raw values of sensors or variables. However, this research identifies a more fundamental hurdle: correlation shift.
Correlation shift occurs when the inter-variable dependencies change between domains. For instance, in health monitoring, the relationship between heart rate and oxygen levels might differ between a controlled clinical setting and daily life. Empirical analysis of the HAR dataset reveals that this is not an isolated issue; approximately 78% of domain pairs exhibit significant correlation shift, as visualized in the prevalence rates across source domains.
The CATS Framework
To address these shifting dependencies, we propose CATS (Correlation Adapter for MTS), a lightweight, plug-and-play module designed for Transformer architectures. CATS integrates three core components to align domain correlations effectively.
1. Temporal Depthwise Convolutions (TDC)
Standard adapters often rely on linear layers that treat time steps as independent. CATS replaces these with TDC to capture local temporal patterns. This approach respects the sequential nature of time series data, where neighboring points are highly related.
2. Graph Attention Module (GAT)
To handle shifting relationships between variables, CATS treats each variable as a node in a graph. The GAT adaptively reweights these connections, allowing the model to learn a transformation that aligns the target domain's correlation structure with that of the source domain.
3. Correlation Alignment Loss ($L_{corr}$)
Aligning raw features in MTS is challenging due to their non-i.i.d. nature. Instead, CATS aligns the correlation matrices of intermediate representations using Maximum Mean Discrepancy (MMD). This provides a more stable optimization target, as variable relationships are often more invariant across domains than raw feature values.
Experimental Evaluation
The effectiveness of CATS was validated across four diverse real-world datasets: Human Activity Recognition (HAR), WISDM, Heterogeneity HAR (HHAR), and industrial Boiler sensor data.
Key Results
- Performance Boost: Integrating CATS into vanilla Transformers (e.g., TimesNet, iTransformer) resulted in an average accuracy increase of over 10%.
- State-of-the-Art Performance: CATS-enhanced models consistently outperformed existing SOTA baselines by an average of 4%.
- Efficiency: The module is highly parameter-efficient, adding only about 1% additional parameters to the backbone model while maintaining linear scalability with respect to the number of variables.
- Robustness: In the HHAR dataset, which features significant device and user variability, CATS maintained a 16.47% improvement over baseline models, demonstrating its robustness to extreme domain shifts.
Conclusion
CATS addresses the overlooked challenge of correlation shift in MTS classification. By combining temporal convolutions with graph-based correlation modeling and a dedicated alignment loss, it provides a powerful yet efficient solution for UDA. Future work will explore the application of CATS to non-Transformer architectures and its performance in pure forecasting tasks.
Summary updated