betaFeedback

WorksComputer Science

Peel, Don't Whack: Partial Coverage, Imperfect Validators, and Intervention Based Shortcut Mitigation

Abstract

Without group labels, shortcut mitigation increasingly relies on interventions : label-preserving edits, such as background or watermark replacement, that are proposed automatically and accepted by a validator. Invariance to a complete family of valid edits yields robustness, but in practice coverage is partial and validators err. We analyze both in a stylized linear model. For the population logistic solution and the max-margin limit of gradient descent, the decision on every shortcut-flip group follows one additive rule. Hence worst-group accuracy never decreases with coverage, while individual groups can provably degrade, a mechanism for the Whac-a-Mole effect; full coverage is not always needed. In the logistic regime the validator's false-accept rate must stay below a closed-form tolerance that grows with coverage. With noiseless training data, one false accept can make the max-margin solution ignore the core. In this model, sensitivity-based discovery removes shortcuts in decreasing salience. We also give a model-agnostic certificate, valid under content-independent validation, whose validator-error term comes from an audit. Simulations match the theory, and deep networks on synthetic and real images show the predicted Whac-a-Mole signs, monotone worst-group accuracy and validator fragility. The resulting procedure, Peel (Propose-Edit-Evaluate-Learn), can propose candidate edits from the model's own mistakes. Given an oracle library of the benchmarks' intervention operators, it selects the right ones and beats group-label methods on Waterbirds and UrbanCars. With fully generated edits, run end to end from three discovery seeds, it improves on empirical risk minimization (ERM) on five of six benchmarks but trails exact edits.

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\} are balanced. An input carries a core factor and kk shortcut factors. In the stylized model used for our theory,

X=(aZcY,b1Z1Y,…,bkZkY)∈R1+k,(1)X = (a Z_cY, b_1Z_1Y, \ldots, b_kZ_kY) \in\mathbb{R}^{1+k}, \tag*{(1)}

where a,bj>0a, b_j > 0 are feature magnitudes and Zc,Z1,…,Zk∈{±1}Z_c, Z_1, \ldots, Z_k \in\{\pm1\} are mutually independent given YY, with P(Zc=1)=p\mathbb{P}(Z_c = 1) = p and P(Zj=1)=ρj\mathbb{P}(Z_j = 1) = \rho_j. Shortcut jj is aligned with the label when Zj=1Z_j = 1. In training ρj>12\rho_j > \frac{1}{2}, so every shortcut is predictive. Following the anti-causal view of spurious features [31, 22], the label causes each shortcut XjX_j. Under deployment shift ρj\rho_j may change arbitrarily, including reversing. When p<1p < 1 the shortcuts carry information about YY beyond the core XcX_c, so robustness has an in-distribution price. We make this explicit rather than assuming the shortcuts are conditionally independent of YY given the core.

Flip groups. For F⊆[k]F \subseteq[k], the flip group GFG_F consists of inputs whose shortcuts in FF disagree with the label (Zj=−1Z_j = -1 for j∈Fj \in F), whose remaining shortcuts agree, and whose core is intact (Zc=1Z_c = 1). Standard worst-group benchmarks are unions of flip groups. The worst-group accuracy (WGA) is the minimum accuracy over all 2k2^k flip groups.

Interventions and coverage. An edit is a label-preserving transformation of an input. Edit type tt randomizes shortcut jj if it replaces ZjZ_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] contains the shortcuts randomized by some bank edit, and U=[k]∖KU = [k] \setminus 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}. This is the law of XX after every ZjZ_j with j∈Kj \in K is jointly replaced by an independent uniform sign and, independently of (Y,Z)(Y,Z), ZcZ_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} this flips ZcZ_c, and δ\delta is the validator’s false-accept rate among accepted edits.

Salience. With λ(u)=log⁡u1−u\lambda(u) = \log\frac{u}{1-u}, we define the salience of the core and of shortcut jj by

logistic:sc=λ(p),sj=λ(ρj);max-margin:sc=a2,sj=bj2.(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}

We define the margin of GFG_F, in salience units, as MK(F)=sc+∑j∈U∖Fsj−∑j∈U∩FsjM_K(F) = s_c + \sum_{j \in U \setminus F} s_j - \sum_{j \in U \cap F} s_j. Indices of FF that are covered do not enter it. A margin of exactly 0 counts as an error. We write err⁡Q(f)=PQ(f(X)≠Y)\operatorname{err}_{Q}(f)=\mathbb{P}_{Q}(f(X)\ne Y).

Theory

Except for Theorem 6, all results concern homogeneous linear predictors x↦sign⁡(w⊤x)x\mapsto\operatorname{sign}(w^{\top}x) on the stylized model (1) trained on P~K,δ\widetilde{P}_{K,\delta}, in two regimes. The logistic regime is the infinite-sample, well-specified limit of unregularized logistic regression, for p,ρj∈(12,1)p,\rho_j\in(\frac{1}{2},1). The max-margin regime applies to noiseless data (p=1p=1, ρj=1\rho_j=1 for j∈Uj\in U). There, gradient descent on logistic loss converges in direction to the ℓ2\ell_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.

(i) Logistic regime. The logistic risk under P~K,0\widetilde{P}_{K,0} has a unique minimizer w⋆w^{\star}, with wc⋆=λ(p)/aw_c^{\star}=\lambda(p)/a, wj⋆=0w_j^{\star}=0 for j∈Kj\in K, and wj⋆=λ(ρj)/bjw_j^{\star}=\lambda(\rho_j)/b_j for j∈Uj\in U.

(ii) Max-margin regime. Suppose 0∈conv⁡{(bjzij)j∈K}i0\in\operatorname{conv}\{(b_jz_{ij})_{j\in K}\}_i, where ziz_i ranges over the KK-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|. Then the max-margin direction is w⋆∝(a,0K,(bj)j∈U)w^{\star}\propto(a,0_K,(b_j)_{j\in U}).

In both regimes a point of flip group GFG_F is classified correctly if and only if (iff) MK(F)>0M_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⁡FMK(F)=sc−∑j∈Usj\min_F M_K(F)=s_c-\sum_{j\in U}s_j, attained at every F⊇UF\supseteq U, is strictly increasing in KK. Hence WGA is non-decreasing in coverage. The same holds if the core is intact only with probability ptest∈(0,1]p_{\mathrm{test}}\in(0,1] at test time.

(b) (Whac-a-Mole.) Let j∈U∖Fj\in U\setminus F, so that jj is uncovered and aligned on GFG_F. Covering jj lowers the margin of GFG_F by sjs_j. It turns GFG_F from correct to incorrect iff 0<MK(F)≤sj0<M_K(F)\le s_j.

The mechanism in (b) is loss of accidental support: before it is covered, the aligned shortcut jj helps outvote the flipped shortcuts in FF. 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<MK(F)≤sj0<M_K(F)\le 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 sc>∑j∈Usjs_c>\sum_{j\in 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 scs_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).

(i) Logistic regime. The minimizer is as in Theorem 1(i), except that wc⋆=λ(pδ)/aw_c^{\star}=\lambda(p_\delta)/a with pδ=p(1−δ)+(1−p)δp_\delta=p(1-\delta)+(1-p)\delta. All flip groups are correct iff δ<δ⋆\delta<\delta^{\star}, where

δ⋆=p−σ(RU)2p−1,RU=∑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)}

and σ\sigma is the logistic function. Here δ⋆>0\delta^{\star}>0 iff coverage is sufficient (Theorem 3), and δ⋆\delta^{\star} increases as UU shrinks.

(ii) Max-margin regime. Let U≠∅U\ne\varnothing. Suppose the sample contains a false accept with KK-pattern zz and a genuine edit with pattern −z′-z'. Then the max-margin direction is w⋆∝(0,0K,(bj)j∈U)w^{\star}\propto(0,0_K,(b_j)_{j\in U}), a pure shortcut classifier (accuracy 0 on GUG_U). If U=∅U=\varnothing, the sample is not linearly separable.

Part (i) gives a closed-form error budget for the validator, which grows with coverage.

References

  1. [1]Angelopoulos, A. N., Bates, S., Fannjiang, C., Jordan, M. I., and Zrnic, T. (2023). Prediction-powered inference. Science, 382(6671):669–674.arxiv.org/abs/2301.09633
  2. [2]Arjovsky, M., Bottou, L., Gulrajani, I., and Lopez-Paz, D. (2019). Invariant risk minimization. arXiv preprint arXiv:1907.02893.arxiv.org/abs/1907.02893
  3. [3]Bai, R., Ji, Y., Zhou, Z., and Inouye, D. I. (2025). From invariant representations to invariant data: Provable robustness to spurious correlations via noisy counterfactual matching. CoRR, abs/2505.24843.
  4. [4]Creager, E., Jacobsen, J., and Zemel, R. (2021). Environment inference for invariant learning. In Proceedings of the 38th International Conference on Machine Learning (ICML), volume 139 of Proceedings of Machine Learning Research, pages 2189–2200. PMLR.
  5. [5]Dunlap, L., Umino, A., Zhang, H., Yang, J., Gonzalez, J. E., and Darrell, T. (2023). Diversify your vision datasets with automatic diffusion-based augmentation. In Advances in Neural Information Processing Systems (NeurIPS), volume 36, pages 79024–79034.
  6. [7]Gao, I., Sagawa, S., Koh, P. W., Hashimoto, T., and Liang, P. (2023). Out-of-domain robustness via targeted augmentations. In Proceedings of the 40th International Conference on Machine Learning (ICML), volume 202 of Proceedings of Machine Learning Research, pages 10800–10834. PMLR.
  7. [8]Geirhos, R., Jacobsen, J., Michaelis, C., Zemel, R., Brendel, W., Bethge, M., and Wichmann, F. A. (2020). Shortcut learning in deep neural networks. Nature Machine Intelligence, 2(11):665–673.
  8. [10]Idrissi, B. Y., Arjovsky, M., Pezeshki, M., and Lopez-Paz, D. (2022). Simple data balancing achieves competitive worst-group-accuracy. In Proceedings of the First Conference on Causal Learning and Reasoning (CLeaR), volume 177 of Proceedings of Machine Learning Research, pages 336–351. PMLR.
  9. [11]Ilse, M., Tomczak, J. M., and Forré, P. (2021). Selecting data augmentation for simulating interventions. In Proceedings of the 38th International Conference on Machine Learning (ICML), volume 139 of Proceedings of Machine Learning Research, pages 4555–4562. PMLR.
  10. [12]Joshi, N. and He, H. (2022). An investigation of the (in)effectiveness of counterfactually augmented data. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3668–3681. Association for Computational Linguistics.
  11. [13]Kamath, P., Tangella, A., Sutherland, D. J., and Srebro, N. (2021). Does invariant risk minimization capture invariance? In Proceedings of the 24th International Conference on Artificial Intelligence and Statistics (AISTATS), volume 130 of Proceedings of Machine Learning Research, pages 4069–4077. PMLR.
  12. [14]Kaushik, D., Hovy, E., and Lipton, Z. C. (2020). Learning the difference that makes a difference with counterfactually-augmented data. In International Conference on Learning Representations (ICLR). Khani, F. and Liang, P. (2021). Removing spurious features can hurt accuracy and affect groups disproportionately. In Proceedings of the 2021 ACM Conference on Fairness, Accountability, and Transparency (FAccT), pages 196–205. ACM.
  13. [16]Kirichenko, P., Izmailov, P., and Wilson, A. G. (2023). Last layer re-training is sufficient for robustness to spurious correlations. In International Conference on Learning Representations (ICLR).arxiv.org/abs/2204.02937
  14. [17]Krizhevsky, A. (2009). Learning multiple layers of features from tiny images. Technical report, University of Toronto.
  15. [19]Lin, Y., Zhu, S., Tan, L., and Cui, P. (2022). ZIN: When and how to learn invariance without environment partition? In Advances in Neural Information Processing Systems (NeurIPS), volume 35, pages 24529–24542.arxiv.org/abs/2203.05818
  16. [20]Liu, E. Z., Haghighat, B., Chen, A. S., Raghunathan, A., Koh, P. W., Sagawa, S., Liang, P., and Finn, C. (2021). Just train twice: Improving group robustness without training group information. In Proceedings of the 38th International Conference on Machine Learning (ICML), volume 139 of Proceedings of Machine Learning Research, pages 6781–6792. PMLR.arxiv.org/abs/2107.09044
  17. [21]Lynch, A., Dovonon, G. J., Kaddour, J., and Silva, R. (2023). Spawrious: A benchmark for fine control of spurious correlation biases. arXiv preprint arXiv:2303.05470.arxiv.org/abs/2303.05470
  18. [22]Makar, M., Packer, B., Moldovan, D., Blalock, D., Halpern, Y., and D’Amour, A. (2022). Causally motivated shortcut removal using auxiliary labels. In Proceedings of the 25th International Conference on Artificial Intelligence and Statistics (AISTATS), volume 151 of Proceedings of Machine Learning Research, pages 739–766. PMLR.arxiv.org/abs/2105.06422
  19. [23]McCoy, R. T., Pavlick, E., and Linzen, T. (2019). Right for the wrong reasons: Diagnosing syntactic heuristics in natural language inference. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 3428–3448. Association for Computational Linguistics.arxiv.org/abs/1902.01007
  20. [24]Nagarajan, V., Andreassen, A., and Neyshabur, B. (2021). Understanding the failure modes of out-of-distribution generalization. In International Conference on Learning Representations (ICLR).arxiv.org/abs/2010.15775
  21. [25]Prabhu, V., Yenamandra, S., Chattopadhyay, P., and Hoffman, J. (2023). LANCE: Stress-testing visual models by generating language-guided counterfactual images. In Advances in Neural Information Processing Systems (NeurIPS), volume 36, pages 25165–25184.arxiv.org/abs/2305.19164
  22. [26]Puli, A., Zhang, L., Wald, Y., and Ranganath, R. (2023). Don’t blame dataset shift! Shortcut learning due to gradients and cross entropy. In Advances in Neural Information Processing Systems (NeurIPS), volume 36, pages 71874–71910.arxiv.org/abs/2308.12553
  23. [27]Qiu, S., Potapczynski, A., Izmailov, P., and Wilson, A. G. (2023). Simple and fast group robustness by automatic feature reweighting. In Proceedings of the 40th International Conference on Machine Learning (ICML), volume 202 of Proceedings of Machine Learning Research, pages 28448–28467. PMLR.arxiv.org/abs/2306.11074
  24. [28]Sagawa, S., Koh, P. W., Hashimoto, T. B., and Liang, P. (2020). Distributionally robust neural networks for group shifts: On the importance of regularization for worst-case generalization. In International Conference on Learning Representations (ICLR).arxiv.org/abs/1911.08731
  25. [29]Shah, H., Tamyuly, K., Raghunathan, A., Jain, P., and Netrapalli, P. (2020). The pitfalls of simplicity bias in neural networks. In Advances in Neural Information Processing Systems (NeurIPS), volume 33, pages 9573–9585.arxiv.org/abs/2006.07710
  26. [30]Soudry, D., Hoffer, E., Nacson, M. S., Gunasekar, S., and Srebro, N. (2018). The implicit bias of gradient descent on separable data. Journal of Machine Learning Research, 19(70):1–57.arxiv.org/abs/1710.10345
  27. [31]Veitch, V., D’Amour, A., Yadlowsky, S., and Eisenstein, J. (2021). Counterfactual invariance to spurious correlations in text classification. In Advances in Neural Information Processing Systems (NeurIPS), volume 34, pages 16196–16208.
  28. [32]von Kügelgen, J., Sharma, Y., Gresele, L., Brendel, W., Schölkopf, B., Besserve, M., and Locatello, F. (2021). Self-supervised learning with data augmentations provably isolates content from style. In Advances in Neural Information Processing Systems (NeurIPS), volume 34, pages 16451–16467.arxiv.org/abs/2106.04619
  29. [33]Wah, C., Branson, S., Welinder, P., Perona, P., and Belongie, S. (2011). The Caltech-UCSD Birds-200-2011 dataset. Technical Report CNS-TR-2011-001, California Institute of Technology.
  30. [34]Wiles, O., Albuquerque, I., and Gowal, S. (2022). Discovering bugs in vision models using off-the-shelf image generation and captioning. arXiv preprint arXiv:2208.08831. NeurIPS 2022 ML Safety Workshop.arxiv.org/abs/2208.08831
  31. [36]Yang, Y., Gan, E., Dziugaite, G. K., and Mirzasoleiman, B. (2024). Identifying spurious biases early in training through the lens of simplicity bias. In Proceedings of the 27th International Conference on Artificial Intelligence and Statistics (AISTATS), volume 238 of Proceedings of Machine Learning Research, pages 2953–2961. PMLR.arxiv.org/abs/2305.18761
  32. [37]Zheng, G., Ye, W., and Zhang, A. (2025). Shortcut-Probe: Probing prediction shortcuts for learning robust models. In Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence (IJCAI), pages 7146–7154.arxiv.org/abs/2505.13910
  33. [38]Zheng, J. and Makar, M. (2022). Causally motivated multi-shortcut identification and removal. In Advances in Neural Information Processing Systems 35 (NeurIPS).DOI
  34. [39]Zhou, B., Lapedriza, A., Khosla, A., Oliva, A., and Torralba, A. (2018). Places: A 10 million image database for scene recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 40(6):1452–1464.DOI

Paper details

vlnc:W_s5bkd3ax
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

generative artificial intelligence (AI) tools (LLM assistants, including agentic coding assistants)

View statement
Looking for related papers…
Contents