arXiv:2610.29508cs.LGOct 2026

Manuscript Offprint

arXiv:2610.29508

Shortcut-Resistant CAM Distillation for Long-Tailed Recognition

Wenhai Wan, Teng Zhang, Shao-Yuan Li, Xinrui Wang, Qiang-Sheng Hua, Songcan Chen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Real-world datasets often follow a long-tailed distribution, making generalization to tail classes difficult. We revisit this problem through the lens of shortcut learning, where models prefer the easiest predictive cues (e.g., background or textures) over object-centric semantics, especially under scarce and biased supervision. We find that this tendency is amplified for tail classes: limited examples often share similar contexts, making non-semantic signals highly correlated and thus tempting shortcuts, whereas head classes with diverse appearances and environments encourage more stable object-focused representations. Motivated by this observation, we propose Shortcut-Resistant CAM Distillation (SRCD), a plug-and-play framework that transfers object-focused explanations from head to tail classes. SRCD operates in the Class Activation Map (CAM) space, where a CAM provides a class-specific spatial evidence map for a prediction. SRCD aggregates CAMs from a small set of head-class candidates into a shortcut-resistant teacher using an energy-model weighting based on coherence and concentration, and distills it to the tail-class CAM. We provide a theoretical analysis that quantifies shortcut reliance as shortcut-region evidence mass in CAM space and shows that SRCD suppresses tail shortcuts. Extensive experiments on long-tailed benchmarks consistently improve strong baselines. The code is available at https://github.com/Haifeng3/SRCD.

Figure

Figure 1. Shortcut learning in long-tailed recognition visualized by CAMs. For a head-class example (Tench), the model attends to the object region, while for a tail-class example (Speedboat), attention drifts to spurious cues (e.g., ocean background), leading to shortcut-dominated predictions and degraded tail generalization.

1. Introduction

In recent years, deep neural networks have become the dominant paradigm for visual recognition, enabling strong performance across a wide range of tasks such as image classification (He et al., 2016), medical image analysis (Ronneberger et al., 2015), and object detection (Ren et al., 2015). However, much of this progress implicitly relies on large-scale and relatively balanced training data, which rarely matches the distributions encountered in real-world deployments. In practice, data often follows a long-tailed distribution (Zhang et al., 2023), where a few frequent categories dominate the dataset while most categories contain only a limited number of examples. Learning effectively under such imbalanced supervision has therefore become a central challenge in modern computer vision (Zhang et al., 2025).

Despite steady progress (Zhang et al., 2025), tail-class generalization remains brittle: gains on tail categories are often

1^{1}National Engineering Research Center for Big Data Technology and System 2^{2}School of Computer Science and Technology, Huazhong University of Science and Technology, Wuhan, China 3^{3}MIIT Key Laboratory of Pattern Analysis and Machine Intelligence 4^{4}College of Computer Science and Technology, Nanjing University of Aeronautics and Astronautics 5^{5}State Key Lab. for Novel Software Technology, Nanjing University 6^{6}the Joint Laboratory of Spatial intelligent Perception and Large Model Application 7^{7}Computer Vision Center, Spain. Correspondence to: Teng Zhang tengzhang@hust.edu.cn.

Proceedings of the 43rd43^{rd} International Conference on Machine Learning, Seoul, South Korea. PMLR 306, 2026. Copyright 2026 by the author(s).

modest, and performance can degrade sharply when tail supervision is scarce and biased. Fundamentally, the dominant challenge in long-tailed recognition is still tail data scarcity: with only a few labeled instances, predictors are hard to learn and easy to overfit. Building on this, we make a finer-grained observation: when examples are few, tail data is also more likely to be context-homogeneous (e.g., captured in similar environments), which can make non-semantic cues appear unusually reliable during training. Consequently, even improved optimization or calibration may not prevent the model from settling on undesirable decision rules for tail classes.

A useful lens is to view learning as selecting one explanation among many that fit the training labels equally well (Lee et al., 2023). Under limited supervision, models often favor the easiest explanations, giving rise to shortcut learning (Geirhos et al., 2020; Hermann et al., 2024): instead of discovering object-centric semantics, they may rely on non-semantic yet predictive signals such as background context or characteristic textures. In generic spurious-correlation settings (Ye et al., 2024), such shortcuts are typically attributed to distribution bias in the data. In long-tailed recognition, however, shortcut reliance can be further amplified by scarcity: scarce supervision encourages overfitting to accidental correlations, and the accompanying context homogeneity makes these spurious cues appear pseudo-stable within the training set. This scarcity-bias interaction makes shortcuts particularly tempting for minimizing training loss, yet especially harmful for tail generalization.

This mechanism creates a systematic head–tail gap. Head categories contain diverse instances and environments, weakening the reliability of spurious cues and encouraging the model to focus on stable object evidence. In contrast, tail categories often exhibit strong contextual bias across their few examples, making it easier for the model to “explain” them using shortcuts. To make this behavior visible, we use Class Activation Maps (CAMs) (Zhou et al., 2016), which provide a spatial attribution by highlighting image regions that contribute most to a class prediction. As shown in Figure 1, for a head-class example (Tench), the CAM concentrates on the object region, indicating meaningful object cues. For a tail-class example (Speedboat), scarce and biased supervision makes the ocean background a strong correlate; learning such context is substantially easier than learning the object itself. Consequently, attention drifts toward shortcut cues, leading to shortcut-dominated recognition and systematically poor tail generalization.

Motivated by these observations, we propose Shortcut-Resistant CAM Distillation (SRCD). Different from prior head-to-tail transfer (Li et al., 2024) that propagates knowledge in the feature/logit space, we intervene at the evidence level to encourage learning object-centric cues that are essential for tail recognition. Intuitively, since head classes are trained with abundant and diverse examples, their CAMs are more likely to reflect stable object evidence rather than spurious shortcuts. SRCD constructs a shortcut-resistant teacher for each tail sample by aggregating CAMs from a small set of predicted head-class candidates, and distills it to the tail-class CAM. To ensure reliability, SRCD assigns each candidate a lightweight weight based on coherence (Laplacian smoothness) and concentration (Hoyer sparsity), discouraging fragmented or overly diffuse explanations. SRCD is plug-and-play and can be seamlessly combined with existing long-tailed learning methods to further reduce shortcut reliance and improve tail generalization.

Our contributions are three-fold:

• We revisit long-tailed recognition from a shortcut-learning perspective and identify a systematic head–tail gap where tail classes are more prone to shortcut-dominated attention.

• We propose SRCD, a simple and compatible CAM distillation strategy that transfers object-focused explanations from head to tail classes.

• We provide theoretical support and extensive experiments showing that SRCD effectively suppresses shortcut reliance and consistently improves performance on long-tailed benchmarks.