Sparse Mixture-of-Experts are Domain Generalizable Learners

Bo Li, Yifei Shen, Jingkang Yang, Yezhen Wang, Jiawei Ren +3 more
6/8/2022
121 citations
cs.CVcs.AIcs.LG
transformer-attentionmoe

Official code: Luodian/Generalizable-Mixture-of-Experts (274 stars, Python, MIT, PyTorch, last commit 2023-03-21).

Abstract

Human visual perception can easily generalize to out-of-distributed visual data, which is far beyond the capability of modern machine learning models. Domain generalization (DG) aims to close this gap, with existing DG methods mainly focusing on the loss function design.

Show full abstract

In this paper, we propose to explore an orthogonal direction, i.e., the design of the backbone architecture. It is motivated by an empirical finding that transformer-based models trained with empirical risk minimization (ERM) outperform CNN-based models employing state-of-the-art (SOTA) DG algorithms on multiple DG datasets. We develop a formal framework to characterize a network's robustness to distribution shifts by studying its architecture's alignment with the correlations in the dataset. This analysis guides us to propose a novel DG model built upon vision transformers, namely Generalizable Mixture-of-Experts (GMoE). Extensive experiments on DomainBed demonstrate that GMoE trained with ERM outperforms SOTA DG baselines by a large margin. Moreover, GMoE is complementary to existing DG methods and its performance is substantially improved when trained with DG algorithms.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

GMoE could be the next backbone model for many kinds of generalization task.

27428PythonMay 28, 20223 years agoMIT
deep-learningdomain-generalizationmixture-of-expertspytorchpytorch-implementation

Similar Papers

Cite this paper

@article{li2022sparse,
  title  = {Sparse Mixture-of-Experts are Domain Generalizable Learners},
  author = {Bo Li and Yifei Shen and Jingkang Yang and Yezhen Wang and Jiawei Ren and Tong Che and Jun Zhang and Ziwei Liu},
  year   = {2022},
  eprint = {2206.04046},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.04046}
}

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

Discussion