Looking in the mirror: A faithful counterfactual explanation method for interpreting deep image classification models

Townim Faisal Chowdhury, Vu Minh Hieu Phan, Kewen Liao, Nanyu Dong, Minh-Son To +3 more
9/20/2025
cs.CV

No official code found. Best implementation: AIML-MED/Mirror-CFE (0 stars, MIT, last commit 2026-01-18).

Abstract

Counterfactual explanations (CFE) for deep image classifiers aim to reveal how minimal input changes lead to different model decisions, providing critical insights for model interpretation and improvement. However, existing CFE methods often rely on additional image encoders and generative models to create plausible images, neglecting the classifier's own feature space and decision boundaries. As such, they do not explain the intrinsic feature space and decision boundaries learned by the classifier. To address this limitation, we propose Mirror-CFE, a novel method that generates faithful counterfactual explanations by operating directly in the classifier's feature space, treating decision boundaries as mirrors that ``reflect'' feature representations in the mirror. Mirror-CFE learns a mapping function from feature space to image space while preserving distance relationships, enabling smooth transitions between source images and their counterfactuals. Through extensive experiments on four image datasets, we demonstrate that Mirror-CFE achieves superior performance in validity while maintaining input resemblance compared to state-of-the-art explanation methods. Finally, mirror-CFE provides interpretable visualization of the classifier's decision process by generating step-wise transitions that reveal how features evolve as classification confidence changes.

View on arXivView PDF

Code Implementations(1)

MIT

[ICCV25] Looking in the Mirror: A Faithful Counterfactual Explanation Method for Interpreting Deep Image Classification Models

00HTMLJul 20, 20259 months agoMIT
counterfactual-explanationsexplainable-aigenerative-ai

Similar Papers

Cite this paper

@article{chowdhury2025looking,
  title  = {Looking in the mirror: A faithful counterfactual explanation method for interpreting deep image classification models},
  author = {Townim Faisal Chowdhury and Vu Minh Hieu Phan and Kewen Liao and Nanyu Dong and Minh-Son To and Anton Hengel and Johan Verjans and Zhibin Liao},
  year   = {2025},
  eprint = {2509.16822},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.16822v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.16822.svg)](https://codeofpaper.com/paper/2509.16822)

Discussion