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

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

5 Mar 2025CVPR 2025 1arXiv:2503.03519archive 2025-07-28

Shunxin Wang, Raymond Veldhuis, Nicola Strisciuglio

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 larger 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.

PaperPDFConference PDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2503.03519")

Code

Syntology Ran 14 of 18 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 1 ran · honoured contract; 8 ran · our draft was wrong; 1 ran · fixture could not drive it; 4 ran with no contract checked.

By repository: found in paper text by Syntology: 18 samples from 1 repository, 14 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

nis-research/hfss found in paper text by Syntology report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 14 ran; 1 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
8ran · our draft was wrong
1ran · fixture could not drive it
4ran
4unverified

Licence: 0 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from nis-research/hfss. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

White_Mask nis-research/hfss/hfss/LSI.py found in paper text by Syntology ran MIT (permissive) · 93097b2e633389ff · report
dict_to_namedtuple nis-research/hfss/hfss/LSI.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · 7dade86e6e8016ce · report
filter nis-research/hfss/hfss/LSI.py found in paper text by Syntology ran · fixture could not drive it fingerprinted MIT (permissive) · 3609e233a3276554 · report
gen_freqs_list nis-research/hfss/hfss/LSI.py found in paper text by Syntology ran · honoured contract fingerprinted MIT (permissive) · 052937d76a92f757 · report
generate_mask nis-research/hfss/hfss/LSI.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · 2e0170b8a1504ca2 · report
get_candidates nis-research/hfss/hfss/LSI.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · f23b96953d0f71ed · report
get_dataloader nis-research/hfss/hfss/LSI.py found in paper text by Syntology ran MIT (permissive) · 302eb65e3d7d2b08 · report
get_next_subpolicy nis-research/hfss/hfss/LSI.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · 605bc1e05087f4bb · report
get_topn_subpolicies_classwise nis-research/hfss/hfss/LSI.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · 2d37e6f004585e77 · report
parse_args nis-research/hfss/hfss/LSI.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · ea5692df62e9082f · report
sample_frequency nis-research/hfss/hfss/LSI.py found in paper text by Syntology ran · our draft was wrong fingerprinted MIT (permissive) · 1eecfa5954a49671 · report
split_dataset nis-research/hfss/hfss/LSI.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · 5f913213824f631e · report
validate_child nis-research/hfss/hfss/LSI.py found in paper text by Syntology ran MIT (permissive) · ad6933c7dd4d745f · report
validate_classwise nis-research/hfss/hfss/LSI.py found in paper text by Syntology ran MIT (permissive) · 55e40597f228b3fc · report
LFSI nis-research/hfss/hfss/LSI.py found in paper text by Syntology unverified MIT (permissive) · 25d9b9da400444d3 · report
get_dataset nis-research/hfss/hfss/LSI.py found in paper text by Syntology unverified MIT (permissive) · afd66aeb8288064b · report
process_fn nis-research/hfss/hfss/LSI.py found in paper text by Syntology unverified MIT (permissive) · 2223e054c99bf8d0 · report
search_subpolicies nis-research/hfss/hfss/LSI.py found in paper text by Syntology unverified MIT (permissive) · 36874b7691bd1679 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections