Vision-Language Models (VLMs) like GLIP and CLIP have revolutionized multimodal AI, yet they frequently inherit and amplify societal biases present in their massive, uncurated training datasets. Traditional methods for addressing these biases often treat models as "black boxes," focusing on how input changes affect output probabilities. This paper introduces a more granular framework using Causal Mediation Analysis to identify and mitigate the specific internal pathways through which bias propagates.
The Problem: Black-Box Bias
VLMs often learn spurious correlations, such as associating women with indoor domestic settings and men with outdoor or automotive contexts. While researchers can observe these biased outputs, identifying exactly where the bias originates within the complex architecture—whether in the image encoder, the text encoder, or the deep fusion layers—has remained a challenge. Without this knowledge, mitigation strategies are often inefficient or computationally prohibitive.
Methodology: Causal Mediation Analysis
The researchers applied Causal Mediation Analysis (CMA) to the GLIP model to trace the flow of gender information. In this framework, specific model components (like attention heads or layers) are treated as "mediators" that carry the effect of an input "treatment" to the final prediction.
Interventions and Mediators
To measure these effects, the study utilized three types of input interventions:
- Replace-gender: Swapping gendered terms (e.g., "man" to "person").
- Mask-gender: Masking pixels associated with people in images.
- Null: Leaving the input unchanged to serve as a baseline.
By comparing the model's behavior under these interventions, the authors could calculate the Direct Effect of the input and the Indirect Effect mediated through specific modules.
Key Insights: Images as the Primary Driver
The study's most significant finding is that image features contribute far more to model bias than text features.
- Quantifying Contribution: In the MSCOCO dataset, image features accounted for 32.57% of the bias, while text features accounted for only 12.63%. Similar trends were observed in the PASCAL-SENTENCE dataset.
- Encoder Impact: The image encoder's contribution to bias significantly surpassed that of the text encoder.
- Aligned Biases: The researchers found that biases in the vision and language modalities are "aligned" rather than conflicting. They reinforce each other, which explains why VLMs so effectively amplify stereotypes.
- The Role of Deep Fusion: The deep fusion encoder, where the two modalities interact, accounts for approximately 56% of the bias contribution compared to the individual encoders, highlighting how the relationship between words and images is a critical site for bias generation.
Mitigation: The "ImageFair" Strategy
Armed with the knowledge that the image encoder is the primary culprit, the authors developed a lightweight mitigation strategy called ImageFair. Instead of retraining the entire model, they focused on "blurring" the gender signal at the source.
Using a face detector (MTCNN) and a gender classifier (MobileNet), the system identifies faces in input images and replaces them with a gender-neutral average (an "anti-gender" face). This targeted intervention removes the gender signal before it can propagate through the rest of the model.
Experimental Results
The ImageFair approach yielded impressive results across multiple benchmarks:
- Bias Reduction: The framework reduced bias by 22.03% on MSCOCO and 9.04% on PASCAL-SENTENCE.
- Performance Stability: Crucially, this reduction came with negligible impact on accuracy. On MSCOCO, the model maintained an Average Precision (AP) of 46.2, compared to the original model's 46.6.
- Zero-Shot Generalization: Testing on the LVIS dataset confirmed that the mitigation strategy remains effective in zero-shot scenarios, proving its robustness.
Conclusion and Future Work
By moving from measuring bias to mapping its causal pathways, this research provides a blueprint for building fairer multimodal AI. The findings suggest that focusing on the image encoder is the most efficient way to reduce gender bias in VLMs.
While the current study is limited to binary gender and "white-box" models where internal components are accessible, it sets the stage for future work. Expanding this causal framework to include other sensitive attributes—such as age and race—and applying it to other modalities like audio and video will be essential steps toward truly equitable AI systems.
Summary updated