Skip to main content
QUICK REVIEW

[Paper Review] Feature and Label Embedding Spaces Matter in Addressing Image Classifier Bias

William Thong, Cees G. M. Snoek|arXiv (Cornell University)|Oct 27, 2021
Domain Adaptation and Few-Shot LearningComputer Science6 citations
TL;DR

This paper proposes a dual-space approach to mitigate bias in image classifiers by identifying a bias direction in the feature space and introducing protected label embedding heads that learn class representations specific to each protected attribute value. By combining PCA-based bias removal in features with a cosine softmax cross-entropy loss over label embeddings, the method improves fairness across multi-class, multi-label, and binary benchmarks without sacrificing classification accuracy.

ABSTRACT

This paper strives to address image classifier bias, with a focus on both feature and label embedding spaces. Previous works have shown that spurious correlations from protected attributes, such as age, gender, or skin tone, can cause adverse decisions. To balance potential harms, there is a growing need to identify and mitigate image classifier bias. First, we identify in the feature space a bias direction. We compute class prototypes of each protected attribute value for every class, and reveal an existing subspace that captures the maximum variance of the bias. Second, we mitigate biases by mapping image inputs to label embedding spaces. Each value of the protected attribute has its projection head where classes are embedded through a latent vector representation rather than a common one-hot encoding. Once trained, we further reduce in the feature space the bias effect by removing its direction. Evaluation on biased image datasets, for multi-class, multi-label and binary classifications, shows the effectiveness of tackling both feature and label embedding spaces in improving the fairness of the classifier predictions, while preserving classification performance.

Motivation & Objective

  • To identify a dominant bias direction in the feature space of image classifiers using class prototypes of protected attributes.
  • To mitigate bias by learning label embeddings specific to each protected attribute value, rather than using standard one-hot encoding.
  • To improve fairness in image classification without degrading performance, especially in biased real-world datasets.
  • To evaluate the effectiveness of jointly addressing both feature and label embedding spaces in multi-class, multi-label, and binary classification tasks.

Proposed method

  • Compute class prototypes for each protected attribute value and use PCA to identify the primary bias direction in the feature space.
  • Introduce separate projection heads (protected classification heads) for each protected attribute value, mapping features to distinct label embedding spaces.
  • Train the model using a cosine softmax cross-entropy loss that supports multi-class, multi-label, and binary classification under the protected label embedding formulation.
  • Apply a bias removal operation post-training by projecting features onto the orthogonal complement of the identified bias direction in the feature space.
  • Use ResNet18 as the backbone network and fine-tune with SGD, learning rate 0.1, momentum 0.9, and batch size 128.
  • Leverage pre-trained ImageNet features and apply temperature scaling (0.1) in the loss function to stabilize training.

Experimental results

Research questions

  • RQ1Can a shared bias direction in the feature space be identified that captures the maximum variance of bias across protected attribute values?
  • RQ2Does learning label embeddings per protected attribute value improve fairness compared to standard one-hot encoding in image classification?
  • RQ3To what extent does removing the identified bias direction in the feature space further reduce bias in predictions?
  • RQ4How does the proposed method compare to fairness-through-blindness approaches in terms of fairness and accuracy on biased image datasets?

Key findings

  • The first principal component of the difference between protected class prototypes captures the dominant bias direction in the feature space, explaining maximum variance in bias.
  • The proposed method with protected label embedding heads achieves 83.65% test accuracy on the IMDB face dataset for gender prediction (age protected), outperforming baseline and prior methods.
  • In age prediction (gender protected), the method achieves 73.08% test accuracy, significantly outperforming the baseline and adversarial baselines.
  • The combination of protected label embeddings and post-training bias removal in the feature space leads to the highest fairness scores across all benchmarks, with a 10–15% improvement over fairness-through-blindness methods.
  • The method preserves high classification performance while reducing bias, demonstrating that joint modeling of feature and label spaces is more effective than addressing only one space.

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.