Domain Generalization with MixStyle

Kaiyang Zhou, Yongxin Yang, Yu Qiao, Tao Xiang
4/5/2021
cs.CVcs.LG

Official code: KaiyangZhou/mixstyle-release (337 stars, MIT, last commit 2022-10-06). 1 more implementation below.

Abstract

Though convolutional neural networks (CNNs) have demonstrated remarkable ability in learning discriminative features, they often generalize poorly to unseen domains. Domain generalization aims to address this problem by learning from a set of source domains a model that is generalizable to any unseen domain. In this paper, a novel approach is proposed based on probabilistically mixing instance-level feature statistics of training samples across source domains. Our method, termed MixStyle, is motivated by the observation that visual domain is closely related to image style (e.g., photo vs.~sketch images). Such style information is captured by the bottom layers of a CNN where our proposed style-mixing takes place. Mixing styles of training instances results in novel domains being synthesized implicitly, which increase the domain diversity of the source domains, and hence the generalizability of the trained model. MixStyle fits into mini-batch training perfectly and is extremely easy to implement. The effectiveness of MixStyle is demonstrated on a wide range of tasks including category classification, instance retrieval and reinforcement learning.

View on arXivView PDF

Code Implementations(2)

MIT

Domain Generalization with MixStyle (ICLR'21)

33743C++, ShellJul 24, 20204 years agoMIT
domain-generalizationfeature-statisticsiclr2021image-classificationperson-reidentification+2 more
PyTorchMIT

A PyTorch toolbox for domain generalization, domain adaptation and semi-supervised learning.

1,431197Shell, PythonMar 10, 20202 years agoMIT
artificial-intelligencebenchmark-datasetscomputer-visiondeep-learningdeep-neural-networks+5 more

Similar Papers

Cite this paper

@article{zhou2021domain,
  title  = {Domain Generalization with MixStyle},
  author = {Kaiyang Zhou and Yongxin Yang and Yu Qiao and Tao Xiang},
  year   = {2021},
  eprint = {2104.02008},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.02008}
}

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/2104.02008.svg)](https://codeofpaper.com/paper/2104.02008)

Discussion