Unlearning-based Neural Interpretations

Ching Lam Choi, Alexandre Duplessis, Serge Belongie

The Problem with Static Baselines in AI Explanations

To understand why a deep learning model makes a specific prediction—for instance, classifying an image as a "swan"—researchers frequently rely on gradient-based attribution methods like Integrated Gradients (IG). These methods calculate feature importance by comparing the input image to a "baseline" that supposedly represents the absence of features.

However, a critical flaw lies in how this baseline is traditionally defined. Standard practices use static images: a solid black square, a blurred version of the original, or random noise. These choices are far from neutral. A black baseline inherently assumes that dark pixels are unimportant, injecting a color bias. A blurred baseline assumes smooth textures are irrelevant, injecting a texture bias. These arbitrary, human-imposed assumptions cause models to accumulate irregular gradients, resulting in "noisy" explanation maps that are easily manipulated, fragile, and unrepresentative of the model's actual internal logic.

Introducing UNI: An Adaptive, Unlearning Approach

To address the pitfalls of static baselines, researchers propose UNI (Unlearning-based Neural Interpretations). UNI departs from static, one-size-fits-all baselines and instead computes an adaptive, model-specific baseline by leveraging the concept of machine unlearning.

The UNI methodology operates in three primary steps:

  1. Unlearning in Model Space: Instead of arbitrarily modifying the input image, UNI first "unlearns" the specific image from the model itself. By perturbing the trained model's weights in the direction of "steepest ascent" for that specific input, the model effectively forgets the features it originally used to classify the image.
  2. Activation Matching in Input Space: Next, the method finds a perturbation for the original image that produces the exact same internal activations as the newly "unlearned" model. This generates a baseline image that is visually tied to the original but is entirely "featureless" according to the model’s own internal logic.
  3. Path Attribution: Finally, this custom, debiased baseline is used in conjunction with Integrated Gradients. Because this baseline is situated close to the original image within the model's decision space, the path between them is smoother and more monotonic, yielding significantly cleaner gradients.
Conceptual illustration of unlearning in the model space to smooth decision boundaries.

Key Insights: Redefining "Absence"

A core philosophical shift in UNI is the realization that "feature absence" is highly subjective. A feature is only truly absent if the model itself no longer recognizes it. By utilizing unlearning, UNI defines absence based on the model's internal state rather than human intuition (e.g., assuming "black equals empty").

Furthermore, the unlearning process locally smooths the high-curvature decision boundaries of the neural network. This smoothing effect makes the resulting explanations far more stable and significantly less sensitive to tiny, imperceptible changes or adversarial noise in the input.

Experimental Validation and Results

The efficacy of UNI was evaluated across a diverse range of architectures and domains, including classic CNNs (ResNet-18, VGG-16), modern Vision Transformers (ViT, Swin-T, ConvNeXt), and even Large Language Models (Pythia-1b, GPT2-medium, Llama-3.2-1B) using activation patching.

Quantitative and Qualitative Superiority

  • Higher Faithfulness: Using the MuFidelity metric—which measures how well an explanation correlates with actual model behavior—UNI consistently outperformed standard IG, BlurIG, and DeepLIFT across almost all tested architectures.
  • Robustness to Attacks: Standard saliency maps are notoriously fragile; attackers can add imperceptible noise to an image to completely alter the explanation without changing the prediction. UNI demonstrated significantly higher robustness, maintaining consistent attributions even under adversarial pressure (achieving approximately 3x better Spearman correlation than competing methods).
  • Qualitative Clarity: Visually, UNI produces attribution maps that are tightly localized on the actual subject (e.g., the distinct features of a swan) while successfully ignoring the background noise that heavily plagues static baseline methods.
Comparison of attribution maps generated by standard baselines versus UNI.

Limitations and Future Directions

While UNI offers a massive leap forward in faithful model interpretation, it does come with computational overhead. Because it requires several steps of Projected Gradient Descent (PGD) to find the optimal baseline, it is slower than simple "one-shot" gradient calculations. Additionally, the method relies on hyperparameters like unlearning step size and perturbation budget, which may require tuning for highly specialized tasks.

Looking forward, applying unlearning at different granularities could allow researchers to audit various "levels" of a model's feature hierarchy, potentially bridging the gap between pixel-level importance and higher-level semantic concepts. Ultimately, UNI points to unlearning as a highly promising avenue for generating faithful, efficient, and robust AI interpretations.

Summary updated

BibTeX
@inproceedings{choi2025unlearning,
  author = {Ching Lam Choi and Alexandre Duplessis and Serge Belongie},
  title = {{Unlearning-based Neural Interpretations}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=PBjCTeDL6o},
}
Figure