From Entanglement to Alignment: Representation Space Decomposition for Unsupervised Time Series Domain Adaptation

Rongyao Cai, Ming Jin, Qingsong Wen, Kexin ZhangarXiv 2025 · DOI

Introduction

In time series analysis, models often encounter the challenge of domain shift, where a model trained on source data (e.g., lab-controlled sensor data) fails to generalize to target data (e.g., real-world usage). Traditional Unsupervised Domain Adaptation (UDA) methods typically attempt to align the entire feature distributions of the source and target domains. However, this "monolithic" approach often fails because feature vectors contain both domain-invariant semantic information and domain-specific noise.

The proposed DARSD (Domain Adaptation via Representation Space Decomposition) framework shifts the paradigm from global alignment to representation space decomposition. By isolating the domain-invariant "knowledge" from domain-specific "noise," DARSD preserves critical semantic patterns that are often lost in standard alignment techniques.

Conceptual overview of representation space decomposition, showing the projection from a mixed representation space into a domain-invariant subspace.

The DARSD Framework

DARSD treats domain adaptation as a decomposition problem, utilizing three primary components to extract and optimize transferable features.

1. Adversarial Learnable Common Invariant Basis (Adv-LCIB)

At the heart of DARSD is the Adv-LCIB module. Instead of forcing distributions to overlap, it learns a mathematical basis that defines a domain-invariant subspace. An adversarial discriminator is employed to ensure this subspace captures only shared semantic patterns, effectively filtering out device-specific biases or sensor noise.

2. Prototypical Pseudo-label Generation (PPGCE)

To address the lack of labels in the target domain, DARSD generates "prototypes" (class centroids) within the invariant subspace. Target samples are assigned pseudo-labels based on their proximity to these prototypes. A key feature is the use of an adaptive threshold to distinguish between "confident" samples and "distrusted" ones, preventing noisy labels from degrading model performance.

3. Hybrid Contrastive Optimization

The framework employs a multi-faceted loss function tailored to different data types:

  • Supervised Contrastive Learning: Applied to source data and confident target samples to create tight, discriminative clusters.
  • Self-supervised Consistency: Used for distrusted target samples to maintain stability.
  • Anti-divergence Regularization: Acts as a bridge, pulling distrusted target features toward their nearest source-domain neighbors to prevent distribution drift.
The DARSD architecture, highlighting the Shared Feature Extractor, Adversarial LCIB, and Hybrid Contrastive Optimization modules.

Experimental Evaluation

The framework was rigorously tested across 53 domain-shift scenarios using four real-world benchmarks:

  • WISDM & HAR: Human activity recognition datasets using smartphone and wearable sensors.
  • HHAR: A dataset specifically designed to test hardware invariance across different device models.
  • MFD: A machine fault diagnosis dataset involving industrial vibration signals, demonstrating the model's versatility beyond human activity.

Results and Discussion

DARSD demonstrated superior performance, achieving the optimal result in 35 out of 53 scenarios and ranking first overall across all benchmarks. For instance, on the WISDM dataset, DARSD achieved an average rank of 1.42, significantly outperforming the next best competitor, CADT (3.32).

Beyond accuracy, DARSD showed remarkable efficiency. Convergence analysis indicated that the model reaches stable, high-performance levels within 50-80 epochs, nearly twice as fast as some competing self-supervised methods. The success of the framework underscores the core insight of the research: finding the "skeleton" of the data that remains constant across domains is more effective than trying to force-fit the data into a single mold.

Conclusion and Future Work

DARSD represents a significant advancement in time series UDA by prioritizing representation decomposition over simple alignment. While highly effective, the current implementation uses a fixed hyperparameter for the dimensionality of the invariant subspace. Future research will explore adaptive basis selection, allowing the model to dynamically adjust the subspace complexity based on the specific nature of the domain shift.

Summary updated

BibTeX
@misc{cai2025from,
  author = {Rongyao Cai and Ming Jin and Qingsong Wen and Kexin Zhang},
  title = {{From Entanglement to Alignment: Representation Space Decomposition for Unsupervised Time Series Domain Adaptation}},
  year = {2025},
  eprint = {2507.20968},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.20968},
}
Figure