Images Speak Louder than Words: Understanding and Mitigating Bias in Vision-Language Model from a Causal Mediation Perspective

Zhaotian Weng, Zijun Gao, Jerone T. A. Andrews, Jieyu Zhao

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:

  1. Replace-gender: Swapping gendered terms (e.g., "man" to "person").
  2. Mask-gender: Masking pixels associated with people in images.
  3. 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

Abstract

Vision-language models (VLMs) pre-trained on extensive datasets can inadvertently learn biases by correlating gender information with specific objects or scenarios. Current methods, which focus on modifying inputs and monitoring changes in the model's output probability scores, often struggle to comprehensively understand bias from the perspective of model components. We propose a framework that incorporates causal mediation analysis to measure and map the pathways of bias generation and propagation within VLMs. This approach allows us to identify the direct effects of interventions on model bias and the indirect effects of interventions on bias mediated through different model components. Our results show that image features are the primary contributors to bias, with significantly higher impacts than text features, specifically accounting for 32.57% and 12.63% of the bias in the MSCOCO and PASCAL-SENTENCE datasets, respectively. Notably, the image encoder's contribution surpasses that of the text encoder and the deep fusion encoder. Further experimentation confirms that contributions from both language and vision modalities are aligned and non-conflicting. Consequently, focusing on blurring gender representations within the image encoder, which contributes most to the model bias, reduces bias efficiently by 22.03% and 9.04% in the MSCOCO and PASCAL-SENTENCE datasets, respectively, with minimal performance loss or increased computational demands.
BibTeX
@inproceedings{weng2024images,
  author = {Zhaotian Weng and Zijun Gao and Jerone T. A. Andrews and Jieyu Zhao},
  title = {{Images Speak Louder than Words: Understanding and Mitigating Bias in Vision-Language Model from a Causal Mediation Perspective}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=s6Tvn3Inwl},
}
Figure