Introduction
Machine learning models often rely on "spurious correlations"—shortcuts that hold true in training data but fail in the real world. For instance, a model might identify a cow by the presence of green grass rather than the animal's features. In this context, the grass is a nuisance: a feature correlated with the label that is not part of the actual semantics. Traditionally, mitigating these shortcuts requires expensive manual nuisance annotations or data from multiple environments. This paper proposes a third way: Nuisances via Negativa, a framework that uses semantic corruptions to build robust models without explicit nuisance labels.
Methodology: Nuisances via Negativa
The core philosophy of this approach is to define a nuisance by what it is not. By destroying the semantic signal while leaving potential nuisances intact, researchers can isolate the features that lead to biased decision-making.
Semantic Corruptions
The authors design transformations ($T(x)$) tailored to specific data modalities to eliminate "true" features:
- Vision (Patch Randomization): Shuffling small image patches destroys global shape (semantics) but preserves local textures and colors (nuisances).
- NLP (N-gram Randomization): Shuffling word order in Natural Language Inference (NLI) tasks destroys meaning while preserving lexical overlap shortcuts.
- Medical Imaging (ROI Masking): Masking the primary region of interest (e.g., the heart in cardiomegaly detection) forces the model to look at peripheral artifacts like scanner types.
B-SCAMs: Biased-model-based Spurious-Correlation Avoiding Methods
These corruptions power a two-stage training process:
- Train a Biased Model: A model is trained on the corrupted data. Since the semantics are removed, this model is forced to rely entirely on nuisances.
- Guide the Main Model: The biased model's predictions are used to adjust the training of a primary model. Samples that the biased model classifies easily are down-weighted, forcing the main model to focus on harder, truly semantic features.
Experimental Results
The framework was evaluated across three out-of-distribution (OOD) tasks: Waterbirds (vision), Chest X-rays (medical), and MNLI/HANS (NLP).
On the Waterbirds dataset, where background (water vs. land) is the nuisance, the proposed NURD method with Patch Randomization achieved 86.9% accuracy. This remarkably close performance to the "oracle" model (87.2%), which had access to actual background labels, highlights the effectiveness of the "negativa" approach.
In medical imaging, ROI-masking improved cardiomegaly detection accuracy to 78.7%, up from 65.3% for standard Empirical Risk Minimization (ERM). In NLP, N-gram corruption closed 84% of the performance gap between standard models and those with full nuisance knowledge.
Discussion and Implications
The authors provide theoretical grounding (Proposition 1), proving that a model trained with perfect semantic corruption is mathematically equivalent to one trained with perfect nuisance labels. This suggests that "knowing what isn't important" is as powerful as "knowing what is."
However, the method's success depends on the corruption's precision. If a corruption is too aggressive and destroys the nuisance along with the semantics, the biased model provides no useful signal. Conversely, if the semantic features are local (e.g., a bird's beak) and the corruption is global (e.g., large-scale shuffling), the biased model might still learn the semantics, failing to isolate the nuisance.
Conclusion
Nuisances via Negativa offers a scalable, intuitive path toward robust machine learning. By leveraging domain knowledge to "break" data in specific ways, researchers can automate the identification of spurious shortcuts, matching the performance of supervised methods without the associated annotation costs.
Summary updated