Lune

ICLR2025Top-tier venue

Generative Classifiers Avoid Shortcut Solutions

Alexander Cong Li, Ananya Kumar, Deepak Pathak

Abstract

Discriminative approaches to classification often learn shortcuts that hold in-distribution but fail even under minor distribution shift. This failure mode stems from an overreliance on features that are spuriously correlated with the label. We show that classifiers based on class-conditional generative models avoid this issue by modeling all features, both causal and spurious, instead of mainly spurious ones. These generative classifiers are simple to train, avoiding the need for specialized augmentations, strong regularization, extra hyperparameters, or knowledge of the specific spurious correlations to avoid. We find that diffusion-based and autoregressive generative classifiers achieve state-of-the-art performance on standard image and text distribution shift benchmarks and reduce the impact of spurious correlations present in realistic applications, such as satellite or medical datasets. Finally, we carefully analyze a Gaussian toy setting to understand the data properties that affect when generative classifiers outperform discriminative ones.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Probabilistic Models
  • Your VAR Model is Secretly an Efficient and Explainable Generative Classifier cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • What "Not" to Detect: Negation-Aware VLMs via Structured Reasoning and Token Merging cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Beyond Objects: Contextual Synthetic Data Generation for Fine-Grained Classification cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Beyond Objects: Contextual Synthetic Data Generation for Fine-Grained Classification cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Beyond Objects: Contextual Synthetic Data Generation for Fine-Grained Classification cites Learning Transferable Visual Models From Natural Language Supervision
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites Language Models are Few-Shot Learners
  • Spurious-Aware Prototype Refinement for Reliable Out-of-Distribution Detection cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Spurious-Aware Prototype Refinement for Reliable Out-of-Distribution Detection cites Learning Transferable Visual Models From Natural Language Supervision
  • Learning Transferable Visual Models From Natural Language Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Learning Transferable Visual Models From Natural Language Supervision cites Language Models are Few-Shot Learners
  • GHOST: Hallucination-Inducing Image Generation for Multimodal LLMs cites High-Resolution Image Synthesis with Latent Diffusion Models
  • GHOST: Hallucination-Inducing Image Generation for Multimodal LLMs cites Learning Transferable Visual Models From Natural Language Supervision
  • GHOST: Hallucination-Inducing Image Generation for Multimodal LLMs cites Denoising Diffusion Probabilistic Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. Spurious-Aware Prototype Refinement for Reliable Out-of-Distribution DetectionReihaneh Zohrabi, Hosein Hasani, Mahdieh Soleymani Baghshah, Anna Rohrbach et al.NeurIPS 2025 · 6 citations
  2. GHOST: Hallucination-Inducing Image Generation for Multimodal LLMsAryan Yazdan Parast, Parsa Hosseini, Hesam Asadollahzadeh, Arshia Soltani Moakhar et al.ICLR 2026 · 4 citations
  3. Your VAR Model is Secretly an Efficient and Explainable Generative ClassifierYi-Chung Chen, David I. Inouye, Jing GaoICLR 2026 · 2 citations
  4. What "Not" to Detect: Negation-Aware VLMs via Structured Reasoning and Token MergingInha Kang, Youngsun Lim, Seonho Lee, Jiho Choi et al.ICLR 2026 · 1 citation
  5. Beyond Objects: Contextual Synthetic Data Generation for Fine-Grained ClassificationWilliam Yang, Xindi Wu, Zhiwei Deng, Esin Tureci et al.CVPR 2026 · 1 citation

Builds on21

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  3. Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
  4. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  5. High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations

Related papers

  1. Your Diffusion Model is Secretly a Zero-Shot ClassifierAlexander C. Li, Mihir Prabhudesai, Shivam Duggal, Ellis Brown et al.ICCV 2023 · 341 citations
  2. Towards Robust Classification Model by Counterfactual and Invariant Data GenerationChun-Hao Chang, George-Alexandru Adam, Anna GoldenbergCVPR 2021
  3. DDB: Diffusion Driven Balancing to Address Spurious CorrelationsAryan Yazdan Parast, Basim Azam, Naveed AkhtarICCV 2025 · 1 citation
  4. Are Images Indistinguishable to Humans Also Indistinguishable to Classifiers?Zebin You, Xinyu Zhang, Hanzhong Guo, Jingdong Wang et al.CVPR 2025
  5. Last Layer Re-Training is Sufficient for Robustness to Spurious CorrelationsPolina Kirichenko, Pavel Izmailov, Andrew Gordon WilsonICLR 2023 · 31 citations
Dusk over the sea between two cliffs drawn in fine vertical lines