Don't blame Dataset Shift! Shortcut Learning due to Gradients and Cross Entropy

Aahlad Puli, Lily H. Zhang, Yoav Wald, R. Ranganath
8/1/2023

No confident code implementation found for this paper.

Abstract

Common explanations for shortcut learning assume that the shortcut improves prediction under the training distribution but not in the test distribution. Thus, models trained via the typical gradient-based optimization of cross-entropy, which we call default-ERM, utilize the shortcut.

Show full abstract

However, even when the stable feature determines the label in the training distribution and the shortcut does not provide any additional information, like in perception tasks, default-ERM still exhibits shortcut learning. Why are such solutions preferred when the loss for default-ERM can be driven to zero using the stable feature alone? By studying a linear perception task, we show that default-ERM's preference for maximizing the margin leads to models that depend more on the shortcut than the stable feature, even without overparameterization. This insight suggests that default-ERM's implicit inductive bias towards max-margin is unsuitable for perception tasks. Instead, we develop an inductive bias toward uniform margins and show that this bias guarantees dependence only on the perfect stable feature in the linear perception task. We develop loss functions that encourage uniform-margin solutions, called margin control (MARG-CTRL). MARG-CTRL mitigates shortcut learning on a variety of vision and language tasks, showing that better inductive biases can remove the need for expensive two-stage shortcut-mitigating methods in perception tasks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{puli2023dont,
  title  = {Don't blame Dataset Shift! Shortcut Learning due to Gradients and Cross Entropy},
  author = {Aahlad Puli and Lily H. Zhang and Yoav Wald and R. Ranganath},
  year   = {2023},
  eprint = {2308.12553},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2308.12553},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.12553.svg)](https://codeofpaper.com/paper/2308.12553)

Discussion