- Rating
- 3
- Clarity
- 3
- Confidence
- 5
- Originality
- 2
- Quality
- 2
- Significance
- 2
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:
- A clear distinction is made between pooled ERM weighted by sample size and uniform averaging across environments.
- Directly optimizing the averaged deployment head is simple, easy to implement, and more sensible than averaging independently trained experts without any coordination.
Weaknesses:
- 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.
- 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.
- 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.
- 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
- 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.
- 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?
- 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?
- 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
Paper formatting concerns
No.
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.
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), 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 δ⋆ of Assumption 1 fixed, with the sources drawn independently of it, replaces the irreducible term with the realized ∥δ⋆∥Σ2, 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:
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+be, linear in the augmented feature [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 α, so the rule carries over to our classification experiments without approximation.
The conditioning on a fixed ϕ is exact where the rule is applied, since ϕ is fixed at deployment. What joint learning of the deep representation adds is a second axis, since the centroid term also shapes ϕ 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=1 the centroid term recovers θ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.
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, which vanishes when π is uniform, regardless of σΣ2.
RXRX1 is the one dataset where π is uniform by construction. Its training batches are of essentially equal size (maxe∣πe−1/E∣=3.6×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−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.1 is far below its E=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+CE1∑e∥he−hˉ∥2. The setup matches REC on IWILDCAM in architecture, WILDS protocol, and averaged-head deployment, with C∈{0.1,1} selected on OOD validation macro F1.
The L2 penalty is a function of the head parameters alone, so it is minimized when the heads coincide, and at both values of C 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 E1∑e[Re(θˉ)−Re(θe)]≥0 that only a change of ϕ 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, Table 8), while scoring their average against the source data reaches 33.4.
The L2 runs and the Dhead values are single-seed given the rebuttal window, and we will report all seeds in the revision.