Distance-Aware eXplanation Based Learning

Misgina Tsighe Hagos, Niamh Belton, Kathleen M. Curran, Brian Mac Namee · DOI

Introduction

Deep learning models frequently achieve high performance by exploiting spurious correlations—background artifacts or "confounders"—rather than learning the actual features of the object of interest. This phenomenon, known as the "Clever Hans" effect, is particularly problematic in high-stakes domains like medical imaging, where a model might classify a disease based on a hospital watermark or specific equipment rather than clinical pathology.

To address this, researchers have developed eXplanation Based Learning (XBL), which incorporates human feedback into the training process to steer models away from irrelevant features. However, traditional XBL methods often rely on binary penalties: they penalize a model if its attention overlaps with a forbidden region. This paper introduces XBL-D (Distance-Aware eXplanation Based Learning), a framework that replaces rigid binary constraints with a spatial, distance-aware penalty to provide a smoother and more effective learning signal.

The XBL-D Framework

The core innovation of XBL-D is the integration of spatial context into the model's loss function. While standard XBL treats images as collections of independent pixels, XBL-D acknowledges the geometric relationship between the model's focus and the target object.

1. Distance-Aware Loss ($L_{expl}$)

Instead of a simple overlap check, XBL-D calculates the Euclidean distance between the model's incorrect attention—identified via Gradient-weighted Class Activation Mapping (Grad-CAM)—and the center of gravity of the actual object. By penalizing the model based on how far its focus deviates from the ground truth, the framework provides a gradient that encourages the model to progressively shift its attention toward the correct features. This "soft" penalty recognizes incremental progress that binary losses would ignore.

2. Grad-CAM Integration

The method utilizes Grad-CAM to generate saliency maps during the training phase. These maps represent the regions the model prioritizes for its classification decisions. By applying the distance-aware loss to these maps, the training process actively reshapes the model's internal representations.

3. Activation Recall (AR)

In addition to the methodology, the authors propose a more robust evaluation framework. Traditional metrics like Activation Precision (AP) measure how much of a model's explanation is "clean" (i.e., not focused on confounders). The authors introduce Activation Recall (AR), which measures how much of the actual ground-truth object the model has successfully identified. Evaluating both AP and AR across multiple thresholds offers a more comprehensive view of model interpretability than single-threshold benchmarks.

Experimental Setup

The researchers evaluated XBL-D using "decoyed" versions of standard datasets, where artificial confounding pixels (4x4 or 16x16 artifacts) were added to corners to provide a shortcut for the model. The datasets included:

  • Decoy Fashion MNIST
  • Decoy CIFAR-10
  • Decoy MS-COCO (2): A subset focusing on "Train" and "Zebra" categories.

To test if the models truly learned the objects, the test sets were kept "clean" (free of artifacts), forcing the models to rely on intrinsic features rather than the decoy shortcuts.

Key Insights and Results

XBL-D demonstrated a significant ability to "unlearn" spurious correlations, outperforming both unrefined models and the previous state-of-the-art method, "Right for the Right Reasons" (RRR).

  • Superior Accuracy: On the clean Decoy MS-COCO test set, XBL-D achieved 93.8% accuracy, a substantial improvement over RRR (85.3%) and the unrefined baseline (84.5%).
  • Enhanced Interpretability: Visual analysis of saliency maps showed that XBL-D produced much tighter, more focused attention on the actual objects (e.g., the zebra) compared to baseline models, which remained distracted by image corners.
  • Robust Metrics: XBL-D consistently scored higher on both Activation Recall and Activation Precision across various thresholds, proving that it is more consistently "right for the right reasons."

Limitations and Future Directions

While XBL-D represents a significant step forward, several challenges remain. The method currently requires ground-truth masks for both objects and confounders during the refinement phase, which can be labor-intensive to produce for large-scale real-world datasets. Additionally, the reliance on Grad-CAM means the explanations are relatively coarse; future work may explore higher-resolution saliency methods.

Finally, while synthetic decoys provide a controlled environment for testing, real-world confounders—such as lighting conditions or camera-specific noise—are often more subtle. Applying XBL-D to these natural, non-synthetic artifacts is a critical next step for the research.

Summary updated

BibTeX
@inproceedings{hagos2023distance,
  author = {Misgina Tsighe Hagos and Niamh Belton and Kathleen M. Curran and Brian Mac Namee},
  title = {{Distance-Aware eXplanation Based Learning}},
  booktitle = {ICTAI},
  year = {2023},
  url = {https://openreview.net/forum?id=Y7skuUTgF1},
}
Figure