# Cycle-Consistent Counterfactuals by Latent Transformations

Source: [Cycle-Consistent Counterfactuals by Latent Transformations](<https://www.sota2.com/research/paper/68fa6c161e209131cea320ac>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-01-04T05:09:48.780Z

Authors: Saeed Khorram, Li Fuxin

Published: 2022-03-28T20:10:09.000Z

## Abstract

CounterFactual (CF) visual explanations try to find images similar to the query image that change the decision of a vision system to a specified outcome. Existing methods either require inference-time optimization or joint training with a generative adversarial model which makes them time-consuming and difficult to use in practice. We propose a novel approach, Cycle-Consistent Counterfactuals by Latent Transformations (C3LT), which learns a latent transformation that automatically generates visual CFs by steering in the latent space of generative models. Our method uses cycle consistency between the query and CF latent representations which helps our training to find better solutions. C3LT can be easily plugged into any state-of-the-art pretrained generative network. This enables our method to generate high-quality and interpretable CF images at high resolution such as those in ImageNet. In addition to several established metrics for evaluating CF explanations, we introduce a novel metric tailored to assess the quality of the generated CF examples and validate the effectiveness of our method on an extensive set of experiments.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Counterfactual Explanation on MNIST (test)](<https://www.sota2.com/research/sota/counterfactual-explanation-on-mnist-test.md>): Counterfactual Explanation; MNIST (test); Validity Score: 99.9.

- [Counterfactual Explanation Generation on MNIST (Quality Metrics)](<https://www.sota2.com/research/sota/counterfactual-explanation-generation-on-mnist-quality-metrics.md>): Counterfactual Explanation Generation; MNIST; AUPCc': 98.

- [Counterfactual Explanation Generation on Fashion-MNIST](<https://www.sota2.com/research/sota/counterfactual-explanation-generation-on-fashion-mnist.md>): Counterfactual Explanation Generation; Fashion MNIST; AUPCc': 95.8.

- [Counterfactual Explanation Generation on MNIST](<https://www.sota2.com/research/sota/counterfactual-explanation-generation-on-mnist.md>): Counterfactual Explanation Generation; MNIST; Inference Time (sec): 0.00000923.

- [Counterfactual Explanation Generation on MNIST (evaluation)](<https://www.sota2.com/research/sota/counterfactual-explanation-generation-on-mnist-evaluation.md>): Counterfactual Explanation Generation; MNIST (evaluation); IM1: 0.7.

- [Counterfactual Explanation Generation on Fashion-MNIST (test)](<https://www.sota2.com/research/sota/counterfactual-explanation-generation-on-fashion-mnist-test.md>): Counterfactual Explanation Generation; Fashion MNIST (test); Image Metric 1: 74.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2203.15064>)

[PDF](<https://arxiv.org/pdf/2203.15064.pdf>)

[Implementation](<https://github.com/IBM/Contrastive-Explanation-Method>)
