- Rating
- 5
- Clarity
- 3
- Confidence
- 3
- Originality
- 3
- Quality
- 4
- Significance
- 4
Read review
Summary
This paper focuses on the flaw in the Sharpness-Aware minimization in the domain generalization setup. Previous approaches, such as AvSAM, average the loss across the domain before the SAM is applied, which causes domain-wise sharpness cancellation. The paper formulates this as Cancellation gap in the proposed method, and the naive fix(InSAM) causes the model to learn a degenerate solution through sharpness imbalance. To counter this, CGM is introduced, which adds a squared coefficient-of-variation regulariser to enforce balanced flatness across domains. The method is well-backed by theory, and some gains in the benchmark dataset also validate the proposed method.
Strengths and weaknesses
Strength
- The theoretical contribution is rigorous. There is clear progession on the method throught the paper.
- The validation in Table 2 is a strong indication that the empricial results are in line with the theory of proposed method.
- The CV2 regulariser is scale-invariant by construction, this ensures there no confusion between absolute sharpness magnitude with imbalance.
- Evaluation follows DomainBed protocol strictly, which is the correct standard for DG comparisons.
Weakness
- Even though the proposed method is clean and the theoretical contribution is substantial, the gains in the benchmark is quite modest. So it may not justify the added complexity of tuning alpha and the CV2 term.
- VREx[1] penalises variance in domain-wise risk, which is conceptually related to the CV2 penalty. The paper should explicitly discuss whether CGM's CV2 term subsumes or complements the variance penalties in VREx and why spectral misalignment is right direction for this problem rather than distributional shift.
- The ablation study for gammav(warm-up ratio) in Figure 3 reveals that CGM requires a substantial warm-up phase (30% to 60% of training) using InSAM before turning on the CV2 penalty. This suggests that the CV2 objective is highly unstable or detrimental during the early phases of training. [1] Krueger, David, et al. "Out-of-distribution generalization via risk extrapolation (rex)." International conference on machine learning. PMLR, 2021.
Questions
- Figure 3 shows a significant performance drop if CGM is applied without a substantial InSAM warm-up (gamma < 0.2). Could you elaborate on the exact mechanism causing this failure mode?
- Following up on the conceptual similarity to VREx that I have mentioned, could the authors provide an analytical comparison between the gradient of the CV2 sharpness penalty and the gradient of the risk variance penalty in VREx?
- Given the acknowledgment towards the end of the paper that symmetric domain treatment is a limitation, did you observe any instances during benchmark evaluations where a particularly noisy or difficult source domain hijacked the CV2 optimization, bringing down overall target performance?
Limitations
Yes
Paper formatting concerns
None
Final justification
I recommend Accept. The VREx comparison meaningfully distinguishes CGM's sharpness-based modulation from VREx's risk-based reweighting, and no raised weakness challenges the core theoretical claim, which remains well-supported by the AvSAM to InSAM to CGM progression.
Thank you for your careful review of our paper and for the insightful and constructive comments. Please find our detailed answers to your comments below.
<Responses to "Weaknesses" and “Questions”>
Q1&W3 — Why does CGM performance degrade when the warm-up ratio is too small (γ<0.2)?
We thank the reviewer for this important question. We believe the drop under small warm-up ratios occurs because CGM activates sharpness-dependent coefficient modulation before the sharpness estimates are reliable.
CGM computes ci from estimated domain-wise sharpness. Early in training, the model is far from the local regime considered in our analysis, and these estimates can be noisy or confounded by transient optimization difficulty. Applying CGM too early may therefore assign inappropriate interpolation weights between the standard gradient and the perturbed SAM gradient.
The InSAM warm-up avoids this premature domain-dependent modulation by applying the same update rule to all domains. After sufficient warm-up, the model is closer to the local loss-landscape regime, where domain-wise sharpness better reflects the geometric quantities in our analysis. At this stage, the CV2 regularizer becomes more meaningful because it targets the sharpness-dominance shortcut that can arise when minimizing the Cancellation Gap.
This is consistent with Fig. 2: sharpness dominance becomes more pronounced during training, and CGM suppresses this dominance relative to InSAM while maintaining a small Cancellation Gap. Thus, warm-up delays sharpness-imbalance regularization until the coefficient estimates are more stable and the bad shortcut becomes relevant.
Q2&W2 — What is the relation between V-Rex and CGM’s CV2 term?
We thank the reviewer for this important question. We agree that this relationship was not discussed sufficiently in the main paper, and we appreciate the opportunity to clarify it.
Philosophical distinction
V-REx and CGM are similar in form because both penalize dispersion across domains, but they differ in what is being regularized and why. V-REx penalizes the variance of domain risks, since risk similarity is central to its robustness/invariance principle: under its assumptions, making risks similar across domains discourages reliance on non-invariant predictors.
In contrast, CGM does not aim to equalize domain losses, nor does it treat perfect balance of domain-wise sharpness as an end goal. The main flatness objective remains the average domain-wise sharpness, D1∑iSiρ. The CV2 term is introduced as a soft guardrail against the bad shortcut in Theorem 3.4, where the Cancellation Gap becomes small without improving directional alignment. Thus, CGM only needs to mitigate severe sharpness imbalance, not enforce identical sharpness across domains.
This is also reflected in Table 3: CGM reduces average domain-wise sharpness and lowers sharpness on relatively sharper source domains, but the resulting source-domain sharpness values are not equalized. This distinction matters because strict sharpness equality may be undesirable when domains have different intrinsic difficulties, as discussed in our limitations.
Technical distinction
Let Li(θ) denote the empirical risk/loss of domain i, and let μL=D1∑iLi(θ). A V-REx-style objective can be written as
LV-REx(θ)=D1∑iLi(θ)+βD1∑i(Li(θ)−μL)2.
The gradient of the variance penalty is
∇[βD1∑i(Li(θ)−μL)2]=D2β∑i(Li(θ)−μL)∇Li(θ).
Thus, V-REx directly modifies the weights of domain-wise risk/loss gradients according to deviations in domain empirical risks/losses. Equivalently, the full gradient can be written as
∇LV-REx(θ)=D1∑i[1+2β(Li(θ)−μL)]∇Li(θ).
In contrast, CGM applies the dispersion penalty to SAM-based domain-wise sharpness estimates, not to domain risks. Let
Si=Siρ(θ)=Li(θ+ε~i)−Li(θ),μS=D1∑iSi.
Using the stopped-gradient denominator for μS2, the gradient of the CGM sharpness-dispersion penalty is approximately
∇[αsg(μS2)D1∑i(Si−μS)2]≈DμS22α∑i(Si−μS)∇Si.
Under the standard SAM first-order approximation,
∇Si≈∇Li(θ+ε~i)−∇Li(θ).
Therefore, the CGM update becomes
∇LCGM(θ)≈D1∑i[(1−ci)∇Li(θ)+ci∇Li(θ+ε~i)],
where
ci=1+μS22α(Si−μS).
This shows the key technical difference. V-REx reweights the domain risk/loss gradients ∇Li(θ) according to domain-risk deviations. CGM instead modulates the SAM correction ∇Li(θ+ε~i)−∇Li(θ) according to domain-wise sharpness deviations. Thus, sharper-than-average domains receive a more flatness-oriented SAM update, while flatter domains rely more on the standard gradient. In addition, CGM uses a scale-normalized CV2 penalty on sharpness values, with the denominator stopped in practice to avoid reducing the penalty by increasing mean sharpness.
Why spectral misalignment?
We also address the latter part of W2, which asks why we focus on spectral misalignment rather than distributional shift itself. Many DG methods address distribution shift through feature-level alignment, such as DANN or CORAL, or through risk/loss/gradient-level criteria, such as V-REx and Fish. SAM-based DG methods motivate a complementary loss-geometry perspective, where parameter-space flatness can affect OOD generalization. From this perspective, the relevant failure is the emergence of flat-on-average yet sharp-per-domain solutions.
In the local quadratic regime, average-loss sharpness depends not only on how sharp each domain is, but also on how domain-wise top-curvature directions interact under averaging. If these directions are severely misaligned, domain-specific sharpness can be canceled in the average loss, producing flat-on-average yet sharp-per-domain solutions. This is precisely the failure mode of AvSAM identified by our theory.
Therefore, spectral misalignment is the relevant object for our analysis because it directly captures this SAM-specific sharpness cancellation mechanism. Distributional shift may be the underlying reason why different domains induce different loss landscapes, but the immediate optimization-geometric failure we address is the misalignment of domain-wise sharp directions. Thus, our perspective is complementary to distributional-shift and risk-level approaches, rather than a replacement for them.
Q3 — Did a noisy or difficult source domain hijack the CV2 optimization?
We did not observe a clear benchmark-level case where a single noisy or difficult domain hijacked the CV2 optimization and degraded target performance. We believe this is because, as explained in Q2, the CV2 regularizer does not enforce equal sharpness across domains, but instead serves only as a guardrail against the bad shortcut. Had it enforced equal sharpness, differences in domain difficulty even at the benchmark level might have caused hijacking. That said, we agree that this concern is realistic in more heterogeneous settings. Our experiments involve standard benchmarks with 3-5 source domains, and we cannot rule out different behavior in large-scale practical DG settings with many noisy or highly imbalanced domains. In such cases, priority- or difficulty-aware variants of CGM may be needed, and we view this as an important future direction.
W1 — The performance gains in the benchmarks are modest.
We agree that the gains over the strongest prior baselines are numerically modest, especially given the strength of recent SAM-based DG methods. However, our contribution is not limited to final accuracy, but also includes the theoretical identification of a failure mode in average-loss SAM and its diagnostic validation.
Although methods such as FAD, SAGM, and DISAM perform strongly on individual datasets, CGM is the only compared method that remains consistently competitive across all benchmarks, resulting in the best overall average performance. Moreover, the empirical results follow the progression predicted by our analysis: AvSAM → InSAM improves performance by replacing average-loss sharpness with average domain-wise sharpness, while InSAM → CGM further improves performance by suppressing the sharpness-dominance shortcut. The diagnostics support the same mechanism through reduced average domain-wise sharpness, lower sharpness dominance, and improved spectral alignment.
The baseline results in Table 1 were taken from their respective papers and are therefore not paired across seeds. To quantify the performance gap more directly, we will rerun SAGM—the second-best method on average, with publicly available code following the standard DomainBed protocol—and CGM in the same environment using identical seeds. We will report the paired per-seed differences and corresponding statistical analysis in the revision.
Thus, while the absolute gains are modest, we hope the reviewer will also consider CGM’s consistency across benchmarks and the agreement between the theory, the AvSAM → InSAM → CGM progression, and the diagnostic evidence.