SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2509.16822 · ICCV · 2025

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

Minh Vu, Anton Van Den Hengel, Kewen Liao, Phan, Zhibin Liao, Minh-Son To, Johan Verjans, Townim Chowdhury, Nanyu Dong

arXiv · PDF · Open in the Atlas

Code that ran

We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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. Code is available at: https://github.com/AIML-MED/Mirror-CFE. z r (reflection) 4 4 4 4 Classification decision Boundary (the mirror) Source domain 9 9 Target domain z s (source) z p (projection) z k>0.5 (CFE) 4 4 4 4 x r ? x s x k>0.5 z k<0.5 (SFE)

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2509.16822")
get_code_for_paper("2509.16822")
have("2509.16822")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2509.16822.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2509.16822.svg)](https://syntology.ai/paper/2509.16822)

Connect an agent — have() is free.