DEXTER: Diffusion-Guided EXplanations with TExtual Reasoning for Vision Models

Simone Carnemolla, Matteo Pennisi, Sarinda Samarasinghe, Giovanni Bellitto, Simone Palazzo, Daniela Giordano, Mubarak Shah, Concetto Spampinato

Abstract

DEXTER is a "data-free" framework designed to uncover the inner logic and hidden biases of visual AI models without requiring access to original training data. By pairing diffusion models with Large Language Models (LLMs), it generates synthetic images that "trigger" a classifier and produces detailed textual reports explaining the features—or spurious correlations—the model prioritizes. DEXTER bridges the interpretability gap by providing human-readable, text-based global explanations.

Introduction

Deep learning models are often criticized as "black boxes." While local explanation tools like Grad-CAM identify where a model looks in a specific image, understanding a model’s overall global strategy remains challenging. Existing global explanation methods typically suffer from data dependency, requiring proprietary training sets, and an interpretability gap, where techniques like Activation Maximization produce abstract visualizations difficult for humans to interpret. DEXTER addresses these issues by providing semantically grounded, data-free global explanations.

Methodology

DEXTER (Diffusion-Guided EXplanations with TExtual Reasoning) utilizes a three-stage pipeline to interrogate target vision models:

  1. Text Pipeline: The system optimizes a "soft prompt" to guide a frozen BERT model into selecting specific words that, when visualized, strongly activate the target classifier.
  2. Vision Pipeline: These optimized words are fed into Stable Diffusion to generate high-quality synthetic images. A key innovation is a translation matrix that bridges the vocabulary gap between BERT and CLIP, ensuring the process remains differentiable and stable.
  3. Reasoning Module: A Vision-Language Model (VLM) captions the synthetic images, and an LLM analyzes these captions to produce a "Bias Report," identifying whether the model relies on core features or spurious background correlations.
The DEXTER three-stage pipeline: Text Pipeline, Vision Pipeline, and Reasoning Module.

Experimental Evaluation

The framework was evaluated across benchmarks focused on fairness and interpretability:

  • SalientImageNet: Used to verify if generated explanations align with known "core" vs. "spurious" features.
  • Waterbirds & CelebA: Used for "slice discovery," identifying specific sub-groups where a model might perform poorly.
  • FairFaces: Used to evaluate the quality of textual bias reports regarding demographic groups.

Results and Discussion

DEXTER demonstrates superior interpretability and semantic alignment. In user studies, participants significantly preferred DEXTER’s conceptual explanations over prior methods like DiffExplainer. Quantitative metrics (CLIP-IQA) confirmed that DEXTER’s images were more semantically consistent with target classes (0.96) than previous diffusion-based explainers (0.90).

A key insight is the "Textual Bottleneck": by forcing image generation through text prompts, DEXTER prevents uninterpretable visualizations. For example, when auditing a model for "dog sleds," DEXTER revealed the model was actually identifying "snow," "trees," and "glaciers" rather than the sled itself.

Visual comparison of feature explanations across DEXTER, DiffExplainer, and Salient ImageNet.

Furthermore, DEXTER achieved state-of-the-art results in slice discovery, reaching a 91.3% worst-slice accuracy on CelebA, outperforming methods that utilized training data. LLM-generated reports also received high human ratings (~4.0/5.0) for clarity and helpfulness.

Conclusion

While DEXTER provides a powerful tool for data-free auditing, it faces computational costs, with prompt optimization taking approximately 10 minutes per class on high-end hardware. Additionally, the inherent biases of the underlying generative model (Stable Diffusion) must be considered. Future work aims to extend DEXTER to multimodal models and refine LLM reasoning for deeper causal insights.

Summary updated

BibTeX
@inproceedings{carnemolla2025dexter,
  author = {Simone Carnemolla and Matteo Pennisi and Sarinda Samarasinghe and Giovanni Bellitto and Simone Palazzo and Daniela Giordano and Mubarak Shah and Concetto Spampinato},
  title = {{DEXTER: Diffusion-Guided EXplanations with TExtual Reasoning for Vision Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=baBhSzaSHI},
}
Figure