Skip to main content
QUICK REVIEW

[Paper Review] A Primer on Domain Adaptation

Pirmin Lemberger, Ivan Panico|arXiv (Cornell University)|Jan 27, 2020
Data Stream Mining TechniquesComputer Science20 references10 citations
TL;DR

This paper provides a pedagogical review of domain adaptation (DA) by rigorously analyzing four key cases—prior shift, covariate shift, concept shift, and subspace mapping—using intuitive, geometric, and mathematical frameworks. It derives an EM-based algorithm for prior shift adaptation, showing that target class priors can be estimated via iterative reweighting of source predictions using Bayes' rule.

ABSTRACT

Standard supervised machine learning assumes that the distribution of the source samples used to train an algorithm is the same as the one of the target samples on which it is supposed to make predictions. However, as any data scientist will confirm, this is hardly ever the case in practice. The set of statistical and numerical methods that deal with such situations is known as domain adaptation, a field with a long and rich history. The myriad of methods available and the unfortunate lack of a clear and universally accepted terminology can however make the topic rather daunting for the newcomer. Therefore, rather than aiming at completeness, which leads to exhibiting a tedious catalog of methods, this pedagogical review aims at a coherent presentation of four important special cases: (1) prior shift, a situation in which training samples were selected according to their labels without any knowledge of their actual distribution in the target, (2) covariate shift which deals with a situation where training examples were picked according to their features but with some selection bias, (3) concept shift where the dependence of the labels on the features defers between the source and the target, and last but not least (4) subspace mapping which deals with a situation where features in the target have been subjected to an unknown distortion with respect to the source features. In each case we first build an intuition, next we provide the appropriate mathematical framework and eventually we describe a practical application.

Motivation & Objective

  • To address the challenge of distributional shift between training (source) and test (target) data in supervised machine learning, which undermines standard ML assumptions.
  • To resolve confusion arising from inconsistent terminology and overlapping concepts in domain adaptation (DA), particularly with transfer learning (TL).
  • To provide a coherent, conceptually consistent framework for four major DA scenarios, emphasizing clarity over exhaustive cataloging of methods.
  • To bridge the gap between theoretical statistical learning and practical implementation by linking intuition, mathematics, and real-world applications.

Proposed method

  • Uses the Expectation-Maximization (EM) algorithm to estimate unknown target class priors in prior shift scenarios, treating label assignments as latent variables.
  • Derives the EM update rule by maximizing the log-likelihood of the joint distribution under the assumption that class-conditional feature densities are identical across source and target domains.
  • Applies Bayes' rule to express target posterior probabilities as a reweighting of source posteriors, scaled by the ratio of target to source class priors.
  • Implements iterative updates: first estimating target posteriors from source predictions (E-step), then updating target priors via empirical averaging (M-step).
  • Introduces a Lagrangian multiplier to enforce the probability simplex constraint (sum of priors equals one) during optimization.
  • Establishes a closed-form update for target priors: $\theta_k^{(s+1)} = \frac{1}{m}\sum_{i=1}^{m} \hat{p}_T^{(s)}(\omega_k|\mathbf{x}_i)$, derived from the EM procedure.

Experimental results

Research questions

  • RQ1How can we adapt a classifier trained on a source domain with biased label distribution to a target domain with unknown but different label priors?
  • RQ2What mathematical framework allows for consistent estimation of target priors when only source data and features are available?
  • RQ3How does the EM algorithm enable iterative refinement of prior estimates in the presence of latent label assignments?
  • RQ4In what way does the ratio of target-to-source class priors correct for selection bias in stratified sampling?
  • RQ5Can a principled, probabilistic approach to domain adaptation be derived from first principles without relying on ad hoc heuristics?

Key findings

  • The EM algorithm successfully estimates target class priors by iteratively refining posterior probabilities using Bayes' rule and empirical averaging.
  • The derived update rule $\theta_k^{(s+1)} = \frac{1}{m}\sum_{i=1}^{m} \hat{p}_T^{(s)}(\omega_k|\mathbf{x}_i)$ converges to the maximum likelihood estimate of target priors under the prior shift assumption.
  • The method is theoretically grounded in the EM framework, with convergence guaranteed under standard regularity conditions.
  • The approach correctly accounts for selection bias in stratified sampling by reweighting source posteriors using the unknown target prior ratio.
  • The derivation shows that the M-step update for $\theta_k$ is proportional to the expected number of samples assigned to class $k$ under the current estimate, ensuring probability normalization.
  • The method provides a principled alternative to heuristic reweighting or recalibration techniques in prior shift scenarios.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.