[Paper Review] Counterfactual Generation and Fairness Evaluation Using Adversarially Learned Inference
This paper proposes a causal-aware counterfactual generation method using a conditional Adversarially Learned Inference (c-ALI) framework that incorporates known causal graphs to generate semantically meaningful image perturbations. It successfully generates counterfactuals on Morpho-MNIST and CelebA that alter target attributes and their causal descendants while preserving other features, enabling robust fairness evaluation in face attractiveness classifiers.
Recent studies have reported biases in machine learning image classifiers, especially against particular demographic groups. Counterfactual examples for an input---perturbations that change specific features but not others---have been shown to be useful for evaluating explainability and fairness of machine learning models. However, generating counterfactual examples for images is non-trivial due to the underlying causal structure governing the various features of an image. To be meaningful, generated perturbations need to satisfy constraints implied by the causal model. We present a method for generating counterfactuals by incorporating a known causal graph structure in a conditional variant of Adversarially Learned Inference (ALI). The proposed approach learns causal relationships between the specified attributes of an image and generates counterfactuals in accordance with these relationships. On Morpho-MNIST and CelebA datasets, the method generates counterfactuals that can change specified attributes and their causal descendants while keeping other attributes constant. As an application, we apply the generated counterfactuals from CelebA images to evaluate fairness biases in a classifier that predicts attractiveness of a face.
Motivation & Objective
- To address the challenge of generating meaningful counterfactual examples in image classifiers that respect underlying causal relationships between attributes.
- To improve fairness evaluation by generating counterfactuals that reflect realistic, causally consistent attribute changes.
- To develop a method that preserves non-targeted attributes while modifying specified features and their causal descendants.
- To apply generated counterfactuals to detect and quantify fairness biases in a face attractiveness classifier.
Proposed method
- The method extends Adversarially Learned Inference (ALI) into a conditional variant (c-ALI) that incorporates a known causal graph structure to guide counterfactual generation.
- It uses a conditional generator and discriminator to model the joint distribution of image attributes under the constraints of the causal graph.
- The generator learns to produce counterfactual images by perturbing specific attributes while respecting their causal dependencies and preserving unrelated features.
- The model enforces structural constraints from the causal graph during training, ensuring that changes propagate only to causal descendants of the manipulated attribute.
- The framework is trained end-to-end using adversarial learning, with the discriminator distinguishing real from generated counterfactual images.
- The method is evaluated on Morpho-MNIST and CelebA, where it generates counterfactuals that alter target attributes and their causal descendants while keeping other attributes constant.
Experimental results
Research questions
- RQ1Can counterfactual generation be made causally consistent in image data by incorporating known causal graphs into the generative process?
- RQ2How well can the proposed method preserve non-targeted attributes while modifying specified attributes and their causal descendants?
- RQ3To what extent can generated counterfactuals detect fairness biases in a trained image classifier?
- RQ4Does the inclusion of causal structure improve the semantic meaningfulness and validity of generated counterfactuals compared to non-causal baselines?
Key findings
- The proposed method successfully generates counterfactual images on Morpho-MNIST and CelebA that alter specified attributes and their causal descendants while keeping other attributes unchanged.
- The counterfactuals are semantically meaningful, as they respect the underlying causal structure of the image attributes.
- On CelebA, the generated counterfactuals revealed significant fairness biases in a face attractiveness classifier, particularly in how demographic attributes influenced predictions.
- The method outperformed non-causal baselines in generating counterfactuals that were both realistic and faithful to causal relationships.
- The framework demonstrated robustness in preserving non-targeted features during counterfactual generation, confirming its ability to isolate specific attribute changes.
- The evaluation using counterfactuals provided actionable insights into fairness, highlighting disparities in attractiveness predictions across demographic groups.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.