NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Whac-A-Mole Dilemma: Shortcuts Come in Multiples Where Mitigating One Amplifies Others

Zhiheng Li, Ivan Evtimov, Albert Gordo, Caner Hazirbas, Tal Hassner, Cristian Canton-Ferrer, Chenliang Xu, Mark Ibrahim

TL;DR

Machine learning models are notorious for taking "shortcuts"—relying on unintended cues like backgrounds rather than the actual object. This paper reveals a "Whac-A-Mole" dilemma: in real-world data with multiple shortcuts, fixing one often inadvertently forces the model to rely even more heavily on others. To combat this, the authors introduce two new benchmarks (UrbanCars and ImageNet-W) and a novel, efficient method called Last Layer Ensemble (LLE) that mitigates multiple shortcuts simultaneously.

What Problem Does This Paper Address?

Deep learning models often achieve high accuracy by exploiting "spurious correlations"—statistical quirks in the training data that don't generalize to the real world (e.g., a model identifying a "cow" only when it sees green grass). While researchers have developed many techniques to "de-bias" models, most work assumes only a single shortcut exists.

In reality, images are messy and contain multiple shortcuts (texture, background, co-occurring objects). The authors argue that current mitigation strategies suffer from a "Whac-A-Mole" effect: when you suppress the model's ability to use the background as a shortcut, it simply pivots to another unintended cue, like a watermark or a specific texture, sometimes becoming even more reliant on that second shortcut than before.

The Whac-A-Mole effect: mitigating one shortcut (e.g., background) can inadvertently amplify another (e.g., co-occurring objects).

Methods

The authors propose Last Layer Ensemble (LLE), a simple yet effective strategy designed to handle multiple known shortcut types without requiring explicit "shortcut labels" for every image.

  1. Specialized Heads: Instead of training one model to be invariant to everything, LLE trains an ensemble of "last layers" (classification heads) on top of a shared, frozen feature extractor.
  2. Targeted Augmentations: Each head is trained using a specific data augmentation designed to break a particular shortcut (e.g., one head sees "style-transferred" images to ignore texture, another sees "background-swapped" images).
  3. Distributional Shift Classifier: At test time, a small auxiliary network predicts which "shift" or augmentation type the input image most closely resembles. It then uses these predictions to dynamically weight the outputs of the specialized heads.

This approach is computationally efficient because it only requires retraining the final linear layer of the network, making it applicable even to massive foundation models.

Datasets

The paper introduces two critical benchmarks to study multi-shortcut learning:

  • UrbanCars: A synthetic but photo-realistic dataset where the authors precisely control two shortcuts: the background (urban vs. country) and a co-occurring object (e.g., a fire hydrant appearing with urban cars).
  • ImageNet-W (Watermark): The authors discovered a pervasive "watermark shortcut" in the original ImageNet-1k dataset, particularly for the "carton" class. ImageNet-W is a new test set that overlays a transparent watermark on validation images to expose how much a model relies on this cue.
  • Existing Benchmarks: The study also utilizes ImageNet-9 (backgrounds), Stylized ImageNet (texture), and ImageNet-R (renditions) to evaluate multi-shortcut reliance in natural images.
Overview of shortcut mitigation and the creation of the ImageNet-W benchmark to expose watermark reliance.

Key Insights and Ideas

  • The Watermark Discovery: Even state-of-the-art foundation models like CLIP (trained on billions of images) are highly susceptible to the watermark shortcut. When a watermark is added to a non-carton image, models frequently flip their prediction to "carton."
  • Asynchronous Learning: Models don't learn all shortcuts at once. In UrbanCars, models tend to learn the background shortcut first, then the co-occurring object. This "staggered" learning makes it difficult for automated "pseudo-labeling" methods to identify and fix all biases at once.
  • The Failure of Standard Tools: Common regularization techniques like CutMix actually amplify background shortcuts. Because CutMix often leaves a large portion of the background intact while obscuring the object, it inadvertently teaches the model that the background is the more reliable signal.

Key Results

  • ImageNet-W Impact: Adding a watermark causes a 10.7% average drop in top-1 accuracy across various modern architectures. Some models, like ResNet-50, saw catastrophic drops of up to 26.7%.
  • Whac-A-Mole Evidence: On UrbanCars, using a mitigation method that only targeted the background shortcut caused the model's reliance on the co-occurring object shortcut to increase by over 2x compared to a standard baseline.
  • LLE Success: LLE consistently outperformed standard training and other mitigation methods. On ImageNet, LLE achieved the best multi-shortcut mitigation results across watermark, texture, and background benchmarks without the "Whac-A-Mole" trade-offs seen in other SOTA methods.

Limitations and Future Work

The primary limitation of LLE is that it requires researchers to know the types of shortcuts present (e.g., "I know texture and background are issues") to design the appropriate augmentations, even if they don't have specific labels for them. It cannot currently mitigate "unknown unknowns."

The authors suggest that future work should focus on "human-in-the-loop" systems to help identify these shortcut types early in the pipeline, and they call for a shift in the community away from the "single-shortcut" assumption toward more realistic, multi-shortcut evaluations.

Summary updated

BibTeX
@inproceedings{li2022whac,
  author = {Zhiheng Li and Ivan Evtimov and Albert Gordo and Caner Hazirbas and Tal Hassner and Cristian Canton-Ferrer and Chenliang Xu and Mark Ibrahim},
  title = {{A Whac-A-Mole Dilemma: Shortcuts Come in Multiples Where Mitigating One Amplifies Others}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure