Mitigating Shortcut Learning with InterpoLated Learning

Michalis Korakakis, Andreas Vlachos, Adrian Weller

Introduction

Standard machine learning models trained via Empirical Risk Minimization (ERM) are notoriously prone to "shortcut learning." This phenomenon occurs when a model latches onto simple, spurious correlations—such as word overlap in Natural Language Inference (NLI) or specific background textures in image recognition—rather than learning the underlying logic of the task. While these shortcuts often hold true for the majority of a training set, they fail catastrophically on "minority" examples or in out-of-distribution (OOD) settings where the correlation no longer exists.

Existing mitigation strategies frequently require "group labels" (prior knowledge of which examples contain shortcuts), are computationally intensive, or focus solely on the final classification layer. This paper introduces InterpoLL (InterpoLated Learning), an architecture-agnostic technique designed to weaken shortcut reliance by intervening directly in the model's internal representations without requiring prior knowledge of specific shortcuts.

The InterpoLL Framework

InterpoLL operates on the principle of "polluting" the representations of shortcut-heavy examples with features from examples that contradict those shortcuts. The method follows a multi-stage process:

1. Identifying the Minority

To target shortcuts without manual labeling, the authors employ a small, "under-parameterized" auxiliary model. Because this model lacks the capacity to learn complex logic, it primarily captures easy shortcuts. Examples that this weak model misclassifies are flagged as "minority" examples—data points that defy the dataset's dominant spurious correlations.

2. Targeted Interpolation

During the training of the primary learner model, InterpoLL intervenes when a "majority" example (one the auxiliary model found easy) is processed. The algorithm randomly selects a "minority" example from the same class and blends their internal representations.

3. Representation Blending

Instead of passing the raw features of the majority example to the classifier, InterpoLL creates a hybrid representation:

$$z_{interp} = (1 - \lambda) \cdot \text{Majority\_Features} + \lambda \cdot \text{Minority\_Features}$$

where $\lambda$ is a small mixing ratio. By watering down the shortcut signal in the majority examples, the model is forced to identify features that remain predictive across both original and blended representations. This pressure encourages the model to learn robust, task-relevant logic rather than brittle shortcuts.

Experimental Evaluation

The researchers evaluated InterpoLL across a diverse array of benchmarks and architectures to test its robustness and versatility.

  • Benchmarks: The study utilized NLI and fact verification sets (MNLI, FEVER, QQP), text classification tasks (FDCL18 hate speech, CivilComments-WILDS), and the GLUE-X domain generalization benchmark.
  • Architectures: To ensure the method was truly architecture-agnostic, tests were conducted on BERT (encoder), T5 (encoder-decoder), and GPT-2 (decoder-only) models.

Key Insights

Representation-Level Intervention

Unlike methods that simply re-weight the loss function, InterpoLL modifies the hidden states. Probing experiments confirmed that this approach significantly reduces the "extractability" of shortcut features from the model’s internal layers. Interestingly, the authors found that interpolating in the final layers of the encoder was most effective, suggesting that shortcuts are often represented as high-level semantic features.

Efficiency and Versatility

InterpoLL maintains a runtime comparable to standard ERM, avoiding the computational overhead of complex ensemble methods. Furthermore, the performance gains remained consistent across all tested architectures, proving its utility for modern transformer-based models.

Balanced Learning Dynamics

Models typically learn shortcuts early in training. InterpoLL fosters more balanced learning curves, where accuracy on both minority and majority examples improves synchronously, preventing the model from plateauing on easy patterns before it has learned the core task.

Results

InterpoLL consistently outperformed both standard ERM and state-of-the-art shortcut mitigation techniques:

  • NLI Tasks: Achieved a 3.9% improvement in OOD accuracy and a 4.2% boost on stress tests (e.g., HANS) compared to the next best method.
  • Text Classification: Improved minority group accuracy by an average of 4.2%.
  • Generalization: On the GLUE-X benchmark, InterpoLL improved average performance by 2.5% over ERM, demonstrating superior adaptation to entirely new domains.

Limitations and Future Work

While InterpoLL significantly improves robustness, it involves a slight trade-off in "In-Distribution" (ID) accuracy, as the model can no longer rely on shortcuts to achieve near-perfect scores on easy data. Additionally, the current study focused on English-language NLP. Future research will explore the applicability of InterpoLL to other languages and modalities, such as computer vision, and investigate whether the interpolation process inadvertently affects other useful, non-shortcut features.

Conclusion

InterpoLL provides a powerful, efficient, and label-free solution to the persistent problem of shortcut learning. By forcing models to reconcile majority shortcuts with minority counter-examples at the representation level, it paves the way for more reliable and generalizable AI systems.

Summary updated

BibTeX
@inproceedings{korakakis2025mitigating,
  author = {Michalis Korakakis and Andreas Vlachos and Adrian Weller},
  title = {{Mitigating Shortcut Learning with InterpoLated Learning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure