Abstract
Modern image captioning models frequently exhibit "bias amplification," where they exaggerate social biases present in training data by relying on contextual shortcuts (e.g., associating kitchens with women) rather than visual evidence. This paper introduces the Equalizer model, which incorporates two novel loss functions—Appearance Confusion Loss and Confident Loss—to encourage models to ground gendered predictions in actual visual evidence of the person. Our approach significantly reduces gender misclassification errors and improves the visual grounding of generated captions.
Introduction
Machine learning models often mirror and amplify societal biases. In image captioning, if a training set contains a woman in 60% of "shopping" photos, a model might predict "woman" in 90% of such photos at test time. This occurs because models exploit easier "shortcuts"—like background objects or locations—instead of performing the more complex task of analyzing a person's appearance. For instance, a baseline model might see a person on a snowboard and immediately output "man" due to data skew. The authors argue that gendered terms like "man" or "woman" should only be used when clear visual evidence is present; otherwise, the model should default to gender-neutral terms like "person."
Methodology: The Equalizer Model
The Equalizer model builds upon a standard "Show and Tell" architecture (InceptionV3 features with an LSTM generator) by adding two complementary loss terms designed to mitigate bias.
1. Appearance Confusion Loss (ACL)
ACL forces the model to be "confused" about gender when the person is not visible. During training, person segmentation masks are used to blur the individual ($I'$). If the person is missing, the model is penalized if it assigns a higher probability to one gender over the other based solely on context (e.g., a kitchen or a snowboard).
2. Confident Loss (Conf)
While ACL confuses the model in the absence of evidence, Confident Loss encourages accuracy when evidence is present. It rewards the model for high confidence in gender predictions when the person is visible ($I$), provided the prediction matches the ground truth. Crucially, this loss allows the model to predict gender-neutral words like "person" with high probability without penalty, serving as a safety valve for ambiguous images.
Experimental Results
The model was evaluated on MSCOCO-Bias and a specifically curated MSCOCO-Balanced test set (1:1 gender ratio).
- Error Reduction: On MSCOCO-Bias, the Equalizer reduced gender misclassification from 12.83% to 7.02%. On the Balanced set, where the baseline error rose to 19.3%, the Equalizer maintained a low 8.1% error rate.
- Visual Grounding: Using a "pointing game" (via Grad-CAM), the authors verified that the Equalizer's internal attention hit the actual person 47.5% of the time when predicting gender, compared to 37.0% for the baseline.
Conclusion
The Equalizer model demonstrates that accuracy alone is an insufficient metric for fair AI. By penalizing contextual shortcuts and rewarding evidence-based confidence, the model achieves greater robustness to distribution shifts. While there is a slight trade-off in standard captioning metrics like METEOR, the resulting models are significantly more reliable and less prone to offensive hallucinations.
Summary updated