Semantic-Aware Mixup for Domain Generalization

Chengchao Xu, Xinmei Tian
4/12/2023
6 citations
cs.CV

Official code: ccxu-ustc/SAM (8 stars, Python, last commit 2023-03-12).

Abstract

Deep neural networks (DNNs) have shown exciting performance in various tasks, yet suffer generalization failures when meeting unknown target domains. One of the most promising approaches to achieve domain generalization (DG) is generating unseen data, e.g., mixup, to cover the unknown target data.

Show full abstract

However, existing works overlook the challenges induced by the simultaneous appearance of changes in both the semantic and distribution space. Accordingly, such a challenge makes source distributions hard to fit for DNNs. To mitigate the hard-fitting issue, we propose to perform a semantic-aware mixup (SAM) for domain generalization, where whether to perform mixup depends on the semantic and domain information. The feasibility of SAM shares the same spirits with the Fourier-based mixup. Namely, the Fourier phase spectrum is expected to contain semantics information (relating to labels), while the Fourier amplitude retains other information (relating to style information). Built upon the insight, SAM applies different mixup strategies to the Fourier phase spectrum and amplitude information. For instance, SAM merely performs mixup on the amplitude spectrum when both the semantic and domain information changes. Consequently, the overwhelmingly large change can be avoided. We validate the effectiveness of SAM using image classification tasks on several DG benchmarks.

View on arXivView PDF

Code Implementations(1)

ccxu-ustc/SAMOfficial100%

This repo provides a demo for the paper "Semantic-Aware Mixup for Domain Generalization" on the PACS dataset.

81PythonMar 12, 20233 years ago

Similar Papers

Cite this paper

@article{xu2023semanticaware,
  title  = {Semantic-Aware Mixup for Domain Generalization},
  author = {Chengchao Xu and Xinmei Tian},
  year   = {2023},
  eprint = {2304.05675},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.05675v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.05675.svg)](https://codeofpaper.com/paper/2304.05675)

Discussion