Learning Smooth Representation for Unsupervised Domain Adaptation

Guanyu Cai, Lianghua He, MengChu Zhou, Hesham Alhumade, Die HuIEEE TNNLS 2019

Abstract

Typical adversarial-training-based unsupervised domain adaptation methods are vulnerable when the source and target datasets are highly-complex or exhibit a large discrepancy between their data distributions. Recently, several Lipschitz-constraint-based methods have been explored. The satisfaction of Lipschitz continuity guarantees a remarkable performance on a target domain. However, they lack a mathematical analysis of why a Lipschitz constraint is beneficial to unsupervised domain adaptation and usually perform poorly on large-scale datasets. In this paper, we take the principle of utilizing a Lipschitz constraint further by discussing how it affects the error bound of unsupervised domain adaptation. A connection between them is built and an illustration of how Lipschitzness reduces the error bound is presented. A local smooth discrepancy is defined to measure Lipschitzness of a target distribution in a pointwise way. When constructing a deep end-to-end model, to ensure the effectiveness and stability of unsupervised domain adaptation, three critical factors are considered in our proposed optimization strategy, i.e., the sample amount of a target domain, dimension and batchsize of samples. Experimental results demonstrate that our model performs well on several standard benchmarks. Our ablation study shows that the sample amount of a target domain, the dimension and batchsize of samples indeed greatly impact Lipschitz-constraint-based methods' ability to handle large-scale datasets.

Introduction

Unsupervised Domain Adaptation (UDA) is the challenge of training a model on a labeled "source" domain and generalizing it to an unlabeled "target" domain. While adversarial training has been a dominant paradigm, it often suffers from instability when domain discrepancies are large. This paper introduces SRDA (Smooth Representation for Domain Adaptation), which leverages Lipschitz continuity to stabilize training and improve generalization. By mathematically proving that "smooth" functions lead to tighter error bounds, the authors develop a new metric called Local Smooth Discrepancy (LSD) to enforce model stability on complex, large-scale datasets.

Methodology

The SRDA framework bridges the gap between theoretical Lipschitz constraints and practical deep learning applications through several key innovations.

Local Smooth Discrepancy (LSD)

The authors define LSD as a loss function that measures how much a specific data point violates smoothness. A sample is considered "sensitive" if a small perturbation in the input space leads to a large change in the model's prediction. By minimizing LSD, the model is forced to maintain a smoother decision boundary in the target domain.

The SRDA framework: detecting sensitive regions and minimizing Local Smooth Discrepancy.

Feature-Space Optimization

Enforcing smoothness on raw high-dimensional images is computationally expensive and often ineffective. SRDA instead enforces smoothness in the feature space (the output of the final convolutional layer). Since the error bounds are tied to the dimensionality of the data, working in a lower-dimensional feature space significantly improves the effectiveness of the Lipschitz constraint.

Noise Strategies for Sensitive Regions

To identify sensitive regions, the authors propose two noise strategies:

  1. Isotropic (SRDA-G): Employs random Gaussian noise to probe the neighborhood of a sample.
  2. Anisotropic (SRDA-V/F): Uses gradient-based perturbations to find the specific direction that most significantly alters the model's output, effectively finding the shortest path to the decision boundary.
Isotropic vs. Anisotropic plans for detecting sensitive regions near the decision boundary.

Experiments and Results

The performance of SRDA was evaluated across several standard UDA benchmarks, including Digits (MNIST, USPS, SVHN), VisDA-2017, and Office-31.

  • Large-Scale Performance (VisDA): SRDA-G achieved an average accuracy of 73.5%, significantly outperforming traditional adversarial methods like DANN (57.4%) and DAN (61.1%).
  • Digits Tasks: On the challenging USPS → MNIST task, SRDA reached 95.95% accuracy, setting a new benchmark for the task.
  • Robustness: The method demonstrated high robustness to hyperparameter variations, particularly the noise magnitude ε, making it more stable than typical adversarial networks.

Discussion and Key Insights

A key insight from this work is the relationship between data volume and smoothness. The authors found that Lipschitz-based methods require a sufficient amount of target data to accurately "see" and smooth the decision boundary. Consequently, SRDA performs exceptionally well on large datasets like VisDA but may struggle on smaller datasets like Office-31 where target samples are sparse. Additionally, the authors identified that larger batch sizes are critical for detecting a representative set of sensitive samples in each update, which stabilizes the boundary.

Conclusion

SRDA provides a mathematically grounded approach to UDA by connecting Lipschitzness to error bounds. By optimizing Local Smooth Discrepancy in the feature space, the model achieves state-of-the-art results on large-scale benchmarks. Future work will focus on improving performance on small-scale datasets and applying these "smooth representation" principles to fields like AI security and autonomous transportation.

Summary updated

Abstract

Typical adversarial-training-based unsupervised domain adaptation methods are vulnerable when the source and target datasets are highly-complex or exhibit a large discrepancy between their data distributions. Recently, several Lipschitz-constraint-based methods have been explored. The satisfaction of Lipschitz continuity guarantees a remarkable performance on a target domain. However, they lack a mathematical analysis of why a Lipschitz constraint is beneficial to unsupervised domain adaptation and usually perform poorly on large-scale datasets. In this paper, we take the principle of utilizing a Lipschitz constraint further by discussing how it affects the error bound of unsupervised domain adaptation. A connection between them is built and an illustration of how Lipschitzness reduces the error bound is presented. A \textbf{local smooth discrepancy} is defined to measure Lipschitzness of a target distribution in a pointwise way. When constructing a deep end-to-end model, to ensure the effectiveness and stability of unsupervised domain adaptation, three critical factors are considered in our proposed optimization strategy, i.e., the sample amount of a target domain, dimension and batchsize of samples. Experimental results demonstrate that our model performs well on several standard benchmarks. Our ablation study shows that the sample amount of a target domain, the dimension and batchsize of samples indeed greatly impact Lipschitz-constraint-based methods' ability to handle large-scale datasets. Code is available at https://github.com/CuthbertCai/SRDA.
BibTeX
@article{cai2019learning,
  author = {Guanyu Cai and Lianghua He and MengChu Zhou and Hesham Alhumade and Die Hu},
  title = {{Learning Smooth Representation for Unsupervised Domain Adaptation}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2019},
}
Figure