Skip to main content
QUICK REVIEW

[Paper Review] Quantifying and Improving Transferability in Domain Generalization

Guojun Zhang, Han Zhao|arXiv (Cornell University)|Jun 7, 2021
Domain Adaptation and Few-Shot LearningComputer Science61 references6 citations
TL;DR

This paper introduces a new formal definition of transferability in domain generalization, measuring the invariance of excess risk across domains. It proposes a method to estimate transferability empirically and develops a novel adversarial training algorithm that improves feature transferability, achieving state-of-the-art performance on benchmarks like PACS, Office-Home, and WILDS-FMoW.

ABSTRACT

Out-of-distribution generalization is one of the key challenges when transferring a model from the lab to the real world. Existing efforts mostly focus on building invariant features among source and target domains. Based on invariant features, a high-performing classifier on source domains could hopefully behave equally well on a target domain. In other words, the invariant features are \emph{transferable}. However, in practice, there are no perfectly transferable features, and some algorithms seem to learn "more transferable" features than others. How can we understand and quantify such \emph{transferability}? In this paper, we formally define transferability that one can quantify and compute in domain generalization. We point out the difference and connection with common discrepancy measures between domains, such as total variation and Wasserstein distance. We then prove that our transferability can be estimated with enough samples and give a new upper bound for the target error based on our transferability. Empirically, we evaluate the transferability of the feature embeddings learned by existing algorithms for domain generalization. Surprisingly, we find that many algorithms are not quite learning transferable features, although few could still survive. In light of this, we propose a new algorithm for learning transferable features and test it over various benchmark datasets, including RotatedMNIST, PACS, Office-Home and WILDS-FMoW. Experimental results show that the proposed algorithm achieves consistent improvement over many state-of-the-art algorithms, corroborating our theoretical findings.

Motivation & Objective

  • To address the gap between theoretical invariance assumptions and empirical performance in domain generalization, especially under distribution shift.
  • To formalize and quantify transferability as the invariance of excess risk across domains, rather than just feature or predictor invariance.
  • To develop a practical method for estimating transferability from data using adversarial perturbations and empirical risk minimization.
  • To design a new algorithm that explicitly optimizes for transferability, improving generalization under domain shift.
  • To empirically validate that many existing methods fail to learn transferable features, despite strong source performance.

Proposed method

  • Defines transferability as the invariance of excess risk (difference between predictor risk and Bayes risk) across domains, capturing joint feature-label distribution shifts.
  • Derives a new upper bound for target error based on transferability, linking it directly to generalization performance.
  • Proposes an empirical estimation procedure using adversarial perturbations within a small radius δ to assess transferability of learned features.
  • Introduces a new training algorithm that optimizes for transferability via adversarial training, encouraging robustness to small input perturbations across domains.
  • Uses a two-stream training setup: a feature encoder and a predictor, with domain discrimination and adversarial regularization to improve transferability.
  • Employs a meta-learning-like inner loop to simulate perturbations and optimize for robustness, with hyperparameters like δ and inner steps tuned for performance.

Experimental results

Research questions

  • RQ1How can transferability in domain generalization be formally defined and quantified beyond existing discrepancy measures like total variation or Wasserstein distance?
  • RQ2To what extent do existing domain generalization algorithms actually learn transferable features, as measured by invariance of excess risk?
  • RQ3Can a new training objective based on transferability estimation lead to improved generalization on unseen target domains?
  • RQ4How does the proposed method compare to state-of-the-art algorithms in terms of robustness and accuracy across diverse benchmarks?
  • RQ5What is the impact of hyperparameters like adversarial radius δ and inner loop steps on transferability and model performance?

Key findings

  • Many existing domain generalization algorithms, including ERM and GroupDRO, exhibit poor transferability: source accuracy remains high while target accuracy drops significantly under small perturbations.
  • The proposed algorithm achieves consistent improvements over state-of-the-art methods on PACS, Office-Home, RotatedMNIST, and WILDS-FMoW, with up to 97.6% test accuracy on PACS and 92.33% on Office-Home.
  • On Office-Home, CORAL and SD show higher transferability, while RSC and MMD degrade sharply under perturbations, indicating poor robustness.
  • Transferability estimation via adversarial perturbations (δ) effectively identifies models that generalize poorly, even when source performance is strong.
  • The upper bound on target error derived from transferability closely correlates with actual test performance, validating its theoretical soundness.
  • The method demonstrates that improving transferability leads to better generalization, even surpassing complex methods like VREx and MMD under distribution shift.

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.