Papers › Sparse Mixture-of-Experts are Domain Generalizable Learners

Sparse Mixture-of-Experts are Domain Generalizable Learners

8 Jun 2022arXiv:2206.04046archive 2025-07-28

Bo Li, Yifei Shen, Jingkang Yang, Yezhen Wang, Jiawei Ren, Tong Che, Jun Zhang, Ziwei Liu

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. 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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2206.04046")

Code

Syntology Ran 7 of 14 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 5 ran with no contract checked.

By repository: official repository: 14 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

luodian/sf-moe-dg officialmentioned in papermentioned on GitHubpytorchMIT report
KU-CVLAB/MoA mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 7 ran; 0 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
5ran
7unverified

Licence: 14 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from luodian/sf-moe-dg. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Classifier luodian/sf-moe-dg/domainbed/networks.py official repository ran · our draft was wrong MIT recorded; this copy not marked cleared · pointer only · ce7990d7ad5821ff · report
get_test_records luodian/sf-moe-dg/domainbed/model_selection.py official repository ran · our draft was wrong MIT recorded; this copy not marked cleared · pointer only · 53fac8d8d949e72b · report
hashable luodian/sf-moe-dg/domainbed/lib/query.py official repository ran fingerprinted MIT recorded; this copy not marked cleared · pointer only · 71a3a61ceed99bf3 · report
l2_between_dicts luodian/sf-moe-dg/domainbed/lib/misc.py official repository ran MIT recorded; this copy not marked cleared · pointer only · 1fdaff04251a0d51 · report
levelize luodian/sf-moe-dg/domainbed/lib/logger.py official repository ran fingerprinted MIT recorded; this copy not marked cleared · pointer only · 2f597a2077a1c95d · report
make_selector_fn luodian/sf-moe-dg/domainbed/lib/query.py official repository ran MIT recorded; this copy not marked cleared · pointer only · 2f8af5779e1edcb6 · report
remove_batch_norm_from_resnet luodian/sf-moe-dg/domainbed/networks.py official repository ran MIT recorded; this copy not marked cleared · pointer only · 196cab71d7129d62 · report
accuracy_from_loader luodian/sf-moe-dg/domainbed/evaluator.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 687efdf3db9c44df · report
get_algorithm_class luodian/sf-moe-dg/domainbed/algorithms.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · b0bc80b1655a6802 · report
get_dataset_class luodian/sf-moe-dg/domainbed/datasets.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · d0ea85d74c20dea9 · report
merge_dictlist luodian/sf-moe-dg/domainbed/lib/misc.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 76234ee525d6cffa · report
num_environments luodian/sf-moe-dg/domainbed/datasets.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 73f32252eedba6a4 · report
timestamp luodian/sf-moe-dg/domainbed/lib/misc.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 8d1e0bd5375d5c57 · report
torchhub_load luodian/sf-moe-dg/domainbed/backbones.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 1b14276412acf071 · report

Tasks

Domain GeneralizationMixture-of-ExpertsObject Recognition

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Domain Generalization DomainNet Hybrid-SF-MoE Average Accuracy 52.0 #19 of 38 Archive leaderboard report
Domain Generalization DomainNet GMoE-S/16 Average Accuracy 48.7 #24 of 38 Archive leaderboard report
Domain Generalization Office-Home GMoE-S/16 Average Accuracy 74.2 #19 of 45 Archive leaderboard report
Domain Generalization PACS GMoE-S/16 Average Accuracy 88.1 #32 of 133 Archive leaderboard report
Domain Generalization TerraIncognita GMoE-S/16 Average Accuracy 48.5 #28 of 30 Archive leaderboard report
Domain Generalization VLCS GMoE-S/16 Average Accuracy 80.2 #19 of 37 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections