Do ImageNet-trained models learn shortcuts? The impact of frequency shortcuts on generalization

Shunxin Wang, R. Veldhuis, Nicola Strisciuglio
3/1/2025

No confident code implementation found for this paper.

Abstract

Frequency shortcuts refer to specific frequency patterns that models heavily rely on for correct classification. Previous studies have shown that models trained on small image datasets often exploit such shortcuts, potentially impairing their generalization performance. However, existing methods for identifying frequency shortcuts require expensive computations and become impractical for analyzing models trained on large datasets. In this work, we propose the first approach to more efficiently analyze frequency shortcuts at a large scale. We show that both CNN and transformer models learn frequency shortcuts on ImageNet. We also expose that frequency shortcut solutions can yield good performance on out-of-distribution (OOD) test sets which largely retain texture information. However, these shortcuts, mostly aligned with texture patterns, hinder model generalization on rendition-based OOD test sets. These observations suggest that current OOD evaluations often overlook the impact of frequency shortcuts on model generalization. Future benchmarks could thus benefit from explicitly assessing and accounting for these shortcuts to build models that generalize across a broader range of OOD scenarios. Codes are available at https://github.com/nis-research/hfss.

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{wang2025imagenettrained,
  title  = {Do ImageNet-trained models learn shortcuts? The impact of frequency shortcuts on generalization},
  author = {Shunxin Wang and R. Veldhuis and Nicola Strisciuglio},
  year   = {2025},
  eprint = {2503.03519},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2503.03519},
  journal = {CVPR 2025 2025}
}

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/2503.03519.svg)](https://codeofpaper.com/paper/2503.03519)

Discussion