Text-to-Image Models for Counterfactual Explanations: a Black-Box Approach
Authors:
- 3 January 2024
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 4745-4755
Abstract
This paper addresses the challenge of generating Counterfactual Explanations (CEs), involving the identification and modification of the fewest necessary features to alter a classifier’s prediction for a given image. Our proposed method, Text-to-Image Models for Counterfactual Explanations (TIME), is a black-box counterfactual technique based on distillation. Unlike previous methods, this approach requires solely the image and its prediction, omitting the need for the classifier’s structure, parameters, or gradients. Before generating the counterfactuals, TIME introduces two distinct biases into Stable Diffusion in the form of textual embeddings: the context bias, associated with the image’s structure, and the class bias, linked to class-specific features learned by the target classifier. After learning these biases, we find the optimal latent code applying the classifier’s predicted class token and regenerate the image using the target embedding as conditioning, producing the counterfactual explanation. Extensive empirical studies validate that TIME can generate explanations of comparable effectiveness even when operating within a black-box setting.Keywords
All Related Versions
This publication has 35 references indexed in Scilit:
- Diffusion Models for Counterfactual Explanations2023
- BlobGAN: Spatially Disentangled Scene Representations2022
- STEEX: Steering Counterfactual Explanations with Semantics2022
- A Peek Into the Reasoning of Neural Networks: Interpreting with Structural Visual Concepts2021
- MaskGAN: Towards Diverse and Interactive Facial Image Manipulation2020
- BDD100K: A Diverse Driving Dataset for Heterogeneous Multitask Learning2020
- Interpretable and Accurate Fine-grained Recognition via Region Grouping2020
- Interpretable Convolutional Neural Networks2018
- Densely Connected Convolutional Networks2017
- ImageNet: A large-scale hierarchical image database2009