From Hope to Safety: Unlearning Biases of Deep Models by Enforcing the Right Reasons in Latent Space

Maximilian Dreyer, Frederik Pahde, Christopher J. Anders, Wojciech Samek, Sebastian Lapuschkin · DOI

From Hope to Safety: Unlearning Biases of Deep Models by Enforcing the Right Reasons in Latent Space

Deep neural networks are often praised for their high accuracy, but they frequently act as "Clever Hans" predictors—achieving results by exploiting spurious correlations rather than learning the intended features. For instance, a model might classify a skin lesion as malignant based on the presence of a ruler in the image, or fail to identify blonde hair because the subject is wearing a suit collar. These shortcuts pose significant risks in safety-critical domains like medical diagnostics.

The RR-ClArC Framework

To address these biases, the authors propose RR-ClArC (Right Reason Class Artifact Compensation). Unlike previous methods that require labor-intensive pixel-level masking or rely on indirect latent augmentations, RR-ClArC explicitly penalizes the model's sensitivity to specific bias directions in the latent space.

Modeling bias via CAV: The authors use signal-CAVs to find a robust direction in the latent space that represents the bias concept.

The framework operates in two main stages:

  1. Modeling the Bias: The method identifies a "bias direction" in the latent space using Concept Activation Vectors (CAVs). The authors introduce signal-CAVs, which leverage the correlation between latent activations and concept labels. This approach is more robust than traditional SVM-based CAVs, which often point in sub-optimal directions due to noise.
  2. Gradient Penalization: Once the bias vector is identified, the model is fine-tuned with a loss term that penalizes the inner product between the output gradient and the bias vector. This forces the model to become "flat" or insensitive to that specific artifact, ensuring it ignores the bias while maintaining performance on relevant features.

Experimental Results and Visual Validation

The researchers evaluated RR-ClArC across diverse datasets, including skin lesion classification (ISIC 2019), bone age estimation, and facial attribute recognition (CelebA).

Correcting bias: LRP heatmaps show that RR-ClArC (bottom row) successfully ignores the collar artifact compared to the Vanilla and A-ClArC models, focusing instead on the hair.

Key findings include:

  • Superior Mitigation: On the Bone Age dataset, RR-ClArC improved accuracy on biased data from 49.8% to 77.7%, nearly reaching clean-data performance levels.
  • Direct Sensitivity Reduction: Using the TCAV metric, the authors demonstrated that RR-ClArC reduces the influence of biased concepts to near-neutral levels (0.5), whereas vanilla models often show high sensitivity (0.8+).
  • Visual Proof: Layer-wise Relevance Propagation (LRP) heatmaps confirm that after correction, the model's "attention" physically shifts away from artifacts (e.g., suit collars) and back to the features of interest (e.g., hair color).

Conclusion

RR-ClArC provides a sample-efficient and explicit way to "unlearn" biases. By targeting the gradient space rather than just activations, it offers a more direct path to ensuring models are "right for the right reasons." Future work will focus on automating layer selection for different bias types and extending this gradient-penalization approach to other domains like Natural Language Processing.

Summary updated

BibTeX
@inproceedings{dreyer2024from,
  author = {Maximilian Dreyer and Frederik Pahde and Christopher J. Anders and Wojciech Samek and Sebastian Lapuschkin},
  title = {{From Hope to Safety: Unlearning Biases of Deep Models by Enforcing the Right Reasons in Latent Space}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i19.30096},
}
Figure