Abstract
Deep Neural Networks (DNNs) often achieve high performance by exploiting spurious correlations, a phenomenon known as the "Clever Hans" effect. This paper introduces RR-ClArC (Right Reason Class Artifact Compensation), a post-hoc method designed to "unlearn" these biases. Unlike previous approaches that rely on manual input masks or indirect augmentation, RR-ClArC explicitly penalizes the network's sensitivity to specific bias directions within its latent space. By leveraging signal-based Concept Activation Vectors (CAVs) and gradient penalization, the method ensures models prioritize legitimate features over shortcuts, demonstrating superior performance across medical, facial, and general image datasets.
The Problem: Shortcuts and "Clever Hans" Predictors
DNNs are notorious for learning shortcuts—spurious correlations in training data that do not generalize to the real world. For instance, a model might identify "blonde hair" by detecting a "suit collar" if the training set is biased toward dark-haired men in suits. In high-stakes domains like medicine, these shortcuts can be life-threatening; a diagnostic model might detect skin cancer based on surgical markers rather than the lesion itself.
Existing post-hoc correction methods face significant hurdles. Input-level methods, such as Right for the Right Reasons (RRR), require labor-intensive, pixel-level segmentation masks for every biased image. Latent-space methods like A-ClArC often rely on activation augmentation, which acts as an indirect regularizer and lacks the precision for class-specific corrections.
Methodology: RR-ClArC
RR-ClArC operates in two primary stages to surgically remove bias from a pre-trained model:
1. Identifying the Bias Direction
The method utilizes Concept Activation Vectors (CAVs) to locate the vector in the model's latent layers representing the bias (e.g., the "collar" concept). A key contribution of this work is the shift from standard regression-based CAVs (like SVMs) to signal-CAVs. The authors demonstrate that traditional SVM-based vectors often point in sub-optimal directions due to noise, whereas signal-CAVs—based on the covariance between activations and the artifact—more accurately capture the bias direction.
2. Gradient Penalization
During a brief fine-tuning phase, a new loss term is introduced. This term calculates the gradient of the model's output with respect to its latent features and penalizes any component of that gradient aligning with the identified bias vector. This forces the model to become "blind" to that specific latent direction, effectively unlearning the shortcut while preserving the utility of other features.
Experimental Evaluation
The authors evaluated RR-ClArC across architectures (VGG-16, ResNet-18, EfficientNet-B0) and four diverse datasets: ISIC 2019 (skin lesions with steganography attacks), Bone Age (brightness shifts), ImageNet (digital timestamps), and CelebA (intrinsic correlation between collars and hair color).
Key Results
- Accuracy Restoration: On the Bone Age dataset, RR-ClArC restored accuracy from 49.8% (biased) to 77.7%, outperforming the previous state-of-the-art latent method, A-ClArC (69.0%).
- Handling Unlocalized Bias: RR-ClArC successfully mitigated unlocalized artifacts (like global color shifts) where input-level methods failed, raising biased-set accuracy in ISIC from 34.9% to 57.0%.
- Efficiency: The method is computationally efficient, adding only ~20% to training time per epoch, compared to the >70% increase required by input-gradient methods like RRR.
Discussion and Future Work
While RR-ClArC represents a significant step forward, several challenges remain. The success of the method depends on selecting the appropriate latent layer for CAV modeling; the authors currently favor the last convolutional layer, but optimal selection across different biases remains an open question. Additionally, the method requires freezing early layers to maintain bias vector stability, which may necessitate a second fine-tuning step on clean data to fully recover performance. Finally, the effectiveness of the penalization is tied to the alignment of the CAV; if a bias is deeply entangled with legitimate features, penalization could inadvertently impact core model performance.
Summary updated