Skip to main content
QUICK REVIEW

[Paper Review] CounteRGAN: Generating Realistic Counterfactuals with Residual Generative Adversarial Nets

Daniel Nemirovsky, Nicolas Thiébaut|arXiv (Cornell University)|Sep 10, 2020
Explainable Artificial Intelligence (XAI)Computer Science11 citations
TL;DR

CounteRGAN proposes a novel Residual Generative Adversarial Network (RGAN) to generate realistic, actionable, and low-latency counterfactuals for machine learning models. By leveraging a generator that learns residual perturbations and a discriminator to enforce data distribution realism, it achieves up to 90,000x faster inference than prior methods while improving counterfactual realism and actionability on real-world datasets.

ABSTRACT

The prevalence of machine learning models in various industries has led to growing demands for model interpretability and for the ability to provide meaningful recourse to users. For example, patients hoping to improve their diagnoses or loan applicants seeking to increase their chances of approval. Counterfactuals can help in this regard by identifying input perturbations that would result in more desirable prediction outcomes. Meaningful counterfactuals should be able to achieve the desired outcome, but also be realistic, actionable, and efficient to compute. Current approaches achieve desired outcomes with moderate actionability but are severely limited in terms of realism and latency. To tackle these limitations, we apply Generative Adversarial Nets (GANs) toward counterfactual search. We also introduce a novel Residual GAN (RGAN) that helps to improve counterfactual realism and actionability compared to regular GANs. The proposed CounteRGAN method utilizes an RGAN and a target classifier to produce counterfactuals capable of providing meaningful recourse. Evaluations on two popular datasets highlight how the CounteRGAN is able to overcome the limitations of existing methods, including latency improvements of >50x to >90,000x, making meaningful recourse available in real-time and applicable to a wide range of domains.

Motivation & Objective

  • To address the limitations of existing counterfactual generation methods, which suffer from poor realism, low actionability, and high latency.
  • To enable real-time, meaningful recourse for users in high-stakes domains such as healthcare, finance, and criminal justice.
  • To decouple realism from actionability by using a GAN-based framework that preserves data distribution fidelity while suggesting feasible input perturbations.
  • To support black-box and non-differentiable classifiers by designing a method independent of model gradients.
  • To uncover potential biases in trained models by generating counterfactuals that reveal unfair feature dependencies.

Proposed method

  • The method employs a Residual GAN (RGAN) where the generator learns to output residual perturbations to the input data, rather than generating counterfactuals directly.
  • The discriminator is trained to distinguish real data samples from generated counterfactuals, enforcing realism by aligning generated outputs with the underlying data distribution.
  • A fixed target classifier evaluates the prediction outcome of the perturbed input, ensuring the counterfactual leads to the desired model output.
  • The generator’s loss function combines adversarial loss from the discriminator and prediction loss from the target classifier, enabling end-to-end training.
  • The framework is compatible with black-box models, as it does not require gradients of the target classifier, enabling use in real-world production systems.
  • The method decouples realism (enforced by the discriminator) from actionability (guided by feature perturbation sparsity and proximity) and prediction gain (optimized via classifier feedback).

Experimental results

Research questions

  • RQ1Can a GAN-based framework generate counterfactuals that are both realistic and actionable, without relying on gradient-based optimization?
  • RQ2To what extent can a residual generator architecture improve counterfactual realism compared to standard GANs or gradient-based methods?
  • RQ3How does the proposed method reduce latency in counterfactual generation compared to state-of-the-art approaches like RGD and CSGP?
  • RQ4Can the method uncover hidden biases in trained models, such as those related to race or gender in recidivism prediction?
  • RQ5Does the framework maintain high prediction gain while generating counterfactuals that are feasible and interpretable for end users?

Key findings

  • CounteRGAN achieves latency improvements of over 50x to more than 90,000x compared to RGD and CSGP, enabling real-time counterfactual generation.
  • On the COMPAS dataset, GAN- and CounteRGAN-generated counterfactuals suggest changing race from 'Black' to 'Caucasian' and gender from 'Male' to 'Female', indicating potential model bias.
  • The method produces counterfactuals with higher realism than baseline methods, as validated through qualitative and quantitative analysis on MNIST and other datasets.
  • Counterfactuals generated by CounteRGAN achieve strong prediction gain, successfully flipping model outcomes to the desired class in all test cases.
  • The approach maintains high actionability, with perturbations that are sparse and interpretable, avoiding unrealistic changes such as negative numbers of prior offenses.
  • The method successfully generates counterfactuals for black-box classifiers, demonstrating compatibility with real-world systems where model gradients are unavailable.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.