Stein Discrepancy for Unsupervised Domain Adaptation

Anneke von Seeger, Dongmian Zou, Gilad Lerman · DOI

Introduction

Unsupervised Domain Adaptation (UDA) aims to bridge the gap between a labeled source domain (e.g., synthetic data) and an unlabeled target domain (e.g., real-world imagery). The standard paradigm involves feature alignment, where a model is incentivized to learn representations that are invariant across domains. However, traditional alignment techniques rely on symmetric distance measures like Maximum Mean Discrepancy (MMD) or Wasserstein distance. These measures often falter in "scarce target" scenarios—where target data is extremely limited—due to the high variance inherent in estimating distributions from small sample sizes.

This paper introduces a novel framework that leverages Stein Discrepancy (SD) to address these limitations, providing a data-efficient alternative for robust domain adaptation.

The Stein Discrepancy Advantage

The core innovation lies in the use of Stein Discrepancy as an asymmetric statistical distance. Unlike MMD, which requires expectations over both source and target distributions, SD compares the source distribution to the target distribution using the target's score function ($\nabla_x \log q(x)$).

By utilizing the score function, the method avoids the need for high-variance expectations over a sparse set of target samples. This "asymmetry" allows the model to focus on the underlying geometry of the target distribution rather than relying on noisy sample means. To implement this in practice, the authors model the target distribution in the latent feature space using parametric proxies such as Gaussians, Gaussian Mixture Models (GMMs), or Variational Autoencoders (VAEs).

Architectural Implementations

The framework is realized through two primary architectural variants: a Kernelized version and an Adversarial version.

Comparison of Kernelized and Adversarial Architectures for Stein Discrepancy-based UDA.
  1. Kernelized Architecture (KSD): This version utilizes a closed-form solution for the discrepancy, offering a computationally efficient way to align features.
  2. Adversarial Architecture: This variant employs a discriminator-like network ($f$) to identify the most "discriminant" functions, providing more flexibility in complex feature spaces.

Experimental Performance and Stability

The methodology was rigorously tested on standard benchmarks (Office31, Office-Home, and VisDA-2017) under extreme data scarcity, using as little as 0.1% of available target data.

Key findings include:

  • Robustness to Scarcity: While the performance of traditional methods like DANN and MMD plummets as target data decreases, Stein-based methods maintain a remarkably flat and robust performance curve.
  • State-of-the-Art Results: In the 1% data regime on Office31, the SD-AGAU (Adversarial GMM) method outperformed established baselines by significant margins. On the massive VisDA-2017 dataset, the VAE-based approach (SD-AVAE) proved most effective in the 0.1% data regime (approximately 55 samples).
  • Latent Space Efficiency: The success of simple Gaussian proxies suggests that deep networks naturally drive features toward clustered configurations (neural collapse), making them well-suited for score-based alignment.

Conclusion and Future Work

Stein Discrepancy offers a powerful, data-efficient tool for UDA in low-resource settings. While it excels in scarce-data niches, it is currently less competitive when target data is abundant. Future research directions include developing more rigorous convergence proofs for GMM and VAE proxies and refining hyperparameter tuning for the Stein operator without the aid of labeled target data.

Summary updated

BibTeX
@misc{seeger2025stein,
  author = {Anneke von Seeger and Dongmian Zou and Gilad Lerman},
  title = {{Stein Discrepancy for Unsupervised Domain Adaptation}},
  year = {2025},
  eprint = {2502.03587},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.03587},
}
Figure