Gradient-Free Post-Hoc Explainability Using Distillation Aided Learnable Approach

Debarpan Bhattacharya, Amir H. Poorjam, Deepak Mittal, Sriram Ganapathy

TL;DR

The authors introduce DAX (Distillation Aided Explainability), a novel post-hoc, gradient-free framework that generates highly precise saliency maps for black-box AI models. By jointly training a mask-generation network and a local student distillation network, DAX bypasses the need for internal gradient access while significantly outperforming existing interpretability methods across both image and audio applications.

What Problem Does This Paper Address?

As massive foundation models (like GPT-4, Vision Transformers, or Whisper) become the norm, they are increasingly deployed as "black boxes" with only query (input-output) access. Understanding why these models make specific decisions is vital, especially in safety-critical domains like autonomous driving and healthcare.

Existing gradient-free Explainable AI (XAI) methods, such as LIME, typically rely on a "local linear approximation" to explain predictions. However, real-world decision boundaries are highly complex and non-linear. Furthermore, these methods often group pixels into coarse "superpixel" segments to reduce dimensionality, which leads to imprecise, blurry explanations. DAX addresses these gaps by providing pixel-level, non-linear local explanations without requiring internal model gradients or architecture details.

Methods

DAX frames explainability as a joint optimization problem using two small, non-linear networks trained on local perturbations of a given input sample:

  1. Mask Generation Network ($f_M$): Operates directly on the high-dimensional raw input space to learn a continuous multiplier mask that highlights the most salient regions.
  2. Student Distillation Network ($f_S$): Locally distills the black-box model by learning to mimic its outputs on perturbed versions of the input.

Because the black-box model's gradients are inaccessible, the student network serves as a differentiable proxy. This allows gradients to flow back and update the mask generation network. The total loss function balances mean squared error (MSE) of the predictions, a counterfactual or $L_1$ penalty to encourage mask sparsity, and a KL-divergence term to align the student's score distribution with the black box.

The DAX Framework Architecture

Datasets

The framework was validated across multiple modalities using the following datasets:

  • ImageNet: Used for pre-training the black-box Vision Transformer (ViT) and conducting qualitative analysis.
  • Pascal VOC (Visual Object Classes): Used for rigorous quantitative evaluation. The authors utilized the classification split (5,717 images) for fine-tuning and the segmentation split (1,464 images with human-annotated ground truth masks) to evaluate explanation accuracy.
  • ESC-10 (Environmental Sound Classification): A 10-class audio dataset used to evaluate the framework's performance on spectrograms.
  • Coswara: A biomedical dataset containing cough recordings, used to validate DAX's utility in diagnosing COVID-19 from respiratory sounds.

Key Insights and Ideas

  • Linearity is an Illusion: Traditional perturbation methods assume local decision boundaries are smooth and linear. The authors demonstrate that introducing even a mild non-linearity into the student proxy network drastically reduces approximation errors near complex boundaries.
  • Raw Feature Space vs. Subspaces: Instead of mapping explanations to low-dimensional superpixel segments (which discards fine-grained detail), DAX operates directly on the raw input space, leading to pixel-perfect saliency maps.
  • Joint Optimization Wins: Rather than distilling a proxy model first and then explaining it sequentially, optimizing the mask and the student network simultaneously yields significantly better alignment with ground-truth features.

Key Results

  • Higher Fidelity Saliency: On the Pascal VOC dataset using a ViT-b16 black-box, DAX (specifically the DAX-V3 variant using Segment Anything Model [SAM] for perturbations) achieved a 34.1% Mean IoU with human ground truth, substantially beating LIME (26.8%) and RISE (31.1%).
  • Better Deletion AUC: DAX achieved the lowest Deletion Area Under the Curve (0.302 for ViT, 0.298 for ResNet-101), proving that the regions it flags as important are truly critical to the black-box model's predictions.
  • Cross-Modal Success: In audio event classification (ESC-10), DAX achieved a 24.1% Mean IoU, outperforming all other model-agnostic gradient-free baselines.
  • Debugging Negative Samples: DAX demonstrated high sensitivity to incorrect predictions, showing a clear quantitative distinction (a 15.4% IoU difference) between positive and negative samples, making it a powerful tool for diagnosing model failures.
Visual comparison of different XAI methods on a strawberry image

Limitations and Future Work

While not explicitly detailed in a standalone section, two main limitations are apparent from the methodology:

  • Computational Cost: DAX requires generating and running thousands of local perturbations (e.g., 6,000 samples per image) through the black-box model to optimize the explanation for a single input. This makes it computationally intensive for real-time deployment.
  • Dependence on Segmentation: The performance of DAX relies heavily on the underlying segmentation algorithm (like Quick Shift or SAM) used to generate meaningful neighborhood samples. Future work could explore perturbation strategies that do not rely on upfront segmentation.

Summary updated

BibTeX
@article{bhattacharya2025gradient,
  author = {Debarpan Bhattacharya and Amir H. Poorjam and Deepak Mittal and Sriram Ganapathy},
  title = {{Gradient-Free Post-Hoc Explainability Using Distillation Aided Learnable Approach}},
  journal = {IEEE J. Sel. Top. Signal Process.},
  year = {2025},
  doi = {10.1109/jstsp.2024.3467914},
}
Figure