Domain-Constraint Transfer Coding for Imbalanced Unsupervised Domain Adaptation

Yao-Hung Hubert Tsai, Cheng-An Hou, Wei-Yu Chen, Yi-Ren Yeh, Yu-Chiang Frank Wang

Abstract

Unsupervised Domain Adaptation (UDA) typically assumes that source and target domains share identical class distributions and originate from single, uniform distributions. However, real-world data is often "imbalanced," featuring differing class numbers or mixed sub-domains. We present Domain-constraint Transfer Coding (DcTC), a method that replaces global distribution matching with locality-constrained sparse coding. By focusing on local reconstruction in a shared feature space, DcTC effectively aligns domains while preserving latent sub-domain structures, demonstrating superior robustness in highly imbalanced scenarios.

Introduction

In machine learning, Unsupervised Domain Adaptation (UDA) aims to leverage labeled data from a source domain to improve performance on an unlabeled target domain. Traditional approaches often rely on global distribution alignment, such as Maximum Mean Discrepancy (MMD). These methods operate under two restrictive assumptions: balance (equal category counts across domains) and purity (each domain follows a single distribution).

In practice, data is rarely so well-behaved. A source dataset might contain a broad set of categories, while the target focuses on a narrow subset. Furthermore, a single "domain" is frequently a composite of multiple latent sub-domains—for instance, a collection of images captured by various camera types. Forcing global alignment in these imbalanced or mixed scenarios often leads to "incorrect matching," where the algorithm attempts to align unrelated data points, ultimately degrading model performance.

Visualizing the diverse domains in the Office+Caltech benchmark: Caltech, Amazon, Webcam, and DSLR.

The DcTC Framework

To address these challenges, the authors propose Domain-constraint Transfer Coding (DcTC). Rather than aligning global averages, DcTC prioritizes local reconstruction and structural preservation.

Core Components

  • Domain-Invariant Projection ($A$): The model learns a transformation matrix $A$ that maps both source and target data into a common, lower-dimensional feature space.
  • Locality-Constrained Sparse Coding: This is the central innovation. Within the shared space, each target data point is reconstructed as a linear combination of source points. A locality adaptor ($d_i$) is introduced to penalize the use of distant source points for reconstruction.
  • Sub-domain Preservation: By enforcing locality, the model ensures that target points are only reconstructed using relevant source data. This mechanism naturally handles "extra" source classes and multiple sub-domains without requiring prior knowledge of the sub-domain count.

The optimization process is iterative, alternating between refining the projection matrix $A$ and updating the sparse coefficients $V$ to achieve a stable alignment.

Experimental Evaluation

The effectiveness of DcTC was evaluated using the Office and Caltech-256 benchmarks. These datasets include images from diverse sources: Amazon (online merchant images), Webcam (low-resolution), and DSLR (high-resolution). Features were extracted using DeCAF₆, providing a 4096-dimensional starting point for adaptation.

Performance in Complex Scenarios

DcTC was tested across three distinct settings:

  • Mixed Sub-domains: When the source domain was a mixture of multiple datasets (e.g., Amazon + Caltech + DSLR) and the target was a single dataset (Webcam), DcTC achieved an average accuracy of 90.94%, significantly outperforming baseline methods like LRE-SVM (87.83%).
  • Extreme Label Imbalance: In a rigorous test where the source contained 10 classes but the target only 1, DcTC maintained a high accuracy of 87.11%. In contrast, the performance of Joint Domain Adaptation (JDA) dropped to 48.95%, highlighting the failure of global alignment in imbalanced settings.
  • Convergence and Stability: Unlike MMD-based methods that can suffer from performance degradation over iterations due to forced bad alignments, DcTC exhibited fast and stable convergence, typically within 7 to 10 iterations.
Sensitivity analysis of the hyperparameter α on model accuracy.

Discussion and Insights

The primary takeaway is that global alignment is often a trap in real-world UDA. By shifting the focus to local structures, DcTC avoids the pitfalls of matching unrelated distributions. Its ability to automatically discover latent sub-domains and remain robust to "extra" source data makes it a powerful tool for practical applications where data is inherently messy.

While DcTC shows relative robustness to hyperparameters like $\alpha$ (as seen in Figure 6), future work could explore integrating this locality-constrained logic directly into deep neural network architectures for end-to-end training, potentially reducing the dependence on pre-trained "shallow" features.

Conclusion

Domain-constraint Transfer Coding offers a robust solution for unsupervised domain adaptation in imbalanced and mixed-domain environments. By leveraging sparse coding with locality constraints, it effectively bridges the gap between disparate data sources while preserving the unique underlying structures of each domain.

Summary updated

BibTeX
@inproceedings{tsai2016domain,
  author = {Yao-Hung Hubert Tsai and Cheng-An Hou and Wei-Yu Chen and Yi-Ren Yeh and Yu-Chiang Frank Wang},
  title = {{Domain-Constraint Transfer Coding for Imbalanced Unsupervised Domain Adaptation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2016},
  doi = {10.1609/aaai.v30i1.10443},
}
Figure