Skip to main content
QUICK REVIEW

[Paper Review] Gender Slopes: Counterfactual Fairness for Computer Vision Models by Attribute Manipulation

Jungseock Joo, Kimmo Kärkkäinen|arXiv (Cornell University)|May 21, 2020
Ethics and Social Impacts of AISocial Sciences31 references6 citations
TL;DR

This paper proposes a counterfactual fairness evaluation framework for computer vision models using an encoder-decoder network to synthesize facial images with controlled gender and race attributes. By manipulating these attributes while preserving other features, the authors measure how sensitive commercial APIs are to gender and racial cues, revealing significant biases—e.g., higher nurse scores for feminine faces and skewed race representations in search results.

ABSTRACT

Automated computer vision systems have been applied in many domains including security, law enforcement, and personal devices, but recent reports suggest that these systems may produce biased results, discriminating against people in certain demographic groups. Diagnosing and understanding the underlying true causes of model biases, however, are challenging tasks because modern computer vision systems rely on complex black-box models whose behaviors are hard to decode. We propose to use an encoder-decoder network developed for image attribute manipulation to synthesize facial images varying in the dimensions of gender and race while keeping other signals intact. We use these synthesized images to measure counterfactual fairness of commercial computer vision classifiers by examining the degree to which these classifiers are affected by gender and racial cues controlled in the images, e.g., feminine faces may elicit higher scores for the concept of nurse and lower scores for STEM-related concepts. We also report the skewed gender representations in an online search service on profession-related keywords, which may explain the origin of the biases encoded in the models.

Motivation & Objective

  • To diagnose hidden biases in commercial computer vision models that are difficult to detect due to their black-box nature.
  • To isolate the impact of sensitive attributes—specifically gender and race—on model predictions using counterfactual interventions.
  • To investigate the origin of biases by analyzing skewed representations in online media, such as Google Image search results.
  • To develop a publicly available dataset of 300,000 synthesized images for bias measurement and mitigation research.
  • To provide a method for evaluating fairness in commercial APIs where training data and model architectures are unknown.

Proposed method

  • Utilizes an encoder-decoder architecture based on FaderNet (Lample et al., 2017) to explicitly disentangle sensitive attributes (gender, race) from other facial features.
  • Applies attribute manipulation to original images (n=64,500) to generate 300,000 counterfactual face images with controlled gender and race characteristics.
  • Maintains identity and non-sensitive attributes through a disentangled representation in the encoder, ensuring only target attributes are altered.
  • Employs adversarial training to improve image quality and realism of synthesized images, ensuring reliable evaluation of model behavior.
  • Tests commercial APIs (IBM, Clarifai, Google) on synthesized images to measure changes in prediction scores across manipulated attributes.
  • Uses linear regression to quantify sensitivity: slope of prediction score change per unit change in gender/race attribute, with p-values < 0.001.

Experimental results

Research questions

  • RQ1To what extent are commercial computer vision APIs sensitive to counterfactual changes in gender and race attributes?
  • RQ2How do prediction scores for profession-related concepts (e.g., nurse, police officer) vary when facial attributes are manipulated?
  • RQ3What is the extent of gender and racial skew in online image search results, and how might this contribute to model bias?
  • RQ4Can disentangled attribute manipulation effectively isolate the impact of sensitive attributes on model outputs?
  • RQ5Are there specific labels or concepts that exhibit particularly strong gender or race bias in API predictions?

Key findings

  • IBM’s API showed a strong negative slope of -0.69 for 'woman orator' when manipulating race from Black to White, indicating a significant bias in gendered role association.
  • Google’s 'Beauty' label had a positive slope of 0.06 when race was changed from Black to White, suggesting racial bias in aesthetic classification.
  • Skewed gender representations were found in Google Image search: 92.1% of 'nutritionist' results were female, and 97.1% of 'pest control worker' were male.
  • Skewed race representations were observed: 88.5% of 'historian' results were White, while only 20.0% of 'basketball player' results were White, indicating racial stereotyping.
  • For race manipulation, IBM’s 'President of the U.S.' label had a slope of -0.367, showing a strong bias toward associating whiteness with high-status roles.
  • The study revealed that 300,000 synthesized images with controlled attributes can effectively expose hidden biases in commercial APIs, even when model internals are unknown.

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.