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

Automatic Shortcut Removal for Self-Supervised Representation Learning

Matthias Minderer, Olivier Bachem, Neil Houlsby, Michael Tschannen

In the world of computer vision, Self-Supervised Learning (SSL) is highly sought after. It promises to train powerful AI models using vast, unlabelled datasets rather than relying on expensive, human-annotated images. However, there is a catch: neural networks are notoriously "lazy." Given a puzzle to solve, they will find the easiest way out—often by exploiting low-level "shortcuts" that have nothing to do with the actual semantic content of the image.

A team at Google Research recently published "Automatic Shortcut Removal for Self-Supervised Representation Learning," proposing an elegant, adversarial solution to this problem.

The Problem with Pretext Tasks

In SSL, models are trained on "pretext tasks"—for example, predicting how much an image has been rotated. The hope is that to solve this, the model must understand what a "dog" or a "car" looks like.

In reality, the model might just look for a tiny bit of chromatic aberration (color fringing caused by camera lenses) or a watermark in the corner to figure out the orientation. These are shortcuts. While they help the model solve the pretext task perfectly, they are useless for downstream tasks like identifying a disease in a medical scan or a pedestrian on a road.

Example of a shortcut removal

Until now, researchers fought shortcuts by hand-designing data augmentations—manually telling the model to ignore color or to crop images randomly. But we cannot manually anticipate every possible shortcut, especially in messy, uncurated data like video frames.

An Adversarial Solution: The Lens

To address this, the authors propose a general framework called Automatic Shortcut Removal. They introduce a second, lightweight network called a "lens" (specifically a U-Net architecture) that sits between the input image and the main feature extractor.

The Automatic Shortcut Removal framework

The framework operates on an adversarial dynamic:

  1. The Adversary: The lens's job is to slightly modify the image to make the pretext task as difficult as possible for the main model.
  2. The Constraint: To prevent the lens from just turning the image into static noise, it is trained with a reconstruction loss. It must make the task harder while keeping the modified image looking as close to the original as possible.
  3. The Result: This creates an arms race. The lens finds the easiest features the model is using to cheat and hides them. This forces the main model to ignore those low-level shortcuts and focus on higher-level semantic features (like the shape of a head or the presence of wheels) to solve the task.

Key Insights and Performance

The researchers validated their approach across several datasets, including CIFAR-10, ImageNet, YouTube-8M, and Places205. The results yielded several fascinating insights into how neural networks learn:

  • Shortcuts are Task-Specific: The lens reveals that what constitutes a shortcut depends entirely on the task. For a rotation task, the lens might hide the eyes of an animal. For a "Jigsaw" task (reordering shuffled patches), it might blur the edges where the patches meet.
  • A Diagnostic Window: By looking at the "difference image" (what the lens changed), researchers can actually see what the model was using to cheat. This provides a rare window into the black box of neural network training.
  • Shape over Texture: Human beings recognize objects primarily by shape, but standard AI models are often biased toward texture. The authors found that their lens method shifted the model's bias toward shape, making its reasoning more human-like.
  • Replacing Human Intuition: The lens automatically discovered augmentations that humans previously had to invent, such as color dropping or chroma blurring, without any manual intervention.

The lens consistently improved performance across tested pretext tasks. On ImageNet, it improved Rotation task accuracy from 46.6% to 48.6% and the Jigsaw task from 37.2% to 40.9%. Furthermore, on the uncurated YouTube-8M dataset, the lens recovered much of the performance lost to "dirty" data (like overlaid text and black bars), nearly matching the performance of models trained on highly curated datasets.

Limitations and Future Directions

While powerful, the approach has limitations. Training the lens adds computational overhead to the training process, even though the lens itself is lightweight. Additionally, balancing the hyperparameter that controls how much the lens is allowed to change the image requires careful tuning to avoid destroying useful information.

Finally, while the method significantly improved traditional pretext tasks, it did not provide a direct accuracy boost for newer contrastive methods like SimCLR on ImageNet—though it still improved the semantic quality of the learned features. Future work will likely explore how to better integrate automatic shortcut removal with the latest state-of-the-art contrastive learning techniques.

Summary updated

BibTeX
@inproceedings{minderer2020automatic,
  author = {Matthias Minderer and Olivier Bachem and Neil Houlsby and Michael Tschannen},
  title = {{Automatic Shortcut Removal for Self-Supervised Representation Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
  url = {https://openreview.net/forum?id=YXZM_JTdDbv},
}
Figure