Towards Optimization and Model Selection for Domain Generalization: A Mixup-guided Solution

Wang Lu, Jindong Wang, Yidong Wang, Xing Xie

Introduction

Domain Generalization (DG) remains a significant hurdle in machine learning, where the goal is to train models on multiple source domains such that they generalize effectively to completely unseen target domains. While much research has focused on designing novel loss functions, a team from Microsoft Research and Tsinghua University identifies two persistent "elephants in the room": conflicting optimization objectives and biased model selection. This paper proposes a Mixup-guided framework to address these foundational issues.

Problem Statement

The authors identify two primary flaws in the current DG paradigm:

  1. Optimization Conflicts: Most DG algorithms incorporate a regularization term to promote domain-invariant features. However, this often creates a multi-objective "tug-of-war" where improving domain invariance can inadvertently degrade the primary goal of classification accuracy.
  2. The Model Selection Dilemma: Standard validation techniques use data from the training distribution. In DG, this fails to reflect the distribution shift of the unseen target domain, leading to models that are over-fitted to source domains and perform poorly in the real world.

Methodology: OPTD and VALD

The researchers introduce two main components powered by an adapted version of Mixup, a data augmentation technique that creates virtual examples by interpolating between pairs of real data points.

OPTD: Mixup-guided Optimization

OPTD generates a synthetic "out-of-distribution" (OOD) dataset to serve as a proxy for unseen domains. Gradients from this dataset guide Pareto Optimization. As shown in the architectural diagram below, the framework utilizes a Shared Feature Net followed by a Bottleneck Layer. Instead of using fixed weights for loss terms, the algorithm dynamically adjusts the balance between classification and alignment gradients (represented by $\alpha$ and $1-\alpha$). This ensures the model moves in a direction that benefits both classification and generalization simultaneously.

The Mixup-guided framework (OPTD) balancing classification and alignment gradients.

VALD: Mixup-guided Model Selection

VALD creates a new validation set by mixing samples of the same class across different domains. Theoretically grounded in $\mathcal{H}$-divergence, this "mixed" distribution provides a tighter upper bound on the target error, making it a more accurate "yardstick" for picking the best-performing model for unseen environments.

Experimental Results

The proposed techniques were evaluated across time-series benchmarks (DSADS, PAMAP2, USC-HAD) and the PACS computer vision benchmark. These components are designed as "plug-ins" that can be added to base architectures like DANN (Domain-Adversarial Neural Networks) and CORAL.

Accuracy comparison on DSADS and USC-HAD datasets, demonstrating the performance boost from OPTD and VALD.

As illustrated in the results for DSADS (a) and USC-HAD (b), the proposed methods significantly boosted the performance of the DANN base model across all tasks. The "AVG" bars highlight the consistent improvement: on the DSADS dataset, adding the Mixup-guided solution improved average accuracy from 82.57% to 89.66%. In the vision domain, "DANN + Ours" achieved 82.96% on the PACS benchmark, setting a new high bar compared to other state-of-the-art methods like GroupDRO and RSC.

Conclusion

This work demonstrates that Mixup can serve as both a "compass" for balancing optimization objectives and a "yardstick" for more accurate model selection. By addressing these core training and evaluation issues, the proposed framework allows even older architectures to achieve state-of-the-art results in Domain Generalization. Future work will explore more sophisticated OOD data generation techniques beyond linear interpolation to further enhance model robustness.

Summary updated

BibTeX
@inproceedings{lu2022towards,
  author = {Wang Lu and Jindong Wang and Yidong Wang and Xing Xie},
  title = {{Towards Optimization and Model Selection for Domain Generalization: A Mixup-guided Solution}},
  booktitle = {SDM},
  year = {2022},
  url = {https://openreview.net/forum?id=9o2I8mV8jw},
}
Figure