Reactive Model Correction: Mitigating Harm to Task-Relevant Features via Conditional Bias Suppression

Dilyara Bareeva, Maximilian Dreyer, Frederik Pahde, Wojciech Samek, Sebastian Lapuschkin

Introduction: The "Sledgehammer" Problem in Model Correction

Deep Neural Networks (DNNs) frequently rely on "shortcuts"—spurious correlations between task-irrelevant artifacts and target labels. For instance, a model might learn to identify a horse primarily by the presence of hurdles in the background. In high-stakes domains like medical imaging, this is particularly dangerous; a skin cancer classifier might base its diagnosis on the presence of a surgical marker or a band-aid rather than the lesion itself.

Existing "post-hoc" methods attempt to fix this by identifying the mathematical representation of these artifacts in the model's latent space and suppressing them globally. However, these methods often act like a sledgehammer. Because features are frequently "entangled" within a model's internal representations, suppressing a spurious feature (like a hurdle) can inadvertently damage the model's ability to recognize legitimate features (like the stripes of a zebra), leading to significant performance degradation on clean data.

Conceptual comparison between conventional global correction and the proposed reactive approach. R-ClArC applies corrections only when specific conditions are met, preventing collateral damage to clean samples.

Methodology: The Reactive "Scalpel"

To address this collateral damage, this research introduces Reactive Model Correction (R-ClArC). Unlike global methods that apply suppression to every input, R-ClArC uses a "scalpel" approach, triggering corrections only when specific conditions suggest the model is likely to be led astray by a shortcut.

The researchers build upon P-ClArC (Projective Class Artifact Compensation), which uses Concept Activation Vectors (CAVs) to project model activations onto a space where the artifact concept is invisible. R-ClArC refines this by introducing a condition-generating function. The correction is only activated if:

  1. Class-conditional: The model predicts a class known to be associated with the artifact (e.g., only correcting if the model predicts "horse").
  2. Artifact-conditional: A secondary, lightweight classifier detects the actual presence of the artifact in the input image.

By combining these triggers, the model preserves its original reasoning for clean images while selectively mitigating bias only when necessary.

Experimental Validation

The authors evaluated R-ClArC across synthetic and real-world datasets:

  • FunnyBirds: A synthetic dataset where specific background objects (shortcuts) or "green boxes" (backdoors) were used to force misclassifications.
  • ISIC2019: A real-world medical dataset for skin cancer detection containing natural artifacts like band-aids, skin markers, and light reflections.

Key Results and Visualization

The results demonstrate a dramatic improvement in preserving model utility. In the FunnyBirds shortcut task, global P-ClArC caused clean sample accuracy to plummet to 40.1% (ResNet18), whereas R-ClArC maintained an accuracy of 97.6%.

Qualitative analysis using Layer-wise Relevance Propagation (LRP) heatmaps confirms these findings. As shown in the visualization below, global correction (P-ClArC) often suppresses the relevance of the actual lesion in medical images. In contrast, R-ClArC successfully ignores the artifacts while keeping the model's "focus" on the task-relevant features.

LRP heatmaps for skin lesion classification. While global P-ClArC often suppresses task-relevant features (the lesion), R-ClArC maintains focus on the lesion while successfully ignoring spurious artifacts like skin markers or reflections.

Conclusion

By moving from global to reactive corrections, this work provides a path toward AI models that are both robust against shortcuts and reliable on clean, real-world data. R-ClArC demonstrates that we do not need to "fix" a model's bias if that bias isn't being triggered, thereby avoiding the unnecessary noise and distortion introduced by traditional post-hoc methods.

Summary updated

BibTeX
@inproceedings{bareeva2024reactive,
  author = {Dilyara Bareeva and Maximilian Dreyer and Frederik Pahde and Wojciech Samek and Sebastian Lapuschkin},
  title = {{Reactive Model Correction: Mitigating Harm to Task-Relevant Features via Conditional Bias Suppression}},
  booktitle = {Workshops @ CVPR},
  year = {2024},
}
Figure