Introduction
Neural networks readily exploit shortcuts : features that predict the label in training but not under deployment shift ([8 ] ). Group distributionally robust optimization ([28 ] ), reweighting as in Just Train Twice ([20 ] ), and last-layer retraining by deep feature reweighting ([16 ] ) mitigate known shortcuts, but need group annotations for training or validation. Without such side information, shortcut identification is impossible in general: two causal models with the same training distribution can disagree on which feature is stable ([19 ] ).
A growing line of work supplies interventions : label-preserving edits that change a suspected shortcut, such as replacing the background, removing a watermark, or rewriting an irrelevant phrase. These edits are increasingly produced by generative models and filtered by vision-language or language models ([5 , 25 ] (Wu et al. 2023)). Invariance to a complete family of such edits is well understood: it makes the predictor a function of the core alone, robust to any shift of the shortcut distribution ([31 , 32 ] ).
Practice never meets these conditions, and two gaps matter. First, coverage is partial : real data contain several shortcuts, and any edit bank covers only some of them. Li et al. (2023) documented a puzzling consequence, the Whac-a-Mole effect, in which mitigating one shortcut amplifies reliance on another. We lack a theory of when it happens and what partial coverage does and does not buy. Second, validators err : an automatic validator sometimes accepts an edit that silently changed the label-relevant content, as documented for counterfactual augmentation in natural language processing (NLP) [12 ] . How such errors propagate into shortcut reliance has not been analyzed.
Contributions.
Partial-coverage theory (Theorem 1, Theorems 2 and 3 ). In a stylized linear model, for the population logistic solution and the max-margin limit of gradient descent (which is known to produce shortcuts; [26 ] ), we derive the exact decision rule on every shortcut-flip group as a function of the covered set. Worst-group accuracy never decreases with coverage, while specific groups can provably degrade (the Whac-a-Mole effect, with a necessary and sufficient condition). Full coverage is unnecessary once the core outweighs the uncovered shortcuts.
Validator-error theory (Theorem 4 ). In the logistic regime we give a closed-form false-accept tolerance δ \delta δ that grows with coverage. If the training data are noiseless, a single false accept can make the max-margin solution a pure shortcut classifier.
Discovery and certification (Theorem 5, Theorem 6 ). In the stylized model, greedy, sensitivity-based discovery removes shortcuts in decreasing salience. We also give a finite-sample certificate for any model, relative to the discovered edit family and under content-independent validation, in which the validator’s error is estimated by an audit.
Peel and MD-Peel. We instantiate the theory as Pᴇᴇʟ (Propose–Edit–Evaluate–Learn), and as MD-Pᴇᴇʟ (mistake-driven Pᴇᴇʟ), which proposes candidate edits from the model’s own mistakes. Given an oracle library of the benchmarks’ intervention operators, MD-Pᴇᴇʟ selects the right ones from the model’s mistakes alone and beats every group-label baseline on Waterbirds and UrbanCars. With fully generated edits, run end to end, it is weaker.
Setup: Shortcuts, Interventions, and Validators
Data. Labels Y ∈ { ± 1 } Y \in\{\pm1\} Y ∈ { ± 1 } are balanced. An input carries a core factor and k k k shortcut factors. In the stylized model used for our theory,
X = ( a Z c Y , b 1 Z 1 Y , … , b k Z k Y ) ∈ R 1 + k , (1) X = (a Z_cY, b_1Z_1Y, \ldots, b_kZ_kY) \in\mathbb{R}^{1+k}, \tag*{(1)} X = ( a Z c Y , b 1 Z 1 Y , … , b k Z k Y ) ∈ R 1 + k , (1)
where a , b j > 0 a, b_j > 0 a , b j > 0 are feature magnitudes and Z c , Z 1 , … , Z k ∈ { ± 1 } Z_c, Z_1, \ldots, Z_k \in\{\pm1\} Z c , Z 1 , … , Z k ∈ { ± 1 } are mutually independent given Y Y Y , with P ( Z c = 1 ) = p \mathbb{P}(Z_c = 1) = p P ( Z c = 1 ) = p and P ( Z j = 1 ) = ρ j \mathbb{P}(Z_j = 1) = \rho_j P ( Z j = 1 ) = ρ j . Shortcut j j j is aligned with the label when Z j = 1 Z_j = 1 Z j = 1 . In training ρ j > 1 2 \rho_j > \frac{1}{2} ρ j > 2 1 , so every shortcut is predictive. Following the anti-causal view of spurious features [31 , 22 ] , the label causes each shortcut X j X_j X j . Under deployment shift ρ j \rho_j ρ j may change arbitrarily, including reversing. When p < 1 p < 1 p < 1 the shortcuts carry information about Y Y Y beyond the core X c X_c X c , so robustness has an in-distribution price. We make this explicit rather than assuming the shortcuts are conditionally independent of Y Y Y given the core.
Flip groups. For F ⊆ [ k ] F \subseteq[k] F ⊆ [ k ] , the flip group G F G_F G F consists of inputs whose shortcuts in F F F disagree with the label (Z j = − 1 Z_j = -1 Z j = − 1 for j ∈ F j \in F j ∈ F ), whose remaining shortcuts agree, and whose core is intact (Z c = 1 Z_c = 1 Z c = 1 ). Standard worst-group benchmarks are unions of flip groups. The worst-group accuracy (WGA) is the minimum accuracy over all 2 k 2^k 2 k flip groups.
Interventions and coverage. An edit is a label-preserving transformation of an input. Edit type t t t randomizes shortcut j j j if it replaces Z j Z_j Z j by an independent uniform sign and leaves everything else unchanged. Given a bank of edit types, the covered set K ⊆ [ k ] K \subseteq[k] K ⊆ [ k ] contains the shortcuts randomized by some bank edit, and U = [ k ] ∖ K U = [k] \setminus K U = [ k ] ∖ K is the uncovered set. For the theory we idealize training on edited data as minimizing the loss under P ~ K , δ \widetilde{P}_{K,\delta} P K , δ . This is the law of X X X after every Z j Z_j Z j with j ∈ K j \in K j ∈ K is jointly replaced by an independent uniform sign and, independently of ( Y , Z ) (Y,Z) ( Y , Z ) , Z c Z_c Z c is flipped with probability δ \delta δ (see Validators ). In other words, every training input is an accepted edit that randomizes all covered shortcuts, for example a composition of bank edits. If unedited inputs are mixed in, or each edit randomizes a single shortcut, the covered weights shrink but do not vanish in the logistic regime. The max-margin results depend only on the training support and are unaffected.
Validators. Edits are proposed automatically, for example by a generative editor, and accepted by a validator that judges whether the label-relevant content was preserved. A false accept is an accepted edit that in fact altered the core while the original label was kept. In P ~ K , δ \widetilde{P}_{K,\delta} P K , δ this flips Z c Z_c Z c , and δ \delta δ is the validator’s false-accept rate among accepted edits.
Salience. With λ ( u ) = log u 1 − u \lambda(u) = \log\frac{u}{1-u} λ ( u ) = log 1 − u u , we define the salience of the core and of shortcut j j j by
logistic: s c = λ ( p ) , s j = λ ( ρ j ) ; max-margin: s c = a 2 , s j = b j 2 . (2) \begin{aligned}
\text{logistic:}\quad&s_c = \lambda(p),\quad s_j = \lambda(\rho_j);\\
\text{max-margin:}\quad&s_c = a^2,\quad s_j = b_j^2. \tag*{(2)}
\end{aligned} logistic: max-margin: s c = λ ( p ) , s j = λ ( ρ j ) ; s c = a 2 , s j = b j 2 . (2)
We define the margin of G F G_F G F , in salience units, as M K ( F ) = s c + ∑ j ∈ U ∖ F s j − ∑ j ∈ U ∩ F s j M_K(F) = s_c + \sum_{j \in U \setminus F} s_j - \sum_{j \in U \cap F} s_j M K ( F ) = s c + ∑ j ∈ U ∖ F s j − ∑ j ∈ U ∩ F s j . Indices of F F F that are covered do not enter it. A margin of exactly 0 counts as an error. We write err Q ( f ) = P Q ( f ( X ) ≠ Y ) \operatorname{err}_{Q}(f)=\mathbb{P}_{Q}(f(X)\ne Y) err Q ( f ) = P Q ( f ( X ) = Y ) .
Theory
Except for Theorem 6, all results concern homogeneous linear predictors x ↦ sign ( w ⊤ x ) x\mapsto\operatorname{sign}(w^{\top}x) x ↦ sign ( w ⊤ x ) on the stylized model (1) trained on P ~ K , δ \widetilde{P}_{K,\delta} P K , δ , in two regimes. The logistic regime is the infinite-sample, well-specified limit of unregularized logistic regression, for p , ρ j ∈ ( 1 2 , 1 ) p,\rho_j\in(\frac{1}{2},1) p , ρ j ∈ ( 2 1 , 1 ) . The max-margin regime applies to noiseless data (p = 1 p=1 p = 1 , ρ j = 1 \rho_j=1 ρ j = 1 for j ∈ U j\in U j ∈ U ). There, gradient descent on logistic loss converges in direction to the ℓ 2 \ell_2 ℓ 2 max-margin separator Soudry et al., [30 ] , which relies on shortcuts even when the core is perfectly predictive [24 , 26 ] . Proofs: Section A.
Partial coverage and the Whac-a-Mole effect
Theorem 1 (Group-wise decision rule under partial coverage). Let δ = 0 \delta=0 δ = 0 .
(i) Logistic regime. The logistic risk under P ~ K , 0 \widetilde{P}_{K,0} P K , 0 has a unique minimizer w ⋆ w^{\star} w ⋆ , with w c ⋆ = λ ( p ) / a w_c^{\star}=\lambda(p)/a w c ⋆ = λ ( p ) / a , w j ⋆ = 0 w_j^{\star}=0 w j ⋆ = 0 for j ∈ K j\in K j ∈ K , and w j ⋆ = λ ( ρ j ) / b j w_j^{\star}=\lambda(\rho_j)/b_j w j ⋆ = λ ( ρ j ) / b j for j ∈ U j\in U j ∈ U .
(ii) Max-margin regime. Suppose 0 ∈ conv { ( b j z i j ) j ∈ K } i 0\in\operatorname{conv}\{(b_jz_{ij})_{j\in K}\}_i 0 ∈ conv {( b j z ij ) j ∈ K } i , where z i z_i z i ranges over the K K K -patterns of the training points. For instance, some pattern and its negation both occur. For independent and identically distributed (i.i.d.) uniform patterns this holds with high probability once n ≳ 4 ∣ K ∣ n\gtrsim4|K| n ≳ 4∣ K ∣ . Then the max-margin direction is w ⋆ ∝ ( a , 0 K , ( b j ) j ∈ U ) w^{\star}\propto(a,0_K,(b_j)_{j\in U}) w ⋆ ∝ ( a , 0 K , ( b j ) j ∈ U ) .
In both regimes a point of flip group G F G_F G F is classified correctly if and only if (iff) M K ( F ) > 0 M_K(F)>0 M K ( F ) > 0 . Covered shortcuts never affect the decision.
In the logistic regime, conditional independence makes the model well-specified with naive-Bayes log-odds. In the max-margin regime, a convex combination of training patterns cancels every covered weight. The point of Theorem 1 is that one additive rule governs the decision for every flip group in both regimes. Two consequences follow, and they reconcile the folklore that “more coverage helps” with the empirical Whac-a-Mole effect Li et al., 2023.
Corollary 2 (Monotone worst case, non-monotone groups). Under the conditions of Theorem 1:
(a) min F M K ( F ) = s c − ∑ j ∈ U s j \min_F M_K(F)=s_c-\sum_{j\in U}s_j min F M K ( F ) = s c − ∑ j ∈ U s j , attained at every F ⊇ U F\supseteq U F ⊇ U , is strictly increasing in K K K . Hence WGA is non-decreasing in coverage. The same holds if the core is intact only with probability p t e s t ∈ ( 0 , 1 ] p_{\mathrm{test}}\in(0,1] p test ∈ ( 0 , 1 ] at test time.
(b) (Whac-a-Mole.) Let j ∈ U ∖ F j\in U\setminus F j ∈ U ∖ F , so that j j j is uncovered and aligned on G F G_F G F . Covering j j j lowers the margin of G F G_F G F by s j s_j s j . It turns G F G_F G F from correct to incorrect iff 0 < M K ( F ) ≤ s j 0<M_K(F)\le s_j 0 < M K ( F ) ≤ s j .
The mechanism in (b) is loss of accidental support : before it is covered, the aligned shortcut j j j helps outvote the flipped shortcuts in F F F . Benchmarks that report single-shortcut groups, such as the background and co-occurring-object gaps of UrbanCars Li et al., 2023, can therefore show one gap widen when the other shortcut is mitigated, exactly when 0 < M K ( F ) ≤ s j 0<M_K(F)\le s_j 0 < M K ( F ) ≤ s j . This happens even though, by (a), the worst case over all flip groups improves.
Corollary 3 (Sufficient partial coverage). All flip groups are classified correctly iff s c > ∑ j ∈ U s j s_c>\sum_{j\in U}s_j s c > ∑ j ∈ U s j . A minimum-cardinality sufficient cover consists of the shortcuts with the largest saliences, added in decreasing order until the residual salience falls below s c s_c s c .
Full coverage is therefore unnecessary. It suffices that the core outweighs the residual shortcut salience . Each edit type has a cost and, as shown next, a risk.
Validator error
Theorem 4 (False accepts). Let a fraction δ \delta δ of training inputs be false accepts, independent of ( Y , Z ) (Y,Z) ( Y , Z ) .
(i) Logistic regime. The minimizer is as in Theorem 1(i), except that w c ⋆ = λ ( p δ ) / a w_c^{\star}=\lambda(p_\delta)/a w c ⋆ = λ ( p δ ) / a with p δ = p ( 1 − δ ) + ( 1 − p ) δ p_\delta=p(1-\delta)+(1-p)\delta p δ = p ( 1 − δ ) + ( 1 − p ) δ . All flip groups are correct iff δ < δ ⋆ \delta<\delta^{\star} δ < δ ⋆ , where
δ ⋆ = p − σ ( R U ) 2 p − 1 , R U = ∑ j ∈ U λ ( ρ j ) , (3) \delta^{\star}=\frac{p-\sigma(R_U)}{2p-1},\qquad R_U=\sum_{j\in U}\lambda(\rho_j), \tag*{(3)} δ ⋆ = 2 p − 1 p − σ ( R U ) , R U = j ∈ U ∑ λ ( ρ j ) , (3) and σ \sigma σ is the logistic function. Here δ ⋆ > 0 \delta^{\star}>0 δ ⋆ > 0 iff coverage is sufficient (Theorem 3), and δ ⋆ \delta^{\star} δ ⋆ increases as U U U shrinks.
(ii) Max-margin regime. Let U ≠ ∅ U\ne\varnothing U = ∅ . Suppose the sample contains a false accept with K K K -pattern z z z and a genuine edit with pattern − z ′ -z' − z ′ . Then the max-margin direction is w ⋆ ∝ ( 0 , 0 K , ( b j ) j ∈ U ) w^{\star}\propto(0,0_K,(b_j)_{j\in U}) w ⋆ ∝ ( 0 , 0 K , ( b j ) j ∈ U ) , a pure shortcut classifier (accuracy 0 on G U G_U G U ). If U = ∅ U=\varnothing U = ∅ , the sample is not linearly separable.
Part (i) gives a closed-form error budget for the validator, which grows with coverage.
Remark 1 (Class imbalance). If P ( Y = 1 ) = π \mathbb{P}(Y=1)=\pi P ( Y = 1 ) = π and the predictor has an intercept, the logistic-regime minimizer acquires the intercept λ ( π ) \lambda(\pi) λ ( π ) and is otherwise unchanged. The minority class then loses margin ∣ λ ( π ) ∣ |\lambda(\pi)| ∣ λ ( π ) ∣ . All conditions above hold with s c s_c s c replaced by s c − ∣ λ ( π ) ∣ s_c-|\lambda(\pi)| s c − ∣ λ ( π ) ∣ , and in particular δ ⋆ = ( p − σ ( R U + ∣ λ ( π ) ∣ ) ) / ( 2 p − 1 ) \delta^{\star}=(p-\sigma(R_U+\lvert\lambda(\pi)\rvert))/(2p-1) δ ⋆ = ( p − σ ( R U + ∣ λ ( π )∣)) / ( 2 p − 1 ) . Imbalance shrinks the validator’s error budget. With full coverage and a near-deterministic core (p → 1 p\to1 p → 1 ), δ ⋆ → min ( π , 1 − π ) \delta^{\star}\to\min(\pi,1-\pi) δ ⋆ → min ( π , 1 − π ) .
Part (ii) has a non-asymptotic core: on the core and uncovered coordinates, a false accept with label y y y coincides with the G U G_U G U input of label − y -y − y . Any predictor that ignores covered coordinates and fits the false accept must misclassify that input. Interpolating edited data therefore fails the worst group as soon as the false accept is fitted. In our simulations this happens within ∼ 10 3 \sim10^3 ∼ 1 0 3 gradient steps, even though the direction converges only at rate O ( 1 / log t ) O(1/\log t) O ( 1/ log t ) Soudry et al., [30 ] . The result relies on ρ j = 1 \rho_j=1 ρ j = 1 for j ∈ U j\in U j ∈ U : one genuine training point with a misaligned uncovered shortcut restores w c ⋆ > 0 w_c^\star>0 w c ⋆ > 0 . Regularization, early stopping, and auditing the validator are therefore advisable (§ 5 ).
Discovery order and an audited certificate
Proposition 5 (Greedy discovery peels by salience). In either regime, under the current model w ⋆ ( K ) w^\star(K) w ⋆ ( K ) , randomizing shortcut j ∈ U j\in U j ∈ U changes the logit of any point by 2 s j / κ 2s_j/\kappa 2 s j / κ in absolute value with probability 1 2 \frac{1}{2} 2 1 , and leaves it unchanged otherwise. Covered-shortcut and null edits leave every logit unchanged. Here κ = 1 \kappa=1 κ = 1 in the logistic regime and κ = ∥ ( a , b U ) ∥ \kappa=\lVert(a,b_U)\rVert κ = ∥( a , b U )∥ for the unit-norm max-margin predictor. Covering j j j changes the remaining weights only by a common positive factor. Hence: (i) ranking edits by mean absolute logit change covers shortcuts in decreasing salience, so after r r r greedy rounds K = K r K=K_r K = K r , the r r r most salient shortcuts; (ii) the rule “stop when no candidate changes the logit more than the null edits” stops exactly when every shortcut with s j > 0 s_j>0 s j > 0 is covered.
Peel uses exactly rules (i) and (ii) (Algorithm 1). Rule (ii) never stops while a used shortcut is uncovered, but it may cover more than Theorem 3 requires. A cheaper rule stops when no edit changes a prediction. In the logistic regime it stops at a minimum sufficient cover: with m ⋆ = min { r : s c > ∑ j ∉ K r s j } m^\star=\min\{r:s_c>\sum_{j\notin K_r}s_j\} m ⋆ = min { r : s c > ∑ j ∈ / K r s j } , some uncovered edit changes a prediction with positive probability iff r < m ⋆ r<m^\star r < m ⋆ (ties aside). In the max-margin regime, however, two shortcuts can jointly outvote the core while neither flip alone changes a prediction, so the flip rule can stop before the cover is sufficient (Section A). § 5.2 observes exactly this.
Finally, what can be certified about a trained model, for any architecture? Let edit types t = 1 , … , τ t=1,\ldots,\tau t = 1 , … , τ act through kernels κ t ( ⋅ ∣ x ) \kappa_t(\cdot\mid x) κ t ( ⋅ ∣ x ) . Write X ′ ∼ κ t ( ⋅ ∣ X ) X'\sim\kappa_t(\cdot\mid X) X ′ ∼ κ t ( ⋅ ∣ X ) for an edit of X ∼ P X\sim P X ∼ P , A t A_t A t for the event that the validator accepts it, and V t ⊆ A t V_t\subseteq A_t V t ⊆ A t for the event that it is accepted and label-preserving. Let
δ t = P ( A t ∖ V t ∣ A t ) \delta_t=\mathbb{P}(A_t\setminus V_t\mid A_t) δ t = P ( A t ∖ V t ∣ A t ) , the false-accept rate of type t t t ;
Γ t ( f ) = P ( f ( X ′ ) ≠ f ( X ) ∣ V t ) \Gamma_t(f)=\mathbb{P}(f(X')\ne f(X)\mid V_t) Γ t ( f ) = P ( f ( X ′ ) = f ( X ) ∣ V t ) and Γ t a c c ( f ) = P ( f ( X ′ ) ≠ f ( X ) ∣ A t ) \Gamma_t^{\mathrm{acc}}(f)=\mathbb{P}(f(X')\ne f(X)\mid A_t) Γ t acc ( f ) = P ( f ( X ′ ) = f ( X ) ∣ A t ) , the prediction-change rates on valid and on all accepted edits;
Q t Q_t Q t be the law of ( X , Y ) (X,Y) ( X , Y ) given V t V_t V t , and Q = [ π 0 P + ∑ t π t Q t : π ∈ Δ τ ] Q=\left[\pi_0P+\sum_t\pi_tQ_t:\pi\in\Delta_\tau\right] Q = [ π 0 P + ∑ t π t Q t : π ∈ Δ τ ] .
Assumption 1 (Content-independent validation). For every t t t , the law of ( X , Y ) (X,Y) ( X , Y ) given V t V_t V t equals P P P .
Theorem 6 (Audited certificate). Let Assumption 1 hold, and let f f f and the edit family be independent of the following samples, each i.i.d. given them, with at most one edit per base input (samples may overlap):
n v n_v n v labelled points from P P P ;
n t n_t n t accepted edits of each type, used to estimate Γ ^ t a c c \widehat{\Gamma}^{\mathrm{acc}}_t Γ t acc ;
m t m_t m t audited accepted edits of each type, labelled without error, giving a Clopper–Pearson upper bound δ ˉ t \bar{\delta}_t δ ˉ t at level α / ( 3 τ ) \alpha/(3\tau) α / ( 3 τ ) .
Then with probability at least 1 − α 1-\alpha 1 − α , simultaneously for all Q ∈ Q Q\in\mathcal{Q} Q ∈ Q ,
err Q ( f ) ≤ err ^ P ( f ) + ε n v α / 3 + max t Γ ^ t a c c + ε n t α / ( 3 τ ) 1 − δ ˉ t (4) \operatorname{err}_Q(f)\le\widehat{\operatorname{err}}_P(f)+\varepsilon_{n_v}^{\alpha/3}+\max_t\frac{\widehat{\Gamma}^{\mathrm{acc}}_t+\varepsilon_{n_t}^{\alpha/(3\tau)}}{1-\bar{\delta}_t} \tag*{(4)} err Q ( f ) ≤ err P ( f ) + ε n v α /3 + t max 1 − δ ˉ t Γ t acc + ε n t α / ( 3 τ ) (4) where ε n β = log ( 1 / β ) 2 n \varepsilon_n^\beta=\sqrt{\frac{\log(1/\beta)}{2n}} ε n β = 2 n l o g ( 1/ β ) .
The certificate is deliberately modest. Its family Q \mathcal{Q} Q consists of the distributions the accepted valid edits generate. A validator that preferentially rejects valid edits that change f f f makes Q \mathcal{Q} Q under-represent the shift, and the family covers mixtures of single edits, not compositions. It bounds neither shortcuts outside the edit family nor reversed-shortcut groups. No observational procedure could do better: two causal models with the same P ( X , Y ) P(X,Y) P ( X , Y ) can disagree on every flip group (Section A.5; cf. Lin et al., [19 ] ). Its virtue is that every term is estimable, including the validator’s error, which is corrected by the factor ( 1 − δ ˉ t ) − 1 (1-\bar{\delta}_t)^{-1} ( 1 − δ ˉ t ) − 1 . Discovery chooses f f f and the family, so the certificate needs data and an audit that discovery never used.
Peel: Propose–Edit–Evaluate–Learn
The theory suggests a concrete procedure. It needs no group labels, it audits its validator, and it emits a certificate (Algorithm 1 in Section B). A pool of candidate edit types C \mathcal{C} C is proposed (e.g. background replacement, overlay removal, recoloring, applied, and filtered by the validator). Each candidate is evaluated by the mean absolute change it causes in the current model’s logit margin, against null edits known to be irrelevant (one-sided Welch test, Holm). By Theorem 5(i) this ranks uncovered shortcuts by salience. A small random sample of accepted edits of each surviving type is audited, giving the Clopper–Pearson bound δ ˉ t \bar{\delta}_t δ ˉ t , and types with δ ˉ t > δ max \bar{\delta}_t > \delta_{\max} δ ˉ t > δ m a x are discarded, which guards against Theorem 4 (ii). Finally the model is retrained on edited inputs with cross-entropy plus a Kullback–Leibler (KL) consistency term μ K L ( p θ ( ⋅ ∣ x ) ∥ p θ ( ⋅ ∣ T x ) ) \mu\,\mathrm{KL}(p_\theta(\cdot\mid x) \mathbin{\|} p_\theta(\cdot\mid T x)) μ KL ( p θ ( ⋅ ∣ x ) ∥ p θ ( ⋅ ∣ T x )) , using weight decay and a fixed schedule rather than interpolation. The loop stops when no candidate moves the logit significantly more than the null edits. By Theorem 5(ii) this happens only once every shortcut the model uses is covered; a flip-rate rule could stop earlier. A cheaper variant, Peel-head, retrains only the last layer, like DFR (Kirichenko et al., [16 ] ) but without group labels.
Mistake-driven proposals (MD-Peel). The candidate pool C \mathcal{C} C need not be hand-specified. MD-Peel proposes candidates from the model’s own failures.
Contrast. For each class it compares a trouble set with the model’s history . The trouble set holds held-out examples that the current model misclassifies or predicts with low margin. Without labels, it holds low-confidence examples and examples where two empirical risk minimization (ERM) models of different seeds disagree. The history holds the model’s highest-margin correct training examples.
Hypotheses. A vision–language model (VLM) captions both groups, and concepts are scored with CLIP (contrastive language–image pre-training). Differences that are significant under a permutation test are merged by a large language model (LLM) into hypotheses about the context ; an LLM filter drops object properties.
Edits. Each hypothesis becomes a REMOVE/ADD pair of edit instructions. An LLM maps each onto one of the benchmark’s known intervention operators or onto none (an oracle library ), or a text-guided editor (CLIPSeg segmentation plus inpainting) realizes it, checked by a VLM validator.
Test. As in Peel, hypotheses are tested by the change in the logit margin. The null must be a same-operation placebo (e.g. another background of the same type), because history and trouble sets have extreme margins that any large edit moves.
Experiments
We test the theory at three levels of realism: the stylized model itself with finite samples, gradient descent, and a noisy validator (E1); deep networks on a four-shortcut image benchmark (E2); a two-shortcut Waterbirds variant built from real photographs (E3); and five standard benchmarks, where MD-Peel proposes the candidate shortcuts from the model’s own mistakes (E4). In E2 and E3 every intervention is exact because images are composed from their factors. This lets us evaluate every flip group on the full test set and inject validator errors at controlled rates. No group labels are used for training or model selection unless marked †. By default every training input is edited (q = 1 q = 1 q = 1 ), matching P ~ K , δ \widetilde{P}_{K,\delta} P K , δ . Details: Section D.
E1: the theory is quantitatively sharp
We fit logistic regression on samples from P ~ K , δ \widetilde{P}_{K,\delta} P K , δ (k ∈ { 3 , 5 } k \in\{3,5\} k ∈ { 3 , 5 } , random ρ j \rho_j ρ j , 10 seeds; figures in Section B). Decision rule. At n = 10 5 n = 10^5 n = 1 0 5 the rule of Theorem 1 disagrees with the fitted model on 0.39% of 7,680 flip-group evaluations, all near-ties. Whac-a-Mole. Across 19,200 (cover, shortcut, group) triples, the sign of every accuracy change matches the theory in 99.4%, and 98.4% of the predicted degradations occur. Validator tolerance. The empirical false-accept threshold lies within 0.01 of δ ∗ \delta^* δ ∗ in every row. Interpolation. With noiseless data, one false accept among 1,000 points drives worst-group accuracy to 0 after 873 gradient steps, the moment it is fitted. ℓ 2 \ell_2 ℓ 2 regularization restores a finite tolerance. Discovery and certificate. Greedy discovery recovers the salience order in 94–98% of instances, and the certificate was violated in 0 of 200 replications. Partial editing. If only half of the training inputs are edited, covered shortcuts keep weight and only 35% of predicted degradations occur.
E2: deep networks, four shortcuts
Setup. The core task is CIFAR-10 cat vs. dog (Krizhevsky, [17 ] ), with 4,000 training images per class. Four binary shortcuts are rendered exactly: a corner patch (S 1 S_1 S 1 ), a color tint (S 2 S_2 S 2 ), a border (S 3 S_3 S 3 ), and a low-amplitude grating (S 4 S_4 S 4 ). Each agrees with the label with probability ρ j = 0.95 \rho_j = 0.95 ρ j = 0.95 . We train a ResNet-18 (He et al., 2016) from scratch for 40 epochs and select the last epoch. We use all 16 coverage sets (5 seeds) and all 16 flip groups. The core is weaker than every shortcut: ERM has 99.2 IID (independent and identically distributed) test accuracy but 0.0 worst-group accuracy, and the core alone supports ≈73%.
Coverage. Covered shortcuts have measured salience 0.10 on average, against 5.27 for uncovered ones (Theorem 1). Theorem 2(a) holds: worst-group accuracy rises from 0.0 to 70.9 ± 4.0 with full coverage, and the worst group’s margin rises along all 32 cover-one-more steps.
For Theorem 2(b), 72.5% of the 512 (cover, shortcut, group) triples change significantly (paired t t t -test over seeds), and 97.6% of these have the predicted sign. Where the newly covered shortcut is aligned and an uncovered flip remains, accuracy drops by 32.7 points on average. 95% of significant decreases have the covered shortcut aligned, which is exactly the loss-of-support mechanism. A per-example version of the rule, which subtracts each example’s measured shortcut effect from the current margin, predicts the size of the change with r = 0.85 r = 0.85 r = 0.85 (Figure 3 , left, Section B).
Figure 3. E2 (ResNet-18, four shortcuts). Left: change in flip-group accuracy when shortcut j j j is covered, predicted from per-example margins vs. observed (r = 0.85 r = 0.85 r = 0.85 ). Covering an aligned shortcut (orange) lowers accuracy, as in Theorem 2(b). Right: flip-group accuracy predicted from single-flip effects vs. observed, using per-example effects (R 2 = 0.996 R^2 = 0.996 R 2 = 0.996 ) or the mean salience λ ^ j \hat{\lambda}_j λ ^ j (R 2 = 0.971 R^2 = 0.971 R 2 = 0.971 ); color is ∣ K ∣ |K| ∣ K ∣ .
One prediction fails in its intact-core form. Groups whose flipped shortcuts are all covered should be unaffected, yet they lose 8.5 points, mostly when the last shortcut is covered. These are examples where the weak core errs and aligned shortcuts had rescued them: the noisy-core case and the in-distribution price of invariance (§ 2 ).
The additive structure itself is accurate: predicting each multi-flip group’s accuracy from per-example single-flip effects gives R 2 = 0.996 R^2 = 0.996 R 2 = 0.996 over all coverage sets, seeds, and groups (Figure 3 , right).
Validator error and Peel. Worst-group accuracy falls with δ \delta δ in every setting (full coverage: 73.3 → 54.7 at δ = 0.3 \delta= 0.3 δ = 0.3 ), but gradually, without the sharp threshold of the linear theory. Interpolation is more fragile only for the largest partial cover { 1 , 3 , 4 } \{1, 3, 4\} { 1 , 3 , 4 } (27.4 → 15.5 already at δ = 0.02 \delta= 0.02 δ = 0.02 , vs. 20.5 → 17.1 regularized). These are partial confirmations.
Peel finds all four shortcuts in every seed, in salience order (Spearman 0.96; Theorem 5), and the audit rejects core swap every time. Peel reaches 71.3 ± 4.0 worst-group accuracy, matching oracle coverage (70.9); without the audit it reaches 60.8. Group-label baselines fail because the worst groups are nearly empty in training (JTT† 0.2, GroupDRO† 34.4, DFR† 43.6).
Peel-head on the frozen ERM backbone reaches only 19.0: trained from scratch, the network never represents the core (a representation failure), unlike the pretrained backbone of E3. The certificate held in every case (mean bound 0.40 vs. measured 0.27).
Coverage does not transfer; redundant shortcuts hide from flip tests. We add four more exact shortcuts, giving eight families, and cover only the first four (A–D) exactly. Accuracy on groups where only E–H are flipped then falls by 42.4 ± 1.6 points: 11 of 15 such groups drop significantly and none rise (5 seeds). This is Theorem 2(b) at scale, and it rules out “transfer” to uncovered families. With eight redundant shortcuts, a single randomized shortcut rarely flips a prediction, because the others outvote it. A flip-rate test then finds nothing in 3 of 5 seeds, the early stopping noted after Theorem 5, whereas Peel’s margin test finds all eight families and reaches 71.2 worst-group accuracy (oracle coverage: 68.6).
E3: real photographs, two shortcuts
Waterbirds-2S. We composite CUB-200 birds [33 ] with their segmentation masks onto Places365 land and water scenes [39 ] , as in Waterbirds [28 ] . The shortcuts are the background (ρ = 0.95 \rho= 0.95 ρ = 0.95 ) and a semi-transparent “PHOTOSTOCK” watermark (ρ = 0.90 \rho= 0.90 ρ = 0.90 ; cf. ImageNet-W, Li et al., 2023). The edit library contains exact background swaps and watermark toggles; null edits (flip, color jitter, crop); and core swap , which pastes a bird of the other class while keeping the label and so plays the false accept. We fine-tune an ImageNet ResNet-50 for 20 epochs, take the last epoch, and average over 5 seeds. ERM relies on both shortcuts: its saliences are λ ^ b g = 4.4 \hat{\lambda}_{\mathrm{bg}} = 4.4 λ ^ bg = 4.4 and λ ^ w m = 2.6 \hat{\lambda}_{\mathrm{wm}} = 2.6 λ ^ wm = 2.6 , and its worst-group accuracy is 66.5 against 98.9 IID.
Whac-a-Mole on real images. Figure 1 (a) reproduces Theorem 2 on photographs. Covering the background lowers the { w m } \{\mathrm{wm}\} { wm } group from 97.3 to 93.5 (−3.8 ± 0.3). Covering the watermark lowers { b g } \{\mathrm{bg}\} { bg } from 91.9 to 86.2 (−5.7 ± 0.4). Worst-group accuracy rises monotonically: 66.5 → 93.4/85.8 → 98.2. Across all coverage transitions, 12 of 16 (transition, group) cells change by at least one point with a consistent sign, and all 12 have the sign predicted by Theorem 1. For a CLIP vision transformer (ViT-B/16), both fine-tuned and linearly probed, all mean changes have the predicted sign (Section D).
Figure 1. E3 (Waterbirds-2S, ResNet-50, 5 seeds). (a) Flip-group accuracy per covered set. Covering one shortcut lowers accuracy on the group where the other shortcut is flipped (triangles; Theorem 2(b)), while worst-group accuracy rises monotonically. (b) WGA vs. injected false-accept rate. Partial coverage collapses fastest; interpolation (dashed) is worse. Dropping the KL increases tolerance. Dotted lines mark δ π ⋆ \delta_\pi^\star δ π ⋆ (Remark 1).
Validator error. Figure 1 (b) injects false accepts. As Theorem 4 predicts, partial coverage is fragile. With K = { b g } K = \{\mathrm{bg}\} K = { bg } , δ = 0.05 \delta= 0.05 δ = 0.05 drops worst-group accuracy from 93.4 to 63.4, and the fraction of core-swapped images classified by the bird falls from 90% to 18%. Full coverage tolerates more. Interpolating training is worse under partial coverage (47.2 vs. 63.4 at δ = 0.05 \delta= 0.05 δ = 0.05 ) but not under full coverage, where the data are inseparable. Our pre-registered balanced-class tolerances (δ ⋆ = 0.10 , 0.5 \delta^\star= 0.10, 0.5 δ ⋆ = 0.10 , 0.5 ) were too optimistic. Accounting for the 21% class prior (Remark 1, derived after observing this failure) gives δ ⋆ = 0.03 \delta^\star= 0.03 δ ⋆ = 0.03 and 0.21, which matches where the curves break: at δ ≥ 0.2 \delta\ge0.2 δ ≥ 0.2 the fully covered model predicts the majority class. Finally, the consistency term amplifies false accepts. Without it, worst-group accuracy is 96.9 at δ = 0.1 \delta= 0.1 δ = 0.1 , vs. 85.9 with it.
Peel vs. baselines. PEEL flags background, watermark, and core swap in round 1. The audit rejects core swap (50/50 bad) and keeps the other two (δ = 0.058 \delta= 0.058 δ = 0.058 ), and round 2 finds nothing new. PEEL reaches the oracle-coverage model (98.2; Table 1 ). Applying random library edits under the same budget reaches 76.3, and group-label methods reach at most 89.6. Without the audit, core swaps enter the bank and worst-group accuracy falls to 85.6. Peel-head, which retrains only the last layer, recovers most of the gain (95.7), so on a pretrained backbone the shortcut is largely a readout failure [16 ] . On held-out test birds, Theorem 6 holds in all 20 (model, edit type) cases but is loose (7.8–8.9% vs. a measured 1.6–1.8%).
Table 1. Worst-group accuracy (%; Spawrious: class×location groups; average accuracy in Table 5 ), mean±standard deviation (std) over 3 seeds (Waterbirds-2S: 5). †: group labels. n/a: no exact edit library; –: not run. Oracle library: hypotheses mapped onto the benchmark’s known operators. Generated edits: three end-to-end runs (own edited set and classifier per discovery seed). O2O/M2M: one-to-one/many-to-many splits. CSI: certified shortcut immunization. ShortcutProbe [37 ] uses validation class labels. *CelebA: head-only retraining, 20k-image subset (no-edit control 43.5).
E4: standard benchmarks, and finding shortcuts from mistakes
Setup. We use Waterbirds, UrbanCars (Li et al., 2023) (background and co-occurring object), CelebA (blond hair, spurious gender), and the one-to-one (O2O) and many-to-many (M2M) hard splits of Spawrious [21 ] , with an ImageNet ResNet-50, 3 seeds, the last epoch, and one optimizer for all methods. Baselines: environment inference for invariant learning (EIIL; Creager et al. [4 ] ), SPARE [36 ] , ShortcutProbe [37 ] , GroupDRO†, JTT†, DFR† and invariant risk minimization (IRM†; Arjovsky et al. [2 ] ). We also run a learned-adversary baseline, certified shortcut immunization (CSI): a U-Net adversary proposes edits, a CLIP zero-shot validator accepts them, and a novelty reward drives discovery. Hand-list Peel needs exact edits, which exist only for Waterbirds-2S, Waterbirds, and UrbanCars. MD-Peel starts from ERM with no candidate list and uses the oracle library (background swap, watermark toggle, co-object swap) or generated edits, validated by Qwen2.5-VL and audited by InternVL2.5 and CLIP (Section C).
MD-Peel names the shortcuts. From the model’s mistakes alone, MD-Peel’s confirmed hypotheses name the background and the watermark on Waterbirds-2S (on one seed the watermark appears only in round 2, after the background is covered, as Theorem 5 predicts), the background on Waterbirds, both shortcuts on UrbanCars, gender on CelebA, and the background on Spawrious O2O. With the oracle library the LLM only selects among the benchmark’s own operators: this tests semantic selection, not discovery of new interventions. On Spawrious M2M it confirms “lush, tropical background” and “scattered background”, which our pre-registered keywords do not count as hits. Without any labels (low confidence plus seed disagreement) it confirms the same edits on all 9 exact-edit runs. Our pre-registered keyword score (seed 0) credits 4 of 5 datasets (lenient rule) or 2 of 5 (strict; mostly plurals). The test needs a placebo null. With the specified pixel nulls it rejected no round-1 hypothesis, but it also confirmed 10 of 30 same-operation placebos and 9 of 28 re-tests of covered operations on fixed models. With a placebo null (post hoc) both fall to 0, and all round-1 confirmations and final banks are unchanged (Section C.2).
. . . and fixes them with the oracle library. With the oracle library (Table 1 ), MD-Peel matches hand-list Peel (98.0/93.5/94.1 vs. 98.2/94.0/94.1) and beats every group-label baseline, including DFR† (89.6/92.2/86.9). On UrbanCars, it closes all three Whac-a-Mole gaps; JTT† closes the background gap but widens the co-object gap to −16.4. Generated edits are weaker evidence. We ran them end to end from three discovery seeds (round 2 not run). On Spawrious, where no library exists, they raise worst-group accuracy over ERM (73.2 vs. 55.1 on O2O, 46.5 vs. 34.1 on M2M). That is the best M2M result, but GroupDRO† is better on O2O (80.1). On average accuracy, the official metric, MD-Peel is best on M2M (75.2 vs. 72.2) and ties GroupDRO† on O2O (89.1 vs. 89.3). It improves on ERM on Waterbirds-2S, Waterbirds and UrbanCars (78.9, 80.0, 72.0), but trails exact edits there, and discovery variance is large on UrbanCars (64.8–76.8). Its edits rarely damage the object (at most 0.3% by ground-truth masks), but often fail to change the shortcut: only 14–43% of accepted edits flip the true background. On CelebA it fails (42.8 vs. ERM 44.8). With seed 0 the audit removed the direct gender edit, leaving “beard” and an irrelevant hypothesis; seeds 1 and 2 kept nothing, so the loop returned ERM. The editor, not discovery, is the bottleneck.
The learned adversary fails, and coverage is what matters. CSI never improves on ERM by more than seed noise: its adversary paints over the object, CLIP still accepts 79–92% of those edits, and with a perfect validator it finds almost nothing (≤ 0.4 bank members per run). Discovery is not always needed. In natural language inference (NLI) from Multi-Genre NLI (MNLI) to the HANS challenge set (Heuristic Analysis for NLI Systems; McCoy et al., [23 ] ), uniform training on all 12 rewrite families matches or beats any selection (HANS 64.7 vs. 62.8 MD-Peel, 62.4 Peel, 62.3 CSI; ERM 59.0), and mistake-driven discovery confirms only style features. What matters: shortcut coverage and bad-edit filtering.
Related Work
Group robustness without full annotations. GroupDRO (Sagawa et al., [28 ] ) needs training-group labels; JTT (Liu et al., [20 ] ), DFR (Kirichenko et al., [16 ] ), automatic feature reweighting (AFR; Qiu et al., [27 ] ) and SPARE (Yang et al., [36 ] ) still use group-labelled validation data; simple balancing is a strong baseline (Idrissi et al., [10 ] ).
Invariance, augmentation, and causality. Complete intervention families yield counterfactual invariance (Veitch et al., [31 ] ; Makar et al., [22 ] ); augmentations that vary all style factors isolate content (von Kügelgen et al., [32 ] ) and can simulate interventions (Ilse et al., [11 ] ; Gao et al., [7 ] ); limits of IRM (Arjovsky et al., [2 ] ; Kamath et al., [13 ] ; Lin et al., [19 ] ) motivate side information.
Multiple shortcuts and simplicity bias. Li et al. (2023) documented the Whac-a-Mole effect on UrbanCars and ImageNet variants and proposed a last-layer ensemble. Khani and Liang (2021) showed in regression that removing a spurious feature can hurt accuracy and affect groups disproportionately. Zheng and Makar [38 ] showed that removing a sufficient set of shortcuts suffices. Our Theorems 2 and 3 give the exact per-group condition for classification. Simplicity bias [29 ] and the max-margin bias of gradient descent [30 , 26 ] explain why shortcuts are learned.
Generative discovery and augmentation. Diffusion-based augmentation [5 ] , concept-based and error-slice discovery (Wu et al., 2023; Eyuboglu et al., 2022; Kim et al., 2024), and edit-based stress tests [25 , 34 ] propose edits automatically; MD-Peel instead contrasts failures with the model’s own confident history and tests each hypothesis by intervention first. Counterfactually augmented data can be ineffective or harmful [14 , 12 ] . Bai et al. [3 ] bound out-of-distribution (OOD) error when noise perturbs counterfactual features; we analyze label-changing false accepts. Our audit correction resembles prediction-powered inference [1 ] .
Discussion
Intervention-based mitigation trades group labels for coverage and validation; our analysis quantifies this trade: partial coverage helps the worst case but redistributes errors, and the validator’s error budget grows with coverage and shrinks with class imbalance. In practice: edit every input, audit the validator, regularize, not interpolate, and report every flip group.
AI use statement
In this work, we used generative artificial intelligence (AI) tools (LLM assistants, including agentic coding assistants) for the following tasks with required disclosure: refining the research question and hypotheses; developing the theoretical model, formulating the mathematical claims and drafting their proofs; designing the experiments; implementing the methods and baselines, including the code that generates the synthetic and composited datasets (E1–E3) and preprocesses the public datasets; and interpreting results. We have not used generative AI tools for translation, and qualitative or thematic data analysis is not applicable to this work. Additionally, we used them for tasks with recommended disclosure: surveying the literature, brainstorming, running experiments on our cluster, producing figures, verifying references, and drafting and editing the text. The idea of proposing candidate edits from the model’s own mistakes (MD-Peel) came from an author. Generative models (Qwen2.5-VL, Qwen2.5, InternVL2.5, Stable Diffusion inpainting) are also components of MD-Peel and of our NLP experiments (§ 5.4 ).
We have reviewed all AI-assisted work. An independent model-based review checked the proofs adversarially, and the issues it found were corrected; the theorems were also validated numerically (E1). Every reported number comes from logged runs included in the supplementary material; we did not use generative AI to fabricate or alter experimental data. Bibliographic entries were verified against publisher or arXiv records. We take responsibility for the final content of this work, including text, claims, and artifacts produced with the aid of generative AI.
Proofs
Throughout, x = ( x c , x 1 , … , x k ) x=(x_c,x_1,\ldots,x_k) x = ( x c , x 1 , … , x k ) follows (1). For a feature f ∈ { c , 1 , … , k } f\in\{c,1,\ldots,k\} f ∈ { c , 1 , … , k } we write m f m_f m f for its magnitude (m c = a m_c=a m c = a , m j = b j m_j=b_j m j = b j ) and p f p_f p f for its agreement probability under the training distribution. Under P ~ K , δ \widetilde{P}_{K,\delta} P K , δ these are p c = p δ p_c=p_\delta p c = p δ , p j = 1 2 p_j=\frac{1}{2} p j = 2 1 for j ∈ K j\in K j ∈ K , and p j = ρ j p_j=\rho_j p j = ρ j for j ∈ U j\in U j ∈ U .
Proof of thm:partial and thm:validator(i) (logistic regime)
Lemma 7. Under P ~ K , δ \widetilde{P}_{K,\delta} P K , δ , the coordinates of X X X are conditionally independent given Y Y Y , and log P ( Y = 1 ∣ X = x ) P ( Y = − 1 ∣ X = x ) = ∑ f x f m f λ ( p f ) \log\frac{\mathbb{P}(Y=1\mid X=x)}{\mathbb{P}(Y=-1\mid X=x)}=\sum_f\frac{x_f}{m_f}\lambda(p_f) log P ( Y = − 1 ∣ X = x ) P ( Y = 1 ∣ X = x ) = ∑ f m f x f λ ( p f ) .
Proof. Randomizing Z j Z_j Z j replaces it by a fresh independent sign. Flipping Z c Z_c Z c with probability δ \delta δ , independently, yields a sign with P ( Z c = 1 ) = p ( 1 − δ ) + ( 1 − p ) δ = p δ \mathbb{P}(Z_c=1)=p(1-\delta)+(1-p)\delta=p_\delta P ( Z c = 1 ) = p ( 1 − δ ) + ( 1 − p ) δ = p δ . Hence the Z Z Z ’s remain independent given Y Y Y . For each feature, x f ∈ { ± m f } x_f\in\{\pm m_f\} x f ∈ { ± m f } and P ( x f = m f ∣ Y = 1 ) = p f = P ( x f = − m f ∣ Y = − 1 ) \mathbb{P}(x_f=m_f\mid Y=1)=p_f=\mathbb{P}(x_f=-m_f\mid Y=-1) P ( x f = m f ∣ Y = 1 ) = p f = P ( x f = − m f ∣ Y = − 1 ) . So the log-likelihood ratio of x f x_f x f is x f m f λ ( p f ) \frac{x_f}{m_f}\lambda(p_f) m f x f λ ( p f ) . Sum over features and use the balanced prior. □
Proof of Theorem 1(i) and Theorem 4(i). The logistic loss is a strictly proper scoring rule. Its population risk R ( w ) = E log ( 1 + e − Y w ⊤ X ) R(w)=\mathbb{E}\log(1+e^{-Yw^\top X}) R ( w ) = E log ( 1 + e − Y w ⊤ X ) is therefore minimized by any w w w with σ ( w ⊤ x ) = P ( Y = 1 ∣ X = x ) \sigma(w^\top x)=\mathbb{P}(Y=1\mid X=x) σ ( w ⊤ x ) = P ( Y = 1 ∣ X = x ) almost surely. By Theorem 7, w f ⋆ = λ ( p f ) / m f w_f^\star=\lambda(p_f)/m_f w f ⋆ = λ ( p f ) / m f satisfies this. Uniqueness: R R R is strictly convex in every direction v v v with E ( v ⊤ X ) 2 > 0 \mathbb{E}(v^\top X)^2>0 E ( v ⊤ X ) 2 > 0 . Moreover E X X ⊤ = diag ( m f 2 ( 1 − ( 2 p f − 1 ) 2 ) ) + u u ⊤ \mathbb{E}XX^\top=\operatorname{diag}(m_f^2(1-(2p_f-1)^2))+uu^\top E X X ⊤ = diag ( m f 2 ( 1 − ( 2 p f − 1 ) 2 )) + u u ⊤ with u f = m f ( 2 p f − 1 ) u_f=m_f(2p_f-1) u f = m f ( 2 p f − 1 ) , which is positive definite because p f < 1 p_f<1 p f < 1 for every f f f . Plugging in p c = p δ p_c=p_\delta p c = p δ (with δ = 0 \delta=0 δ = 0 for Theorem 1), p j = 1 2 ⇒ λ = 0 p_j=\frac{1}{2}\Rightarrow\lambda=0 p j = 2 1 ⇒ λ = 0 for j ∈ K j\in K j ∈ K , and p j = ρ j p_j=\rho_j p j = ρ j for j ∈ U j\in U j ∈ U gives the weights.
For a point of G F G_F G F with label y y y , we have x c = a y x_c=ay x c = a y and x j = − b j y x_j=-b_jy x j = − b j y for j ∈ F j\in F j ∈ F , x j = b j y x_j=b_jy x j = b j y otherwise. Thus y w ⋆ ⊤ x = λ ( p δ ) + ∑ j ∈ U ∖ F λ ( ρ j ) − ∑ j ∈ U ∩ F λ ( ρ j ) yw^{\star\top}x=\lambda(p_\delta)+\sum_{j\in U\setminus F}\lambda(\rho_j)-\sum_{j\in U\cap F}\lambda(\rho_j) y w ⋆ ⊤ x = λ ( p δ ) + ∑ j ∈ U ∖ F λ ( ρ j ) − ∑ j ∈ U ∩ F λ ( ρ j ) , and covered coordinates contribute 0 0 0 . With δ = 0 \delta=0 δ = 0 this is M K ( F ) M_K(F) M K ( F ) , proving the decision rule.
For Theorem 4(i), the worst group is any F ⊇ U F\supseteq U F ⊇ U , with margin λ ( p δ ) − R U \lambda(p_\delta)-R_U λ ( p δ ) − R U . This is positive iff p δ > σ ( R U ) p_\delta>\sigma(R_U) p δ > σ ( R U ) . Since p δ = p − δ ( 2 p − 1 ) p_\delta=p-\delta(2p-1) p δ = p − δ ( 2 p − 1 ) is strictly decreasing in δ \delta δ for p > 1 2 p>\frac{1}{2} p > 2 1 , the condition is equivalent to δ < ( p − σ ( R U ) ) / ( 2 p − 1 ) = δ ⋆ \delta<(p-\sigma(R_U))/(2p-1)=\delta^\star δ < ( p − σ ( R U )) / ( 2 p − 1 ) = δ ⋆ . Finally, δ ⋆ > 0 \delta^\star>0 δ ⋆ > 0 iff p > σ ( R U ) p>\sigma(R_U) p > σ ( R U ) iff λ ( p ) > R U \lambda(p)>R_U λ ( p ) > R U , which is the condition of Theorem 3. □
Proof of Remark 1. With prior π \pi π , Theorem 7 gives log-odds λ ( π ) + ∑ f x f m f λ ( p f ) \lambda(\pi)+\sum_f\frac{x_f}{m_f}\lambda(p_f) λ ( π ) + ∑ f m f x f λ ( p f ) , which the logistic model with intercept represents exactly. A point of G F G_F G F with label y y y has margin y λ ( π ) y\lambda(\pi) y λ ( π ) + (margin of Theorem 1). The minority label therefore has margin M K ( F ) − ∣ λ ( π ) ∣ M_K(F)-|\lambda(\pi)| M K ( F ) − ∣ λ ( π ) ∣ . The worst group is again F ⊇ U F\supseteq U F ⊇ U , and the condition λ ( p δ ) − R U − ∣ λ ( π ) ∣ > 0 \lambda(p_\delta)-R_U-|\lambda(\pi)|>0 λ ( p δ ) − R U − ∣ λ ( π ) ∣ > 0 is equivalent to δ < δ π ⋆ \delta<\delta_\pi^\star δ < δ π ⋆ , as in the balanced case. As p → 1 p\to1 p → 1 , δ π ⋆ → 1 − σ ( R U + ∣ λ ( π ) ∣ ) \delta_\pi^\star\to1-\sigma(R_U+|\lambda(\pi)|) δ π ⋆ → 1 − σ ( R U + ∣ λ ( π ) ∣ ) , which equals min ( π , 1 − π ) \min(\pi,1-\pi) min ( π , 1 − π ) when U = ∅ U=\varnothing U = ∅ . □
Proof of thm:partial(ii) and thm:validator(ii) (max-margin regime)
Recall that for linearly separable data, gradient descent on the (unregularized) empirical logistic loss with a sufficiently small step size satisfies w ( t ) / ∥ w ( t ) ∥ → w ^ w(t)/\|w(t)\|\to\widehat{w} w ( t ) /∥ w ( t ) ∥ → w , where w ^ \widehat{w} w is the unique solution of max ∥ w ∥ = 1 min i y i w ⊤ x i \max_{\|w\|=1}\min_i y_iw^\top x_i max ∥ w ∥ = 1 min i y i w ⊤ x i [30 ] .
Proof of Theorem 1(ii). With p = 1 p=1 p = 1 and ρ j = 1 \rho_j=1 ρ j = 1 on U U U , every training point satisfies y i w ⊤ x i = v ⊤ β + w K ⊤ ( b K ∘ z i ) y_iw^\top x_i=v^\top\beta+w_K^\top(b_K\circ z_i) y i w ⊤ x i = v ⊤ β + w K ⊤ ( b K ∘ z i ) , where v = ( w c , w U ) v=(w_c,w_U) v = ( w c , w U ) , β = ( a , b U ) \beta=(a,b_U) β = ( a , b U ) , z i z_i z i is the K K K -pattern of the point, and ∘ \circ ∘ is the entrywise product. Let
Proof of cor:wam, cor:suff, and prop:greedy
∑ i α i ( b K ∘ z i ) = 0 \sum_i \alpha_i(b_K \circ z_i)=0 ∑ i α i ( b K ∘ z i ) = 0 with α \alpha α in the simplex, as assumed. Then the minimum margin satisfies ϕ ( w ) = min i y i w ⊤ x i ≤ ∑ i α i y i w ⊤ x i = v ⊤ β ≤ ∥ v ∥ ∥ β ∥ ≤ ∥ β ∥ \phi(w)=\min_i y_iw^\top x_i\le\sum_i\alpha_i y_iw^\top x_i=v^\top\beta\le\|v\|\|\beta\|\le\|\beta\| ϕ ( w ) = min i y i w ⊤ x i ≤ ∑ i α i y i w ⊤ x i = v ⊤ β ≤ ∥ v ∥∥ β ∥ ≤ ∥ β ∥ for ∥ w ∥ = 1 \|w\|=1 ∥ w ∥ = 1 . Equality requires w K = 0 w_K=0 w K = 0 , ∥ v ∥ = 1 \|v\|=1 ∥ v ∥ = 1 , and v = β / ∥ β ∥ v=\beta/\|\beta\| v = β /∥ β ∥ . That vector attains ϕ = ∥ β ∥ > 0 \phi=\|\beta\|>0 ϕ = ∥ β ∥ > 0 , so it is the unique maximizer. The decision rule follows by evaluating y w ^ ⊤ x ∝ a 2 + ∑ j ∈ U b j 2 − ∑ j ∈ F b j 2 y\hat w^\top x\propto a^2+\sum_{j\in U}b_j^2-\sum_{j\in F}b_j^2 y w ^ ⊤ x ∝ a 2 + ∑ j ∈ U b j 2 − ∑ j ∈ F b j 2 on G F G_F G F .
On sample size: for n n n i.i.d. uniform sign patterns, 0 ∉ conv 0\notin\operatorname{conv} 0 ∈ / conv iff all patterns lie in an open half-space through the origin. By Wendel’s theorem, for points in general position this has probability 2 − n + 1 ∑ i < ∣ K ∣ ( n − 1 i ) 2^{-n+1}\sum_{i<|K|}\binom{n-1}{i} 2 − n + 1 ∑ i < ∣ K ∣ ( i n − 1 ) , which is negligible once n ≳ 4 ∣ K ∣ n\gtrsim4|K| n ≳ 4∣ K ∣ . Ties among sign patterns only make this event less likely.
Proof of Theorem 4(ii). Let x ′ x' x ′ be the false-accepted point. It has z c = − 1 z_c=-1 z c = − 1 , K K K -pattern z ′ z' z ′ , and aligned uncovered shortcuts. Let x x x be a genuine point with K K K -pattern − z ′ -z' − z ′ . The minimum margin is at most the average of their margins. The K K K -terms and the core terms cancel:
ϕ ( w ) ≤ 1 2 [ ( w c a + B U − w K ⊤ ( b K ∘ z ′ ) ) + ( − w c a + B U + w K ⊤ ( b K ∘ z ′ ) ) ] = B U ( w ) ≤ ∥ w U ∥ ∥ b U ∥ ≤ ∥ b U ∥ . \phi(w)\le\frac{1}{2}\left[(w_ca+B_U-w_K^\top(b_K\circ z'))+(-w_ca+B_U+w_K^\top(b_K\circ z'))\right]=B_U(w)\le\|w_U\|\|b_U\|\le\|b_U\|. ϕ ( w ) ≤ 2 1 [ ( w c a + B U − w K ⊤ ( b K ∘ z ′ )) + ( − w c a + B U + w K ⊤ ( b K ∘ z ′ )) ] = B U ( w ) ≤ ∥ w U ∥∥ b U ∥ ≤ ∥ b U ∥.
where B U ( w ) = ∑ j ∈ U w j b j B_U(w)=\sum_{j\in U}w_jb_j B U ( w ) = ∑ j ∈ U w j b j . Equality forces ∥ w U ∥ = 1 \|w_U\|=1 ∥ w U ∥ = 1 , hence w c = 0 w_c=0 w c = 0 , w K = 0 w_K=0 w K = 0 , and w U = b U / ∥ b U ∥ w_U=b_U/\|b_U\| w U = b U /∥ b U ∥ . This vector gives every training point, genuine or false-accepted, margin ∥ b U ∥ > 0 \|b_U\|>0 ∥ b U ∥ > 0 , so it is the unique maximizer. On G U G_U G U every uncovered shortcut is flipped, so the margin is − ∥ b U ∥ < 0 -\|b_U\|<0 − ∥ b U ∥ < 0 and accuracy is 0.
If U = ∅ U=\varnothing U = ∅ , any w w w correct on x x x has w c a > w K ⊤ ( b K ∘ z ′ ) w_ca>w_K^\top(b_K\circ z') w c a > w K ⊤ ( b K ∘ z ′ ) . Then x ′ x' x ′ has margin − w c a + w K ⊤ ( b K ∘ z ′ ) < 0 -w_ca+w_K^\top(b_K\circ z')<0 − w c a + w K ⊤ ( b K ∘ z ′ ) < 0 , so no homogeneous separator exists.
Remarks.
The condition on − z ′ -z' − z ′ cannot be dropped. With genuine patterns { ( + , + ) , ( − , − ) } \{(+,+),(-,-)\} {( + , + ) , ( − , − )} and a false accept with pattern ( + , − ) (+,-) ( + , − ) , the max-margin solution keeps w c > 0 w_c>0 w c > 0 .
The result is specific to ρ j = 1 \rho_j=1 ρ j = 1 on U U U . A genuine point with a flipped uncovered shortcut restores w c > 0 w_c>0 w c > 0 .
Gradient descent approaches the max-margin direction only at rate O ( 1 / log t ) O(1/\log t) O ( 1/ log t ) (Soudry et al., [30 ] ).
Proof of Theorem 2, Theorem 3, and Theorem 5
Proof of Theorem 2. (a) M K ( F ) M_K(F) M K ( F ) is minimized by putting every uncovered index into F F F , giving s c − ∑ U s j s_c-\sum_U s_j s c − ∑ U s j . Moving j j j from U U U to K K K increases this by s j > 0 s_j>0 s j > 0 . With a noisy core at test time, the accuracy of G F G_F G F is p ⋅ 1 [ M K ( F ) > 0 ] + ( 1 − p ) ⋅ 1 [ M K ( F ) − 2 s c > 0 ] p\cdot\mathbf{1}[M_K(F)>0]+(1-p)\cdot\mathbf{1}[M_K(F)-2s_c>0] p ⋅ 1 [ M K ( F ) > 0 ] + ( 1 − p ) ⋅ 1 [ M K ( F ) − 2 s c > 0 ] . This is the same non-decreasing function of M K ( F ) M_K(F) M K ( F ) for every F F F , so the minimum accuracy is attained at the minimum margin and is non-decreasing in K K K . (b) For j ∈ U ∖ F j\in U\setminus F j ∈ U ∖ F , M K ∪ { j } ( F ) = M K ( F ) − s j M_{K\cup\{j\}}(F)=M_K(F)-s_j M K ∪ { j } ( F ) = M K ( F ) − s j , since j j j leaves the positive sum. The sign changes from positive to non-positive iff 0 < M K ( F ) ≤ s j 0<M_K(F)\le s_j 0 < M K ( F ) ≤ s j .
Proof of Theorem 3. The first claim is (a) with the minimum margin required to be positive. For the second, the condition ∑ U s j < s c \sum_U s_j<s_c ∑ U s j < s c concerns only the residual sum. Among covers of a given size, the residual is minimized by covering the largest saliences (exchange argument). So the smallest feasible size is attained by the greedy prefix in decreasing salience.
Proof of Theorem 5. Ranking. Randomizing Z j Z_j Z j leaves it unchanged with probability 1 2 \frac{1}{2} 2 1 and flips it otherwise. A flip changes w ⊤ x w^\top x w ⊤ x by ± 2 w j b j \pm2w_jb_j ± 2 w j b j . By Theorem 1, w j b j = λ ( ρ j ) w_jb_j=\lambda(\rho_j) w j b j = λ ( ρ j ) in the logistic regime and b j 2 / ∥ ( a , b U ) ∥ b_j^2/\|(a,b_U)\| b j 2 /∥ ( a , b U ) ∥ for the unit-norm max-margin predictor. The mean absolute change is therefore s j / κ s_j/\kappa s j / κ , maximized by the most salient uncovered shortcut. Covering it leaves the other weights unchanged (logistic) or rescales them by a common factor (max-margin), so the ranking of the rest is preserved. By induction, K = K r K=K_r K = K r after r r r rounds.
Margin stopping, rule (ii). By Theorem 1 the covered weights are 0, so covered and null edits leave every logit unchanged, while each uncovered j j j has mean absolute logit change s j / κ s_j/\kappa s j / κ , which is positive iff s j > 0 s_j>0 s j > 0 . The rule therefore continues while some shortcut with s j > 0 s_j>0 s j > 0 is uncovered and stops once all are covered.
Flip-based stopping (logistic regime; the alternative discussed after the proposition). The logit of an input is ∑ f z f s f \sum_f z_fs_f ∑ f z f s f , with only c c c and U U U contributing.
If s c > ∑ U s j s_c > \sum_U s_j s c > ∑ U s j , then ∣ ∑ U ± s j ∣ < s c \left|\sum_U \pm s_j\right| < s_c ∣ ∑ U ± s j ∣ < s c , so the sign of the logit equals z c z_c z c for every input. Flipping uncovered shortcuts never changes a prediction.
If s c < ∑ U s j s_c < \sum_U s_j s c < ∑ U s j , the input with z c = 1 z_c = 1 z c = 1 and all of U U U flipped has a negative logit, while the input with all of U U U aligned has a positive one. Unflipping uncovered shortcuts one at a time, some single flip changes the sign. Because p , ρ j < 1 p, \rho_j < 1 p , ρ j < 1 , that input has positive probability under P P P . A randomizing edit flips the coordinate with probability 1 2 \frac{1}{2} 2 1 , so the prediction-change rate of that edit is positive.
Combining with the ranking and Theorem 3, the flip rule stops exactly at r = m ⋆ r = m^\star r = m ⋆ .
Max-margin counterexample. Let a = 1 a = 1 a = 1 and b 1 = b 2 = 0.8 b_1 = b_2 = \sqrt{0.8} b 1 = b 2 = 0.8 , so s c = 1 < 1.6 = s 1 + s 2 s_c = 1 < 1.6 = s_1 + s_2 s c = 1 < 1.6 = s 1 + s 2 . Under P P P (with p = ρ j = 1 p = \rho_j = 1 p = ρ j = 1 ) every input is fully aligned. Its logit is proportional to 2.6 2.6 2.6 , and after one flip to 1 > 0 1 > 0 1 > 0 . No single edit changes a prediction, so the flip rule stops at K = ∅ K = \varnothing K = ∅ , although G { 1 , 2 } G_{\{1,2\}} G { 1 , 2 } is misclassified. Rule (ii) does not: each edit changes the logit by 2 s j / κ > 0 2s_j/\kappa> 0 2 s j / κ > 0 with probability 1 2 \frac{1}{2} 2 1 .
Proof of thm:cert
Proof. Fix t t t , and let X ′ X' X ′ be an edit of X X X on the event V t V_t V t . Since the edit preserves the label, 1 [ f ( X ′ ) ≠ Y ] ≤ 1 [ f ( X ) ≠ Y ] + 1 [ f ( X ′ ) ≠ f ( X ) ] \mathbf{1}[f(X') \ne Y] \le\mathbf{1}[f(X) \ne Y] + \mathbf{1}[f(X') \ne f(X)] 1 [ f ( X ′ ) = Y ] ≤ 1 [ f ( X ) = Y ] + 1 [ f ( X ′ ) = f ( X )] . Take expectations conditional on V t V_t V t . By Assumption 1, the first term has expectation err P ( f ) \operatorname{err}_P(f) err P ( f ) , so err Q t ( f ) ≤ err P ( f ) + Γ t ( f ) \operatorname{err}_{Q_t}(f) \le\operatorname{err}_P(f) + \Gamma_t(f) err Q t ( f ) ≤ err P ( f ) + Γ t ( f ) . Mixing over π \pi π gives err Q ( f ) ≤ err P ( f ) + max t Γ t ( f ) \operatorname{err}_Q(f) \le\operatorname{err}_P(f) + \max_t \Gamma_t(f) err Q ( f ) ≤ err P ( f ) + max t Γ t ( f ) for every Q ∈ Q Q \in\mathcal{Q} Q ∈ Q .
Next, Γ t a c c = ( 1 − δ t ) Γ t + δ t Γ t b a d ≥ ( 1 − δ t ) Γ t \Gamma_t^{\mathrm{acc}} = (1-\delta_t)\Gamma_t + \delta_t\Gamma_t^{\mathrm{bad}} \ge(1-\delta_t)\Gamma_t Γ t acc = ( 1 − δ t ) Γ t + δ t Γ t bad ≥ ( 1 − δ t ) Γ t , where Γ t b a d \Gamma_t^{\mathrm{bad}} Γ t bad is the prediction-change rate on false accepts. Hence Γ t ≤ Γ t a c c / ( 1 − δ t ) \Gamma_t \le\Gamma_t^{\mathrm{acc}}/(1-\delta_t) Γ t ≤ Γ t acc / ( 1 − δ t ) .
Three high-probability events complete the proof. We condition on f f f and the edit family throughout. Each event involves only one sample, so the union bound needs no independence between the samples. It does need each sample to be independent of f f f and of the edit family. A sample that was used to choose either one, for example by discovery, is not valid here.
by Hoeffding’s inequality, err P ≤ err ^ P + ε n v \operatorname{err}_P \le\widehat{\operatorname{err}}_P + \frac{\varepsilon}{n_v} err P ≤ err P + n v ε with probability at least 1 − α / 3 1-\alpha/3 1 − α /3 ;
by Hoeffding’s inequality and a union bound, Γ t a c c ≤ Γ ^ t a c c + ε α / 3 τ \Gamma_t^{\mathrm{acc}} \le\widehat{\Gamma}_t^{\mathrm{acc}} + \frac{\varepsilon}{\alpha/3\tau} Γ t acc ≤ Γ t acc + α /3 τ ε for all t t t with probability at least 1 − α / 3 1-\alpha/3 1 − α /3 ;
by the Clopper–Pearson construction and a union bound, δ t ≤ δ ˉ t \delta_t \le\bar{\delta}_t δ t ≤ δ ˉ t for all t t t with probability at least 1 − α / 3 1-\alpha/3 1 − α /3 .
On the intersection, which has probability at least 1 − α 1-\alpha 1 − α , (4) holds for all Q ∈ Q Q \in\mathcal{Q} Q ∈ Q simultaneously, because the bound does not depend on π \pi π .
Necessity of Assumption 1. Without it the bound can fail. If the validator accepts edits only on the inputs where f f f errs, and the edits never change f f f ’s prediction, then err Q t = 1 \operatorname{err}_{Q_t} = 1 err Q t = 1 while the right-hand side is about err P \operatorname{err}_P err P .
Non-identifiability from observational data
Proposition 8. Let k = 1 k = 1 k = 1 , p , ρ 1 ∈ ( 1 2 , 1 ] p, \rho_1 \in\left(\frac{1}{2},1\right] p , ρ 1 ∈ ( 2 1 , 1 ] , and a , b 1 > 0 a, b_1 > 0 a , b 1 > 0 . Let M 1 M_1 M 1 declare coordinate 1 the core and coordinate 2 the shortcut, and let M 2 M_2 M 2 declare the reverse, with the same law P ( X , Y ) P(X,Y) P ( X , Y ) . For every classifier f f f , the accuracies of the flip group under M 1 M_1 M 1 and under M 2 M_2 M 2 sum to 1. In particular one of them is at most 1 2 \frac{1}{2} 2 1 .
Proof. The flip group of M 1 M_1 M 1 consists of the inputs ( a y , − b 1 y ) (ay,-b_1y) ( a y , − b 1 y ) labelled y y y . The flip group of M 2 M_2 M 2 , in which coordinate 2 is the core, consists of the inputs ( − a y , b 1 y ) (-ay,b_1y) ( − a y , b 1 y ) labelled y y y . These are the same two inputs, ( a , − b 1 ) (a,-b_1) ( a , − b 1 ) and ( − a , b 1 ) (-a,b_1) ( − a , b 1 ) , with opposite labels in the two models. Each input is therefore classified correctly in exactly one model. Since each group puts mass 1 2 \frac{1}{2} 2 1 on each input, the two accuracies sum to 1. This is the folklore non-identifiability underlying, e.g., Lin et al. [19 ] .
Figures for E1 and E2
These figures and Algorithm 1 belong to Sections 4 and 5. They were moved here to save space.
Algorithm 1 PEEL
Require: data $D$, candidate edit types $C$, null edits $N$, validator $V$, audit size $m$, $\delta_{\max}$, level $\alpha$
1: $f \leftarrow \operatorname{ERM}$ on $D$; $B \leftarrow \varnothing$
2: repeat
3: for $t \in C \setminus B$ do
4: $E_t \leftarrow$ validator-accepted edits of type $t$ on held-out inputs
5: $\widehat{\Delta}_t \leftarrow$ mean $|$change of $f$’s logit margin$|$ on $E_t$
6: $S \leftarrow \{t : \widehat{\Delta}_t > \max_{u \in N}\widehat{\Delta}_u$ (one-sided Welch test, Holm, level $\alpha)\}$
7: audit $m$ edits per $t \in S$; drop $t$ with $\bar{\delta}_t > \delta_{\max}$
8: $B \leftarrow B \cup S$; $f \leftarrow$ train on $D$ with edits from $B$
9: until $S = \varnothing$
10: return $f$, bank $B$, certificate (4) from a fresh split and audit not used above
E4 and Additional Experiments: Standard Benchmarks, Mistake-Driven Discovery, CSI, Transfer, Scaling, Text
This appendix documents § 5.4 , the transfer paragraph of § 5.2 , and the experiments with the learned-adversary baseline (CSI), backbone scaling and text. Accuracies are in %, mean±std over seeds. No group labels are used for training or model selection unless a method is marked † . “Last epoch” means no model selection. Graphics processing unit (GPU) time is wall-clock on one NVIDIA A100 (40 GB) unless stated otherwise. All audits are automatic (ground truth where the data are compositional, otherwise a second model); no human audit was possible.
Standard benchmarks
Datasets and splits.
Waterbirds (Sagawa et al. [28 ] ): the official tarball, 4,795/1,199/5,794 train/val/test images, official groups. Images are stored at 256 × 256 and evaluated with a 224 center crop. WGA is over the 4 test groups; “avg” weights the test-group accuracies by the training group frequencies. Exact edits for PEEL are built from the generative process: the CUB-200-2011 segmentation of the same bird and Places365 images of the same four categories (land: bamboo forest, broadleaf forest; water: ocean, natural lake). The background swap keeps m ⊙ x m \odot x m ⊙ x and replaces ( 1 − m ) ⊙ x (1-m) \odot x ( 1 − m ) ⊙ x by a fresh Places image of a uniformly random type. Core swap (label-changing; used only as the false-accept candidate in the audit) pastes a bird of the other class onto a fresh image of the original background type. The official composites used aspect-preserving Places images while the 256 px Places images are squashed, so edited backgrounds are real Places images of the right category with slightly different geometry.
CelebA : the official aligned images and attributes, 162,770/19,867/19,962; y y y = Blond_Hair, spurious attribute Male. Gender is not a separable layer, so no exact edit library exists and hand-list PEEL is not applicable.
Spawrious O2O-hard and M2M-hard (Lynch et al. [21 ] ): the official archives, splits built exactly as the official build combination (total 3,168). There is no official validation split, so 20% of the training set (stratified by class×location×environment, seed 0) is held out as an in-distribution validation set (O2O-hard: 20,280/5,064/25,344). Metric: average test accuracy (the Spawrious metric), plus worst-class and worst (class×location) group accuracy. No masks are shipped, so hand-list PEEL is not applicable.
UrbanCars (Li et al. (2023)): rebuilt with the official generator (Stanford Cars with the official body-type mapping, the 10 official Places365 categories and filter lists, LVIS co-occurring objects on COCO-2017 with the official categories and area thresholds, official seeded orderings, car scale 0.5, co-object scale 0.25), 4,000/500/500 per class, training background and co-object ratios 0.95/0.95, balanced val/test (125 per ( y , b g , c o ) (y,\mathrm{bg},\mathrm{co}) ( y , bg , co ) cell). Images are stored as lossless layers so that background and co-object swaps are exact. Deviations: car masks from the Hugging Face port of the same MaskFormer Swin-L COCO-panoptic model (official car-picking rule); 19 of 10,000 cars with no detected car replaced by the next unused image in the official order; lossless layers instead of JPEG composites; the background-only augmentation set was not generated. Metrics follow the Whac-a-Mole code: in-distribution (I.D.) accuracy weights the class-averaged cell accuracies by the training ratios; background (BG), co-occurring object (CoObj) and BG+CoObj gaps are the accuracy on the corresponding conflicting cells minus I.D. accuracy; WGA is over the 8 test groups. Exact edits: background swap, co-object swap, and car swap (label-changing; audit candidate only).
The Waterbirds-2S column of Table 1 comes from E3 (Section D.4, 5 seeds).
Protocol (fixed; no per-method tuning). Backbone: torchvision ResNet-50 (IMAGENET1K-V1) with a new linear head, bfloat16 (bf16) autocast, training augmentation RandomResizedCrop(224, scale (0.7,1)) plus horizontal flip, evaluation on the center crop. One optimizer per dataset for every method: stochastic gradient descent (SGD; momentum 0.9), cosine schedule, learning rate 10 − 3 10^{-3} 1 0 − 3 , weight decay 10 − 4 10^{-4} 1 0 − 4 ; Waterbirds 100 epochs (batch 64), CelebA 20 epochs (batch 128), UrbanCars 100 epochs (batch 128), Spawrious 15 epochs (batch 64). Every method gets the same number of SGD steps. Annotation-free methods (ERM, EIL, SPARE, PEEL, CSI) use the last epoch; † methods select the epoch by worst-group accuracy on the group-labelled validation set. Seeds 0, 1, 2.
IRM† (IRMv1, DomainBed defaults): λ = 100 \lambda= 100 λ = 100 after 500 annealing steps; environments = spurious attribute (Waterbirds: place; CelebA: male; UrbanCars: the 4 (bg, co-object) environments; Spawrious: the two native training environments).
DFR† : D F R T r V a l \mathrm{DFR}^{\mathrm{Val}}_{\mathrm{Tr}} DFR Tr Val , ℓ 1 \ell_1 ℓ 1 logistic regression on the final ERM features, group-balanced validation subsets, C ∈ { 1 , .7 , .3 , .1 , .07 , .03 , .01 } C \in\{1, .7, .3, .1, .07, .03, .01\} C ∈ { 1 , .7 , .3 , .1 , .07 , .03 , .01 } tuned on one half, weights averaged over 20 subsets.
EIIL [4 ] : reference model = ERM epoch 1, per-class soft environment assignment maximizing the IRMv1 penalty (Adam 10 − 3 10^{-3} 1 0 − 3 , 10k steps), two hard environments → \to → GroupDRO with an environment-balanced sampler; no group labels.
SPARE [36 ] : within-class k k k -means on early-epoch logits (penultimate features on CelebA), k ∈ { 2 , … , 6 } k \in\{2,\ldots,6\} k ∈ { 2 , … , 6 } by silhouette, separation epoch and sampling power from the paper’s Table 5 , importance sampling p i ∝ ( 1 / ∣ c l u s t e r ∣ ) λ p_i \propto(1/|\mathrm{cluster}|)^\lambda p i ∝ ( 1/∣ cluster ∣ ) λ within class.
Table 5.
ShortcutProbe [37 ] : last-layer mode on the final ERM features; the validation set is split into two halves; half 1 trains K = 2 K = 2 K = 2 shortcut base vectors (semantic regularization 5, 50 epochs) and the head is retrained with 5 ⋅ C E m a i n / C E s h o r t c u t 5 \cdot\mathrm{CE}_{\mathrm{main}}/\mathrm{CE}_{\mathrm{shortcut}} 5 ⋅ CE main / CE shortcut (CE: cross-entropy); selection by plain accuracy on half 2. It uses held-out class labels but no group labels.
Peel: the E3 protocol (Section D.4). Library = exact shortcut edits plus the label-changing core swap; nulls = {horizontal flip, color jitter, random resized crop}; Δ ^ \hat{\Delta} Δ ^ (mean absolute logit-margin change) on 1,000 validation images; one-sided Welch test against the strongest null, Holm, α = 0.05 \alpha= 0.05 α = 0.05 ; a simulated validator accepts core swaps with probability 0.1; audit m = 50 m = 50 m = 50 , Clopper–Pearson δ ˉ \bar{\delta} δ ˉ , drop if δ ˉ > 0.15 \bar{\delta} > 0.15 δ ˉ > 0.15 ; Learn = retrain from ImageNet weights with q = 1 q = 1 q = 1 , CE on the edited copy + 1.0 ⋅ K L 1.0 \cdot\mathrm{KL} 1.0 ⋅ KL ; at most 5 rounds. Peel-head runs the same loop but retrains only the last layer on the frozen ERM backbone (learning rate 10 − 2 10^{-2} 1 0 − 2 , 20 epochs).
Deviations.
SPARE has no released code; we re-implemented it from the paper. With the common optimizer the early-epoch logits do not separate the minority groups, so we also run it with the paper’s optimizer (Waterbirds: learning rate 10 − 4 10^{-4} 1 0 − 4 , weight decay 0.1, batch 128, 300 epochs; CelebA: 10 − 5 10^{-5} 1 0 − 5 , 1.0, 20 epochs instead of 50 for budget).
JTT schedule : the published Waterbirds identification schedule (T = 60 T = 60 T = 60 , weight decay 1.0, learning rate 10 − 5 10^{-5} 1 0 − 5 , 300 epochs) was not affordable; we use T = 1 T = 1 T = 1 with the common optimizer, as JTT and Whac-a-Mole do for CelebA and UrbanCars. Our JTT† on Waterbirds (80.6) is therefore below the published 86.7.
Results. Tables 2 to 5 give every method on every benchmark. Baselines land near published values: ERM WGA is 74.1 on Waterbirds and 44.8 on CelebA; on UrbanCars ERM has I.D. 98.5 and gaps − 8.3 / − 10.1 / − 61.4 -8.3/-10.1/-61.4 − 8.3/ − 10.1/ − 61.4 (Whac-a-Mole reports 97.6/− - − 15.3/− - − 11.2/− - − 69.2). PEEL’s discovery is identical across seeds. On Waterbirds, round 1 keeps the background swap (Δ ^ = 5.32 \hat{\Delta} = 5.32 Δ ^ = 5.32 –5.56 against at most 1.65 for the nulls) and the audit drops core swap; round 2 keeps nothing. On UrbanCars, round 1 keeps both the background (Δ ^ = 4.94 \hat{\Delta} = 4.94 Δ ^ = 4.94 –5.15) and the co-object swap (4.37–4.62; nulls at most 1.80) and drops car swap; round 2 keeps nothing. The banks are those of the flip-rate test of our first runs in every seed. Exact-edit sensitivity collapses (Waterbirds background-swap flip rate 13.1 → 1.5%; UrbanCars background/co-object 22.9/18.0 → 1.0/0.3%). On UrbanCars, methods that fix one shortcut amplify the other: JTT† closes the BG gap (−1.2) but widens the CoObj gap to −16.4 (ERM −10.1), and Sebra does the same (−3.8 and −14.8). PEEL, MD-PEEL (Section C.2), DFR† and ShortcutProbe keep every gap within 5 points; only PEEL and MD-PEEL bring all three near 0 with I.D. above 97. On Spawrious no annotation-free method beats ERM, while GroupDRO† (O2O) and DFR† (M2M) do. CSI rows are discussed in Section C.3.
Table 2: Waterbirds (ResNet-50, 3 seeds). Groups LL/LW/WL/WW: landbird on land/water, waterbird on land/water. Flip rate: fraction of test predictions changed by an exact background swap. h h h : wall-clock hours per seed. “val cls”: uses held-out class labels (no group labels). MD-PEEL rows: Section C.2; its time includes discovery.
Table 3 : CelebA (blond hair × male; ResNet-50, 3 seeds). Hand-list PEEL is not applicable (no exact edits).
Table 3.
Table 4 : UrbanCars (ResNet-50, 3 seeds; Whac-a-Mole metrics). Gaps are accuracy on the conflicting cells minus I.D. accuracy (0 is best). Flip rates: background / co-object exact swaps.
Table 4.
Table 5 : Spawrious O2O-hard and M2M-hard (ResNet-50, 3 seeds). avg = test accuracy (the official metric); WGA over class×location test groups. On O2O-hard worst-class accuracy equals WGA for every method and is omitted. Hand-list Peel is not applicable (no masks).
MD-Peel: discovery from the model’s own mistakes
Pipeline as run
Trouble and history sets. The trouble pool is each dataset’s validation split, never trained on (Spawrious: the 20% in-distribution hold-out). Variant L: per class, the misclassified examples plus the lowest-margin correct ones, up to 200 per class. Variant U (no labels): per predicted class, the lowest-confidence examples plus those on which the ERM of another seed disagrees. History: the 500 training examples per class with the highest correct margin.
Describe. Qwen2.5-VL-7B-Instruct (VLLM, greedy) captions every image with the prompt “Describe this image in one sentence: the main object, the background/setting, any visible text or watermark, and other notable attributes.” The concept vocabulary is the Natural Language Toolkit (NLTK) nouns and adjectives with document frequency ≥ 5 \ge5 ≥ 5 (220–325 concepts per dataset). Each concept is scored by CLIP ViT-L/14 (OpenAI weights) image–text similarity.
permutation test (10 5 10^{5} 1 0 5 permutations) and Holm correction (9–268 significant concepts per class). In parallel, Qwen2.5-7B-Instruct summarizes differences between 50 history and 50 trouble captions in both directions (“List up to 5 differences in the setting or context (not the identity or parts of the main object) that are common in group A but rare in group B.”). Qwen2.5-32B-Instruct-AWQ merges both lists into at most 12 factor hypotheses per class and keeps the 8 with the largest directional CLIP effect. The same LLM writes the REMOVE/ADD instructions, applies the core filter (“property of the object itself” vs. “context”; only context goes on), and, for the exact editor, maps each hypothesis to one operation {bg-swap, wm-toggle, coobj-swap} or “none”. No LLM sees a class name that names the shortcut (“waterbird”, “urban car”); only the core filter gets a neutral description of the object. The merge LLM (7B → 32B), the 8-of-12 ranking and the mapper output were fixed during development runs on Waterbirds seed 0, before any scored result; keywords and statistics were not changed.
Test (exact editor). REMOVE on 100 history images and ADD on 100 trouble images per class. The statistic is the change in f f f ’s logit margin toward the class. Null edits: brightness × U [ 0.9 , 1.1 ] \times U[0.9, 1.1] × U [ 0.9 , 1.1 ] and Gaussian blur (σ = 1 \sigma= 1 σ = 1 ). A hypothesis is confirmed if its REMOVE drop or its ADD rise beats both nulls (one-sided Welch), with the expected sign, after Holm across the testable hypotheses of the file. These pixel nulls turned out to be too weak; after the main runs we added a same-operation placebo null (Table 12 ).
Table 12. Exact-editor test under the specified pixel nulls and with the same-operation placebo added (post hoc), over all 26 test files (Waterbirds-2S, Waterbirds, UrbanCars; every seed and round). Calibration: a second placebo draw in place of the real edit. Covered: operations already in the bank, re-tested on the model fixed with them.
Fix. The union of the confirmed operations is randomized on every training image (q = 1 q = 1 q = 1 ), with CE on the edited copy only (augmentation, no consistency KL, because E3 showed that KL amplifies false accepts), from ImageNet weights with the dataset’s protocol, last epoch. Rounds repeat on the fixed model until no new operation is confirmed (at most 3). A KL ablation (λ c o n s = 1 \lambda_{\mathrm{cons}} = 1 λ cons = 1 , the original PEEL objective) is run on the final bank.
CelebA and Spawrious have no exact editor; their hypotheses are tested with the generative editor (Section C.2.6).
Pre-registered scoring. A confirmed hypothesis hits a shortcut if its text contains a keyword of that shortcut (case-insensitive, word level), using lists fixed before discovery. Background (Waterbirds, Waterbirds-2S): water, ocean, sea, lake, beach, wave(s), river, pond, shore, coast, forest, tree(s), bamboo, wood(s), grass, land, field, jungle, vegetation. Watermark: watermark, text, logo, copyright, letter(s), writing, word(s), caption, overlay. UrbanCars background: city, urban, street, road, building(s), alley, downtown, crosswalk, parking, garage, gas station, country, countryside, rural, farm, field, forest, nature, dirt, grass. UrbanCars co-object: the UrbanCars co-object category names plus “animal”, “sign”, “hydrant”. CelebA gender: man, men, male, boy, guy, gentleman, beard, mustache, moustache, woman, women, female, girl, lady, makeup, lipstick. Spawrious location: desert, sand, dune, jungle, forest, tree(s), snow, ice, winter, beach, mountain(s), rock(s), dirt, grass, field. The strict rule matches plurals only where listed; the lenient rule (the pre-registered secondary rule) strips a plural -s/-es first.
What the trouble sets contain
Without group labels, the trouble sets are strongly enriched for shortcut-conflicting images (Table 6 ). The exception is Spawrious M2M-hard, where each class has two training locations at 50/50 and the validation pool is in-distribution. Its pool contains no test-like (unseen-location) images and almost no errors (0–5 per class).
Table 6. Fraction of shortcut-conflicting images in the trouble set T c T_c T c (Variant L and U) and the history H c H_c H c , round 1, mean over seeds 0–2. Reporting only; never used by the method. CelebA: fraction male. Spawrious: fraction not in the class’s most frequent training location.
Discovery
Table 7 lists the ranked round-1 hypotheses of seed 0 on Waterbirds and UrbanCars with their test statistics. Table 8 summarizes every dataset and seed, and Table 9 the rounds of the loop. The CLIP concept contrast is the strongest signal (e.g. sea/ocean/harbor/forest on Waterbirds with ∣ d ∣ ≈ 1 |d| \approx1 ∣ d ∣ ≈ 1 –2). The 7B caption summarizer alone is noisy (e.g. pirate-themed settings, tufa formations), and it never names gender on CelebA because its prompt excludes the identity of the object.
Table 7.
Table 8.
Table 9.
The watermark and co-object operations are confirmed although the strict rule credits no confirmed hypothesis with them: the confirmed watermark and co-object hypotheses are phrased in the plural (“watermarks”, “watermarks or logos”, “animals”, “animals like cows, horses, and goats”), which the strict word-level rule does not match. Many background hypotheses also miss both rules (“forested”, “coastal”, “seaside”, “waterfront”, “wilderness”). Over all rounds (Table 9 ) the dataset-level result on the exact-editor datasets is, in every seed: Waterbirds hit under both rules; Waterbirds-2S and UrbanCars only partial (background) under the strict rule and hit under the lenient rule. Precision of the confirmed hypotheses (strict/lenient, mean over seeds): Waterbirds-2S 0.50/0.64, Waterbirds 0.61/0.61, UrbanCars 0.53/0.67. Combining these with the generative test of seed 0 on CelebA and Spawrious (Section C.2.6; Spawrious counts as hit only if both O2O and M2M are hit), seed 0 hits 2 of 5 datasets under the strict rule and 4 of 5 under the lenient rule. The pre-registered hypothesis H1 (true shortcut confirmed on ≥ 4 / 5 \ge4/5 ≥ 4/5 datasets with precision ≥ 0.5 \ge0.5 ≥ 0.5 ) is therefore not supported under the strict rule and supported under the lenient rule for seed 0. The generative test was run on seed 0 only, so seeds 1 and 2 have exact-editor results only (strict 1/3, lenient 3/3 of those datasets).
Variant U (no labels). Using low confidence and disagreement with the ERM of another seed instead of class labels confirms exactly the same operations as Variant L on all 9 exact-editor runs (3 datasets × \times × 3 seeds). Datasets whose true shortcuts are all confirmed in round 1 (of 3; strict/lenient): L 1/2, 1/3, 1/3 and U 1/2, 2/3, 2/3 for seeds 0/1/2. At candidate level over the 6 benchmarks (strict/lenient): L 4/5, 4/6, 4/6 and U 4/5, 5/6, 4/5; the only loss is Spawrious M2M-hard seed 2. H4 (U recall ≥ \ge ≥ L recall −1 dataset) is supported.
Ablations and the negative control
Without the test step. H2 predicted that trusting the contrast list directly would lower precision by ≥ 0.2 \ge0.2 ≥ 0.2 . Table 10 compares the precision of all context candidates (a) with that of the confirmed ones (c). The mean gain is +0.184 (strict) and +0.201 (lenient) over 9 runs, at the threshold. But the margin test rejected 0 of 89 testable round-1 hypotheses: the whole gain comes from the mapper declaring hypotheses without an exact operation untestable (sailboats, harbors, seagulls, branches, …), not from the statistical test. We therefore count H2 as not supported as a statement about the test. Adding the placebo null below does not change this: every round-1 test is still confirmed, and the test’s rejections come in later rounds.
Table 10.
Without the core filter. On the exact-editor datasets the filter has no effect (every hypothesis was labelled “context”; identical confirmed operations). On CelebA and Spawrious it removes 0–5 of 16–32 hypotheses, and on CelebA it mislabels “Blonde hair is more common in group T photos” as context.
Evidence source. CLIP-only contrast finds the shortcut at candidate level wherever the full arm does, except Spawrious M2M-hard (0/3 seeds). Captions-only misses gender on CelebA (0/3 seeds) and is otherwise comparable.
Post-hoc placebo negative control. The brightness/blur nulls are tiny, while history images are selected for extreme high margin and trouble images for extreme low margin, so any large edit tends to lower or raise them. We therefore ran, after the main results, a same-operation placebo: the factor is re-sampled within its own value (another background of the same type, the watermark moved but kept, another co-object of the same
Table 7 : Ranked round-1 hypotheses, seed 0, Variant L (CLIP + captions), after the core filter (all 16 labelled “context”). Each hypothesis reads “Photos in group H/T are more likely to show ⟨factor⟩”; the factor is quoted verbatim; dir: the group in which it is more common (H = history, T = trouble). d d d : directional CLIP effect (permutation p = 5 ⋅ 10 − 5 p = 5 \cdot10^{-5} p = 5 ⋅ 1 0 − 5 unless shown). op: the exact operation chosen by the mapper (“–”: none, so untestable). REMOVE: mean margin drop on history images; ADD: mean margin rise on trouble images; in parentheses the two nulls (brightness/blur). Hit: strict keyword rule. Trouble sets: Waterbirds 200/200 (65/49 misclassified), UrbanCars 200/200 (149/70).
”: same operation and statistics as the row above. (co): co-object hit under the lenient rule only (“animals” vs. listed “animal”).
Table 8 : Round-1 discovery, Variant L, strict keyword rule. Candidates: context hypotheses after the filter (of 16; Spawrious of 32). Precision: fraction of hypotheses that hit a true shortcut. Rank: best within-class rank of a hitting hypothesis. Confirmed: by the exact-editor test (only where an exact editor exists). WB2S = Waterbirds-2S.
type). It is “confirmed” by the specified rule in 10 of 30 placebo tests (Table 11 ), so the test as specified is not Table 9 : The MD-Peel loop with the exact editor (Variant L). Per round: the operations confirmed (#confirmed/#context hypotheses) and the WGA after the fix of that round. In rounds ≥ 2 \ge2 ≥ 2 , an already-banked operation that is re-confirmed is residual reliance with a much smaller effect (e.g. Waterbirds landbird background REMOVE drop 9.9 → \to → 1.1–1.2 logits); no new operation means stop.
Table 11.
Table 10 : Precision with and without the test step (round 1, Variant L; strict/lenient).
specific. Nevertheless, all 26 distinct real round-1 (class, operation, value) edits beat their placebo by a wide margin (REMOVE drop 2.7–10.7 vs. −0.0–3.9 logits; ADD rise 0.8–9.5 vs. 0.1–2.8; Holm p < 4 ⋅ 10 − 22 p < 4 \cdot10^{-22} p < 4 ⋅ 1 0 − 22 ), so the confirmations in Table 9 are not placebo artefacts. A same-operation placebo, or the editor-matched nulls of Section C.2.6, should therefore be the null, and we re-ran the whole test with one.
Table 11 : Placebo control (post hoc). Same images, statistic and decision rule as the main test.
The test with a placebo null. We re-ran the exact-editor test of every round and seed. These are 26 files, including Waterbirds-2S seeds 3–4 and all round-2 and round-3 tests on the fixed models. The rule is the specified one with the same-operation placebo added to the nulls: a direction passes only if it beats the placebo and both pixel nulls. Images and real edits are those of the main test (Table 12).
Calibration. We replace the real edit by a second, independent placebo draw. The specified rule then confirms 14 of 64 tests, and 23% of directions reach unadjusted p < 0.05 p < 0.05 p < 0.05 . The placebo rule confirms none of them, and no direction reaches p < 0.05 p < 0.05 p < 0.05 , so it is conservative.
Round 1. All 34 distinct real (class, operation, value) tests are still confirmed.
Covered operations on the fixed model. In rounds 2 and 3 the model has been trained with these operations randomized. The specified rule still confirms 9 of the 28 re-tests, with margin changes of 0.5–1.6 logits, the
size of a placebo. The placebo rule confirms none of them. The one operation that first appears in a later round, the watermark in round 2 of Waterbirds-2S seed 0, is confirmed under both rules.
Adding a watermark to an image without one has no within-value placebo; the placebo is a no-op there. In every run that confirms the watermark, a direction that removes an existing watermark (placebo: moving it) is significant on its own (p h ≤ 0.003 p_h \le0.003 p h ≤ 0.003 ). The placebo null was chosen after the results were known. These numbers are therefore a post-hoc check of the specified procedure, not a pre-registered test.
Fix with the exact (oracle) editor
With exact edits, MD-Peel matches hand-list Peel on all three datasets (Table 13 ; Waterbirds and UrbanCars in Table 2 and Table 4 ): 98.0 ± 0.1 vs. 98.2 ± 0.1 on Waterbirds-2S (5 seeds), 93.5 ± 0.3 vs. 94.0 ± 0.4 on Waterbirds, 94.1 ± 1.0 vs. 94.1 ± 0.4 on UrbanCars, with every UrbanCars gap within 2 points. It is above every † baseline on all three. The KL ablation reproduces Peel within seed noise (98.3/94.2/93.9). H3 (oracle part: within 2 WGA points of hand-list Peel) is supported.
Table 2.
Table 13. Waterbirds-2S fix (ResNet-50, 20 epochs; flip groups over all 5,794 test birds). The 3-seed rows and the † rows use seeds 0–2; the 5-seed rows correspond to Table 1 and E3. GPU-hours (GPU-h) per seed; MD-Peel includes discovery.
Cost (exact editor). Per seed, discovery (selection, captioning, CLIP, LLM; both variants and all four evidence arms) takes 0.27/0.24/0.23 GPU-h on Waterbirds-2S/Waterbirds/UrbanCars and 0.13–0.14 on CelebA and Spurious; an exact-editor test takes < 0.01; the fix is one retraining per round (0.05/0.17/0.27). The total is 0.34/0.41/0.51 GPU-h per seed over 2.3/2.0/2.0 rounds on average, against 0.04–0.27 for hand-list PEEL.
Figure 4. MD-PEEL history (highest correct margin) and trouble (lowest margin) images per class, seed 0, with f f f ’s margin above each image. No group labels were used to select them; the trouble sets are dominated by shortcut-conflicting images (Waterbirds landbirds on water, UrbanCars cars in the other context, CelebA blond men).
Generative editor: test, audit and fix without exact edits
Models. InstructPix2Pix, Stable Diffusion (SD) 1.5 inpainting (half precision, fp16), CLIPSeg (rd64-refined) masks, the validator Qwen2.5-VL-7B (Q1: the main object and its class are unchanged; Q2: the edit was applied), and the audit judges InternVL2.5-8B and CLIP ViT-L/14 on an object crop. To measure edits on UrbanCars we trained ground-truth background and co-object detectors (95.7% and 98.3% on test renders). Background and watermark detectors for the bird datasets and the object masks come from E3.
Editor pilot. Three editors were compared on 200 random validation images per dataset with hand-written canonical shortcut flips (background swaps, watermark toggles, co-object swaps, gender, Spawrious location). These instructions were used only to choose the editor, never for discovery. The pre-registered rule picks the highest mean yield , i.e. the fraction of edits that are accepted, reach the target attribute according to the ground-truth detectors, and leave the object intact (pixel rule on the object mask), over Waterbirds-2S, Waterbirds and UrbanCars (Table 14 ). Inpainting outside the CLIPSeg object mask wins (mean yield 38.8, vs. 28.3 for InstructPix2Pix with object paste-back and 4.8 for raw InstructPix2Pix). Raw InstructPix2Pix re-renders the object in 75–81% of edits, and the VLM validator still accepts many of them (δ n a t \delta_{\mathrm{nat}} δ nat among accepted edits 38.5/63.7/81.4%). This is the natural-validator failure of Theorem 4 , the same failure as CSI’s CLIP validator. With object protection the ground-truth false-accept rate is 0 (Clopper–Pearson upper bound 1.7–2.8%). The residual problem is edits that do not happen: the validator says “applied” far more often than the detectors confirm (Waterbirds inpainting: Q2 “yes” 92.5%, background reached in 53% of accepted edits). Editing ability depends on the shortcut. Background swaps work (target reached in 48–79% with inpainting), watermark toggling fails with all three editors (target reached ≤ \leq ≤ 9%), and co-object swaps are weak (18–27%). CelebA gender edits are accepted only 43–44% of the time; Spawrious location edits 73–86%.
Table 14. Generative editor pilot (200 validation images per dataset; %). ip2p: InstructPix2Pix; protect: with object paste-back; inpaint: SD inpainting outside the CLIPSeg object mask. Target reached: by the ground-truth detectors, among all / accepted edits. δ n a t \delta_{\mathrm{nat}} δ nat : object altered among accepted edits (Clopper–Pearson 95% upper bound). Yield: accepted, target reached and object intact. Second judge: pre-registered definition. UB: upper bound.
Table 14 : Generative editor pilot (200 validation images per dataset; %). ip2p: InstructPix2Pix; protect: with object paste-back; inpaint: SD inpainting outside the CLIPSeg object mask. Target reached: by the ground-truth detectors, among all / accepted edits. δ n a t \delta_{\mathrm{nat}} δ nat : object altered among accepted edits (Clopper–Pearson 95% upper bound). Yield: accepted, target reached and object intact. Second judge: pre-registered definition. UB: upper bound.
Decisions made after the pilot, before any test result.
Hybrid editor. Some hypotheses are whole-image factors (lighting, weather, “digital manipulation”) that inpainting cannot express. An LLM (Qwen2.5-7B-Instruct, neutral few-shot examples, no class names) turns each hypothesis direction into either a regional edit (SD inpainting of the CLIPSeg mask of the named region, object excluded, with a positive prompt) or a global edit (InstructPix2Pix with object paste-back). Images are edited at 512 px with 20 diffusion steps.
Editor-matched nulls , because a diffusion re-render moves margins by itself. For region edits the null is a resample of the same region with a prompt describing its current content; for global edits the nulls are “make the image slightly brighter / slightly blurry” through the same editor. Every hypothesis must also beat the two pixel nulls of Section C.2.
Audit judge. The pre-registered “CLIP crop class ≠ c \ne c = c ” fires on 2–14% of original images (CLIP’s own errors) and would push δ ˉ \bar{\delta} δ ˉ over 0.15 for correct hypotheses. The audit therefore flags an edit if the CLIP crop class flips because of the edit , or if InternVL2.5 answers “no” to an identity question without class names (“is the main bird/car/dog / the person’s hair colour unchanged?”). On the pilot, this judge flags 0–3.6% of the ground-truth-intact accepted edits (CelebA 5.7–12.5%), and 43–56% of raw-InstructPix2Pix edits that re-render the object. The second judge’s recall for identity changes can only be bounded, not measured.
Test, audit and fix as run. The input is the round-1 hypotheses of MD-PEEL’s discovery of seed 0 (Variant L, after the core filter): 16 each for the bird datasets and UrbanCars, 12 for CelebA, 31 and 27 for Spawrious O2O and M2M. REMOVE is applied to the 100 highest-margin history images and ADD to the 100 lowest-margin trouble images of the class, with f f f = the seed-0 ERM. Edits count if the validator accepts them (Q1 and Q2; nulls Q1 only). For each direction, p p p is the largest one-sided Welch p p p over its nulls; p h = min ( 1 , 2 min ( p R E M O V E , p A D D ) ) p_h = \min(1, 2\min(p_{\mathrm{REMOVE}},p_{\mathrm{ADD}})) p h = min ( 1 , 2 min ( p REMOVE , p ADD )) , Holm across the file, and the winning direction must have the expected sign. The audit judges the first 50 accepted edits of the winning direction and drops the hypothesis if δ ˉ > 0.15 \bar{\delta} > 0.15 δ ˉ > 0.15 . Fix: confirmed hypotheses are grouped into at most 3 factors without labels (same REMOVE region phrase → \to → same factor; each global hypothesis is its own factor). For every training image and factor, one hypothesis of the group is drawn and ADD or REMOVE is applied with probability 1 / 2 1/2 1/2 , chained across factors. Each step is validated against the original image, and a rejected step keeps the previous image. Training uses CE on the edited copy only, with the dataset’s engine and schedule, last epoch, seeds 0–2 sharing one edited training set; the KL ablation (λ c o n s = 1 \lambda_{\mathrm{cons}} = 1 λ cons = 1 ) uses seed 0. CelebA uses head-only retraining on the frozen ERM backbone with a random 20k-image training subset. The ± \pm ± in Table 18 therefore measures retraining variance only, not the variance of discovery and editing. Discovery seeds 1 and 2 were later run end to end (Table 17 ), and Table 1 reports those three runs. Round 2 was not run , for time rather than because nothing was left: a round-2 discovery on the fixed Waterbirds-2S model produced 16 background-type hypotheses and no watermark hypothesis, and was not tested.
Table 17. Generative MD-Peel end to end. Seed-0 protocol: one discovery run, one edited training set, training seeds 0–2 (Table 18). End to end: discovery seeds 0–2, each with its own test, audit, edited training set and classifier (mean± \pm ± std and per seed). WGA on Spawrious is over class× \times × location groups; avg = Spawrious average accuracy. ∘ ^{\circ} ∘ : empty bank, so the loop returns ERM. Hits: discovery seeds whose kept hypotheses hit a true shortcut (strict keywords).
Table 18. Fix with the generative editor, seed-0 protocol (round 1 only; one discovery run; seeds 0–2 share one edited training set, so ± \pm ± is retraining variance; end-to-end runs in Table 17; KL ablation: seed 0). Headline: WGA (Spawrious: average test accuracy). GPU-h: editing (once per dataset) + training (per seed). SP: ShortcutProbe. Waterbirds-2S per group (gen.): ∅ \varnothing ∅ 99.3, {bg} 94.0, {wm} 96.2. UrbanCars gaps (gen.): BG −12.1, CoObj −2.8, BG+CoObj −22.6. CelebA control (head-only, same 20k subset, no edits): 43.5 ± 2.3 43.5\pm2.3 43.5 ± 2.3 . Spawrious WGA (class× \times × location), gen.: O2O 73.5 ± 3.8 73.5\pm3.8 73.5 ± 3.8 (ERM 55.1), M2M 49.1 ± 3.7 49.1\pm3.7 49.1 ± 3.7 (ERM 34.1).
What the generative test confirms. Table 15 . Background-type shortcuts are confirmed on every dataset that has them except Spawrious M2M-hard. Many kept hypotheses that miss the strict keywords are background-type too (“seaside setting”, “waterfront scenes”, “arid setting”, “mountainous landscape”, “streetlights”, “architectural elements”), so strict precision (0.25–0.56) understates how much of what is kept is context. On CelebA, 5 hypotheses pass the test and 2 survive the audit: “Group T photos are more likely to feature a beard” (a gender hit) and a sports-stadium setting. “Feature a man” passes the test (Holm p = 0.003 p = 0.003 p = 0.003 ) but the audit drops it (11/33 edits judged to change the hair colour or the person). Gender edits are hard for the editor (acceptance 13–25%). On Spawrious M2M-hard, none of the 4 kept hypotheses hits the leakage keywords. Two are background-related (“lush, tropical background”, “scattered background”) but use no listed keyword; the other two are the dog “running”/“standing”, a pose factor that the core filter let through. M2M-hard therefore counts as a miss under the pre-registered scoring. No watermark or text hypothesis was proposed by discovery on seed 0, so there was nothing for the editor to test. The UrbanCars co-object hypothesis “contain animals” is confirmed in both classes (a strict miss, a lenient hit). Every UrbanCars REMOVE edit repaints the whole background, which contains the co-object, so the generative fix randomizes the co-object only incidentally.
Table 15.
Table 15 : Round-1 generative test, seed 0, Variant L. Kept: confirmed by the test and passing the audit. Hits and precision: strict keyword rule (lenient in parentheses where it differs). Precision without the test: over all tested hypotheses. Oracle: the exact-editor test of the same file (Section C.2). Accept: validator acceptance of REMOVE / ADD edits.
False accepts and edit efficacy. Table 16 . Among accepted test edits the ground-truth object was altered in 0/2,174 (Waterbirds-2S), 1/2,094 (Waterbirds) and 0/2,654 (UrbanCars) edits: δ n a t ≈ 0 \delta_{\mathrm{nat}} \approx0 δ nat ≈ 0 once the object is protected. Among rejected edits it is 1.4–4.9%, and the validator does filter the few damaging edits. Among the training edits of the fix, the object was altered in 0.12–0.28% of edited images. The problem is efficacy. By the ground-truth detectors, only 13.9–42.6% of accepted REMOVE/ADD test edits change the true background, which is a lower bound because not every hypothesis is a background flip (e.g. “add a sailboat”). The editor-matched resample nulls also change the detected background in up to 23% of edits.
Table 16. Generative test edits (all REMOVE/ADD edits of round 1). δ n a t \delta_{\mathrm{nat}} δ nat : ground-truth object altered among accepted edits (Clopper–Pearson 95% upper bound, UB). bg changed: ground-truth background attribute changed among accepted REMOVE / ADD edits, and among accepted resample-null edits (REMOVE / ADD side). UrbanCars co-object: changed by 73.3 / 69.3% of REMOVE / ADD edits and 67.5 / 68.0% of resample nulls.
Fix with generated edits. Table 18 . Where the confirmed factors are backgrounds that the editor can repaint, the generative fix improves a lot on ERM: Waterbirds-2S +13 WGA, Waterbirds +6, UrbanCars +45,
Spawrious O2O-hard +10 accuracy (+18 WGA) and M2M-hard +14 accuracy (+15 WGA), with IID accuracy within about 1 point on the bird and car datasets. On Spawrious, where no edit library exists, its average accuracy (the official metric) reaches or exceeds the best group-label baselines (O2O 89.6 ± 0.9 vs. GroupDRO† 89.3, within noise; M2M 75.3 ± 0.4 vs. DFR† 72.2). On worst-group accuracy it is best on M2M (49.1 vs. DFR† 44.1) but below GroupDRO† on O2O (73.5 vs. 80.1). On M2M this holds although no confirmed hypothesis hits the location keywords. On the mask-based datasets it stays 10–30 WGA points below the same discovery with the exact editor and below hand-list PEEL: 79.9 vs. 98.0 (Waterbirds-2S), 80.4 vs. 93.5 (Waterbirds), 65.1 vs. 94.1 (UrbanCars). The gap is edit efficacy, not edit damage: the watermark is never edited (no watermark hypothesis, and no editor can toggle it), background flips succeed in only 14–43% of accepted test edits, and UrbanCars keeps a BG gap of −12.1 while its CoObj gap closes (−2.8; background inpainting removes or replaces the co-object). CelebA is a negative result: the kept factors are “beard” (a gender proxy) and a sports-stadium background, validator acceptance is low (20% and 52% of training images), and the head-only fix lowers WGA to 35.0, below ERM (44.8) and below head-only retraining on the same subset without edits (43.5). A likely cause, not tested separately, is that beard edits act on the face region that also carries the hair cue. The KL ablation (seed 0 only, indicative) changes WGA by +1.9 (Waterbirds-2S), −0.8 (Waterbirds), +9.3 (UrbanCars), +3.3 (CelebA), +0.1 (O2O) and +3.4 (M2M); with δ n a t ≈ 0 \delta_{\mathrm{nat}} \approx0 δ nat ≈ 0 the consistency term does not hurt here. Coverage of the training set: 84–96% of training images receive at least one accepted edit on the bird datasets, UrbanCars and Spawrious, and 64% on CelebA.
End to end over three discovery seeds. To measure the variance of the whole pipeline, we re-ran it after the main runs for discovery seeds 1 and 2 on every dataset. Each run uses the ERM of its seed for discovery and the test, its own audit, an edited training set built from its own kept hypotheses, and one classifier trained with that seed. Round 2 was again not run. Table 17 compares these three end-to-end runs (seeds 0–2) with the seed-0 protocol. On Waterbirds-2S, Waterbirds and both Spawrious splits the end-to-end mean is within 3 points of the seed-0 protocol, with a spread of the same order. On UrbanCars, discovery variance dominates: worst-group accuracy ranges from 64.8 (seed 0) to 76.8. On CelebA, seeds 1 and 2 keep no hypothesis, because the audit drops every test-confirmed one. The loop then stops and returns ERM, and the end-to-end mean (42.8) stays below ERM (44.8). The kept hypotheses hit a true shortcut background for every discovery seed on Waterbirds-2S (background only, never the watermark), Waterbirds, UrbanCars and O2O, for two of three on M2M, and for one of three on CelebA. On Spawrious the comparison with the group-label baselines is unchanged on M2M (worst-group 46.5 vs. DFR† 44.1; average 75.2 vs. 72.2). On O2O, average accuracy (89.1) now ties GroupDRO† (89.3) from slightly below, and worst-group accuracy stays below it (73.2 vs. 80.1).
H3, generative part: not met. The generative fix beats the best annotation-free baseline on Waterbirds-2S and Spawrious (average accuracy O2O 89.6 vs. 79.6, M2M 75.3 vs. 61.7; both also ≥ the best † baseline on this metric, but on O2O not on worst-group accuracy). That is 2 of 5 datasets with Spawrious counted once (3 of 6 benchmarks if O2O and M2M are counted separately), against the required ≥ 3/5. It loses to ShortcutProbe on Waterbirds, UrbanCars and CelebA. The oracle-editor half of H3 is supported (Section C.2).
Cost. Editing the training set is the dominant cost: 2.2 (UrbanCars), 2.5 (Waterbirds-2S), 3.6 (Waterbirds), 6.7 (CelebA), 7.7 (Spawrious M2M) and 14.1 (Spawrious O2O) GPU-h per dataset, shared by all seeds, plus
0.05–0.3 GPU-h of training per run and about 1–2 GPU-h per dataset for the test step. This is 10–50× the cost of Peel; the generative part used about 55 GPU-h in total (estimated from job logs).
CSI: the learned-adversary baseline
CSI (“certified shortcut immunization”) is an adversarial alternative to Peel that replaces the edit library by a learned adversary, the human audit by a CLIP validator, and the significance test on edit types by a bank of adversaries with a novelty reward. We implemented it as specified and ran it from the same ERM checkpoints as Peel.
Implementation
Adversary. A ϕ ( x , z , x ~ ) A_{\phi}(x,z,\tilde{x}) A ϕ ( x , z , x ~ ) , z ∼ N ( 0 , I 16 ) z\sim\mathcal{N}(0,I_{16}) z ∼ N ( 0 , I 16 ) , x ~ \tilde{x} x ~ a donor image (a permutation of the batch). Compositional family (default): x ′ = ( 1 − m ) ⊙ x + m ⊙ c x'=(1-m)\odot x+m\odot c x ′ = ( 1 − m ) ⊙ x + m ⊙ c with a soft mask m = σ ( M ϕ ( x , z ) ) m=\sigma(M_{\phi}(x,z)) m = σ ( M ϕ ( x , z )) predicted at ≤ 1 / 4 \leq1/4 ≤ 1/4 resolution, and content c = g ⋅ clip ( x ~ + C ϕ ( x , x ~ , z ) ) + ( 1 − g ) ⋅ colorT ( x ) c=g\cdot\operatorname{clip}(\tilde{x}+C_{\phi}(x,\tilde{x},z))+(1-g)\cdot\operatorname{colorT}(x) c = g ⋅ clip ( x ~ + C ϕ ( x , x ~ , z )) + ( 1 − g ) ⋅ colorT ( x ) (a residual on the donor, or a learned per-image 3 × 3 3\times3 3 × 3 color transform of x x x ). Residual family (ablation): x ′ = clip ( x + 0.25 tanh ( U ϕ ( x , z ) ) ) x'=\operatorname{clip}(x+0.25\tanh(U_{\phi}(x,z))) x ′ = clip ( x + 0.25 tanh ( U ϕ ( x , z ))) . Architecture: a small U-Net (base width 32, 3 levels, feature-wise linear modulation (FiLM) on z z z ), initialized near the identity (mask logit bias − 4 -4 − 4 ).
Validator. Frozen OpenAI CLIP ViT-B/16 zero-shot probability of the true class with a prompt ensemble; an edit is accepted if P ( y ∣ x ′ ) ≥ τ = 0.5 P(y\mid x')\geq\tau=0.5 P ( y ∣ x ′ ) ≥ τ = 0.5 and CLIP classifies the original x x x correctly (otherwise the example is not edited). Prompts: 18 CIFAR templates (E2); a “species” prompt set chosen by worst-class IID validation accuracy (E3, Waterbirds); hair-color phrases (CelebA); breed names (Spawrious); car body types (UrbanCars).
Adversary objective: KL ( p θ ( x ) ∥ p θ ( x ′ ) ) + α \operatorname{KL}(p_\theta(x)\|p_\theta(x'))+\alpha KL ( p θ ( x ) ∥ p θ ( x ′ )) + α novelty + β +\beta + β coverage − γ -\gamma − γ drift − η -\eta − η size, with novelty = − max b ∈ B mean i cos ( Δ r ϕ , i , Δ r b , i ) =-\max_{b\in B}\operatorname{mean}_i\cos(\Delta r_{\phi,i},\Delta r_{b,i}) = − max b ∈ B mean i cos ( Δ r ϕ , i , Δ r b , i ) on representation changes, coverage = the z z z -diversity of r θ ( A ( x , z ) ) r_\theta(A(x,z)) r θ ( A ( x , z )) , drift = relu ( τ − V ) + relu ( d r e a l − ρ ) =\operatorname{relu}(\tau-V)+\operatorname{relu}(d_{\mathrm{real}}-\rho) = relu ( τ − V ) + relu ( d real − ρ ) ; α = 1 \alpha=1 α = 1 , β = 0.1 \beta=0.1 β = 0.1 , γ = 5 \gamma=5 γ = 5 , η = 0.1 \eta=0.1 η = 0.1 , Adam 10 − 4 10^{-4} 1 0 − 4 .
Bank. In round r ≤ R max = 6 r\le R_{\max}=6 r ≤ R m a x = 6 a fresh adversary is trained against the frozen classifier (S a d v = 2000 S_{\mathrm{adv}}=2000 S adv = 2000 steps on E2, 1000 at 224 px). It enters the bank B B B if the flip rate of its accepted held-out edits exceeds that of a null adversary (identity plus mild color jitter) under a one-sided two-proportion z z z -test (α = 0.05 \alpha=0.05 α = 0.05 ); otherwise the loop stops. Then the classifier is immunized for E r E_r E r epochs while the adversary keeps training (1:1 alternation).
Classifier loss on validator-accepted edits: L C S I = CE ( f ( x ) , y ) + λ 1 max T ∈ B CE ( f ( T x ) , y ) + λ 2 mean T ∥ n ( r ( x ) ) − n ( r ( T x ) ) ∥ 2 + λ 3 mean T CE ( f ( T x ) , y ) + λ 4 mean T ∈ B KL ( f ( x ) ∥ f ( T x ) ) \mathcal{L}_{\mathrm{CSI}}=\operatorname{CE}(f(x),y)+\lambda_1\max_{T\in B}\operatorname{CE}(f(Tx),y)+\lambda_2\operatorname{mean}_T\lVert n(r(x))-n(r(Tx))\rVert^2+\lambda_3\operatorname{mean}_T\operatorname{CE}(f(Tx),y)+\lambda_4\operatorname{mean}_{T\in B}\operatorname{KL}(f(x)\|f(Tx)) L CSI = CE ( f ( x ) , y ) + λ 1 max T ∈ B CE ( f ( T x ) , y ) + λ 2 mean T ∥ n ( r ( x )) − n ( r ( T x )) ∥ 2 + λ 3 mean T CE ( f ( T x ) , y ) + λ 4 mean T ∈ B KL ( f ( x ) ∥ f ( T x )) with λ = ( 1 , 1 , 0.5 , 1 ) \lambda=(1,1,0.5,1) λ = ( 1 , 1 , 0.5 , 1 ) ; final model = last round.
Necessary deviation. The plain KL gives the adversary no gradient against the saturated ERM classifiers (median top-1 vs. top-2 logit gap ≈ 10 \approx10 ≈ 10 on E2; after 200 steps KL = 0.0000 and flip rate 0.4%). KL is therefore computed on temperature-scaled logits, with T T T = the median logit gap of the current f f f on the held-out set (label-free). Other deviations: E r = 20 E_r=20 E r = 20 (E2) / 10 (E3, Waterbirds, UrbanCars) epochs per round with warm start; micro-batching and activation checkpointing on 224 px data.
CSI-repaired (three a-priori, label-free fixes of the failure modes below): (a) transplant/re-style only (content scale 0, no synthesized pixels); (b) effect-gated novelty, reward = KL ⋅ ( 1 + α \operatorname{KL}\cdot(1+\alpha KL ⋅ ( 1 + α novelty), so a negligible edit cannot collect novelty; (c) a stricter validator with an extra abstain class (8 generic prompts such as “an abstract pattern”, “random noise”) and τ = 0.8 \tau=0.8 τ = 0.8 for both eligibility of x x x and acceptance of x ′ x' x ′ .
Oracle validator: acceptance by the ground-truth core audit instead of CLIP (CLIP remains the differentiable drift surrogate). Ground-truth audit: E2, an edited interior whose affine-color regression on the donor core beats that on the own core, or R o w n 2 < 0.25 R^2_{\mathrm{own}}<0.25 R own 2 < 0.25 ; E3, more than 25% of bird-mask pixels changed by > 0.15 >0.15 > 0.15 , or the donor content covers > 10 % >10\% > 10% of the donor bird. δ n a t \delta_{\mathrm{nat}} δ nat is the fraction of a bank member’s accepted held-out edits flagged by this audit.
On the benchmarks, the adversary learning rate was chosen per dataset on seed 0 from { 10 − 4 , 10 − 3 } \{10^{-4},10^{-3}\} { 1 0 − 4 , 1 0 − 3 } by worst-class validation accuracy (class labels only): 10 − 3 10^{-3} 1 0 − 3 on Waterbirds and Spawrious, 10 − 4 10^{-4} 1 0 − 4 on CelebA and UrbanCars.
Three tiers on E2 and E3
Tables 19 and 20 compare CSI as written, CSI-repaired and CSI with an oracle validator against PEEL from the same ERM checkpoints. No tier improves on ERM beyond seed noise. On E3, the change in WGA paired with each run’s own ERM start is + 1.2 ± 3.4 +1.2\pm3.4 + 1.2 ± 3.4 (as written), + 1.1 ± 2.0 +1.1\pm2.0 + 1.1 ± 2.0 (repaired) and + 1.9 ± 2.6 +1.9\pm2.6 + 1.9 ± 2.6 (oracle validator), all within noise; no “same epochs without edits” control was run.
Table 19 : E2 (four shortcuts on CIFAR-10; ResNet-18). WGA over 16 flip groups; core-follow = accuracy w.r.t. the core label on the core-swap test. Bank: mean members per run (clean = δ n a t ≤ 0.15 \delta_{\mathrm{nat}}\le0.15 δ nat ≤ 0.15 , total over runs). δ n a t \delta_{\mathrm{nat}} δ nat pooled over members.
Table 19.
Failure modes
Validator gaming. On E2 the round-1 adversary does not find a shortcut; it erases the image. For all three adversary learning rates tried (10 − 4 10^{-4} 1 0 − 4 , 3 ⋅ 10 − 4 3\cdot10^{-4} 3 ⋅ 1 0 − 4 , 10 − 3 10^{-3} 1 0 − 3 ) the accepted edits replace 70–99% of the image by a nearly input-independent pattern (saturated stripes and a shared green texture; Figure 5 ). The cat or dog is gone (correlation of the edited interior with the own core 0.01–0.21, with the donor 0.01–0.03). Yet the binary CLIP validator gives P ( y ∣ x ′ ) ≈ 0.53 P(y \mid x') \approx0.53 P ( y ∣ x ′ ) ≈ 0.53 –0.60 ≥ τ 0.60 \ge\tau 0.60 ≥ τ to 74–79% of them, and the realism distance (0.066–0.068) sits just below ρ = 0.0696 \rho= 0.0696 ρ = 0.0696 : both soft constraints are saturated at their boundary. Over all bank-test candidates (Table 21 ), CLIP accepts 79.4% (E2) and 92.2% (E3) of the edits that the ground-truth audit flags as core-altering. In Peel’s terms, δ ≈ 0.8 \delta\approx0.8 δ ≈ 0.8 –0.9 0.9 0.9 , far above the 0.15 the audit enforces. Because the pattern overwrites patch, border, tint and grating, a “which shortcuts changed” audit would credit such a member with all four shortcuts. After immunization on these edits, WGA is still 0.0. The CLIP validator also relies on the shortcuts itself: its zero-shot WGA is 73.6 on Waterbirds-2S, 71.0 on Waterbirds, 80.6 on CelebA, 70.4 on UrbanCars, and the worst group is 78.3/78.5 on Spawrious O2O/M2M.
Table 21. The CLIP validator against the ground-truth audit, pooled over all bank-test candidates.
Figure 5. CSI on E2, seed 0, round-1 adversary after 2000 discovery steps (CLIP validator, specified defaults), on held-out images, for adversary learning rates 10 − 4 10^{-4} 1 0 − 4 (top) and 10 − 3 10^{-3} 1 0 − 3 (bottom): original x x x , edit x ′ x' x ′ with the validator decision and whether the prediction flipped, and the mask m m m . The accepted edits overwrite most of the image with a near input-independent pattern.
Table 20. E3 (Waterbirds-2S; ResNet-50). Columns as in Table 19; { b g , w m } \{\mathrm{bg},\mathrm{wm}\} { bg , wm } = WGA.
Novelty harvesting. After the first bank member, the scale-invariant novelty reward is collected by negligible edits, so the next bank test fails and the loop stops with 1–3 members. With α = 0 \alpha= 0 α = 0 the loop continues further (round-2/3 candidates flip 1.8–48%, 4.0 members on average), confirming that novelty, not exhaustion, stopped it; WGA stays 0.0. The effect-gated novelty of CSI-repaired removes this route, but the surviving members are weak.
Empty banks with a perfect validator. With the oracle validator and the specified adversary on E2, at most 1 of 1,000 held-out edits is accepted per seed and the bank stays empty. On the benchmarks (seed 0), CSI with the oracle validator finds no significant intervention on Waterbirds or UrbanCars (bank empty, WGA 73.7 and 18.4, i.e. ERM), although an exact background swap flips 13% (Waterbirds) and 23% (UrbanCars) of ERM predictions. With the transplant-only or repaired adversary, the oracle-validator bank is small (0.4–2.0 members per run) and its clean members make tiny edits (E3: area 0.03–0.06, flip rate 0.6–1.0%). No member ever performed the natural interventions in Peel’s library (swap the whole background, toggle the watermark, re-render a whole border, tint or grating). On E3 the size penalty makes a background swap (≈ 75 % \approx75\% ≈ 75% of the pixels) cost about as much as it gains; a post-hoc run with η = 0 \eta= 0 η = 0 (3 seeds) still found no background swap (WGA 68.0 ± 2.7 68.0\pm2.7 68.0 ± 2.7 ). Open-ended discovery, not only the validator, is the obstacle.
Ablations
Table 22 lists the ablations on E2 (3 seeds unless noted). None moves WGA off 0.0. The residual L ∞ L_\infty L ∞ adversary is the only one that finds clean shortcut edits: the tint S 2 S_2 S 2 (27–87% of its flips) and grating S 4 S_4 S 4 (18–91%), the two low-amplitude global shortcuts that fit inside ϵ = 0.25 \epsilon= 0.25 ϵ = 0.25 (the tint salience λ S 2 \lambda_{S_2} λ S 2 drops from 2.9–5.8 to 0.3–0.6). It still stops after one member. The coverage curve (bank capped at R max ∈ { 0 , 1 , 2 , 3 , 6 } R_{\max}\in\{0,1,2,3,6\} R m a x ∈ { 0 , 1 , 2 , 3 , 6 } ) is flat: WGA 0.0 at every cap on E2 as written, and 66.5/67.7/67.7/67.7/67.7 on E3. Oracle corruption (oracle validator with transplant-only adversary; rejected edits accepted with probability ϵ \epsilon ϵ ) reaches the bank (δ n a t = 0.0 / 2.3 / 4.7 / 11.3 / 18.9 % \delta_{\mathrm{nat}} = 0.0/2.3/4.7/11.3/18.9\% δ nat = 0.0/2.3/4.7/11.3/18.9% for ϵ = 0 / 0.05 / 0.1 / 0.2 / 0.3 \epsilon= 0/0.05/0.1/0.2/0.3 ϵ = 0/0.05/0.1/0.2/0.3 ), but WGA is already ≈ 0 \approx0 ≈ 0 at ϵ = 0 \epsilon= 0 ϵ = 0 (14.7 ± \pm ± 25.4 from one diverged seed, then 0.1/0.0/0.0/0.0), so there is no robustness to degrade.
Table 22. CSI ablations on E2 (3 seeds unless noted) and E3 where run. L C F - i n v L_{\mathrm{CF\text{-}inv}} L CF - inv : the counterfactual (CF) representation-invariance term of L C S I L_{\mathrm{CSI}} L CSI (weight λ 2 \lambda_2 λ 2 ); L s u f f L_{\mathrm{suff}} L suff : its sufficiency term, the cross-entropy on edits (weight λ 3 \lambda_3 λ 3 ).
CSI on the standard benchmarks
CSI as written does not beat the strongest annotation-free baseline anywhere (Table 1 and Table 23 ). The bank never grows beyond one member. The round-1 adversary is significant on Waterbirds, CelebA and UrbanCars, but its accepted edits mostly alter the object (δ n a t = 0.40 \delta_{\mathrm{nat}} = 0.40 δ nat = 0.40 –1.00 1.00 1.00 on Waterbirds; 1.00 1.00 1.00 on UrbanCars, where the edit is a near-global color overlay that covers the car). Immunizing against these edits leaves the true shortcut untouched (exact-edit flip rates: Waterbirds background 13.1 → \to → 13.9%; UrbanCars background/coobject 22.9/18.0 → \to → 21.1/15.5%). On Spawrious the adversary never beats the null after 1,000 discovery steps (≤ 0.1 % \leq0.1\% ≤ 0.1% flips, 0–1 of ≈ 950 \approx950 ≈ 950 accepted edits). A 3 × 3\times 3 × longer discovery on Waterbirds (seed 0) changed nothing (WGA 73.1). CSI-repaired helps at most a little (Waterbirds 76.9 ± 2.3 76.9\pm2.3 76.9 ± 2.3 , UrbanCars 28.3 ± 4.9 28.3\pm4.9 28.3 ± 4.9 ) and remains 9–60 points below PEEL, ShortcutProbe and DFR†.
Table 23. CSI on the benchmarks (selected configuration, 3 seeds).
Table 23 : CSI on the benchmarks (selected configuration, 3 seeds). Bank sizes and δ n a t \delta_{\mathrm{nat}} δ nat per seed (δ n a t \delta_{\mathrm{nat}} δ nat needs a ground-truth mask: Waterbirds and UrbanCars only). CLIP zero-shot: the validator’s own WGA (Spawrious: worst group). Oracle validator: seed 0. GPU-h per seed on top of the ERM checkpoint.
Cost. CSI as written costs 0.81 ± 0.38 0.81\pm0.38 0.81 ± 0.38 GPU-h per run on E2 against 0.05 for PEEL (over-stated, since those PEEL jobs shared a GPU), and 0.62 on E3 against 0.04, i.e. about 16 × 16\times 16 × and 8 8 8 –16 × 16\times 16 × PEEL (other tiers in Tables 19 and 20). The dominant cost is the CLIP ViT-B/16 forward and backward pass inside every adversary step (E2: 0.41 s/step at batch 256; E3: 0.7 s/step at batch 64). The runs are cheap only because they stop early; a run reaching R max = 6 R_{\max}=6 R m a x = 6 would cost ≈ 2 \approx2 ≈ 2 h (E2) or ≈ 3 \approx3 ≈ 3 h (E3). On the benchmarks CSI takes 0.6 h (Waterbirds), 1.1 h (CelebA, UrbanCars) and 0.2 h (Spawrious) per seed, against 0.17 h (Waterbirds) and 0.27 h (UrbanCars) for PEEL including its retraining from ImageNet. The 83 finished CSI runs on E2/E3 used 53.5 GPU-h.
Transfer: eight shortcuts, four covered
Setup. The core, splits, model and schedule are those of E2 (CIFAR-10 cat vs. dog, ResNet-18 from scratch, 40 epochs, last epoch). There are eight shortcuts, each with ρ j = 0.95 \rho_j=0.95 ρ j = 0.95 and independent given y y y . Families A–D are the four E2 shortcuts with E2’s amplitudes (corner patch, tint 0.06, border α = 0.5 \alpha=0.5 α = 0.5 , grating 0.02). Families E–H are four new, spatially local, exactly rendered shortcuts inside the border ring, disjoint from each other and from S 1 S_1 S 1 (together 74 pixels, 7.2% of the image): a second 3 × 3 3\times3 3 × 3 corner patch (yellow-ish vs. blue-ish), a 3 × 3 3\times3 3 × 3 central dot (“+” vs. “×”), a 1 × 20 1\times20 1 × 20 stripe (cyan-ish vs. red-ish, contrast 0.5), and a 6 × 6 6\times6 6 × 6 additive checkerboard texture (1-px vs. 2-px, amplitude 0.10). The E–H amplitudes were chosen by a screen of 6 settings on ERM validation saliences; with weaker settings some families are not used at all. In the three seeds checked (0–2), ERM uses S 1 , S 2 , S 3 , S 5 , S 6 , S 7 S_1,S_2,S_3,S_5,S_6,S_7 S 1 , S 2 , S 3 , S 5 , S 6 , S 7 in all of them, S 8 S_8 S 8 in seeds 1–2, and the grating S 4 S_4 S 4 clearly only in seed 2. Its core reliance is 0.0 and its WGA (all eight flipped) is 0.0. Evaluation uses all 2 8 = 256 2^8=256 2 8 = 256 flip groups on the full 2,000-image test set. “A–D-only” and “E–H-only” are the 15 groups that flip a non-empty subset of one half with the other half aligned. Five seeds per arm.
Arms. Oracle exact coverage of A–D (q = 1 q=1 q = 1 , λ c o n s = 1 \lambda_{\mathrm{cons}}=1 λ cons = 1 ); PEEL with the library restricted to A–D edits (plus nulls and core swap, simulated validator δ = 0.1 \delta=0.1 δ = 0.1 , audit m = 50 m=50 m = 50 ), with its logit-margin test (mean ∣ Δ m a r g i n ∣ |\Delta\mathrm{margin}| ∣Δ margin ∣ and Welch t t t -test) or, for comparison, with the flip-rate test of our first runs (same loop); PEEL with the full A–H library (both tests); CSI with an unrestricted adversary, and CSI-R whose adversary is masked so that it can never change the E–H pixels (verified: E–H change 0.000 on every accepted edit); the repaired variants of both; and references with oracle coverage of E–H only and of all eight.
Results. Table 24 and Figure 6 . Covering only A–D lowers accuracy on the groups where only the never-covered E–H families are flipped: oracle A–D coverage takes the E–H-only mean from 89.7 to 47.3 (paired − 42.4 ± 1.6 -42.4\pm1.6 − 42.4 ± 1.6 ), and 11 of 15 such groups drop significantly (one-sided paired t t t -test, 5 seeds) while none rises. The other 4 are single-flip groups, which the remaining aligned shortcuts out-vote. After coverage only S 5 S_5 S 5 –S 8 S_8 S 8 carry salience (λ ^ ≈ 15 \hat{\lambda}\approx15 λ ^ ≈ 15 –17 vs. ≈ 0 \approx0 ≈ 0 for S 1 S_1 S 1 –S 4 S_4 S 4 ). This is Theorem 2(b), and it rules out transfer to uncovered families. No CSI arm gains on E–H: CSI-R changes the E–H-only mean by − 6.3 ± 13.1 -6.3\pm13.1 − 6.3 ± 13.1 and CSI-repaired-R by + 0.2 ± 0.3 +0.2\pm0.3 + 0.2 ± 0.3 . Unrestricted CSI moves reliance between families rather than to the core (seed 1: { 5678 } \{5678\} { 5678 } 8.0 → \to → 81.4 but { 1234 } \{1234\} { 1234 } 91.5 → \to → 23.8), and its round-1 members are mostly donor transplants (δ n a t \delta_{\mathrm{nat}} δ nat 63–100% of accepted edits, 32–52% label-corrupting where logged).
Table 24.
Figure 6. Transfer on 8-shortcut CIFAR: A–D-only mean, E–H-only mean and {5678} accuracy per arm (mean± \pm ± std over 5 seeds).
The flip-rate test fails with redundant shortcuts. With eight redundant ρ = 0.95 \rho= 0.95 ρ = 0.95 shortcuts and saturated ERM logits, randomizing a single family almost never flips an ERM prediction (round-1 Γ ^ 1 ≤ 1.3 % \hat{\Gamma}_{1} \le1.3\% Γ ^ 1 ≤ 1.3% for every family and seed). The flip-rate variant therefore keeps nothing in 3 of 5 seeds, with both the A–D library (seeds 1–3) and the full library (seeds 1–3), and the model stays ERM. With the full library, seed 0 finds all eight (WGA 70.6) and seed 4 finds only S 1 S_1 S 1 . This is the early-stopping failure noted after Theorem 5. Peel’s margin test finds all eight families within two to three rounds in every seed and reaches 71.2 ± \pm ± 6.2 WGA, against 68.6 ± \pm ± 3.4 for oracle coverage of all eight. With the A–D library it finds S 1 S_1 S 1 –S 3 S_3 S 3 in every seed (S 4 S_4 S 4 in 2 seeds) and reproduces the oracle’s Whac-a-Mole drop (− 41.8 ± 0.8 -41.8 \pm0.8 − 41.8 ± 0.8 ). This is a weakness of the flip-rate statistic under redundancy, not of coverage, and it is why Peel and MD-Peel test on margins (Theorem 5).
Table 24 : Transfer on 8-shortcut CIFAR (5 seeds). WGA over all 256 groups. A–D-only / E–H-only: mean over the 15 groups flipping only that half. Δ \Delta Δ E–H: paired change of the E–H-only mean vs. ERM. Groups: number of the 15 E–H-only groups that decrease by > 0.5 points (of which significant), and that increase.
Scaling: six backbones on Waterbirds-2S
Setup. The E3 data, training loop, PEEL and evaluation are reused unchanged, with an architecture-aware model factory. Backbones (pretrained, new 2-way head): ResNet-18 and ResNet-50 (ImageNet-1k); ViT-S/16 and ViT-B/16 (ImageNet-21k then 1k); CLIP ViT-B/16 and ViT-L/14 image towers (OpenAI). ResNets use the E3 protocol (SGD 10 − 3 10^{-3} 1 0 − 3 , 20 epochs); all ViTs, including CLIP, use E3’s CLIP protocol (AdamW 10 − 5 10^{-5} 1 0 − 5 , weight decay 0.1, 10 epochs), untuned. Peel and CSI start from the ERM of the same backbone and seed (CSI: E3 settings, S a d v = 1000 S_{\mathrm{adv}} = 1000 S adv = 1000 , 10 immunization epochs per round, adversary learning rate 10 − 4 10^{-4} 1 0 − 4 ). GPU time is the measured training wall-clock including the ERM run each method starts from. Training floating-point operations (FLOPs) are 3× \times × forward FLOPs × \times × images processed for ERM and PEEL; for CSI they count classifier and CLIP-validator passes only (the adversary is excluded, so it is a lower bound). 3 seeds per cell.
Results. Table 25 and Figure 7 . ERM robustness grows with scale and pretraining (54.7 → \rightarrow → 85.4 WGA), but no backbone removes the shortcuts. PEEL reaches 97.1–99.4 at every scale, with bank {bg, wm} in all 18 runs; its gain over ERM shrinks (+42.5 → +13.9) only because ERM improves. CSI gives no reliable gain at any scale (paired Δ \Delta Δ WGA vs. ERM −0.8 to +5.8; repaired 0.0 to +2.6), and its gain does not grow with scale. On the two CLIP backbones the adversary fails the null test in 5 of 6 runs (repaired: 6 of 6), so the model is ERM. Where a member is found on a ResNet it is a partial background/bird transplant (δ n a t \delta_{\mathrm{nat}} δ nat 40–94%, 11–27% label-corrupting); the watermark is never targeted. CSI is the most expensive method at every scale.
Figure 7. Waterbirds-2S WGA vs. backbone forward GFLOPs per image (left) and vs. estimated training compute (right) for ERM, PEEL and CSI. Solid: supervised ImageNet backbones; dashed: CLIP towers; grey (left): CLIP zero-shot. ViT-B/16 and CLIP ViT-B/16 have identical FLOPs.
Table 25. Waterbirds-2S backbone sweep (3 seeds; WGA = {bg,wm} group). GPU-min and training PFLOPs for ERM / PEEL / CSI.
CLIP zero-shot reference. Without training, CLIP is itself shortcut-reliant on Waterbirds-2S: WGA 73.6 (ViT-B/16) and 83.5 (ViT-L/14) with the “species” prompts, 46.3/74.3 with plain class prompts, and 32.8/34.5 with habitat-worded prompts. CLIP ViT-B/16 zero-shot is CSI’s validator, so the validator shares the background bias (its {bg}-group accuracy is 78.5). Fine-tuned CLIP towers: ERM 81.4/85.4, PEEL 98.8/99.3, CSI 80.6/85.4. Fine-tuning of large vision–language models (e.g. on SpuriVerse) was out of scope.
Text: MNLI HANS and the Shortcut Suite
Setup. Training uses MNLI train minus a stratified 3,000-pair held-out set (389,702 pairs); the held-out set is used for bank tests, type tests and trouble sets and is never trained on. Evaluation: the MNLI matched and mismatched validation sets (MNLI-m, MNLI-mm); HANS (30,000 pairs; 3 heuristics × {entailment, non-entailment}); the Shortcut Suite (SS; 7 sets of 3,000: an MNLI-m subset, negation, position, Bible style, lexical overlap, subsequence, constituent; “SS worst” = minimum over the six shortcut sets); and the counterfactual (CF) flip rate on validator-accepted rewrites of 3,000 MNLI-m pairs, macro-averaged over instructions. Classifier: BERT-base-uncased, AdamW 2 · 10 − 5 10^{-5} 1 0 − 5 , 3 epochs, last checkpoint, seeds 0–2. A 3-class prediction is mapped to entailment/non-entailment for HANS-derived sets.
Editor, validator, and instructions. Qwen2.5-7B-Instruct (vLLM) is told the gold relation and asked for a label-preserving rewrite under one of 12 instructions: increase/decrease lexical overlap, add/remove negation, make the hypothesis verbose/short, change names, change demographic terms, add a distractor, reorder, change style, change formatting; plus a null edit (light premise paraphrase). Two samples are drawn per pair and instruction at temperature 0.9 (1.30M rewrites for a 50,000-pair edit pool). The validator is a frozen DeBERTa-v3-large NLI model: an edit is accepted if P V ( gold ∣ x ′ ) ≥ 0.5 P_V(\text{gold} \mid x') \ge0.5 P V ( gold ∣ x ′ ) ≥ 0.5 , V V V is correct on the original, the text changed, and a GPT-2 realism check passes (mean token negative log-likelihood [NLL] ≤ \le ≤ the 95th percentile on real MNLI text). A second judge (RoBERTa-large NLI) and a zero-shot LLM judge are used for audits only. The instructions do change what they claim (overlap↑: +0.32 overlap; negation↑: +0.88 negation words; verbose: +18 hypothesis words), but the rewriter almost never produces HANS-style full-overlap non-entailment pairs (≤ \le ≤ 2.1% of accepted rewrites). The riskiest types by excess second-judge disagreement are “verbose hypothesis” (+6.6 points) and “add negation” (+6.2); all others are ≤ ≈ 2 \le\approx2 ≤≈ 2 .
Methods. CF-aug : Peel’s Learn step on all 12 instructions uniformly, with no test or audit. Peel-style : per round, a margin test of each instruction type against the null (Theorem 5; mean absolute change of the logit margin of the predicted class, one-sided Welch test, Holm; our first runs used the flip rate), an audit of 50 accepted edits per significant type (bad if both judges reject; Clopper–Pearson δ ˉ ≤ 0.15 \bar{\delta} \le0.15 δ ˉ ≤ 0.15 ), and Learn with CE + CE on edits + KL. CSI for text : the adversary is a learned policy over the 12 instructions (REINFORCE), with the reward of Section C.3 on accepted rewrites and a bank of up to 6 members. MD-Peel : below. References: product of experts with a known-bias model on hand-crafted HANS features (PoE known-bias{sup}‡`; uses prior knowledge of the target shortcut), PoE with a weak-learner bias model, and JTT with a fixed λ u p = 6 \lambda_{\mathrm{up}} = 6 λ up = 6 . Default budgets differ (CF-aug 4k steps, Peel-style 4–8k, CSI 10–12k), so compute-matched 12k-step controls are included.
Results. Table 26 . Every edit-based method lowers the CF flip rate at unchanged IID accuracy. On HANS, at matched compute (12k steps), uniform CF-aug is as good as or better than every selection method: 64.7±1.3 (augmentation-only objective) and 63.3 ± 0.4 (CE+KL objective), against 62.8 (MD-Peel), 62.4 (Peel-style) and 62.3 (CSI), and ERM 59.0. CSI − CF-aug-12k (CE+KL) is −0.94 ± 0.63 on HANS (p = .09 p = .09 p = .09 ), and CSI − Peel-style-12k is −0.04 ± 1.73 (not significant). A single CSI adversary without bank or novelty, given the same 12k steps, reaches the same HANS (62.3 ± 2.4). CSI’s bank recovers the classic artifact families (round 1 in every seed: verbose hypothesis; later: style, decrease overlap, add negation). The first member lowers HANS (59.0 → 56.6), a Whac-a-Mole step, and HANS recovers only as later members are added (→ 62.3 with 6). In every seed, CSI’s adversary picks first the instruction type with the highest second-judge false-accept excess (verbose hypothesis) and later returns to the second highest (add negation): maximizing the prediction change under an imperfect validator selects label-changing rewrites. The known-bias PoE{sup}‡ is far ahead on HANS (69.8; worst cell 38.7 vs. 8.3) at −1.3 points IID. The same picture holds for DeBERTa-v3-base and for a Qwen2.5-0.5B classifier (Table 27 ): CSI is not distinguishable from Peel-style or compute-matched CF-aug. On Qwen2.5-0.5B, CSI raises SS worst by +4.2 ± 1.1 over ERM (constituent set), as do Peel-style and CF-aug.
Table 26.
Table 27. Second backbones (3 seeds). DeBERTa-v3-base uses the BERT settings. Qwen2.5-0.5B (base, linear head on the last token) is trained for 1 epoch of MNLI; CSI uses a reduced budget (R max = 3 R_{\max}=3 R m a x = 3 ) and CF-aug a matched 3k steps. Zero-shot prompting of Qwen2.5-7B-Instruct is one run. §PEEL-style was re-run with the margin statistic one seed per GPU; the other rows ran three seeds per GPU, which inflates their wall-clock GPU-h.
Table 26 : BERT-base on MNLI (3 seeds). HANS non-ent: the non-entailment half (the worst-group analogue); worst cell: minimum over the 6 HANS cells. CF flip: lower is better. GPU-h: the method’s own training (2–3 runs sharing an A100; edit generation, ≈ 4.5 A100-h, not included). ‡: uses prior knowledge of the target shortcut.
MD-Peel on text. The loop follows Section C.2, with the text as its own description. Trouble set (Variant L): per gold class, the misclassified and lowest-margin correct held-out pairs, 200 per class (123–180 are errors); Variant U uses predicted classes and disagreement with another ERM seed. History: the 500 highest-margin correct training pairs per class. Qwen2.5-7B-Instruct reads 50 history and 50 trouble pairs (without being told which group holds the failures) and lists differences in wording, length, structure, style or topic. Word and bigram presence statistics (Fisher’s exact test, Holm) run in parallel, and the LLM merges both into at most 8 hypotheses per class, followed by the core filter. Test: REMOVE on 100 history and ADD on 100 trouble pairs, nulls = light premise and light hypothesis paraphrase, statistic = change in f f f ’s logit margin, Holm. Audit: 50 accepted edits judged by the second judge (RoBERTa-large NLI), dropped if δ ˉ > 0.15 \bar{\delta}>0.15 δ ˉ > 0.15 . Fix: one label-preserving rewrite (ADD or REMOVE with probability 1/2) of each of ≈ 48.9 \approx48.9 ≈ 48.9 k pool pairs per confirmed hypothesis, then 12k steps from the ERM checkpoint with the same budget as the compute-matched controls. This deviates from retraining from scratch on every MNLI pair, which would need 390k rewrites per hypothesis.
Discovery confirms style, not overlap or negation. Table 28 . In every seed and variant, the confirmed hypotheses are style or complexity factors, plus the known neutral artifact “because” (seed 1, round 2). No seed confirms a lexical-overlap or negation hypothesis (0/3; 0/5 with two supplementary seeds). The automatic contrast does see the negation artifact: contradiction history hypotheses contain negation words far more often than trouble ones (e.g. seed 2: “no” 46% vs. 4%), and neutral history hypotheses contain “because” (35% vs. 0%). But the LLM merge mostly rewrites this evidence into style descriptions. Where a negation hypothesis survives, it is labelled “core” by the filter (seed 0), misses Holm (seed 2, p = 0.008 p=0.008 p = 0.008 against a threshold of 0.05/13), or, in a post-hoc n-gram-only variant where “the hypotheses contain ‘no’” is significant in 3/3 seeds, fails the audit (the second judge rejects 8–12% of the negation edits). Overlap was never proposed by any variant: neither the LLM reading pairs nor single-sentence n-gram statistics represent the premise–hypothesis relation. Post-hoc diagnostics weaken the confirmations further. A magnitude-matched null (a full label-aware paraphrase) explains about half of them, since any heavy label-aware rewrite makes a hard pair easier for f f f . The surviving REMOVE effects are not class-specific (making any confident pair more complex lowers f f f ’s confidence in whatever its label is).
Table 28. MD-PEEL discovery on MNLI (BERT). Proposed: hypotheses (context after the filter). Confirmed: significant after Holm and passing the audit. Hypotheses quoted verbatim. No row has an overlap or negation hit.
Fix. MD-PEEL reaches HANS 62.8 ± 0.7 62.8\pm0.7 62.8 ± 0.7 vs. ERM 59.0 ± 1.2 59.0\pm1.2 59.0 ± 1.2 (+ 3.75 ± 1.63 +3.75\pm1.63 + 3.75 ± 1.63 , p = .03 p=.03 p = .03 ), below the uniform CF-aug control with the same objective and budget (64.7 ± 1.3 64.7\pm1.3 64.7 ± 1.3 ; − 1.95 ± 1.93 -1.95\pm1.93 − 1.95 ± 1.93 , p = .15 p=.15 p = .15 , a tie by the pre-registered rule). Its deficit is concentrated in the constituent non-entailment cell (23.6 23.6 23.6 vs. 36.6 36.6 36.6 ). Its CF flip rate does not improve (10.8 10.8 10.8 vs. ERM 10.9 10.9 10.9 ; CF-aug 8.8 8.8 8.8 ), because its edits do not cover the 12 instruction families the CF test uses. Over 5 seeds (2 supplementary, post hoc, with a truncated loop), MD-PEEL − uniform CF-aug = − 2.38 ± 1.64 -2.38\pm1.64 − 2.38 ± 1.64 HANS (paired p = .04 p=.04 p = .04 ). The pre-registered hypothesis H5 (discovery proposes overlap- or negation-type hypotheses, and the fix gives HANS ≥ \geq ≥ uniform CF-aug at matched compute) is not supported : discovery fails, and the fix comparison is a tie, i.e. discovery was not needed. The full 3-seed MD-PEEL loop cost ≈ 6.7 \approx6.7 ≈ 6.7 A100-h (discovery 1.03, fix rewrites 3.33, training 1.41, KL ablation 0.93).
Figure 8. MNLI→HANS (BERT): per-seed HANS, HANS non-entailment and CF flip rate by method.
Experimental Details
This appendix documents the protocol of every experiment in § 5 and reports the full results. All numbers are copied from the result summaries generated by our analysis scripts. Unless stated otherwise, accuracies are in %, entries are mean±sample standard deviation over seeds, and flip groups are written by the set of flipped shortcuts (e.g. 134 is G { 1 , 3 , 4 } G_{\{1,3,4\}} G { 1 , 3 , 4 } ). Labels are coded y ∈ { 0 , 1 } y \in\{0,1\} y ∈ { 0 , 1 } in the code and { ± 1 } \{\pm1\} { ± 1 } in the paper.
Common protocol
Coverage objective. For a covered set K K K , each training example is replaced, with probability q q q , by an edited copy in which every attribute a j a_j a j , j ∈ K j \in K j ∈ K , is jointly resampled uniformly and independently of the label (the label is kept). The loss is cross-entropy on the (possibly edited) batch plus μ KL ( p θ ( ⋅ ∣ x ) ∥ p θ ( ⋅ ∣ T x ) ) \mu\operatorname{KL}(p_\theta(\cdot\mid x) \mathbin\Vert p_\theta(\cdot\mid T x)) μ KL ( p θ ( ⋅ ∣ x ) ∥ p θ ( ⋅ ∣ T x )) with μ = 1 \mu= 1 μ = 1 , no stop-gradient, averaged over edited examples. The main setting is q = 1 q = 1 q = 1 , which matches P ~ K , δ \tilde{P}_{K,\delta} P ~ K , δ : every example is edited every time it is seen, cross-entropy is computed only on edited examples, and originals enter only through the KL term. The pre-registered setting q = 0.5 q = 0.5 q = 0.5 was run as a full replicate in E2 and E3 and as a mixture variant in E1 (without the KL term); it is reported separately below. The “aug-only” ablation sets μ = 0 \mu= 0 μ = 0 .
False accepts. With injected false-accept rate δ \delta δ , each edited example is additionally, with probability δ \delta δ , given a label-changing edit (its core is replaced by a core of the other class) while keeping the original label. This realizes the Z c Z_c Z c flip of P ~ K , δ \tilde{P}_{K,\delta} P ~ K , δ .
Salience. The measured salience of shortcut j j j for a model f f f is λ ^ j = mean over validation inputs of ∣ z ( x ; a j = y ) − z ( x ; a j ≠ y ) ∣ \hat{\lambda}_j = \text{mean over validation inputs of } \lvert z(x; a_j=y)-z(x; a_j\ne y)\rvert λ ^ j = mean over validation inputs of ∣ z ( x ; a j = y ) − z ( x ; a j = y )∣ , where z = logit 1 − logit 0 z = \operatorname{logit}_1-\operatorname{logit}_0 z = logit 1 − logit 0 and all other shortcuts are aligned. The core salience λ ^ c o r e \hat{\lambda}_{\mathrm{core}} λ ^ core is defined analogously with core swap. Salience is on the raw logit scale, which varies across runs, so only orderings should be compared across runs.
Peel hyper-parameters. The edit library consists of one randomizing edit per shortcut, null (nuisance) edits that affect neither label nor shortcuts, and core swap, a label-changing edit that plays the false accept. The simulated validator always accepts valid edits and accepts core-swap proposals with probability δ v a l = 0.1 \delta_{\mathrm{val}}=0.1 δ val = 0.1 , so every accepted core swap is bad. Evaluate: Δ ^ t \widehat{\Delta}_t Δ t is the mean absolute change of the current model’s logit margin (z 1 − z 0 z_1-z_0 z 1 − z 0 ; for more than two classes, the margin of the originally predicted class) over n e v a l = 1000 n_{\mathrm{eval}}=1000 n eval = 1000 validator-accepted validation edits of type t t t (about 100 for core swap). Type t t t is significant if its per-example changes exceed those of the null edit with the largest mean by a one-sided Welch t t t -test, with Holm correction over types at α = 0.05 \alpha=0.05 α = 0.05 . This is the statistic of Theorem 5. Our first runs used the flip rate (a two-proportion z z z -test against the largest null flip rate) instead. We re-ran every Peel experiment with the margin statistic, and all reported Peel numbers use it. Where the flip-rate runs differ, we say so. Audit: m = 50 m=50 m = 50 accepted edits of each significant type are checked against ground truth (known in simulation), giving a one-sided 95% Clopper–Pearson upper bound δ ˉ t \bar{\delta}_t δ ˉ t . Types with δ ˉ t > δ max = 0.15 \bar{\delta}_t>\delta_{\max}=0.15 δ ˉ t > δ m a x = 0.15 are dropped. With 0/50 bad edits, δ ˉ t = 0.058 \bar{\delta}_t=0.058 δ ˉ t = 0.058 ; with 50/50, δ ˉ t = 1.00 \bar{\delta}_t=1.00 δ ˉ t = 1.00 . Learn: surviving types are added to the bank and the model is retrained from the initial weights with the coverage objective (q = 1 q=1 q = 1 ). The loop stops when no new type is kept, with at most 5 rounds. Variants: greedy keeps only the top-Δ \Delta Δ surviving type per round; head freezes the ERM backbone and retrains only the last layer; no-audit skips the audit, so accepted core swaps enter the bank; aug-only uses μ = 0 \mu=0 μ = 0 (E2).
Certificate. For the final model and each bank type t t t we compute (4) per type, bound t = err ^ v a l + ε n v α / 3 + Γ ^ t a c c + ε n t α / 3 τ 1 − δ ˉ t \operatorname{bound}_t=\widehat{\operatorname{err}}_{\mathrm{val}}+\varepsilon_{n_{\mathrm{v}}}^{\alpha/3}+\frac{\widehat{\Gamma}_{t}^{\mathrm{acc}}+\varepsilon_{n_{\mathrm{t}}}^{\alpha/3\tau}}{1-\bar{\delta}_t} bound t = err val + ε n v α /3 + 1 − δ ˉ t Γ t acc + ε n t α /3 τ with α = 0.05 \alpha=0.05 α = 0.05 and τ \tau τ the number of bank types, and compare it with the error measured on the IID test set edited by type t t t . Theorem 6 requires all three samples to be independent of f f f and of the bank. Discovery selects the bank and, through it, f f f , and the discovery audit decides which types are kept. The certificate therefore never reuses them. Its n v n_{\mathrm{v}} n v points and n t n_{\mathrm{t}} n t edits come from a split that neither training nor discovery touched (E2: the certificate half of the validation set; E3: a fixed random half of the test birds, with the bound checked on the other half). Its audit is drawn afresh on that split, and δ ˉ t \bar{\delta}_t δ ˉ t is the Clopper–Pearson bound at level α / ( 3 τ ) \alpha/(3\tau) α / ( 3 τ ) (0/50 bad gives δ ˉ t = 0.091 \bar{\delta}_t=0.091 δ ˉ t = 0.091 for τ = 2 \tau=2 τ = 2 and 0.104 for τ = 4 \tau=4 τ = 4 ), not the 95% bound used to filter types during discovery. By Theorem 6 , the maximum over t t t bounds every mixture in Q Q Q . It does not bound compositions of edits (see E3).
Model selection. No group labels are used for training or model selection by any method without a {sup}†` . We use the last epoch of a fixed schedule; no hyper-parameter search was performed for our methods.
{sup}† baselines. JTT{sup}† (Liu et al., [20 ] ), GroupDRO{sup}† ({citet}Sagawa et al., 2020) and DFR{sup}† (Kirichenko et al., [16 ] ) use group labels for model selection (JTT, GroupDRO) or for the retraining set (DFR), as in their papers. Their settings are given per experiment.
Compute and software. E1 runs on a central processing unit (CPU) (about 25 minutes with at most 16 processes). E2 and E3 ran on an academic high-performance computing (HPC) cluster on NVIDIA A100 (PCIe, 40 GB) GPUs, one GPU per job, with several small runs packed per job. The training wall-clock times recorded in the run files sum to about 30.0 h for E2 (several runs often shared one GPU concurrently, so this overstates GPU-hours) and about 15.7 h for E3 (including watermark tuning; evaluation excluded). Typical per-run times: a 40-epoch ResNet-18 run in E2 takes a median of 2.7 minutes, and a 20-epoch ResNet-50 run in E3 a median of 2.3 minutes (5.5 minutes for 60 epochs). Software: Python with PyTorch 2.10 (CUDA 12.8), torchvision 0.25 and timm 1.0.28; mixed precision (bf16 autocast) was used for E2 and E3.
E1: stylized model
Setup. Figures write (⋆ \star ⋆ ) for the decision rule of Theorem 1: G F G_F G F is correct iff M K ( F ) > 0 M_K(F)>0 M K ( F ) > 0 . Data follow (1). The classifier is linear without intercept (the model is sign-symmetric, so the population intercept is 0). Because the logistic loss of ( x , y ) (x,y) ( x , y ) depends only on the sign pattern y x yx y x , a training set is summarized exactly by counts over the 2 k + 1 2^{k+1} 2 k + 1 patterns, and the finite-n n n fits are exact maximum-likelihood estimates on n n n i.i.d. samples (Newton’s method). A core-intact flip group is a single point in feature space, so group accuracies are computed exactly from the fitted weights. With a noisy test core, acc F = p 1 [ λ ( p ) + A F > 0 ] + ( 1 − p ) 1 [ − λ ( p ) + A F > 0 ] \operatorname{acc}_{F}=p\,\mathbf{1}[\lambda(p)+A_{F}>0]+(1-p)\,\mathbf{1}[-\lambda(p)+A_{F}>0] acc F = p 1 [ λ ( p ) + A F > 0 ] + ( 1 − p ) 1 [ − λ ( p ) + A F > 0 ] with A F A_{F} A F the shortcut part of the margin; group accuracy then takes only the values { 0 , 1 − p , p , 1 } \{0,1-p,p,1\} { 0 , 1 − p , p , 1 } . Ties count as 0.5 (none occurred). “Theory setting” means q = 1 q=1 q = 1 ; we also ran q = 0.5 q=0.5 q = 0.5 (the E2/E3 pre-registered protocol without the consistency term).
Decision rule (Theorem 1). k ∈ { 3 , 5 } k\in\{3,5\} k ∈ { 3 , 5 } , p ∈ { 0.8 , 0.9 , 0.95 } p\in\{0.8,0.9,0.95\} p ∈ { 0.8 , 0.9 , 0.95 } , ρ j ∼ U [ 0.6 , 0.98 ] \rho_j\sim U[0.6,0.98] ρ j ∼ U [ 0.6 , 0.98 ] , 10 seeds (each with its own ρ \rho ρ draw and data), all 8 covers for k = 3 k=3 k = 3 and the 6 salience-prefix covers for k = 5 k=5 k = 5 , all 2 k 2^k 2 k flip groups, δ = 0 \delta=0 δ = 0 ; 7,680 group evaluations per ( q , n ) (q,n) ( q , n ) . Table 29 and Figure 9 report the results. At q = 1 q=1 q = 1 the fitted weights match λ ( ⋅ ) \lambda(\cdot) λ ( ⋅ ) (median max-abs deviation 0.021 at n = 10 5 n=10^5 n = 1 0 5 , worst 0.13 when ρ = 0.98 \rho=0.98 ρ = 0.98 ), and at n = 10 5 n=10^5 n = 1 0 5 all 30 of 7,680 mismatches have margin below 0.10. The maximum absolute error stays at 0.95 for every n n n because accuracy jumps from p p p to 0 at the boundary; a near-tie group on the wrong side produces this error. At q = 0.5 q=0.5 q = 0.5 mismatches do not vanish with n n n : the covered weights are not 0 but ≈ λ ( ( 1 − q ) ρ j + q / 2 ) \approx\lambda((1-q)\rho_j+q/2) ≈ λ (( 1 − q ) ρ j + q /2 ) (e.g. 0.85 for ρ = 0.9 \rho=0.9 ρ = 0.9 ). Applying the decision rule with this effective ρ \rho ρ lowers the mismatch rate to 4.0%, and the exact population minimizer of the mixture lowers it to 0.6% at n = 10 5 n=10^5 n = 1 0 5 (Figure 9 (c)). The remainder is non-product structure: the mixture correlates the covered coordinates.
Table 29.
Figure 9. E1, decision rule. (a) Predicted vs. observed group accuracy at q = 1 q=1 q = 1 (jittered). (b) Mismatch rate vs. distance of the group to the decision boundary: mismatches occur only near ties and shrink with n n n . (c) Mixture q = 0.5 q=0.5 q = 0.5 : mismatch rate of the rule with w K = 0 w_K=0 w K = 0 , with the effective ρ K e f f = ( 1 − q ) ρ + q / 2 \rho_K^{\mathrm{eff}}=(1-q)\rho+q/2 ρ K eff = ( 1 − q ) ρ + q /2 , and of the exact population minimizer; the black bar is the q = 1 q=1 q = 1 rate.
Table 29 : E1: decision rule of Theorem 1 vs. exact finite-sample fits (7,680 group evaluations per row). “Margin” is the distance of the group’s points to the theoretical boundary in log-odds units.
Whac-a-Mole (Theorem 2). Illustration (Figure 2 (a)): q = 1 q=1 q = 1 , n = 10 5 n=10^5 n = 1 0 5 , 10 seeds, p = 0.8 p=0.8 p = 0.8 , ρ = ( 0.95 , 0.88 , 0.60 ) \rho=(0.95,0.88,0.60) ρ = ( 0.95 , 0.88 , 0.60 ) , so λ ( p ) = 1.386 \lambda(p)=1.386 λ ( p ) = 1.386 and λ ( ρ ) = ( 2.944 , 1.992 , 0.405 ) \lambda(\rho)=(2.944,1.992,0.405) λ ( ρ ) = ( 2.944 , 1.992 , 0.405 ) . For F = { 2 } F=\{2\} F = { 2 } and j = 1 j=1 j = 1 the condition of Theorem 2(b) holds (1.79 ≤ 1.99 < 4.73 1.79\le1.99<4.73 1.79 ≤ 1.99 < 4.73 ). Group { 2 } \{2\} { 2 } is correct under K = ∅ K=\varnothing K = ∅ , wrong in 10/10 seeds under K = { 1 } K=\{1\} K = { 1 } , and correct again under K = { 1 , 2 } K=\{1,2\} K = { 1 , 2 } . WGA rises from 0 (K = ∅ K=\varnothing K = ∅ ), to 1 (K = { 1 , 2 } K=\{1,2\} K = { 1 , 2 } ), and observed accuracy equals the prediction on all 24 ( K , F ) (K,F) ( K , F ) bars in all seeds. With q = 0.5 q=0.5 q = 0.5 the illustration fails: the S 1 S_1 S 1 weight is not removed, so group { 2 } \{2\} { 2 } stays correct. Aggregate: 200 random k = 3 k=3 k = 3 instances, n = 10 5 n=10^5 n = 1 0 5 , all ( K , j ≠ K , F ) (K,j\ne K,F) ( K , j = K , F ) triples (19,200 per q q q ), in Table 30 . The set of triples where the rule predicts a decrease coincides exactly with the interval condition of Theorem 2(b); all mismatches at q = 1 q=1 q = 1 are near ties.
Figure 2. E1 (stylized model). (a) One instance (p = 0.8 p = 0.8 p = 0.8 , ρ = ( 0.95 , 0.88 , 0.60 ) \rho= (0.95, 0.88, 0.60) ρ = ( 0.95 , 0.88 , 0.60 ) ) under three covered sets K K K . Color: outcome of the fitted model on each core-intact flip group, identical in all 10 seeds. Number: the margin M K ( F ) M_K(F) M K ( F ) of Theorem 1, whose sign predicts the outcome in all 24 cells. Covering S 1 S_1 S 1 breaks groups { 2 } \{2\} { 2 } and { 2 , 3 } \{2, 3\} { 2 , 3 } (outlined; Whac-a-Mole, Theorem 2(b)). WGA stays 0, but the minimum margin rises (− 4.0 → − 1.0 -4.0 \to-1.0 − 4.0 → − 1.0 ; Theorem 2(a)), and K = { 1 , 2 } K = \{1, 2\} K = { 1 , 2 } fixes every group (Theorem 3 ). (b) Worst-group accuracy over coverage prefix m m m and false-accept rate δ \delta δ . Orange marks are δ ∗ \delta^* δ ∗ from Theorem 4 (i). The right panel shows that half-edited training (q = 0.5 q = 0.5 q = 0.5 ) is far less tolerant.
Table 30. E1: Whac-a-Mole over 200 random k = 3 k = 3 k = 3 instances (n = 10 5 n = 10^5 n = 1 0 5 , 19,200 triples per q q q ).
False-accept threshold (Theorem 4(i)). k = 5 k=5 k = 5 , p = 0.95 p=0.95 p = 0.95 , λ ( ρ ) = ( 2.5 , 1.5 , 1.0 , 0.6 , 0.4 ) \lambda(\rho)=(2.5,1.5,1.0,0.6,0.4) λ ( ρ ) = ( 2.5 , 1.5 , 1.0 , 0.6 , 0.4 ) , coverage = salience prefix of length m m m , δ ∈ { 0 , 0.01 , … , 0.40 } \delta\in\{0,0.01,\ldots,0.40\} δ ∈ { 0 , 0.01 , … , 0.40 } , n = 10 6 n=10^6 n = 1 0 6 , 10 seeds, WGA over all 32 core-intact flip groups (Table 31 ).
Table 31. E1: predicted threshold δ ⋆ \delta^\star δ ⋆ vs. the largest δ \delta δ on the grid (step 0.01) with WGA = 1.
At q = 1 q = 1 q = 1 the fitted core weight matches λ ( p δ ) \lambda(p_\delta) λ ( p δ ) to within 0.023 (and to 10 − 15 10^{-15} 1 0 − 15 for the population fit). At q = 0.5 q = 0.5 q = 0.5 the threshold does not carry over by rescaling δ → q δ \delta\to q\delta δ → q δ : covered weights stay nonzero, and false accepts occur only in edited samples, where z K z_K z K is uniform, so they are correlated with the covering. The population core weight then deviates from λ ( p δ ) \lambda(p_\delta) λ ( p δ ) by up to 0.24.
Separable regime (Theorem 1(ii), Theorem 4 (ii)). Configuration A: p = 1 p = 1 p = 1 , ρ U = 1 \rho_U = 1 ρ U = 1 , a = 1 a = 1 a = 1 , b = ( 0.9 , 0.7 , 0.5 ) b = (0.9, 0.7, 0.5) b = ( 0.9 , 0.7 , 0.5 ) , K = { 1 } K = \{1\} K = { 1 } , q = 1 q = 1 q = 1 , n = 1000 n = 1000 n = 1000 , 3 seeds, full-batch gradient descent with step size 1 for 10 7 10^7 1 0 7 steps. Since a 2 = 1 > b 2 2 + b 3 2 = 0.74 a^2 = 1 > b_2^2 + b_3^2 = 0.74 a 2 = 1 > b 2 2 + b 3 2 = 0.74 , every group is correct with a perfect validator. Results are in Table 32 and Figure 10 . Hard-margin support vector machine (SVM) directions match the theory: ( 0.758 , 0 , 0.531 , 0.379 ) = ( a , 0 , b U ) / ∥ ⋅ ∥ (0.758, 0, 0.531, 0.379) = (a, 0, b_U)/\lVert\cdot\rVert ( 0.758 , 0 , 0.531 , 0.379 ) = ( a , 0 , b U ) / ∥ ⋅ ∥ without false accepts and ( 0.000 , 0.000 , 0.814 , 0.581 ) = ( 0 , 0 , b U ) / ∥ b U ∥ (0.000, 0.000, 0.814, 0.581) = (0, 0, b_U)/\lVert b_U\rVert ( 0.000 , 0.000 , 0.814 , 0.581 ) = ( 0 , 0 , b U ) / ∥ b U ∥ with 1 or 10 false accepts. Gradient descent approaches these directions slowly (cosine 0.954 for one false accept and 0.990 for 1% after 10 7 10^7 1 0 7 steps), and regularized gradient descent converges to the exact ℓ 2 \ell_2 ℓ 2 -regularized minimizer (agreement ≤ 10 − 12 \le10^{-12} ≤ 1 0 − 12 ). Worst-group accuracy breaks after about 10 3 10^3 1 0 3 steps, long before the direction converges, because with w K ≈ 0 w_K \approx0 w K ≈ 0 the worst group’s point is the negation of the false accept’s (§ 3 ). Tolerance vs. ℓ 2 \ell_2 ℓ 2 (5 seeds, n = 1000 n = 1000 n = 1000 ): 0 false accepts tolerated for ℓ 2 ∈ { 0 \ell_2 \in\{0 ℓ 2 ∈ { 0 (GD 10 5 10^5 1 0 5 steps), 10 − 4 10^{-4} 1 0 − 4 , 10 − 3 } 10^{-3}\} 1 0 − 3 } , at most 5 (0.5%) for ℓ 2 = 10 − 2 \ell_2 = 10^{-2} ℓ 2 = 1 0 − 2 , and at most 30 (3%) for ℓ 2 = 10 − 1 \ell_2 = 10^{-1} ℓ 2 = 1 0 − 1 . Configuration B (Whac-a-Mole in the max-margin regime, b = ( 0.9 , 0.8 , 0.7 ) b = (0.9, 0.8, 0.7) b = ( 0.9 , 0.8 , 0.7 ) , no false accepts): covering S 1 S_1 S 1 raises the normalized reliance on S 2 S_2 S 2 from 0.467 to 0.548 and on S 3 S_3 S 3 from 0.408 to 0.480, exactly b j / ∥ ( a , b U ) ∥ b_j/\lVert(a,b_U)\rVert b j / ∥( a , b U )∥ (gradient descent matches with cosine ≥ 0.99999 \ge0.99999 ≥ 0.99999 ). Group { 2 , 3 } \{2, 3\} { 2 , 3 } flips from correct (1 + 0.81 > 1.13 1 + 0.81 > 1.13 1 + 0.81 > 1.13 ) to wrong (1 < 1.13 1 < 1.13 1 < 1.13 ) at every checkpoint.
Table 32. E1, separable regime (configuration A). Normalized core weight w C / ∥ w ∥ w_C/\lVert w\rVert w C / ∥ w ∥ along gradient descent, its max-margin limit, and WGA. “FA” = false accepts among n = 1000 n = 1000 n = 1000 .
Figure 10. E1, separable regime. (a) Normalized core weight along gradient descent with 0, 1 and 1% false accepts (dashed/dotted: ℓ 2 = 10 − 3 / 10 − 2 \ell_2 = 10^{-3}/10^{-2} ℓ 2 = 1 0 − 3 /1 0 − 2 ). (b) WGA collapses as soon as a false accept is fitted. (c) Number of false accepts tolerated grows with ℓ 2 \ell_2 ℓ 2 regularization. (d) Configuration B: covering S 1 S_1 S 1 raises the normalized reliance on S 2 S_2 S 2 and S 3 S_3 S 3 .
Greedy discovery (Theorem 5). 100 random instances each for k = 3 k = 3 k = 3 and k = 5 k = 5 k = 5 , n = 10 5 n = 10^5 n = 1 0 5 training and 10 4 10^4 1 0 4 validation samples, q = 1 q = 1 q = 1 . Each round refits the model and covers the uncovered edit with the largest mean |\Delta\logit| (Table 33 ). Every order mismatch is a near-tie in salience: the median min ∣ λ i − λ j ∣ \min|\lambda_i - \lambda_j| min ∣ λ i − λ j ∣ is 0.006–0.007 among mismatched instances, against 0.24 (k = 3 k = 3 k = 3 ) and 0.067 (k = 5 k = 5 k = 5 ) overall. Rule (i) of Theorem 5 never stopped early: before full coverage, the smallest mean |\Delta\logit| of an uncovered shortcut was 0.37 (median 0.68), against 0 for null edits. Ranking by population flip rate (the statistic of our first PEEL runs) also never contradicted the salience order: 0 strict violations of λ i > λ j ⇒ Γ i ≥ Γ j \lambda_i > \lambda_j \Rightarrow\Gamma_i \ge\Gamma_j λ i > λ j ⇒ Γ i ≥ Γ j in 18,000 random instances (k ∈ { 2 , 3 , 4 } k \in\{2,3,4\} k ∈ { 2 , 3 , 4 } , ρ ∈ [ 0.51 , 0.999 ] \rho\in[0.51, 0.999] ρ ∈ [ 0.51 , 0.999 ] , p ∈ [ 0.52 , 0.999 ] p \in[0.52, 0.999] p ∈ [ 0.52 , 0.999 ] ). In finite samples, the round-1 flip-rate pick agreed with the ∣ Δ l o g i t ∣ |\Delta\mathrm{logit}| ∣Δ logit ∣ pick in only 90–91% of instances, because flip rates are often nearly tied. This is one more reason Peel ranks by ∣ Δ l o g i t ∣ |\Delta\mathrm{logit}| ∣Δ logit ∣ .
Table 33. E1: greedy discovery (100 instances per k k k ).
Certificate (Theorem 6). Model: maximum-likelihood fit with K = { 1 } K = \{1\} K = { 1 } , p = 0.9 p = 0.9 p = 0.9 , ρ = ( 0.9 , 0.8 , 0.75 ) \rho= (0.9, 0.8, 0.75) ρ = ( 0.9 , 0.8 , 0.75 ) , e r r P = 0.085 \mathrm{err}_{P} = 0.085 err P = 0.085 . τ = 6 \tau= 6 τ = 6 valid edit types: rand j \operatorname{rand}_j rand j (randomize S j S_j S j ) and flip j \operatorname{flip}_j flip j (set S j S_j S j misaligned). Per-type false-accept rates δ t ∈ { 0.02 , 0.05 , 0.10 } \delta_t \in\{0.02, 0.05, 0.10\} δ t ∈ { 0.02 , 0.05 , 0.10 } (a false accept also flips the core). n v = 2000 n_v = 2000 n v = 2000 , n t = 2000 n_t = 2000 n t = 2000 accepted pairs, audit m t ∈ { 50 , 200 } m_t \in\{50, 200\} m t ∈ { 50 , 200 } , α = 0.05 \alpha= 0.05 α = 0.05 , 200 independent Monte-Carlo replications with fresh validation, edit and audit samples; true errors are exact (Table 34, Figure 11). Most of the slack comes from the Clopper–Pearson bound at level α / ( 3 τ ) \alpha/(3\tau) α / ( 3 τ ) with m = 50 m = 50 m = 50 (δ ˉ ≈ 0.15 \bar{\delta} \approx0.15 δ ˉ ≈ 0.15 –0.27 0.27 0.27 for true δ \delta δ of 0.02–0.10) and from false accepts inflating Γ ^ a c c \widehat{\Gamma}^{\mathrm{acc}} Γ acc . Two further findings motivated the final statement of Theorem 6. (i) Compositions are not covered: for this model, flip 2 \operatorname{flip}_2 flip 2 and flip 3 \operatorname{flip}_3 flip 3 have Γ = 0.240 \Gamma= 0.240 Γ = 0.240 and 0.195, so summing per-type terms gives 0.52, while the composition (flip group { 2 , 3 } \{2, 3\} { 2 , 3 } ) has true error 1.00. (ii) A validator that preferentially rejects valid edits that change f f f breaks the bound: rejecting 90% of prediction-changing valid edits gives a violation rate of 98% (m = 200 m = 200 m = 200 ), while 50% rejection gives no violations. This is why Assumption 1 and the discussion after Theorem 6 are needed.
Table 34. E1: certificate over 200 replications. Left: uniform bound over all mixtures. Right: per-type bounds (m = 50 m = 50 m = 50 , mean).
Table 34.
Figure 11. E1: per-type certificate (mean±sd over 200 replications) vs. true error, for audit sizes m = 50 m = 50 m = 50 and m = 200 m = 200 m = 200 . The dashed line is err P \operatorname{err}_{P} err P .
E2: four shortcuts on CIFAR-10
Data and shortcuts. Core task: CIFAR-10 cat (y = 0 y = 0 y = 0 ) vs. dog (y = 1 y = 1 y = 1 ), 4,000 training and 1,000 validation images per class (from the CIFAR-10 training set) and the 1,000 test images per class. The data and attribute seed is fixed (1234) across runs; the run seed controls initialization, data order, augmentation and edit sampling. Four binary shortcuts are rendered exactly on the 32 × 32 32 \times32 32 × 32 images, each with ρ j = 0.95 \rho_j = 0.95 ρ j = 0.95 , independent given y y y . Render order: grating → \to → tint → \to → clip → \to → border (α \alpha α -blend) → \to → patch (overwrite) → \to → clip.
S 1 S_1 S 1 , corner patch: 4 × 4 4 \times4 4 × 4 top-left, white (a = 1 a = 1 a = 1 ) or black (a = 0 a = 0 a = 0 ); it overwrites the border’s corner pixels.
S 2 S_2 S 2 , tint: + 0.06 +0.06 + 0.06 added to the red (a = 1 a = 1 a = 1 ) or blue (a = 0 a = 0 a = 0 ) channel.
S 3 S_3 S 3 , border: 2 pixels, green (a = 1 a = 1 a = 1 ) or magenta (a = 0 a = 0 a = 0 ), α = 0.5 \alpha= 0.5 α = 0.5 .
S 4 S_4 S 4 , grating: amplitude 0.02, phase-shifted sinusoid with period 4 pixels, horizontal (a = 1 a = 1 a = 1 ) or vertical (a = 0 a = 0 a = 0 ) stripes.
Random crop (4-pixel zero padding) and horizontal flip are applied to the core only; shortcuts are rendered afterwards, so attributes stay exact. Every flip group is evaluated on the full test set (2,000 images) by rerendering.
Deviation: shortcut amplitudes. The pre-registered amplitudes (tint 0.12, grating 0.04) gave an unstable salience ordering across ERM seeds, with the logit scale itself varying by about 5× (e.g. λ ^ = 15.4 / 13.4 / 15.9 / 2.2 \hat{\lambda} = 15.4/13.4/15.9/2.2 λ ^ = 15.4/13.4/15.9/2.2 in seed 0, 19.3 / 16.9 / 18.0 / 18.1 19.3/16.9/18.0/18.1 19.3/16.9/18.0/18.1 in seed 2, 37 / 50 / 52 / 48 37/50/52/48 37/50/52/48 in seed 3). We screened 8 amplitude settings with ERM and adopted tint 0.06 and grating 0.02 (patch and border unchanged), which gave the consistent ordering S 1 ≳ S 3 > S 4 > S 2 S_1 \gtrsim S_3 > S_4 > S_2 S 1 ≳ S 3 > S 4 > S 2 in 3/3 screening seeds. Over the 5 main ERM seeds the saliences are λ ^ = 7.52 / 3.56 / 7.37 / 3.56 \hat{\lambda} = 7.52/3.56/7.37/3.56 λ ^ = 7.52/3.56/7.37/3.56 . Single-flip groups mostly stay ≥ 93 % \ge93\% ≥ 93% under ERM because three aligned shortcuts outvote one, so shortcut use shows in pair groups: in seeds 0, 2, 3, 4 every pair group drops below IID accuracy. S 4 S_4 S 4 is fragile: in ERM seed 1 it is essentially unused (λ ^ 4 = 0.16 \hat{\lambda}_4 = 0.16 λ ^ 4 = 0.16 ). ERM core reliance is 0.0% in every seed.
Training. CIFAR ResNet-18 from scratch, SGD (learning rate 0.1, momentum 0.9, weight decay 5 ⋅ 10 − 4 5 \cdot10^{-4} 5 ⋅ 1 0 − 4 ), cosine schedule, 40 epochs, batch 256, bf16 autocast, last epoch. False accepts replace the core of an edited example by a random training image of the other class (with the same crop/flip augmentation). Null edits for PEEL: Gaussian noise (σ = 0.02 \sigma= 0.02 σ = 0.02 , after rendering), a 2-pixel reflect-padded translation of the core (shortcuts re-rendered), and contrast jitter c ∈ [ 0.8 , 1.2 ] c \in[0.8, 1.2] c ∈ [ 0.8 , 1.2 ] on the core before rendering. Interpolating regime: no weight decay, 150 epochs, no crop/flip (edits are still resampled every epoch). Core reliance is the accuracy w.r.t. the core label on core-swapped test images whose shortcuts all agree with the original label (“aligned”), or are uniformly random (“random”).
Coverage sweep. Table 35 lists all 16 covers at q = 1 q = 1 q = 1 (5 seeds) together with WGA and IID accuracy at q = 0.5 q = 0.5 q = 0.5 (3 seeds). At q = 1 q = 1 q = 1 , covered shortcuts have mean measured salience 0.104 (median 0.084, max 0.38) against 5.27 for uncovered ones (5.50 under ERM). At q = 0.5 q = 0.5 q = 0.5 the covered median is 0.40 (mean 0.47), and at full coverage the residual λ ^ ≈ 0.3 \hat{\lambda} \approx0.3 λ ^ ≈ 0.3 per shortcut sums to about 1.2 logits, giving WGA 40.3 ± 11.7 40.3 \pm11.7 40.3 ± 11.7 against 70.9 ± 4.0 70.9 \pm4.0 70.9 ± 4.0 at q = 1 q = 1 q = 1 . WGA is at the floor for 13 of 16 covers because the core is weaker than every single shortcut. By Theorem 3 , only full coverage can then make all groups correct, which is what we observe: WGA by ∣ K ∣ |K| ∣ K ∣ is 0.0/0.1/0.7/6.3/70.9. The only partial cover with non-trivial WGA is { 1 , 3 , 4 } \{1, 3, 4\} { 1 , 3 , 4 } , which leaves the weakest shortcut S 2 S_2 S 2 uncovered (22.1 ± \pm ± 2.3).
Table 35. E2 coverage sweep. Left block: q = 1 q = 1 q = 1 (5 seeds); “worst” is the modal worst flip group, “core” is core reliance (aligned shortcuts), λ ^ j \hat{\lambda}_j λ ^ j are mean saliences. Right block: q = 0.5 q = 0.5 q = 0.5 (3 seeds). One q = 0.5 q = 0.5 q = 0.5 seed with K = { 4 } K = \{4\} K = { 4 } has a 10× logit scale.
Figure 12. E2 (q = 1 q = 1 q = 1 ). Left: WGA over the coverage lattice (lines connect K ⊂ K ∪ { j } K \subset K \cup\{j\} K ⊂ K ∪ { j } ). WGA stays near 0 until the last shortcut is covered, except for K = { 1 , 3 , 4 } K = \{1, 3, 4\} K = { 1 , 3 , 4 } . Right: change in flip-group accuracy for all 512 (cover, shortcut, group) triples, by category; bars are means. The rightmost category (“no effect” predicted) shows a mean loss of 8.5 points.
Theorem 2(a). Along the 32 cover-one-more pairs K ⊂ K ∪ { j } K \subset K \cup\{j\} K ⊂ K ∪ { j } at q = 1 q = 1 q = 1 , WGA increases in 66% of pairs and is non-decreasing within 0.5 points in 94%, with mean change + 10.4 +10.4 + 10.4 points and minimum − 0.9 -0.9 − 0.9 . Two decreases are significant over seeds (paired t t t -test, p < 0.05 p < 0.05 p < 0.05 ): K = { 1 , 4 } K = \{1, 4\} K = { 1 , 4 } plus S 2 S_2 S 2 (− 0.77 -0.77 − 0.77 ) and K = { 3 , 4 } K = \{3, 4\} K = { 3 , 4 } plus S 2 S_2 S 2 (− 0.94 -0.94 − 0.94 ), both under 1 point and at the 0–3% floor. The continuous worst-group statistics resolve the floor: the worst group’s mean margin increases and its logistic loss decreases in all 32 pairs. At q = 0.5 q = 0.5 q = 0.5 , WGA is non-decreasing (within 0.5 points) in all pairs and the worst-group margin increases in 97%.
Theorem 2(b). Table 36 groups the 512 triples ( K , j ≠ K , F ) (K, j \ne K, F) ( K , j = K , F ) , with Δ = acc F ( K ∪ { j } ) − acc F ( K ) \Delta= \operatorname{acc}_F(K \cup\{j\}) - \operatorname{acc}_F(K) Δ = acc F ( K ∪ { j }) − acc F ( K ) . With significance defined as a two-sided paired t t t -test over seeds with p < 0.05 p < 0.05 p < 0.05 and ∣ Δ ∣ > 0.5 |\Delta| > 0.5 ∣Δ∣ > 0.5 : at q = 1 q = 1 q = 1 , 72.5% of triples
Table 36.
(371/512) change significantly, and 97.6% of these have the predicted sign (decrease iff j j j is aligned in F F F ). Of the 181 significant decreases, 95.0% have j j j aligned in F F F (70.2% additionally have an uncovered flipped shortcut, i.e. category B). All 190 significant increases have j j j flipped. At q = 0.5 q = 0.5 q = 0.5 , 52.7% change significantly, with sign agreement 98.1%; 97.0% of decreases have j j j aligned. Per-example prediction: from the K K K -model’s per-example test margins, covering j j j is predicted to subtract (if j j j is aligned) or add back (if flipped) the example’s own flip effect D j ( x ) = m ∅ ( x ) − m { j } ( x ) D_j(x) = m_{\varnothing}(x) - m_{\{j\}}(x) D j ( x ) = m ∅ ( x ) − m { j } ( x ) . The Pearson correlation of predicted and actual Δ \Delta Δ is 0.85 (q = 0.5 q = 0.5 q = 0.5 : 0.82), and the sign agrees in 88.3% of triples with ∣ pred ∣ ≥ 1 |\operatorname{pred}| \ge1 ∣ pred ∣ ≥ 1 point (94.8% among significant changes). Of the 24 triples predicted to be unchanged (∣ pred ∣ < 1 |\operatorname{pred}| < 1 ∣ pred ∣ < 1 ), 8.3% change significantly, with mean ∣ Δ ∣ = 0.17 |\Delta| = 0.17 ∣Δ∣ = 0.17 points.
Failure of the “no-effect” prediction. Category C should be unchanged at the population level with an intact core. Instead it loses 8.5 points on average. The loss is driven by covering the last uncovered shortcut (K ∪ { j } = [ 4 ] K \cup\{j\} = [4] K ∪ { j } = [ 4 ] ; 32 triples, mean − 24.5 -24.5 − 24.5 points), after which all groups fall from ≈ 100 % \approx100\% ≈ 100% to the core accuracy (≈ 71 % \approx71\% ≈ 71% ). The other 76 C-triples average − 1.8 -1.8 − 1.8 points (minimum − 11.3 -11.3 − 11.3 ). With a noisy core, hard examples are rescued by aligned shortcuts, and removing them costs accuracy; the per-example rule predicts this, the coarse population rule does not.
Table 36 : E2: Theorem 2(b) categories over 512 triples (q = 1 q = 1 q = 1 , 5 seeds), with the predicted direction. “Sig.” uses a one-sided t t t -test over seeds, p < 0.05 p < 0.05 p < 0.05 ; “wrong” is the fraction with significant wrong sign. In category C the largest ∣ Δ ∣ |\Delta| ∣Δ∣ is 28.6.
q = 0.5 q = 0.5 q = 0.5 (3 seeds): B mean − 29.9 -29.9 − 29.9 (predicted sign 98.0%, sig. 65.5%); A mean + 24.5 +24.5 + 24.5 ; C mean − 8.4 -8.4 − 8.4 .
Additivity. For each model, the margin of each test image in group F F F is predicted as m ∅ ( x ) − ∑ j ∈ F D j ( x ) m_{\varnothing}(x) - \sum_{j \in F} D_j(x) m ∅ ( x ) − ∑ j ∈ F D j ( x ) , and group accuracy as the fraction of positive predicted margins. Over all models and groups with ∣ F ∣ ≥ 2 |F| \ge2 ∣ F ∣ ≥ 2 (880 (model, group) points at q = 1 q = 1 q = 1 ): R 2 = 0.996 R^2 = 0.996 R 2 = 0.996 , mean absolute error 1.0 points, maximum error 16.0, and 86.5% within 2 points. The coarser prediction from the mean signed salience λ ^ j \hat{\lambda}_j λ ^ j gives R 2 = 0.971 R^2 = 0.971 R 2 = 0.971 (mean absolute error 2.9, maximum 69.8). At q = 0.5 q = 0.5 q = 0.5 : R 2 = 0.987 R^2 = 0.987 R 2 = 0.987 and 0.921.
Validator error. Covers: the top-2 cover { 1 , 3 } \{1, 3\} { 1 , 3 } (pre-registered), full coverage, and { 1 , 3 , 4 } \{1, 3, 4\} { 1 , 3 , 4 } (added because { 1 , 3 } \{1, 3\} { 1 , 3 } is at the WGA floor and cannot show a regime difference). Table 37 gives WGA at q = 1 q = 1 q = 1 ; Table 38 at q = 0.5 q = 0.5 q = 0.5 . Interpolating runs reach 100.0% clean training accuracy at δ ≤ 0.05 \delta\le0.05 δ ≤ 0.05 for every K K K ; only with full coverage does training accuracy fall at large δ \delta δ (96.5% at δ = 0.2 \delta= 0.2 δ = 0.2 , 67.9% at δ = 0.3 \delta= 0.3 δ = 0.3 ), where false-accepted cores conflict with clean ones. At q = 1 q = 1 q = 1 , WGA and core reliance decrease with δ \delta δ in every (cover, regime) cell, but the decline is gradual, without the sharp threshold of the linear theory. For { 1 , 3 , 4 } \{1, 3, 4\} { 1 , 3 , 4 } , interpolation loses 12 points of WGA already at δ = 0.02 \delta= 0.02 δ = 0.02 (27.4 → \to → 15.5) and ends at 8.4 (− 69 % -69\% − 69% relative), against 20.5 → \to → 17.1 → \to → 11.4 (− 44 % -44\% − 44% ) with regularization. For { 1 , 3 } \{1, 3\} { 1 , 3 } both regimes are at the floor, and core reliance with random shortcuts drops to chance in both (53.8 → \to → 50.2 interpolating, 53.6 → \to → 49.7 regularized). With full coverage, interpolation is not worse (61.1 vs. 54.7 at δ = 0.3 \delta= 0.3 δ = 0.3 ), consistent with the non-separability remark of Theorem 4(ii). These are partial confirmations of Theorem 4.
Table 37. E2: WGA vs. injected false-accept rate δ \delta δ , q = 1 q=1 q = 1 . Regularized (reg.): main schedule. Interpolating (interp.): no weight decay, 150 epochs, no crop/flip. 5 seeds, except 3 for K = { 1 , 3 , 4 } K=\{1,3,4\} K = { 1 , 3 , 4 } .
Table 38. E2: WGA / IID accuracy vs. δ \delta δ at q = 0.5 q=0.5 q = 0.5 (3 seeds).
q = 0.5 q = 0.5 q = 0.5 reversal. At q = 0.5 q = 0.5 q = 0.5 tolerance is much lower: with full coverage and regularization, WGA falls 49.8 → \to → 21.0 (δ = 0.1 \delta= 0.1 δ = 0.1 ) → \to → 1.2 (δ = 0.3 \delta= 0.3 δ = 0.3 ) while IID accuracy rises to 98.0, i.e. the model reverts to the covered shortcuts, which remain predictive in the unaudited half. The interpolating model holds up to δ = 0.1 \delta= 0.1 δ = 0.1 (69.7) and then collapses (50.7 at 0.2, 6.6 at 0.3). Here the regularized regime is the more fragile one, contrary to our expectation; we report it as is.
Peel
PEEL starts from the 5 ERM models of the coverage sweep. The head variant trains a linear head (initialized from ERM) with the coverage objective for 30 epochs (SGD, learning rate 0.01) on the frozen ERM backbone. The no-audit variant lets accepted core swaps into the bank, initialized as a core-swap fraction 1 / ∣ b a n k ∣ 1/|\mathrm{bank}| 1/∣ bank ∣ of edits. Table 39 summarizes the variants and Table 40 gives the per-round log of PEEL-full. All four shortcuts are found in 5/5 seeds by the full, greedy and aug-only variants. Core swap was significant in every round of PEEL-full (Δ ^ \widehat{\Delta} Δ 0.6–5.9), but the audit rejected it every time (δ ˉ = 1.00 \bar{\delta} = 1.00 δ ˉ = 1.00 ). In seeds 0, 2, 3 and 4, round 1 1 1 keeps all four shortcuts and round 2 stops. The weakest shortcut, S 2 S_2 S 2 , has Δ ^ = 1.39 \widehat{\Delta}=1.39 Δ = 1.39 –1.59 1.59 1.59 against a largest null of 0.74 0.74 0.74 –1.24 1.24 1.24 . Under the flip-rate test of our first runs, its flip rate (0.008 0.008 0.008 –0.012 0.012 0.012 vs. null 0.003 0.003 0.003 –0.007 0.007 0.007 ) was not significant in seeds 0, 2, and 3, and those runs needed an extra round. The final banks are the same under both statistics in all 25 runs. In seed 1, where ERM barely uses S 4 S_4 S 4 (Δ ^ 4 = 0.08 \widehat{\Delta}_4=0.08 Δ 4 = 0.08 ), S 4 S_4 S 4 is kept in round 2 (Δ ^ 4 \widehat{\Delta}_4 Δ 4 : 0.08 → 2.97 0.08 \to2.97 0.08 → 2.97 ); this is the Whac-a-Mole effect seen by the discovery statistic. In the greedy variant the top-Δ ^ \widehat{\Delta} Δ candidate is the top-λ ^ \widehat{\lambda} λ candidate of the current model in 14 of 15 rounds. The exception (seed 2, round 1) is a near-tie (λ ^ 1 = 7.13 \widehat{\lambda}_1=7.13 λ 1 = 7.13 , λ ^ 3 = 6.91 \widehat{\lambda}_3=6.91 λ 3 = 6.91 ). Retraining can reshuffle saliences. In seed 1, S 4 S_4 S 4 , barely used by ERM, is covered before S 2 S_2 S 2 . WGA stays near 0 until the last shortcut is covered (seed 0: 0.002 → 0.020 → 0.222 → 0.745 0.002 \to0.020 \to0.222 \to0.745 0.002 → 0.020 → 0.222 → 0.745 ). PEEL-full’s final model has K = [ 4 ] K=[4] K = [ 4 ] and the same seed as the oracle cover, so their agreement is expected once discovery is complete; remaining differences are GPU non-determinism.
Table 39. E2: PEEL variants (5 seeds). All variants end with the modal bank { S 1 , S 2 , S 3 , S 4 } \{S_1, S_2, S_3, S_4\} { S 1 , S 2 , S 3 , S 4 } (plus core swap for no-audit). Rounds include the final stopping round. Spearman correlations are with ERM salience.
Table 40. E2: per-round log of PEEL-full. Δ ^ \widehat{\Delta} Δ is the mean absolute logit-margin change on accepted validation edits; “bank” marks types already covered. Every core-swap audit gave 50/50 bad (δ ˉ = 1.00 \bar{\delta} = 1.00 δ ˉ = 1.00 ); every kept shortcut gave δ ˉ = 0.058 \bar{\delta} = 0.058 δ ˉ = 0.058 .
Figure 13. E2 (q = 1 q=1 q = 1 ): WGA, core reliance (random shortcuts) and IID accuracy vs. false-accept rate, for three covers in the regularized (solid) and interpolating (dashed) regimes.
Baselines. JTT† ^{\dagger} † : identification for T ∈ { 2 , 5 } T \in\{2,5\} T ∈ { 2 , 5 } epochs, upweighting λ u p ∈ { 20 , 50 } \lambda_{\mathrm{up}} \in\{20,50\} λ up ∈ { 20 , 50 } , selected by group-labelled validation WGA. GroupDRO† ^{\dagger} † : groups ( y , a 1 , … , a 4 ) (y,a_1,\ldots,a_4) ( y , a 1 , … , a 4 ) ; only groups present in training can be used, and with ρ = 0.95 \rho=0.95 ρ = 0.95 several minority groups (including the all-flipped one) are empty; η ∈ { 0.01 , 0.1 } \eta\in\{0.01,0.1\} η ∈ { 0.01 , 0.1 } selected by validation WGA. DFR† ^{\dagger} † : ERM features and an ℓ 1 \ell_1 ℓ 1 -regularized logistic head trained on validation images re-rendered with uniformly random attributes (5 re-renders; an IID validation set has empty minority groups), C ∈ { 0.01 , 0.1 , 1 } C \in\{0.01,0.1,1\} C ∈ { 0.01 , 0.1 , 1 } tuned on an image-disjoint validation half. Results are in Table 41 . All group-label baselines fail because the worst flip groups have no or almost no training examples and the ERM representation carries no core information. GroupDRO{sup}†` is unstable across seeds (WGA from 0.8 to 50.1).
Table 41. E2: baselines (5 seeds). †: uses group labels.
Figure 14. E2 PEEL. Left: WGA after each round for all variants and seeds. Right: Δ ^ \widehat{\Delta} Δ per round for the greedy variant, seed 0; the dotted line is the largest null-edit value.
Certificate. Discovery uses one half of the validation set (1,000 images). That half selects the bank and hence the model, and its audit decides which types are kept. The certificate therefore uses only the other half: n v = n t = 1000 n_v = n_t = 1000 n v = n t = 1000 , plus a fresh audit of m = 50 m = 50 m = 50 accepted edits per type drawn on it (0/50 bad for every random-edit type). Here δ ˉ t \bar{\delta}_t δ ˉ t is computed at level α / ( 3 τ ) \alpha/(3\tau) α / ( 3 τ ) : 0.104 for τ = 4 \tau= 4 τ = 4 , 0.099 for τ = 3 \tau= 3 τ = 3 and 0.108 for τ = 5 \tau= 5 τ = 5 . Measured error is on the IID test set edited by type t t t (Table 42 ). It is computed for the final models of the reported runs. It holds in all 99 (run, type) cases. The bound is dominated by the validation error (≈ 28 % \approx28\% ≈ 28% ; the core is hard). The remaining slack (≈ 0.13 \approx0.13 ≈ 0.13 ) comes mostly from the two Hoeffding terms (≈ 0.10 \approx0.10 ≈ 0.10 ). It certifies only the edit family (r a n d S 1 , … , r a n d S 4 \mathrm{rand}S_1,\ldots,\mathrm{rand}S_4 rand S 1 , … , rand S 4 ), not flip groups.
Table 42.
Table 42 : E2: certificate (Theorem 6 ) per (seed, bank type), as error rates, computed on the certificate half of the validation set.
Other deviations. The corner patch overwrites the border in the top-left 4 × 4 4 \times4 4 × 4 corner (both remain exact). Peel-greedy and no-audit variants were added. Seeds: 5 (0–4) for the main coverage sweep, the q = 1 q = 1 q = 1 δ \delta δ sweep for { 1 , 3 } \{1, 3\} { 1 , 3 } and full coverage, Peel and baselines; 3 for q = 0.5 q = 0.5 q = 0.5 replicates and { 1 , 3 , 4 } \{1, 3, 4\} { 1 , 3 , 4 } . Significance tests over 5 (or 3) seeds have low power. bf16 and cuDNN non-determinism make identical configurations differ slightly between runs.
E3: Waterbirds-2S
Dataset. Birds: CUB-200-2011 (Wah et al. [33 ] ) (11,788 images) with the official segmentation masks. y = 1 y = 1 y = 1 (waterbird) uses the species list of Sagawa et al. [28 ] (Albatross, Auklet, Cormorant, Frigatebird, Fulmar, Gull, Jaeger, Kittiwake, Pelican, Puffin, Tern, Gadwall, Grebe, Mallard, Merganser, Guillemot, Pacific Loon), giving 43 species and 2,483 waterbird images (21.1%). Deviation: we match species names at token boundaries (“Tern” does not match “Western *”). The original script uses substring matching, which also labels Western Meadowlark and Western Wood-Pewee as waterbirds; hence 21.1% waterbirds instead of ≈ 23 % \approx23\% ≈ 23% . The split is stratified by y y y (seed 0): 4,795 train, 1,199 validation, 5,794 test. Images and masks are resized to 256 × 256 256 \times256 256 × 256 and center-cropped to 224, and masks are binarized at 0.5. Backgrounds: Places365-Standard training images (Zhou et al. [39 ] ) (256 px, center crop 224); land = bamboo_forest + forest/broadleaf, water = ocean + lake/natural, with 5,000 images per category (10,000 per type). Each category is split into disjoint pools: 50% train, 15% validation, 35% test (train 5,000 + 5,000, validation 1,500 + 1,500, test 3,500 + 3,500). Compositing (x = m ⋅ b i r d + ( 1 − m ) ⋅ b g x = m \cdot\mathrm{bird} + (1 - m) \cdot\mathrm{bg} x = m ⋅ bird + ( 1 − m ) ⋅ bg , then watermark, then nuisance transforms) runs on the GPU. Birds are pasted at their original location and scale, as in Waterbirds, so thin halos of the original CUB background may remain at mask borders, a possible third, uncontrolled cue.
Shortcuts. S b g S_{\mathrm{bg}} S bg : background type, ρ b g = 0.95 \rho_{\mathrm{bg}} = 0.95 ρ bg = 0.95 . S w m S_{\mathrm{wm}} S wm : the text “© PHOTOSTOCK” (DejaVu Sans Bold, 20 px, about 189 × 21 189 \times21 189 × 21 px), composited in white at opacity 0.6 with a 1-pixel dark offset shadow (strength 0.6) at a uniformly random position; ρ w m = 0.90 \rho_{\mathrm{wm}} = 0.90 ρ wm = 0.90 , independent of ρ b g \rho_{\mathrm{bg}} ρ bg given y y y . The training set is fixed (one composite per bird). The watermark was tuned with seed-0 ERM so that both shortcuts have clearly measurable salience (Table 43 ). The initial faint watermark was used by ERM (it costs about 9 points on top of the background in group {bg,wm}) but only weakly on its own. Even after tuning, the watermark is the less salient shortcut (λ ^ w m ≈ 0.6 λ b g \hat{\lambda}_{\mathrm{wm}} \approx0.6\lambda_{\mathrm{bg}} λ ^ wm ≈ 0.6 λ bg ), and both are below the core (λ c o r e ≈ 9 \lambda_{\mathrm{core}} \approx9 λ core ≈ 9 ).
Table 43. E3: watermark tuning (seed-0 ERM, 20 epochs). The last row is used.
Evaluation sets and edits. The IID validation set (training ρ \rho ρ ) is used for PEEL’s Δ ^ \widehat{\Delta} Δ and for salience; the certificate uses held-out test birds (see Certificate ). A separate attribute-balanced validation composite (a b g a_{\mathrm{bg}} a bg , a w m a_{\mathrm{wm}} a wm uniform, independent of y y y ) is used only by the † baselines. Test: the 4 flip groups, each over all 5,794 test birds with deterministic backgrounds and positions from the test pools; an IID test set; a core-swap test set (bird replaced by a random test bird of the other class, context aligned with the original label), on which “core-follow” is the fraction classified by the pasted bird; and the IID test set edited by each edit type (certificate targets). Edits (all exact): background swap (a b g ∼ U { 0 , 1 } a_{\mathrm{bg}} \sim U\{0,1\} a bg ∼ U { 0 , 1 } , fresh background from the split’s pool), watermark toggle (a w m ∼ U { 0 , 1 } a_{\mathrm{wm}} \sim U\{0,1\} a wm ∼ U { 0 , 1 } , fresh position), null edits (horizontal flip; color jitter with brightness/contrast/saturation factors in U [ 0.8 , 1.2 ] U[0.8,1.2] U [ 0.8 , 1.2 ] ; random resized crop with scale U [ 0.8 , 1 ] U[0.8,1] U [ 0.8 , 1 ] and ratio [ 3 / 4 , 4 / 3 ] [3/4,4/3] [ 3/4 , 4/3 ] ), and core swap (other-class bird pasted on the same background and watermark, label kept). Horizontal flip mirrors the watermark text, so it is not perfectly watermark-neutral. Examples are shown in Figure 15 .
Figure 15. E3: examples of the edit library on Waterbirds-2S composites.
Figure 16. E3: the four flip groups for one waterbird and one landbird. Every test bird appears in every group.
Training. ResNet-50 (torchvision IMAGENET1K-V1 weights) with a new 2-way head, 224 px input, SGD (learning rate 10 − 3 10^{-3} 1 0 − 3 , momentum 0.9, weight decay 10 − 4 10^{-4} 1 0 − 4 ), batch 64, 20 epochs, cosine schedule, bf16 autocast, no standard augmentation (so null edits are genuine edits), last epoch. Interpolating regime: no weight decay, 60 epochs. Peel uses the library {bg, wm, core swap} as candidates and {h-flip, jitter, crop} as null edits, Δ b ^ \widehat{\Delta b} Δ b on the first 1000 IID validation images, and the protocol of Section D.1. Peel-head retrains only the last layer (initialized from the ERM head) on the frozen ERM backbone (batch-norm frozen), SGD with learning rate 10 − 2 10^{-2} 1 0 − 2 , 20 epochs, same objective. Random-edit (equal-information baseline): every sample (q = 1 q = 1 q = 1 ) gets one edit type drawn uniformly from the whole library { b g , w m , h - f l i p , j i t t e r , c r o p , c o r e s w a p } \{\mathrm{bg}, \mathrm{wm}, \mathrm{h\text{-}flip}, \mathrm{jitter}, \mathrm{crop}, \mathrm{core\ swap}\} { bg , wm , h - flip , jitter , crop , core swap } ; core-swap proposals pass the validator with probability 0.1 and rejected ones are redrawn among the 5 valid types (equal edit budget, no audit), so about 1.7% of edited samples are label-corrupting. JTT{sup}†: 1-epoch ERM for identification, error set upweighted × 50 \times50 × 50 , retraining for the same number of SGD steps as ERM, selection by worst-group accuracy on the attribute-balanced validation set (8 groups y × a b g × a w m y \times a_{\mathrm{bg}} \times a_{\mathrm{wm}} y × a bg × a wm ). DFR{sup}†: ERM backbone features; ℓ 1 \ell_1 ℓ 1 -regularized logistic regression on group-balanced subsamples (8 groups) of the attribute-balanced validation set, C C C tuned on a half split by worst-group accuracy, final fit on all of it, weights averaged over 10 subsamples. GroupDRO{sup}†: 8 groups ( y , a b g , a w m ) (y, a_{\mathrm{bg}}, a_{\mathrm{wm}}) ( y , a bg , a wm ) , η = 0.01 \eta= 0.01 η = 0.01 , selection by validation worst-group accuracy. No hyper-parameter search was done for any method.
Main results. Table 44 extends Table 1 (Waterbirds-2S column) with all flip groups and core-follow. Because the discovered bank equals { b g , w m } \{\mathrm{bg},\mathrm{wm}\} { bg , wm } and the Learn step is deterministic given the seed, PEEL-full, PEEL-greedy and the oracle cover yield the same final models. WGA is the mean over seeds of the per-seed minimum over groups, so it can lie below every group mean. Random-edit improves WGA by 9.8 points over ERM but lowers core-follow (45.8 vs. 58.8).
Table 44.
Table 44: E3: all methods (ResNet-50), mean± \pm ± std over 5 seeds. †: uses group labels. Core-follow: accuracy w.r.t. the pasted bird on the core-swap test set.
Whac-a-Mole. Table 45 gives all covers and the salience of each shortcut; Table 46 gives the per-seed paired changes for every coverage transition. A cell “changes” if ∣ Δ ∣ ≥ 1 |\Delta| \ge1 ∣Δ∣ ≥ 1 point with the same sign in all seeds. At q = 1 q = 1 q = 1 , 12 of 16 cells change and all 12 have the predicted sign; the 4 non-changing cells are all “predicted ↓ \downarrow ↓ ” cells and are also negative (− 0.3 -0.3 − 0.3 to − 0.9 -0.9 − 0.9 ). The same holds at q = 0.5 q = 0.5 q = 0.5 (12/12; Figure 17 ), and q = 1 q = 1 q = 1 vs. q = 0.5 q = 0.5 q = 0.5 makes little difference on real images, unlike in E1. After coverage, the signed salience of a covered shortcut is ≈ 0 \approx0 ≈ 0 ; the absolute ∣ Δ l o g i t ∣ \lvert\Delta\mathrm{logit}\rvert ∣ Δ logit ∣ stays at 1.1 (bg) and 0.6 (wm) because it is computed between two specific background images or watermark positions and includes image-specific variation. The uncovered shortcut’s salience rises once the other is covered (λ ^ w m \hat{\lambda}_{\mathrm{wm}} λ ^ wm : 2.6 → \to → 3.3; λ ^ b g \hat{\lambda}_{\mathrm{bg}} λ ^ bg : 4.4 → \to → 5.0). Caveat : plugging ERM saliences into the decision rule (s c ≈ λ ^ c o r e / 2 ≈ 4.7 > s b g + s w m ≈ 3.5 s_c \approx\hat{\lambda}_{\mathrm{core}}/2 \approx4.7 > s_{\mathrm{bg}} + s_{\mathrm{wm}} \approx3.5 s c ≈ λ ^ core /2 ≈ 4.7 > s bg + s wm ≈ 3.5 ) leaves every group margin positive at the population level, so the rule with mean saliences predicts no population-level flips. The observed changes are in the per-example tail, and sign agreement, not magnitude, is the testable prediction here.
Table 45.
Table 46. E3: change in accuracy (points, mean± \pm ± std of per-seed paired differences) per coverage transition. Prediction: covering j j j lowers the margin of every group F ∌ j F \not\ni j F ∋ j (↓ \downarrow ↓ ) and raises it for F ∋ j F \ni j F ∋ j (↑ \uparrow ↑ ). ∗ ^{*} ∗ : ∣ Δ ∣ ≥ 1 |\Delta| \ge1 ∣Δ∣ ≥ 1 with the same sign in all seeds; every such cell has the predicted sign.
Figure 17. E3, q = 0.5 q = 0.5 q = 0.5 : flip-group accuracy for each covered set (5 seeds). The Whac-a-Mole pattern of Figure 1 (a) persists.
Table 45: E3: coverage subsets (ResNet-50, 5 seeds). Saliences are given as absolute / signed mean logit change on validation.
Validator error. Table 47 reports the δ \delta δ sweep at q = 1 q = 1 q = 1 with and without the consistency term, and at q = 0.5 q = 0.5 q = 0.5 . Qualitatively the predictions of Theorem 4 hold: partial coverage is fragile, interpolation hurts under partial coverage (with K = { b g } K = \{\mathrm{bg}\} K = { bg } : 47.2 vs. 63.4 at δ = 0.05 \delta= 0.05 δ = 0.05 , 25.5 vs. 45.7 at δ = 0.1 \delta= 0.1 δ = 0.1 ) but not under full coverage (97.8 vs. 96.8 at δ = 0.05 \delta= 0.05 δ = 0.05 ). The pre-registered balanced-class tolerances fail quantitatively: δ ⋆ = 0.10 \delta^{\star} = 0.10 δ ⋆ = 0.10 for K = { b g } K = \{\mathrm{bg}\} K = { bg } (R U = λ ( 0.9 ) R_U = \lambda(0.9) R U = λ ( 0.9 ) ) and 0.5 for full coverage, whereas K = { b g } K = \{\mathrm{bg}\} K = { bg } already fails at δ = 0.05 \delta= 0.05 δ = 0.05 , and full coverage collapses to the constant “landbird” classifier at δ ≥ 0.2 \delta\ge0.2 δ ≥ 0.2 with the KL term (≥ 0.3 \ge0.3 ≥ 0.3 for aug-only): WGA 78.9 equals the landbird share and core-follow 21.1 the waterbird share. Including the class prior π = 0.211 \pi= 0.211 π = 0.211 (Remark 1, derived after observing this failure) with p ≈ 1 p \approx1 p ≈ 1 gives δ π ⋆ ≈ 0.03 \delta^{\star}_{\pi} \approx0.03 δ π ⋆ ≈ 0.03 (K = { b g } K = \{\mathrm{bg}\} K = { bg } ) and ≈ π ≈ 0.21 \approx\pi\approx0.21 ≈ π ≈ 0.21 (full coverage), which matches where the curves break. The consistency term amplifies false accepts: aug-only is clearly more tolerant (96.9 vs. 85.9 at δ = 0.1 \delta= 0.1 δ = 0.1 and 86.6 vs. 78.9 at δ = 0.2 \delta= 0.2 δ = 0.2 for full coverage; 60.5 vs. 45.7 at δ = 0.1 \delta= 0.1 δ = 0.1 for K = { b g } K = \{\mathrm{bg}\} K = { bg } ). An interpolating ERM (no weight decay, 60 epochs) reaches WGA 68.3 ± \pm ± 1.2, core-follow 62.5 ± \pm ± 0.5 and IID 98.9 ± \pm ± 0.1 (3 seeds).
Table 47. E3: WGA / core-follow vs. injected false-accept rate δ \delta δ . Seeds: 5 for the regularized cells with KL at q = 1 q = 1 q = 1 and for the δ = 0 \delta= 0 δ = 0 regularized cells at q = 0.5 q = 0.5 q = 0.5 ; 3 otherwise.
CLIP ViT-B/16. We repeat the coverage subsets with OpenAI CLIP ViT-B/16 weights loaded through timm, either fine-tuned (AdamW, learning rate 10 − 5 10^{-5} 1 0 − 5 , weight decay 0.1, 10 epochs) or linearly probed (frozen backbone; the head is trained with the coverage objective, learning rate 10 − 3 10^{-3} 1 0 − 3 , 20 epochs), q = 1 q = 1 q = 1 , 3 seeds (Table 48 ). In both variants every coverage transition raises WGA, and in all 32 (transition, group) cells the mean change has the predicted sign, although some changes are small (e.g. 0.1 points). The Whac-a-Mole decreases are clear: covering the background lowers { w m } \{\mathrm{wm}\} { wm } from 98.4 to 94.8 (fine-tuned) and from 96.2 to 89.5 (linear probe); covering the watermark lowers { b g } \{\mathrm{bg}\} { bg } from 96.2 to 90.1 and from 94.5 to 84.2.
Table 48. E3: CLIP ViT-B/16 coverage subsets, q = 1 q = 1 q = 1 , 3 seeds.
Pool discovery. Table 49 shows the log for seed 0. The other seeds behave identically. In round 1, background (Δ ^ = 3.00 \hat{\Delta} = 3.00 Δ ^ = 3.00 –3.19 3.19 3.19 ), watermark (1.46–1.60) and core swap (8.7–9.5) are significant against a largest null of 0.86–0.91. The audit drops core swap (50/50 bad, δ ˉ = 1.00 \bar{\delta} = 1.00 δ ˉ = 1.00 ) and keeps the other two (0/50, δ ˉ = 0.058 \bar{\delta} = 0.058 δ ˉ = 0.058 ). In round 2 only core swap is significant (Δ ^ = 13.8 \hat{\Delta} = 13.8 Δ ^ = 13.8 –14.9), and it is dropped again, so the loop stops with bank { b g , w m } \{\mathrm{bg},\mathrm{wm}\} { bg , wm } in all 5 seeds. PEEL-greedy keeps background in round 1 and watermark in round 2 in all 5 seeds (decreasing salience, Theorem 5). The watermark’s Δ ^ \hat{\Delta} Δ ^ rises once the background is covered (round 1 → round 2: 1.54 → 1.68, 1.56 → 1.74, 1.60 → 1.86, 1.46 → 1.80, 1.50 → 1.87 for seeds 0–4); this is the Whac-a-Mole effect seen by the discovery statistic. PEEL-head finds the same bank in every seed. Without the audit, core swap enters the bank in round 1, round 2 finds nothing new, and WGA falls to 85.6 ± 0.5. Every variant returns the same bank in every seed as the flip-rate test of our first runs, and WGA agrees within 0.25 points.
Table 49. E3: PEEL discovery log, seed 0. Mean absolute logit-margin change Δ ^ \hat{\Delta} Δ ^ on validator-accepted validation edits (n ≈ 1000 n \approx1000 n ≈ 1000 ; core swap n ≈ 100 n \approx100 n ≈ 100 ).
Certificate. Discovery uses the IID validation set. It selects the bank and, through it, the trained model, and its audit decides which types are kept. Theorem 6 needs samples that are independent of both, so the certificate reuses neither. It is computed on a fixed random half of the test birds (2,897 birds; the split seed was fixed before computing it), which no training, discovery or selection step uses. There, n v = 2,897 n_v = 2{,}897 n v = 2 , 897 IID test composites, n t = 2,897 n_t = 2{,}897 n t = 2 , 897 (one fresh edit of each composite per bank type; the simulated validator accepts every background and watermark edit), and a fresh audit of m t = 50 m_t = 50 m t = 50 accepted edits per type (0/50 bad) gives δ ˉ t = 0.091 \bar{\delta}_t = 0.091 δ ˉ t = 0.091 at level α / ( 3 τ ) \alpha/(3\tau) α / ( 3 τ ) , with τ = ∣ b a n k ∣ = 2 \tau= \lvert\mathrm{bank}\rvert= 2 τ = ∣ bank ∣ = 2 and α = 0.05 \alpha= 0.05 α = 0.05 . The bound is checked on the other 2,897 birds, whose IID test composites are edited by each type. It is computed for the final models of the reported runs. Table 50 lists the bound and the measured error for PEEL-full, PEEL-head and, as a post-hoc contrast, ERM with the same bank. The bound holds in all 20 (PEEL model, edit type) cases and in all 10 ERM cases. The uniform bound over Q Q Q (the maximum over types) also holds against the largest measured error among P P P , Q b g Q_{\mathrm{bg}} Q bg and Q w m Q_{\mathrm{wm}} Q wm in every case. The bound is non-vacuous but loose: 7.8–8.9% vs. a measured 1.6–1.8% for PEEL-full, and 10.2–12.3% vs. 2.3–3.3% for PEEL-head. Most of the slack comes from the two Hoeffding terms (2.7 and 2.9 points at n = 2,897 n = 2{,}897 n = 2 , 897 ) and from the factor 1 / ( 1 − δ ˉ t ) 1/(1-\bar{\delta}_t) 1/ ( 1 − δ ˉ t ) with δ ˉ t = 0.091 \bar{\delta}_t = 0.091 δ ˉ t = 0.091 from m = 50 m = 50 m = 50 . The edited test distributions (random resampling of one type) are much milder than the flip groups, so the certificate says nothing about WGA. Theorem 6 covers mixtures of single edits, not the composition bg∘ \circ ∘ wm, and E1 gives a counterexample to summing per-type terms (Section D.2). We therefore report no bound for the composition.
Table 50. E3: Theorem 6 bound vs. measured error (%). The certificate ( e r r ^ P , Γ ^ a c c , a u d i t ) (\widehat{\mathrm{err}}_P, \widehat{\Gamma}^{\mathrm{acc}}, \mathrm{audit}) ( err P , Γ acc , audit ) uses one half of the test birds, and the measured error is on the IID test composites of the other half, edited by each bank type. ERM: post-hoc contrast with the same bank.
Figure 18. E3: certificate vs. measured error for the final PEEL-full models (5 seeds, both bank types). The certificate is computed on one half of the test birds and checked on the other.
Limitations of E3. All edits are exact compositing, so validator errors arise only by injection, and the validator is simulated. We did not run a natural validator, generative edits, a generic diffusion-augmentation baseline, or PEEL and the baselines on CLIP.
Licenses and assets
CIFAR-10 [17 ] is distributed by its authors for research use. CUB-200-2011 [33 ] and its segmentation masks are provided for non-commercial research and educational use. Places365 [39 ] images are provided for research and non-commercial use. Pretrained ResNet-50 weights come from torchvision (BSD-3-Clause license). CLIP ViT-B/16 weights are OpenAI’s release (MIT license), loaded through timm (Apache-2.0). We do not redistribute any images; our code renders all composites from the original datasets.