potentialpaper

Random-Effects Centroids for Domain Generalization

Jinyong Jeong, Hyungu Kahng, Seoung Bum Kim

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We introduce Random-Effects Centroid (REC), a domain generalization method that trains one expert per source environment and directly optimizes their uniform average, the optimal fixed deployment rule under a random-effects model.

Abstract. Domain generalization (DG) aims to learn from multiple source environments and perform well on unseen target environments. A common practice is to pool the source data and deploy a single predictor, which implicitly weights each environment by its sample size. We study a different deployment object, in which each source environment has its own expert head on a shared representation. The experts are combined with fixed simplex weights that require no environment label at test time. We show that under a same-meta random-effects model, where the environment-specific optimal heads scatter iid around a shared meta-mean, the optimal fixed weights are uniform. With a common feature second moment, the uniform average of the optimal heads, the uniform centroid, reduces excess risk relative to pooling by an amount that grows with the imbalance in sample sizes. Meanwhile, uniform weights alone do not make the trained average accurate, since its accuracy depends on how the experts and the shared representation are learned. We introduce REC (Random-Effects Centroid), a training objective that fits the experts and directly trains their uniform average on every source environment. In the same setting, its centroid term controls both the distance of the trained average from the uniform centroid and the dispersion of the optimal heads. Synthetic experiments isolate the population-level effect of the weighting and probe learned-representation behavior. WILDS experiments show that REC is competitive with established DG baselines and that the centroid term is necessary for a useful averaged predictor.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
5 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]—[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:44 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This paper proposes Random-Effects Centroid (REC) for domain generalization with one expert head per source environment. Under a same-meta random-effects model, it shows that uniformly averaging the heads minimizes expected excess risk and differs from pooled ERM, which implicitly weights environments by sample size. REC adds a centroid loss that directly optimizes the average predictor used at deployment and is evaluated on synthetic data and four WILDS benchmarks.

The paper is mathematically rigorous, clearly distinguishes environment-weighted averaging from sample-weighted ERM, and offers a simple, practical training objective with single-head inference cost. The synthetic results support the theory, while the WILDS experiments show that REC is competitive and effective on some datasets.

The main limitation is the theory’s restricted scope. It assumes IID environments from a shared meta-distribution, fixed representations, linear heads, and squared loss, whereas the real experiments use held-out domains, jointly trained deep representations, and classification losses. Performance is also inconsistent across WILDS datasets, and the original evaluation did not adequately establish whether multiple heads outperform a single-head, environment-uniformly weighted baseline or other simple coordination strategies. The contribution is therefore meaningful but incremental, and its applicability to broader domain-generalization settings remains uncertain.

The rebuttal addressed most reviewer questions through additional theoretical clarification and empirical evidence. Two reviewers retained positive assessments, one reviewer raised their score, and the initially negative reviewer indicated no further objection if the remaining scope limitations are considered acceptable. The final paper should nevertheless clearly delimit the same-meta regime and distinguish REC from established model-averaging and multi-head approaches.

Final justification

REC presents a sound and potentially useful objective supported by rigorous analysis and reasonable empirical evidence. Although the theory-practice gap, incremental novelty, and inconsistent benchmark gains limit the paper’s broader significance, the rebuttal sufficiently addressed the main concerns. On balance, the paper’s conceptual clarity and practical simplicity narrowly outweigh its remaining limitations, supporting a 4, Weak Accept recommendation.

Area Chair 2fx9 · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

This paper proposes Random-Effects Centroid (REC) for domain generalization with one expert head per source environment. Under a same-meta random-effects model, it shows that uniformly averaging the heads minimizes expected excess risk and differs from pooled ERM, which implicitly weights environments by sample size. REC adds a centroid loss that directly optimizes the average predictor used at deployment and is evaluated on synthetic data and four WILDS benchmarks.

The paper is mathematically rigorous, clearly distinguishes environment-weighted averaging from sample-weighted ERM, and offers a simple, practical training objective with single-head inference cost. The synthetic results support the theory, while the WILDS experiments show that REC is competitive and effective on some datasets.

The main limitation is the theory’s restricted scope. It assumes IID environments from a shared meta-distribution, fixed representations, linear heads, and squared loss, whereas the real experiments use held-out domains, jointly trained deep representations, and classification losses. Performance is also inconsistent across WILDS datasets, and the original evaluation did not adequately establish whether multiple heads outperform a single-head, environment-uniformly weighted baseline or other simple coordination strategies. The contribution is therefore meaningful but incremental, and its applicability to broader domain-generalization settings remains uncertain.

The rebuttal addressed most reviewer questions through additional theoretical clarification and empirical evidence. Two reviewers retained positive assessments, one reviewer raised their score, and the initially negative reviewer indicated no further objection if the remaining scope limitations are considered acceptable. The final paper should nevertheless clearly delimit the same-meta regime and distinguish REC from established model-averaging and multi-head approaches.

Final justification

REC presents a sound and potentially useful objective supported by rigorous analysis and reasonable empirical evidence. Although the theory-practice gap, incremental novelty, and inconsistent benchmark gains limit the paper’s broader significance, the rebuttal sufficiently addressed the main concerns. On balance, the paper’s conceptual clarity and practical simplicity narrowly outweigh its remaining limitations, supporting a 4, Weak Accept recommendation.

1 comment
Authors · CommentOpenReview ↗

We thank the AC for setting out the points to address. All six are addressed in our responses to the reviewers. We note below where each is answered and what it establishes.

Scope of the same-meta assumption. Our response to Reviewer WCHP separates the two parts of the assumption and identifies the one the deployed rule does not need. Our response to Reviewer JW7i delimits the class of DG problems the analysis targets by the way the environments were collected, states which designs meet the condition and which do not, and reports results on five DomainBed benchmarks that fall outside it. Our response to Reviewer FD2m shows that the choice of deployment rule does not depend on how the target is drawn, and identifies the transfer bound of Section 4.3 as the result that does.

Theory-experiment gap. Our response to Reviewer WCHP shows that the heads used in the experiments are the ones the analysis assumes, that the choice of deployment rule holds for any convex loss and so covers the cross-entropy of our experiments, and that the squared loss enters only the closed-form magnitudes, with an assumption table recording what each result requires. Our response to Reviewer JW7i separates the claim about the deployment rule from the claim about training, and locates where the conditioning on a fixed representation is used. Our response to Reviewer FD2m tests the rule in the practical setting, comparing deployment rules on trained models with the representation and the heads held fixed.

Need for multiple heads. Our response to Reviewer JW7i reports the requested single-head, environment-uniformly reweighted ERM baseline on all four datasets, which separates what the reweighting contributes from what the multiple heads contribute.

Alternative coordination strategies. Our response to Reviewer FD2m compares REC against an L2 consensus penalty under an otherwise identical setup, which separates what the centroid term scores from coordination among the heads.

Inconsistent benchmark performance. Our response to Reviewer FD2m identifies two properties, computable from benchmark metadata before training, that separate the datasets where a gain is available from the one where it is not, and reports per-head measurements on the datasets where the expert term alone fails.

Novelty and presentation. Our response to Reviewer WCHP states what distinguishes the deployment question from model averaging and from prior multi-head DG, and addresses the presentation of the theory and the bibliography. Our response to Reviewer JW7i states how the result differs from the classical minimum-variance argument and what the translation to the DG setting adds.

Reviewer FD2mOpenReview ↗
Rating
3/6
Confidence
5/5
Quality
2/4
Clarity
3/4
Significance
2/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper investigates multi-head domain generalization using test-time uniform averaging. To directly optimize the deployed predictor during training rather than treating it as a by-product, the authors propose REC, which applies an explicit loss to the averaged head. A random effects analysis is provided to justify uniform averaging, and the method is evaluated on synthetic and four WILDS datasets.

Strengths and weaknesses

Strengths:

  1. A clear distinction is made between pooled ERM weighted by sample size and uniform averaging across environments.
  2. Directly optimizing the averaged deployment head is simple, easy to implement, and more sensible than averaging independently trained experts without any coordination.

Weaknesses:

  1. The theoretical result is established under a limited set of assumptions, including iid environments from the same meta distribution, linear heads, and squared loss. This makes the practical scope of the result unclear for more realistic domain shifts and nonlinear classification settings.
  2. A gap remains between the theory and the experiments. The analysis assumes a fixed representation, linear heads, and squared loss, while the real experiments jointly learn a deep representation and use classification losses for which the theoretical results are only approximate.
  3. Performance on WILDS is inconsistent across datasets. REC performs well on IWILDCAM and POVERTYMAP, but only matches competing methods on CAMELYON17 and falls below ERM and HeckmanDG on RXRX1.
  4. REC is algorithmically simple, consisting of environment specific heads and an additional loss on their uniform average. However, the ablation mainly compares REC with expert only training, leaving it unclear whether the centroid loss is preferable to other simple ways of coordinating multiple heads.
Questions
  1. How robust is REC when the target environment differs more substantially from the source environments than assumed by the same meta setting? An additional analysis or experiment under stronger distribution shifts would help clarify the practical scope of the method.
  2. The theory is derived for a fixed representation with linear heads and squared loss, but the experiments jointly train deep features using classification losses. Can the authors provide additional evidence that the same averaging principle remains valid in this practical setting?
  3. The current ablation only compares REC with uncoordinated expert training. Could the authors compare the centroid loss with at least one other simple multi head coordination strategy to show that the gain is specific to their design?
  4. REC performs well on some WILDS datasets but not on others. Can the authors explain which dataset properties make the method effective, and provide analysis showing why the gains vary across benchmarks?
Limitations

yes

Final justification

Based on the authors' rebuttal and the other reviewers' comments, I find the distinction between sample-weighted pooled ERM and environment-weighted averaging interesting, and the REC objective is simple and potentially useful. Although some limitations remain regarding the practical scope of the same-meta assumption and the variation in performance across benchmarks, the authors have addressed most of my original concerns and provided additional theoretical clarification and empirical evidence. Considering the positive assessments from the other reviewers, I do not have further objections if the Area Chair considers the remaining limitations acceptable in the final decision.

Formatting concerns

No.

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the careful reading. Each weakness pairs with one of the questions, so we answer the two together and follow the order of the weaknesses. Three of the four blocks report experiments run since submission: five DomainBed benchmarks (W1, Q1), a direct test of the deployment rule on the trained models (W2, Q2), and a comparison against an L2 coordination penalty (W4, Q3).


On the practical scope of the assumptions (W1, Q1): We thank the reviewer for pressing on the practical scope of the result. The weakness on the set of assumptions and the question on stronger distribution shifts share that concern, so we answer them together.

Of the assumptions listed, the iid draw of environments from a common meta-distribution is a condition on how the data was collected. Multi-site and batch-effect problems, with hospitals (Camelyon17) or experimental batches (RxRx1) as the environments, collect their data in that way, so the scope of the result is a recognizable class of problems. For linear heads and squared loss, the Discussion section states the restriction, and we provide a separate response for the second-order extension to cross-entropy below.

Stronger shift, by itself, does not change which fixed weighting to deploy. Theorem 2 writes the expected excess risk of a fixed weighting as σΣ2(1+∑eαe2)\sigma^2_\Sigma(1 + \sum_e \alpha_e^2), where the leading term is the irreducible cost of an unseen target and the sum is the only part the weights control. A target that differs from the sources more substantially than the same-meta setting assumes enters only the first term. Holding its deviation δ⋆\delta_\star of Assumption 1 fixed, with the sources drawn independently of it, replaces the irreducible term with the realized ∥δ⋆∥Σ2\|\delta_\star\|^2_\Sigma, the squared distance from the target's head to the meta-mean, and leaves the weight term untouched. Uniform therefore remains the best fixed weighting, the Theorem 4 gap over pooled ERM survives under its common-second-moment condition, and the centroid and pooled ERM degrade together as the shift grows.

For evidence under such shift, we trained REC on five DomainBed benchmarks. No documentation for any of the five presents its domains as draws from a wider pool, so we claim no guarantee on any split. Model selection uses training-domain validation, and the ERM and SWAD rows repeat the published numbers. Average OOD accuracy over the standard leave-one-domain-out splits:

Method PACS VLCS OfficeHome TerraIncognita DomainNet
ERM 84.2 77.3 67.6 47.8 44.0
SWAD 88.1 79.1 70.6 50.0 46.5
REC 87.1 79.8 68.6 51.3 44.4

REC finishes above ERM on all five datasets, with the assumption certifying nothing on any of them. Nothing in Theorem 2 predicts those margins, and we do not claim otherwise. The Discussion already lists the same-meta scope as the analysis's first limitation. In the revision we will expand that paragraph with the condition above and each dataset's standing, and we will post the per-domain tables in the discussion.


On the gap between the theory and the experiments (W2, Q2): We thank the reviewer for this question. The three assumptions the reviewer lists have different status.

Linear heads are not an approximation. Every head in every experiment is Wez+beW_e z + b_e, linear in the augmented feature [z;1][z;1] and inside the analyzed class. The featurizer may be an arbitrary deep network.

The squared loss supplies the closed-form magnitudes of Theorems 2 and 4, not the choice of deployment rule. Convexity of the loss and exchangeability of the sources suffice for the uniform vector to minimize expected risk over the simplex (proposition in our response to Reviewer WCHP, Q1). Cross-entropy is convex in the logits and the deployed logits are affine in α\alpha, so the rule carries over to our classification experiments without approximation.

The conditioning on a fixed ϕ\phi is exact where the rule is applied, since ϕ\phi is fixed at deployment. What joint learning of the deep representation adds is a second axis, since the centroid term also shapes ϕ\phi itself. Theorem 5 identifies the quantity involved, the dispersion of the environment-optimal heads on the current representation (Eq. 14), but not the equilibrium that training reaches. Figure 2 isolates this axis empirically. At bottleneck capacity k=1k=1 the centroid term recovers θ0\theta_0 an order of magnitude better than expert-only training (0.090 versus 1.000 on the balanced scenario, 0.126 versus 0.999 under sample imbalance), and the gap between the two closes as capacity grows.

We evaluated the deployment rule on the trained models.

  • Model. REC checkpoints on IWILDCAM, 3 seeds, official WILDS protocol. ResNet-50 featurizer trained jointly with E=243E = 243 affine heads under cross-entropy.
  • Procedure. Featurizer and heads frozen. Per-sample head logits cached once, then combined as ∑eαefe(x)\sum_e \alpha_e f_e(x) for each gate. No retraining and no gradient steps.
  • Gates. Uniform, αe=1/243\alpha_e = 1/243. Sample shares, πe=ne/∑e′ne′\pi_e = n_e / \sum_{e'} n_{e'}. Finally, 4,000 draws per seed from a symmetric Dirichlet at concentrations {{0.1,1,10,100}}\{\{0.1, 1, 10, 100\}\}, 1,000 each, from which we keep the draw with the best OOD validation macro F1.
  • Evaluation. Official OOD validation and OOD test splits, WILDS macro F1. Test is the primary split, since validation selected the checkpoint. | gate | OOD-val macro F1 | OOD-test macro F1 | |---|:---:|:---:| | uniform | 39.0 (0.5) | 33.4 (0.8) | | π\pi (sample shares) | 37.1 (1.6) | 31.7 (1.6) | | best of 4,000 draws, selected on OOD-val | 40.9 (1.2) | 32.4 (1.6) |

The three gates differ in what they require. Uniform is fixed in advance by the analysis and needs nothing. The sample-share gate needs only the training environment sizes, so it is also available at deployment, and it is the weighting that pooled ERM implicitly targets. The third gate needs labels from held-out domains, which deployment does not provide. Among the two rules that can be fixed in advance, uniform is the better one. The third gate scores higher on validation but not on test.


On performance variation across datasets (W3, Q4): We thank the reviewer for this question. The variation follows the structure of the analysis: on RXRX1 the mechanism has no room to produce a gain, and the property responsible is measurable from metadata before training.

Theorem 4 locates the advantage of the uniform centroid over pooled ERM in the sample weights: under a common second moment the gap is σΣ2∑e(πe−1/E)2\sigma^2_\Sigma \sum_e (\pi_e - 1/E)^2, which vanishes when π\pi is uniform, regardless of σΣ2\sigma^2_\Sigma.

RXRX1 is the one dataset where π\pi is uniform by construction. Its training batches are of essentially equal size (max⁡e∣πe−1/E∣=3.6×10−4\max_e |\pi_e - 1/E| = 3.6 \times 10^{-4}), so the quantity that separates the two estimators is zero there by design, and the analysis places them at parity rather than predicting an advantage. The trained model is consistent with this: replacing the uniform gate with the sample-share gate leaves OOD-test accuracy unchanged to within 10−410^{-4} on every seed.

Where the weights are imbalanced, the same quantity is nonzero and the weighting can carry gain. On IWILDCAM, whose effective number of environments Eeff:=(∑eπe2)−1=73.1E_{\text{eff}} := (\sum_e \pi_e^2)^{-1} = 73.1 is far below its E=243E = 243, the sample-share gate is 1.7 macro F1 below the uniform gate on OOD test (gate table above).

We will report the sample-weight statistics for all four datasets in the revision.


On alternative coordination strategies (W4, Q3): We thank the reviewer for this constructive suggestion. We ran the requested comparison against an L2 consensus penalty, Lexp⁡+C1E∑e∥he−hˉ∥2\mathcal{L}_{\exp} + C\frac{1}{E}\sum_e \|h_e - \bar h\|^2. The setup matches REC on IWILDCAM in architecture, WILDS protocol, and averaged-head deployment, with C∈{0.1,1}C \in \{0.1, 1\} selected on OOD validation macro F1.

objective OOD-test macro F1 Dhead\mathcal{D}_{\text{head}} (App. C.3.5) n
L2 consensus (C=1C = 1) 26.4 0.0003 1
L2 consensus (C=0.1C = 0.1) 15.8 0.0019 1
pooled ERM 31.0 (1.3) 3
REC 33.4 (0.8) 0.16 3

The L2 penalty is a function of the head parameters alone, so it is minimized when the heads coincide, and at both values of CC the trained heads are near-identical. The centroid term instead scores the deployed average against the data of every environment. As shown in our response to Reviewer WCHP (Q1), even when every head exactly minimizes its own environment risk, the deployed average retains a residual 1E∑e[Re(θˉ)−Re(θe)]≥0\frac{1}{E}\sum_e [R_e(\bar\theta) - R_e(\theta_e)] \ge 0 that only a change of ϕ\phi can reduce, and neither the expert term nor a consensus penalty on the heads sees it.

Coordination alone therefore does not account for the gain. Pulling the heads toward each other reaches 26.4, and not coordinating them at all reaches 0.5 (λ=0\lambda = 0, Table 8), while scoring their average against the source data reaches 33.4.

The L2 runs and the Dhead\mathcal{D}_{\text{head}} values are single-seed given the rebuttal window, and we will report all seeds in the revision.

Reviewer FD2m · CommentOpenReview ↗

Thank you for the detailed rebuttal. The authors have substantially addressed several of my concerns by clarifying the theoretical scope beyond squared loss, explaining the relationship between the fixed-representation analysis and joint training, and adding comparisons with balanced ERM and an alternative L2 coordination strategy.

Some concerns remain. First, the practical scope of the same-meta assumption is still restrictive: the rebuttal supports uniform weighting for fixed target shifts only under the remaining random-effects structure, rather than arbitrary distribution shifts. Second, the benchmark analysis is still incomplete. The sample-weight argument explains why RXRX1 offers little room for a centroid advantage, but it does not fully explain why REC underperforms ERM there, nor does it provide a systematic explanation of the performance variation across all WILDS datasets.

I have no further questions. Based on the rebuttal, I revise my score from 2 to 3 (Borderline Reject).

Authors · CommentOpenReview ↗

On the practical scope of the same-meta assumption. We thank the reviewer for the careful reading of the rebuttal and the revised assessment. The reading is correct. The rebuttal supports uniform weighting for fixed target shifts while the sources keep the random-effects structure, and claims nothing under arbitrary distribution shifts.

Our analysis supports uniform weighting only under an assumed family of shifts, and the same restriction binds any analysis of a fixed deployment rule. Once nothing ties the target to the sources, the sources carry no information about the target. The same-meta hypothesis of Blanchard et al. (2011), adopted in the Introduction, supplies the tie. With the tie in place, the question of which fixed weighting to deploy has an answer, the uniform centroid of Theorem 2. The fixed-target argument relaxes that tie to the least the answer needs. The sources keep the random-effects structure and are drawn independently of the target, while the target's deviation δ⋆\delta_\star may sit at any distance from the meta-mean. Dropping the structure among the sources as well would leave no basis on which to prefer one fixed rule to another. Growing shift raises the excess risk of every fixed weighting by the same realized squared distance ∥δ⋆∥Σ2\|\delta_\star\|^2_\Sigma, so the deployed rule remains the uniform centroid and the Theorem 4 gap over pooled ERM survives under its common-second-moment condition.

The Discussion lists this limitation first, "same-meta rather than adversarial", and notes that causal-invariance methods address stronger shift regimes under different assumptions. In the revision we will state the fixed-target result formally next to Corollary 3, which conditions on the realized sources while the fixed-target result conditions on the target, and expand the Discussion's same-meta limitation with the reason every analysis of a fixed deployment rule needs such a tie.

On the performance variation across benchmarks. Two properties of a benchmark determine whether REC improves on pooled ERM, and RXRX1 is the only one of the four that lacks both.

Whether each environment holds enough data to fit its own head. We measure this as the mean number of images per appearing class within an environment, taken as the median over environments: about 58,000 on CAMELYON17, 30 on IWILDCAM, and 1 on RXRX1. POVERTYMAP is a regression task, so the quantity is not defined there.

Setting λ=0\lambda = 0 removes the centroid term and retains the multi-head architecture, which isolates what the expert term produces on its own. On CAMELYON17 the averaged head still reaches 85.6% (Table 8). On IWILDCAM and RXRX1 the averaged head does not. To determine whether the averaged head fails because the individual heads do, we evaluate each head ee on the in-distribution test split of environment ee, which contains images from the same environment that were not used in training.

averaged head at λ=0\lambda = 0, OOD test (Table 8) head ee on environment ee, ID test
IWILDCAM (macro F1) 0.5 58.0
RXRX1 (accuracy) 2.4 4.2

The two datasets fail differently. On IWILDCAM the heads classify their own environments, and the centroid term coordinates them so that their average predicts well. REC reaches 33.4 macro F1 against pooled ERM's 31.0 (Table 2). On RXRX1 the heads fail on their own environments, since one image per class gives the expert term nothing to fit. The centroid term therefore has to do more than coordinate the heads, since it is the only part of the objective that relates images of one class across environments, by evaluating one averaged head on all of them. REC reaches 28.7% accuracy, still below pooled ERM's 29.9% (Table 2).

Whether the environments differ in size. We measure this as ∑eπe2−1/E\sum_e \pi_e^2 - 1/E, where πe\pi_e is the share of the training samples that come from environment ee, and Theorem 4 identifies this quantity as the advantage of the uniform centroid over pooled ERM. RXRX1's environments are equal-sized by construction, so its value is 3.2×10−73.2 \times 10^{-7}, four to five orders of magnitude below the values on CAMELYON17, IWILDCAM and POVERTYMAP. The balanced ERM baseline of our earlier response improves over pooled ERM on the other three datasets and not on RXRX1.

On RXRX1 the environments do not provide the data that the expert term requires, and the sample weights are uniform, so Theorem 4 predicts no advantage. The four benchmarks are scored in accuracy, macro F1 and Pearson correlation, so their margins are not comparable, and we take the two properties to indicate whether a gain is available rather than how large that gain would be.

Reviewer JW7iOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
4/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies multi-head domain generalization where one head is trained per source environment on a shared representation and, because the test environment label is unavailable, a fixed convex combination of heads is deployed. Under a random-effects model, where source and target environments are iid draws from a common meta-distribution, with per-environment optimal heads scattered iid around a shared meta-mean. The authors show that the uniform centroid of the heads uniquely minimizes the expected same-meta excess risk (Thm 2), and that it strictly dominates pooled ERM under a common feature second moment by a gap equal to the dispersion of sample weights from uniform (Thm 4), formalizing pooled ERM as sample-weighted versus the centroid as environment-weighted. The authors introduce REC, which augments per-environment expert training with a centroid-loss term that scores the averaged deployment head directly, at single-head inference cost. Synthetic oracle experiments confirm the closed-form estimator gap, and experiments on four WILDS datasets show REC is competitive with established DG baselines. An ablation study indicates that the centroid term is necessary for the averaged predictor to be useful.

Strengths and weaknesses

Strengths

  • The theoretical results are interesting and seem to be correct
  • The paper is well organized and clearly written, effectively communicating the proposed method
  • The synthetic experiment demonstrates the effectiveness of the proposed method under controlled conditions

Weaknesses

  • This is an interesting paper however the new results are not too surprising. The paper essentially relies on the fact that the minimum-variance convex combination of iid, equal-variance, mean-zero estimators is the equal-weighted average and adapts this to the DG setting.
  • In Assumption 1 the paper considers that the test environment is iid to the source meta-distribution, however in the experiments a held-out regime is used, so the optimality guarantee of Theorem 2 does not exactly apply to the regime in which the method is primarily evaluated. Does this have any theoretical and practical consequences?
  • The theory assumes fixed ϕ\phi, however the method seems to jointly train ϕ\phi with the rest of the model elements. This should be clarified by the authors.
  • Importantly, to identify whether the multi-head approach is truly beneficial the paper should also include a single-head, uniform reweighted ERM baseline. Do the multiple heads really introduce any benefit?
  • The same-meta random-effects model (Assumption 1) treats source domains as iid mean-zero deviations around a shared meta-mean. This fits shifts in feature/label proportions but is a questionable model for the stylistic domain shifts in standard DG benchmarks (e.g., PACS, DomainNet), where domains are not naturally exchangeable draws from a common meta-distribution. The authors should delimit the class of DG problems their analysis targets rather than positioning it against general DG.
Questions

The authors are invited to address the comments made at the "weaknesses" section above.

Limitations

The authors should clearly indicate the class of DG problems that their method aims for (e.g., different style distributions is out of scope). Other than that, the limitations section is sufficient.

Final justification

I would like to thank the authors for their rebuttal. Their response addresses all points raised in my review. I would invite the authors to make the differences of the proposed method compared to the general DG literature (and associated limitations) very clear in the paper. Based on this, I maintain my score indicating a positive assessment of the paper.

Formatting concerns

N/A

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the close reading of the theory, and we answer each point in order.


Weaknesses

[W1] On the result being not too surprising: We thank the reviewer for this assessment. The mechanism is indeed classical, and we agree, with two qualifications. First, the characterization of the minimizer needs less than the classical minimum-variance argument. Convexity of the loss and exchangeability of the sources suffice, without equal-variance or moment conditions (for details, please see proposition in our response to Reviewer WCHP's question). Second, the content is in the translation. Pooled ERM is the fixed-effect (sample-weighted) estimator, and the uniform centroid is the random-effects estimator, with the gap in closed form (Theorem 4). The deployed centroid must also be trained rather than simply assembled post-training. Averaging independently trained experts collapses to 0.5% macro-F1 on IWILDCAM (Table 8), and the balanced single-head baseline (in response to W4) does not reproduce REC's gains. Neither observation follows from the classical fact alone.

[W2] On the held-out regime: We thank the reviewer for the precise question. Two cases cover the held-out regime, and we claim the uniform centroid stays optimal in both.

When the held-out environment is an exchangeable member of the collected pool, meaning the source/target assignment does not depend on the realized data, Assumption 1 applies as stated and Theorem 2 covers the evaluation directly.

When the target is an arbitrary fixed environment, the weights minimizing the expected excess risk are unchanged, and they remain uniform. Conditional on Σ⋆=Σ\Sigma_\star = \Sigma as in Theorem 2, treat the target deviation δ⋆\delta_\star of Assumption 1 as a fixed vector. In expectation over the source draws alone, with the sources drawn as in Assumption 1 independently of δ⋆\delta_\star, the cross terms vanish because E[δe]=0\mathbb{E}[\delta_e] = 0, and

E[R⋆(θα)−R⋆(θ⋆)]=σΣ2∑eαe2+∥δ⋆∥Σ2.\mathbb{E}\big[R_\star(\theta_\alpha) - R_\star(\theta_\star)\big] = \sigma^2_\Sigma \sum_e \alpha_e^2 + \|\delta_\star\|^2_\Sigma.

The shift enters as an additive constant that does not depend on α\alpha, so the uniform centroid remains the minimizer among fixed simplex rules. The Theorem 4 gap over pooled ERM is also intact because ∥δ⋆∥Σ2\|\delta_\star\|^2_\Sigma cancels in the difference. The one statement that requires the same-meta draw is the transfer bound of Section 4.3 (Assumption 10, Corollary 11).

The practical consequence follows the same split. The centroid's advantage over pooled ERM is preserved in absolute terms under fixed shift, while it shrinks as a fraction of the total excess risk as ∥δ⋆∥Σ2\|\delta_\star\|^2_\Sigma grows, so under strong shift both estimators degrade together. We will make sure to state both cases in the revision.

[W3] On fixed ϕ\phi versus joint training: We thank the reviewer for raising this point, and we will separate the two claims in the revision. The first claim is that the deployed rule should be the uniform centroid (Theorem 2, conditional on ϕ\phi). At the moment the rule is applied, ϕ\phi is literally fixed, so the conditioning holds exactly where the claim is used. The second claim is that training with Lcent\mathcal{L}_{\text{cent}} produces a better deployed centroid, as stated in Theorem 5. This is a static identity that holds for the current ϕ\phi at every point of training. The centroid term scores the deployed average and exposes the dispersion of the environment-optimal heads (Eq. 14), which the expert term cannot measure (Eq. 13). Joint training therefore does not violate the conditioning, but acts on the quantity the identity is conditioned on.

[W4] On single-head, environment-uniformly reweighted ERM baseline: We thank the reviewer for this constructive suggestion. We ran the requested baseline, a single-head ERM with environment-uniform sampling, following the WILDS codebase as for REC.

Pooled ERM Balanced ERM REC (ours)
CAMELYON17 (acc) 84.2 (1.7) 85.8 (1.5) 88.0 (2.8)
IWILDCAM (macro F1) 31.0 (1.3) 32.3 (0.7) 33.4 (0.8)
POVERTYMAP (avg r) 0.78 (0.03) 0.78 (0.02) 0.81 (0.04)
POVERTYMAP (worst-group r) 0.45 (0.06) 0.47 (0.04) 0.52 (0.06)
RXRX1 (acc) 29.9 (0.4) 29.4 (0.5) 28.7 (0.2)

The results demonstrate that ERM + uniform reweighting alone does not reach REC on CAMELYON17, IWILDCAM, and POVERTYMAP. We therefore believe the benefit of the proposed REC comes from the heads trained jointly with the centroid term that scores their deployed average, not from the weighting alone.

[W5] On delimiting the targeted class of DG problems: We thank the reviewer for asking us to delimit the class the analysis targets. The analysis applies when the environments are drawn from a common collection process and any of them could equally have been the target. This is the same-meta setting of Blanchard et al. (2011), which our paper adopts in the Introduction. Multi-site and batch-effect studies are the designs the analysis is meant for, with hospitals or experimental batches as the environments. Whether a dataset meets our theory's assumption cannot be checked from the data alone, but additional information about how the data was collected/curated (e.g., the dataset documentation) is required.

Whether the shift is stylistic does not decide membership, and by this standard the reviewer is still right about PACS. The failure sits in the pool itself, since the four styles were picked to widen the domain gap and were never sampled from any larger population, whichever of them plays the target. Camelyon17 fails at the choice of target instead. Its hospitals differ in appearance too, each with its own staining protocol and scanner, but the test role went to the hospital with the most visually distinct patches. For the remaining WILDS datasets, the documentation does not settle the question.

Falling outside the class means the expected-risk formula of Theorem 2 and the transfer bound of Section 4.3 do not apply there. Whether it also costs accuracy is a separate question, so we evaluated REC on five DomainBed benchmarks since submission, including both of the reviewer's examples. None of the five is documented to meet the meta distribution assumption. Average OOD accuracy over the standard leave-one-domain-out splits, with training-domain model selection and published ERM numbers:

Method PACS VLCS OfficeHome TerraIncognita DomainNet
ERM 84.2 77.3 67.6 47.8 44.0
REC (ours) 87.1 79.8 68.6 51.3 44.4

REC finishes ahead of ERM on all five, PACS and DomainNet included. Delimiting the class restricts what we claim to have proved and leaves the empirical case unchanged, since a dataset outside the class is not evidence against its numbers. We will post the per-domain tables during the discussion phase. In the paper, we will replace the positioning against general DG with this delimitation, which sharpens the same-meta limitation the Discussion section already records, and drop any implication that competitive benchmark numbers are evidence the assumption holds.


Reference

  • Blanchard, G., Lee, G., & Scott, C. (2011). Generalizing from several related classification tasks to a new unlabeled sample. Advances in neural information processing systems, 24.
Reviewer JW7i · CommentOpenReview ↗

Thank you

I would like to thank the reviewers for their detailed response. This rebuttal addresses all points raised in my review during the rebuttal. I would invite the authors to make the differences of the proposed method compared to the general DG literature (and associated limitations) very clear in the paper.

Authors · CommentOpenReview ↗

We thank the reviewer for the constructive review. We will make the distinction from the general DG literature, and the limitations that come with it, explicit in the revision.

Reviewer WCHPOpenReview ↗
Rating
4/6
Confidence
2/5
Quality
3/4
Clarity
2/4
Significance
3/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The scope of the paper is Domain Generalization (DG). Instead of training a single model on all domains, they propose to train one expert per domain and use their average when the test domain is unknown.

Its main theoretical contribution is showing that, under a random-effects ("same-meta") model where domain-specific optima are random deviations around a common mean, the uniform average (referred to as "centroid") of the experts is the optimal fixed combination rule. The authors also prove that this centroid is generally different from standard pooled ERM, especially when the training domains have different sample sizes.

The authors propose REC (Random-Effects Centroid), a training objective that explicitly optimizes the averaged predictor rather than hoping that independently trained experts will average well. To validate the proposal they carry out experiments on synthetic data and WILDS benchmarks; showing that REC is competitive with established DG methods and that the centroid loss is important for obtaining a useful averaged model.

Strengths and weaknesses

Strengths

The work addresses an important problem in Domain Generalization, namely deployment under unknown target domains.

First of all, the work is mathematically rigorous. The theoretical assumptions are clearly stated, the main theorems are formally proven, and the supplementary material contains detailed derivations and proofs. The experimental section is reasonably thorough, including synthetic experiments that isolate the theoretical effect and real-world evaluations on several WILDS benchmarks.

The central question is easy to understand: if we have one expert per training environment and no test-domain label, how should we combine them? In fact, the originality is mainly theoretical rather than architectural. Moreover, the multi-expert architecture itself is not new, but the random-effects justification for uniform averaging and the associated training objective constitute a meaningful, though incremental, contribution. The more novel part, in my opinion, is the REC objective that directly optimizes the deployed centroid predictor.


Weaknesses

The paper has been categorised as "General" but its "theory-intensive", which (in my opinion) makes it not easy to follow.

The practical significance is somewhat limited by the strong same-meta assumption; the impact depends on how often real DG problems satisfy this assumption.

Multi-head/domain-specific experts already exist in prior DG literature, and averaging multiple predictors is a well-established idea in machine learning.

I count 3 references citing arxiv with no other information about the conference or publisher. In this repository not everything has been peer-reviewed. If the paper cited has been accepted, then the proper reference should be provided. Otherwise they should be removed.

Questions

The main theoretical results are exact for linear heads and squared loss. What if none of them are being used? There are many losses different from this one. MAE is often preferred, for example.

Limitations

The limitation that I see is related to the question made above. The theoretical results are valid for linear heads and squared loss only.

Final justification

Thank you for the detailed response. After reading your comments and the other reviews and rebuttals, I will increase my score to borderline accept.

Formatting concerns

no concerns

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for reading the paper with its practical use in mind, and we respond to each point in order.


Weaknesses

On theory-intensive presentation: We thank the reviewer for this suggestion, and we agree. The revision will add a plain-language paragraph after each theorem, an intuition figure for the random-effects geometry, and a table that summarizes the assumptions to the main text. It will also streamline the main-text discussion of the heterogeneous second-moment case, deferring details to Appendix B.9. The proposition and derivations added in this response go to the appendix.

On practical significance of the same-meta assumption: We thank the reviewer for weighing what the assumption means in practice. In fact, the practical significance does not hinge on how often the assumption holds, and we believe the experimental results presented in the paper supports this claim. Camelyon17's OOD test hospital was chosen for having the most visually distinct patches, so its target is as far from a random draw as a benchmark gets. REC still reaches 88.0%, the highest in Table 2 and within a standard deviation of MEDRO and HeckmanDG. On five DomainBed benchmarks evaluated since submission (PACS, VLCS, OfficeHome, TerraIncognita, DomainNet), REC finished ahead of ERM on every average. Please note that we do not claim any guarantees from Theorem 2 on any of these benchmarks' splits.

These results hold up because REC needs less from the same-meta assumption than it first appears. The assumption says two things. First, environments share a common core, each with its own deviation. Second, the target is one more random draw from the same pool. The deployed head is the average of the source heads. It is computed from the sources alone, so it does not change with how the target was picked, and when the sources are a fair sample of the pool it estimates the common core. Only the exact guarantees, the expected-risk formula of Theorem 2 and the transfer bound of Section 4.3, need the second part of the assumption. And even for a target that is not a random draw, uniform weights stay the best fixed choice, because a harder target adds the same extra error to every fixed way of combining the source heads and leaves the advantage over pooled ERM unchanged.

How often the second part holds is checkable problem by problem from the way the data was collected. Multi-site and batch-effect studies typically qualify, while picking the target by time, by known difficulty, or by looking at outcomes does not. We will state this clarification of the assumption, the fixed-target result, and the checkable condition in the revision.

On multi-head experts and averaging being already established ideas: We thank the reviewer for this comment. Both ideas are indeed established, and the paper cites the multi-head DG architectures (D-SAM, Best Sources Forward, DAEL, MEDRO) and the averaging literature (SWA, SWAD, DiWA, Model Soups). Our contribution is the deployment question these lines leave open. When the test environment is unlabeled and the combiner must be a fixed simplex rule, which one?

  • Existing multi-head DG learns or coordinates the combination (a learned fusion rule, consistency alignment, a min-max pairing). We derive the fixed rule instead. Under the random-effects model, the uniform centroid is the unique minimizer (Theorem 2), and it differs from pooled ERM, the fixed-effect sample-weighted estimator, by σΣ2(∑eπe2−1/E)\sigma^2_\Sigma(\sum_e\pi_e^2 - 1/E) under a common second moment (Theorem 4).
  • In weight averaging, uniform weights are a convention, and averaging suppresses optimization noise around a single risk. Here uniform weights are derived, and averaging cancels environment-level deviations across EE distinct risks. The fixed- versus random-effects correspondence and the closed-form gap have no counterpart in that literature.
  • The averaged predictor must be trained, not assembled. Removing the centroid term collapses the averaged head to 0.5 macro-F1 on IWILDCAM versus 33.4 for REC (Table 8), and Q1(3) explains why. A single-head ERM with environment-uniform sampling reaches 32.3 on IWILDCAM, between pooled ERM (31.0) and REC (33.4) (new experiment, detailed in our response to Reviewer JW7i).

We claim that neither the choice of the uniform rule nor the need to train it follows from the established ideas alone.

On arXiv citations: We thank the reviewer for checking the bibliography, and we accept the suggestions. [16] SWA will be cited as its UAI 2018 publication (pp. 876-885, AUAI Press). [28] iWildCam will be removed, since the WILDS citation [25] documents the variant we use. [3] IRM has no formal venue. As a compared method in Table 2 it cannot be omitted, so we keep it marked explicitly as a preprint. We will audit the full bibliography in the revision.


Questions

What if the heads are not linear and the loss is not squared, e.g., MAE?. We thank the reviewer for this question. The squared loss enters only the quantitative statements. The choice of deployment rule and what the centroid term controls hold for general losses. The linear-head condition is met exactly by the experiments.

(1) Affine heads are a design requirement, not an idealization. Every head in every experiment is Wez+beW_e z + b_e, which is linear in the augmented feature [z;1][z;1] and therefore inside the analyzed class. The featurizer may be an arbitrary deep network, and all population quantities are conditional on ϕ\phi. The affine form also makes the parameter centroid coincide exactly with the average prediction (Appendix D), which is the deployment rule itself.

(2) The deployment rule holds for any convex loss. In Theorem 2, the squared loss produces the closed-form value and the uniqueness of the minimizer. The argmin itself needs only convexity and permutation symmetry of the sources, strictly weaker than Assumption 1. The argument is a symmetrization. Permutations leave GG unchanged, the average of all permutations of any α\alpha is the uniform vector, and convexity makes that average no worse. We will record the following statement in the appendix.

Proposition. Let θα=∑eαeθe\theta_\alpha = \sum_e \alpha_e \theta_e for α∈ΔE\alpha \in \Delta_E, and let G(α)=E[R⋆(θα)]G(\alpha) = \mathbb{E}[R_\star(\theta_\alpha)], with expectation over the test environment and the source draws. Assume the following. (i) The loss ℓ(⋅,y)\ell(\cdot, y) is nonnegative and convex in the prediction (in the prediction vector for multi-output heads). With affine heads this makes RD(θ)R_D(\theta) convex in θ\theta for every DD. (ii) The joint law of (D⋆,θ1,…,θE)(D_\star, \theta_1, \dots, \theta_E) is invariant under permutations of the source indices. Then GG attains its minimum over ΔE\Delta_E at αu=(1/E,…,1/E)\alpha_u = (1/E, \dots, 1/E).

Proof. The map α↦θα\alpha \mapsto \theta_\alpha is affine, so α↦R⋆(θα)\alpha \mapsto R_\star(\theta_\alpha) is convex for every realization. Taking expectations preserves convexity, so GG is convex. By (ii), G(απ)=G(α)G(\alpha_\pi) = G(\alpha) for every permutation π\pi of the coordinates. Since 1E!∑παπ=αu\frac{1}{E!}\sum_\pi \alpha_\pi = \alpha_u, Jensen's inequality yields G(αu)≤1E!∑πG(απ)=G(α)G(\alpha_u) \le \frac{1}{E!}\sum_\pi G(\alpha_\pi) = G(\alpha). □\square

Condition (ii) holds under Assumption 1. The argmin statement of the Proposition is an instance, since iid deviations plus iid estimation noise keep the perturbed heads exchangeable. The proof uses no differentiability, no moment conditions, and no existence or uniqueness of θ⋆\theta_\star. MAE is covered because ∣y^−y∣|\hat y - y| is convex, and neither its non-smoothness nor the non-uniqueness of its minimizer matters. The cross-entropy used in all our classification experiments is also covered, being convex in the logits.

(3) What the centroid term controls also holds for general losses. Theorem 5 uses the squared loss only for the closed form. Suppose every head attains an environment optimum, he=θe(ϕ)h_e = \theta_e(\phi) (any minimizer if not unique), so the expert term is exactly minimized. Then

Lcent−Bˉ(ϕ)=1E∑e[Re(θˉ(ϕ))−Re(θe(ϕ))]  ≥  0.\mathcal{L}_{\text{cent}} - \bar B(\phi) = \frac{1}{E}\sum_e \big[R_e(\bar\theta(\phi)) - R_e(\theta_e(\phi))\big] \;\ge\; 0.

Each summand is non-negative because θe(ϕ)\theta_e(\phi) minimizes ReR_e, and the sum vanishes only if θˉ(ϕ)\bar\theta(\phi) minimizes every ReR_e simultaneously. For any loss, perfect expert fit leaves a residual in the deployed risk that only a change of ϕ\phi can reduce and that the expert term cannot see. Under squared loss with a common second moment it is the dispersion term of Eq. (14).

The quantitative results transfer as second-order statements. Expanding any environment risk around its own minimizer θ†\theta^\dagger gives R(θ)−R(θ†)=12∥θ−θ†∥H2+o(∥θ−θ†∥2)R(\theta) - R(\theta^\dagger) = \tfrac{1}{2}\|\theta - \theta^\dagger\|^2_{H} + o(\|\theta - \theta^\dagger\|^2) with H=∇2R(θ†)H = \nabla^2 R(\theta^\dagger). For twice-differentiable risks, the value of Theorem 2, the gap of Theorem 4, and the decomposition of Theorem 5 carry over with HH in place of Σ\Sigma, and the common-second-moment condition becomes a common-Hessian condition. Section 6 already notes this second-order character, and we will make the conditions precise in the revision. Only these magnitudes are approximate. The deployment rule (for convex losses) and the residual above (for any loss) are exact statements, not approximations.

Area Chair 2fx9 · CommentOpenReview ↗

Dear Reviewer,

The authors have submitted their response. Please review the rebuttal and assess whether it adequately addresses the concerns raised in your initial review.

Kindly leave a brief comment indicating whether your concerns have been resolved or whether substantive issues remain. Please also update your final rating and justification accordingly.

Thank you for your continued time and effort.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…