Skip to main content
QUICK REVIEW

[Paper Review] Domain Generalization via Inference-time Label-Preserving Target Projections

Prashant Pandey, Mrigank Raman|arXiv (Cornell University)|Mar 1, 2021
Domain Adaptation and Few-Shot LearningComputer Science46 references4 citations
TL;DR

This paper proposes a novel domain generalization method that leverages a single target sample at inference time by projecting it onto the source feature manifold via a label-preserving optimization. By learning domain-invariant, class-preserving features and using a generative model to project the target input, the method achieves state-of-the-art performance on multiple benchmarks, outperforming existing methods in accuracy, robustness, and data efficiency.

ABSTRACT

Generalization of machine learning models trained on a set of source domains on unseen target domains with different statistics, is a challenging problem. While many approaches have been proposed to solve this problem, they only utilize source data during training but do not take advantage of the fact that a single target example is available at the time of inference. Motivated by this, we propose a method that effectively uses the target sample during inference beyond mere classification. Our method has three components - (i) A label-preserving feature or metric transformation on source data such that the source samples are clustered in accordance with their class irrespective of their domain (ii) A generative model trained on the these features (iii) A label-preserving projection of the target point on the source-feature manifold during inference via solving an optimization problem on the input space of the generative model using the learned metric. Finally, the projected target is used in the classifier. Since the projected target feature comes from the source manifold and has the same label as the real target by design, the classifier is expected to perform better on it than the true target. We demonstrate that our method outperforms the state-of-the-art Domain Generalization methods on multiple datasets and tasks.

Motivation & Objective

  • To improve generalization of machine learning models on unseen target domains with different data distributions.
  • To address the limitation of existing domain generalization methods that do not utilize the target sample beyond classification.
  • To learn a domain-invariant, label-preserving feature space from source data that enables effective target sample projection.
  • To enhance model robustness and data efficiency by projecting target inputs onto the source feature manifold during inference.
  • To demonstrate superior performance on standard domain generalization benchmarks under diverse evaluation settings.

Proposed method

  • Learn a label-preserving feature transformation on source data using a network $f_\theta$ to cluster samples by class regardless of domain.
  • Train a generative model $G_\phi$ that maps a standard normal distribution to the source feature manifold, preserving class structure.
  • At inference, perform an optimization over the input space of $G_\phi$ to project the target sample onto the source manifold while preserving its class label.
  • Use the projected target feature—derived from the source manifold and with the same label as the original target—for classification.
  • Optimize the projection using a label-preserving objective that ensures the projected point remains close to the original target and lies within the source feature distribution.
  • Train $f_\theta$, $G_\phi$, and classifier $\mathcal{C}_\psi$ independently during training, with no parameter updates during inference.

Experimental results

Research questions

  • RQ1Can leveraging a single target sample at inference time improve generalization on unseen domains beyond standard classification?
  • RQ2Can a label-preserving feature transformation on source data enable better alignment of features across domains while preserving class information?
  • RQ3Does projecting the target sample onto the source feature manifold via optimization improve classification accuracy compared to direct inference?
  • RQ4How does the proposed method compare to state-of-the-art domain generalization methods in terms of robustness and data efficiency?
  • RQ5Can the method generalize effectively under severe distribution shifts and corruptions, such as those in CIFAR-10-C?

Key findings

  • The proposed method achieves state-of-the-art performance on multiple domain generalization benchmarks, including PACS, Office-Home, and Digits-DG.
  • On the PACS dataset with ResNet-18, the method achieves a test accuracy of 89.6% on the Sketch domain, outperforming prior methods.
  • The method demonstrates strong robustness, maintaining high performance across all 19 corruption types in CIFAR-10-C with severity level 5.
  • Ablation studies confirm that both the $f_\theta$ and $G_\phi$ components are essential, with performance dropping significantly when either is removed.
  • The method is more data-efficient than baselines, showing superior performance even with limited source data.
  • Inference-time optimization is stable and robust to hyperparameter choices, with consistent performance across different iteration rates and stopping points.

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.