Skip to main content
QUICK REVIEW

[Paper Review] Contrastive Examples for Addressing the Tyranny of the Majority

Viktoriia Sharmanska, Lisa Anne Hendricks|arXiv (Cornell University)|Apr 14, 2020
Terrorism, Counterterrorism, and Political ViolenceSocial Sciences50 references10 citations
TL;DR

This paper proposes a novel de-biasing framework that generates contrastive examples—synthetic data points with intervened protected attributes (e.g., gender, skin color)—using generative adversarial networks (GANs) to balance training data. By training models on both real and contrastive examples, the approach improves fairness and accuracy across tabular (Adult Income) and image datasets (CelebA, DiF), reducing fairness disparities while enhancing model interpretability and robustness.

ABSTRACT

Computer vision algorithms, e.g. for face recognition, favour groups of individuals that are better represented in the training data. This happens because of the generalization that classifiers have to make. It is simpler to fit the majority groups as this fit is more important to overall error. We propose to create a balanced training dataset, consisting of the original dataset plus new data points in which the group memberships are intervened, minorities become majorities and vice versa. We show that current generative adversarial networks are a powerful tool for learning these data points, called contrastive examples. We experiment with the equalized odds bias measure on tabular data as well as image data (CelebA and Diversity in Faces datasets). Contrastive examples allow us to expose correlations between group membership and other seemingly neutral features. Whenever a causal graph is available, we can put those contrastive examples in the perspective of counterfactuals.

Motivation & Objective

  • To address the 'tyranny of the majority' in machine learning, where underrepresented groups suffer from biased model performance due to data imbalance.
  • To develop a pre-processing fairness method that does not rely on causal assumptions or structural equations, making it applicable to real-world data without causal graphs.
  • To improve model fairness and accuracy by generating synthetic data points where protected attributes (e.g., gender, race) are intervened to create balanced training data.
  • To enhance interpretability of fair models by generating contrastive examples with semantic meaning, enabling visualization of model attention via Grad-CAM.
  • To support rejection learning by enforcing prediction consistency between original and contrastive examples, improving model reliability.

Proposed method

  • Generate contrastive examples by intervening on protected attributes in the training data—e.g., changing gender or skin color—while preserving other features and labels.
  • Use pre-trained GANs to synthesize high-fidelity contrastive examples that maintain semantic consistency with original inputs, enabling use across image and tabular data.
  • Train classifiers on a combined dataset of original and contrastive examples to improve fairness and generalization, especially for underrepresented groups.
  • Apply an output consistency constraint to enforce agreement between predictions on original and contrastive inputs, enabling rejection learning when predictions disagree.
  • Leverage Grad-CAM to visualize and interpret model attention, demonstrating that models trained with contrastive examples focus more on relevant facial regions (e.g., mouth for smiling) and less on protected attributes.

Experimental results

Research questions

  • RQ1Can generating synthetic data points with intervened protected attributes improve fairness in machine learning models without requiring causal models?
  • RQ2How effective is the use of GANs to generate contrastive examples that preserve semantic meaning while balancing group representation?
  • RQ3To what extent does training on real and contrastive examples reduce fairness disparities (e.g., in TPR, FPR, acceptance rate) across protected groups?
  • RQ4Can contrastive examples enhance model interpretability and reduce reliance on protected attributes during prediction?
  • RQ5Does enforcing prediction consistency between original and contrastive examples improve model reliability and fairness?

Key findings

  • Training with real and contrastive examples reduced the true positive rate difference (TPR Diff) by 50% on the CelebA dataset compared to baseline logistic regression.
  • On the DiF dataset, the method achieved 72.26% accuracy and fairness metrics of 0.68 (TPR Diff) and 0.27 (FPR Diff), outperforming baselines including fair reweighing.
  • The output consistency constraint improved agreement rate to 87.67% across test examples, indicating stronger model reliability and consistency.
  • Grad-CAM visualizations showed that models trained with contrastive examples focused more on relevant facial regions (e.g., mouth) and less on gender or age cues, improving fairness.
  • The approach reduced fairness metric discrepancies across skin color groups in the DiF dataset, supporting its effectiveness in promoting fairness in diverse face recognition.
  • Contrastive examples were closely related to counterfactuals in the Adult Income dataset, validating their conceptual alignment with causal fairness principles.

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.