Source-linked AI summary

Image Counterfactual Sensitivity Analysis for Detecting Unintended Bias

Remi Denton, Ben Hutchinson, Margaret Mitchell, Timnit Gebru, Andrew Zaldivar

arXiv:1906.06439v3cs.CVcs.LGstat.ML

TL;DR

Facial classifiers are used in high-stakes settings, motivating bias evaluations alongside decisions about deployment. The paper uses generative models to manipulate face attributes and measure how those changes affect a smiling classifier, finding that the approach reveals several biases.

  • Problem

    High-stakes uses of facial analysis motivate evaluations of model bias to complement decisions about whether and how to deploy these systems.

    Source: §1 · p. 1
  • Method

    The framework uses generative models and latent-space attribute directions to create controlled face counterfactuals and measure classifier sensitivity to those changes.

    Source: §1 · pp. 1–2
  • Results

    The approach reveals several unintended biases in a smiling classifier and measures how face-attribute manipulations affect its scores and classifications.

    Source: §7 · p. 10
  • Takeaways & Limitations

    Counterfactual analysis can contribute to evaluating face-centric systems, but it is not sufficient without a broader socially contextualized assessment of facial-analysis technology.

    Source: §2 · p. 2

    The latent space does not model causal relationships between face attributes, so the experiments should not be interpreted causally.

    Source: §6 · p. 10

Abstract

from arXiv · show

Facial analysis models are increasingly used in applications that have serious impacts on people's lives, ranging from authentication to surveillance tracking. It is therefore critical to develop techniques that can reveal unintended biases in facial classifiers to help guide the ethical use of facial analysis technology. This work proposes a framework called \textit{image counterfactual sensitivity analysis}, which we explore as a proof-of-concept in analyzing a smiling attribute classifier trained on faces of celebrities. The framework utilizes counterfactuals to examine how a classifier's prediction changes if a face characteristic slightly changes. We leverage recent advances in generative adversarial networks to build a realistic generative model of face images that affords controlled manipulation of specific image characteristics. We then introduce a set of metrics that measure the effect of manipulating a specific property on the output of the trained classifier. Empirically, we find several different factors of variation that affect the predictions of the smiling classifier. This proof-of-concept demonstrates potential ways generative models can be leveraged for fine-grained analysis of bias and fairness.

1. Introduction

The introduction motivates audits of facial classifiers as a complement to deployment decisions, given their high-stakes uses and documented demographic disparities. It proposes testing how controlled changes to face characteristics affect classifier predictions and measuring that sensitivity.

1. Introduction

  • High-stakes facial analysis and documented demographic disparities motivate bias evaluations that complement decisions about whether and how to deploy models.Source: §1 · p. 1
  • Image counterfactual sensitivity analysis tests whether a trained classifier's prediction changes when a face characteristic changes.Source: §1 · p. 1
  • A generative face model and latent-space attribute directions produce images that vary one characteristic while preserving others, enabling score- and classification-sensitivity measures.Source: §1 · pp. 1–2
  • The proof of concept applies the approach to a CelebA-trained smiling classifier and reports that it reveals several biases; the framework is presented as applicable to broader image-classification problems.Source: §1 · pp. 1–2

2. Ethical Considerations

The paper frames bias analysis as one part of a broader, socially contextualized effort, and limits its proof-of-concept to smiling detection while distinguishing facial expression from emotion. Its ethical choices also constrain which attributes are manipulated and how findings should be interpreted.

2. Ethical Considerations

  • The proposed techniques can detect and analyze bias in face-centric systems, but are not sufficient without broader work on deployment, accountability, autonomy, and privacy.The authors call for socially contextualized assessment alongside the technical analysis.Source: §2 · p. 2
  • The experiments focus on smiling because the authors judge its applications comparatively beneficial and limited in harm, and distinguish smiling expression from happiness.Inferring emotion from expression would require reliability, specificity, generalizability, and validity.Source: §2 · p. 2
  • The authors describe smiling as a cross-cultural facial expression that does not risk exposing personal information, but warn that some facial-analysis tasks can reinforce injustice regardless of demographic balance.They cite face recognition and gender classification as domains with substantial potential for abuse.Source: §2 · p. 2
  • CelebA's binary labels can misrepresent diverse or continuous attributes, while subjective labels make category boundaries contingent on annotation.The authors specifically identify attributes such as hair color, skin color, age, and nose or lip size as continuous, and Attractive and Chubby as normative judgments.Source: §2 · p. 2
  • The authors avoid manipulating the Male attribute because CelebA encodes it as binary and perceptually obvious, while its celebrity faces reflect a narrow range of gender expression.They warn that resulting edits could reinforce harmful gender norms and recommend avoiding manipulations of unstable social constructs such as gender.Source: §2 · pp. 2–3

3. Related work

The related work positions this approach as complementary to subgroup evaluations and pixel-level interpretation: it uses generative edits along meaningful image attributes to test classifier responses. It also distinguishes the method from concept-level and social-group counterfactual approaches, while describing potential complementarity with TCAV.

3. Related work

  • Unlike subgroup evaluations on real images, this approach can test targeted changes to characteristics believed irrelevant to classification and combinations underrepresented in test data.The authors describe the methods as complementary to disaggregated evaluations.Source: §3 · p. 3
  • Unlike pixel-perturbation methods that seek inputs most influential to the classifier, this method varies known, meaningful factors of image variation.The passage relates these approaches because both use perturbed inputs to probe classifier output.Source: §3 · p. 3
  • TCAV measures conceptual sensitivity using directional derivatives, while this approach directly measures the effect of an attribute vector on model predictions.The authors say the approaches can complement one another: TCAV may point to potential bias, and their method can provide interpretable evidence in predictions.Source: §3 · p. 3
  • Unlike counterfactual fairness approaches that intervene on sensitive attributes over a causal graph, this method manipulates observable facial characteristics rather than social groups.The authors note that observable attributes can correlate with social groups without constituting or being determined by them.Source: §3 · pp. 3–4
  • Compared with prior image work using manually curated real faces or 3D simulations, this approach uses generative techniques, including GANs, to vary face characteristics.The authors characterize their approach as most similar to, which alters characteristics of the same person using real images.Source: §3 · p. 4

4. Methods

The method asks how a classifier’s prediction changes when one image factor is altered, using latent-space face edits and score, perception, and classification sensitivity measures.

4.1. Generative model

  • A GAN maps prior-sampled latent codes to face images, while an encoder approximates the code for each image; training uses progressive WGAN with gradient penalty.The encoder supplies approximate latent codes for estimating attribute directions from annotated data.Source: §4.1 · p. 4

4.2. Face Attribute Vectors

  • Attribute vectors are unit-normalized boundary normals from classifiers separating inferred codes with versus without each annotated attribute.Smiling is balanced across attribute classes to avoid encoding it in the vector; continuous traversals reflect how CelebA’s binary labels were operationalized and annotated.Source: §4.2 · pp. 4–5, Figure 2 · p. 4

4.3. Score Sensitivity Analysis

  • Score sensitivity compares classifier outputs on an unedited image and its attribute-vector edit; a large response to an irrelevant attribute may indicate bias or off-target variation.A near-zero response means the classifier is blind to the differences between the original and edited images.Source: §4.3 · p. 5

4.4. Attribute Perception Sensitivity Analysis

  • Perception sensitivity assesses whether people perceive the intended attribute change, helping distinguish classifier sensitivity to that attribute from sensitivity to other image changes.Young and Heavy Makeup traversals smoothly alter related features while expression remains constant, although hairstyle or color can also change with Heavy Makeup.Source: §4.4 · pp. 5–6, Figure 4 · p. 6

4.5. Classification Sensitivity Analysis

  • Classification sensitivity thresholds classifier scores into binary labels and measures expected label changes after a latent edit, including flips in each direction.The directional measures restrict the evaluated codes to those initially classified as not smiling or smiling, respectively.Source: §4.5 · p. 6

5. Results

The smiling classifier responds to several attribute-vector manipulations, with greater score sensitivity near its decision boundary and classification sensitivity much larger than score sensitivity there. Generated traversals generally preserve smile labels along interpolated latent codes, but correlated attributes can remain entangled.

5. Results

  • The smiling classifier is a convolutional neural network trained on 128×128 CelebA images with cross-entropy and a 0.5 prediction threshold; Table 1 reports errors by selected attributes.The attribute annotations are binary presence/absence labels.Source: §5 · p. 6, Table 1 · p. 7
  • A progressive GAN trained on 128×128 CelebA images supplies latent directions for attribute traversals, which smoothly alter characteristics while facial expression remains constant in the illustrated examples.The Heavy Makeup and Young directions are illustrated; the faces and manipulations are described as generally realistic.Source: §5 · pp. 6–7
  • CelebA attributes are correlated, and the GAN does not fully disentangle them, so traversing one vector can also change correlated features such as facial hair or hair length.The authors identify further disentanglement of highly correlated factors as future work.Source: §5 · p. 7
  • Near the decision boundary (0.3 < f(G(z)) < 0.7), score sensitivity is generally greater and more differentiated across attributes, while classification sensitivity is much larger than score sensitivity.The analysis varies attributes with λ from −1 to 1.Source: Figure 5 · p. 7, §5 · pp. 7–8
  • 98% of interpolated latent-code images retained the smiling label, and the same result held for images classified as not smiling.The check sampled codes along lines connecting generated images with the same classifier label.Source: §5 · p. 7
  • The authors avoid manipulating the CelebA Male attribute, noting that its image edits would reflect correlated visual features rather than gender identity or expression.They describe Male as related to, but not equivalent to, gender and gender expression.Source: §5 · p. 8
  • Attribute-vector traversals sometimes flip the smiling prediction despite visually similar mouth expressions, including traversals for Young, Blond Hair, 5 o’Clock Shadow, and Heavy Makeup.Figure 6 defines S0→1 and S1→0 as the frequencies of flips in each direction.Source: §5 · p. 8, Figure 6 · p. 8

6. Discussion: Social Validity of Counterfactual Images

The discussion treats counterfactual image validity as a question of how latent edits relate to human perception, not as evidence of causal relations between attributes. It calls for human studies and better understanding of attribute relationships to strengthen interpretation.

6. Discussion: Social Validity of Counterfactual Images

  • The study distinguishes binary dataset annotations, latent-space attribute vectors, human perception, cognitive constructs, and model-learned attributes as different representations.The latent space encodes vectors with varying angles between attribute pairs; human perception can include perceived changes in color and shape.Source: §6 · pp. 9–10
  • Latent-space perturbations do not model causation, so the observed relationships among hair, makeup, and age should not be interpreted as causal effects.The authors describe these relationships as learned associations between features in the data.Source: §6 · p. 10
  • Valid counterfactual images must be realistic, and the differences between an original and manipulated image must correspond to valid differences in human perception of the target attribute.The paper calls this requirement social validity.Source: §6 · p. 10
  • The analysis assumes that manipulating an attribute vector does not causally affect perceived smiling; visual inspection supported this, but rigorous large-scale testing with human participants remains future work.The authors also report perceptible hair changes when manipulating some non-hair attributes, reflecting non-orthogonal latent attributes.Source: §6 · p. 10
  • Future research should study how latent-space edits correspond to human perceptions of socially relevant attributes and clarify causal relationships among face-attribute concepts.Human-participant studies could support use of the proposed attribute-perception sensitivity function.Source: §6 · p. 10

7. Conclusion

The conclusion presents GAN-based counterfactual manipulation and sensitivity metrics as a way to reveal unintended biases in facial classifiers. It frames the work as a proof of concept and identifies future research directions.

7. Conclusion

  • The proposed technique uses GANs for fine-grained, controlled face manipulation and measures how counterfactual attributes affect classifier scores and classifications.The approach aims to reveal hidden biases in how facial analysis models conceptualize faces and make decisions.Source: §7 · p. 10
  • This proof of concept suggests generative models could support bias, fairness, and other ethical analyses across image-classification problems and at larger scale.The conclusion describes these as potential applications to explore.Source: §7 · p. 10
  • Future work includes human ratings to distinguish classifier bias from generator or annotation bias, dataset-bias visualization, more diverse face training data, and attribute interactions.Source: §7 · p. 10

A. Appendix

Figure 8 describes how linear classifiers and their decision boundaries are used to derive attribute vectors from latent codes.

A. Appendix

  • Figure 8 reports classification accuracy for linear classifiers trained on latent codes.Source: Figure 8 · p. 12
  • The classifiers separate latent codes computed from images annotated with versus without the attribute.Source: Figure 8 · p. 12
  • The vector orthogonal to a classifier's decision boundary gives the attribute vector.Source: Figure 8 · p. 12
Loading 1906.06439v3…