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

Zhaotian Weng, Zijun Gao, Jerone Andrews, Jieyu Zhao

TL;DR

Researchers have developed a framework using Causal Mediation Analysis to pinpoint exactly where gender bias originates within Vision-Language Models (VLMs). Their findings reveal that image encoders are the primary culprits—contributing significantly more to model bias than text encoders—leading to a highly efficient mitigation strategy that reduces bias by up to 22% with negligible impact on performance.

What Problem Does This Paper Address?

Vision-Language Models (VLMs) like CLIP or GLIP are powerful, but they are prone to inheriting societal biases from the massive, uncurated datasets they are trained on. For example, a model might incorrectly associate "dogs" or "sinks" more strongly with women and "cars" or "motorcycles" with men.

Current evaluation methods typically treat these models as "black boxes," looking only at how changing the input affects the final output probability. This approach fails to explain how bias flows through the model's internal architecture—such as the text encoder, image encoder, or the fusion layers where these modalities meet. Without understanding the causal role of specific components, developing effective and computationally efficient mitigation strategies is largely guesswork.

Methods

The authors introduce a standardized framework based on Causal Mediation Analysis (CMA). This technique, borrowed from the social sciences, allows researchers to decompose the "Total Effect" of an intervention into two parts:

  1. Direct Effect (DE): How much the input intervention directly changes the output bias.
  2. Indirect Effect (IE): How much of that change is "mediated" through specific internal model components (like attention heads or layers).
Figure 2: Bias understanding with causal mediation analysis. In the diagram, z represents the mediator, and yO, yE, yD, yI represent the bias values of the model’s output under various interventions. The intervention effect quantifies the change in the bias score under the specified intervention; the direct effect quantifies the change in bias score resulting from an intervention in the input module while maintaining the mediator in the state of a null intervention; the indirect effect measures the change in the bias score when the input module remains unchanged, but the mediator is set to the state of a specific intervention.

In this study, the "Treatment" involves interventions like mask-gender (blurring people in images) or replace-gender (changing "man" to "person" in text). The "Outcome" is measured by a new metric, $BIAS_{VL}$, which sums the absolute differences in False Positive Rates (FPR) for various objects across genders.

To mitigate the discovered bias, the authors propose GLIP_ImageFair. This method detects faces in images, classifies their gender, and then averages the original image features with "anti-gender" face features to effectively blur the gender representation within the image encoder.

Datasets

The framework was evaluated using the GLIP model on two primary benchmarks:

  • MSCOCO: The authors focused on 66 object categories that appear frequently with gendered terms in the training data.
  • PASCAL-SENTENCE: Since this dataset lacks gender labels, the authors manually annotated it based on image captions to create a gender-balanced evaluation set.
  • LVIS: Used to ensure that bias mitigation didn't destroy the model's general zero-shot object detection performance.

Key Insights and Ideas

  • Images are the Main Driver: Image features contribute far more to gender bias than text features. In MSCOCO, image features accounted for ~32.6% of the bias, while text features accounted for only ~15.5%.
  • Aligned Biases: The biases found in the vision and language modalities are "aligned" rather than conflicting. Both modalities tend to reinforce the same stereotypes (e.g., associating women with indoor objects and men with outdoor ones).
  • The Power of Fusion: The deep fusion process—where the model aligns text and image features—is a major site of bias generation, accounting for roughly 56% of the contributions seen in the encoders.
  • Stereotype Mapping: The model exhibits clear gendered correlations. As shown in the FPR analysis, indoor objects like pets and furniture are more likely to trigger false positives in images of females.
Figure 4: False Positive Rate (FPR) for various objects in the PASCAL-SENTENCE dataset. For most pets and indoor objects, the FPR is higher in images of females than in those of males; conversely, for most outdoor objects such as vehicles, the FPR is higher in images of males than in those of females. These results indicate that females correlate more closely with indoor objects than males.

Key Results

The authors demonstrated that targeting the most biased component (the image encoder) is the most effective way to debias the model:

Method MSCOCO Bias Reduction PASCAL-S Bias Reduction MSCOCO AP (Performance)
Original GLIP 0% (Baseline) 0% (Baseline) 46.6
GLIP_ImageFair 22.036% 9.043% 46.2
GLIP_TextFair 7.810% 1.180% 46.6

By focusing on the image encoder, they achieved nearly 3x the bias reduction compared to text-based methods, with only a tiny 0.4 drop in Average Precision (AP).

Limitations and Future Work

  • White-Box Requirement: The framework requires access to the model's internal components (weights and activations), meaning it cannot currently be applied to "black-box" proprietary models accessed via API.
  • Binary Gender: The study is limited to a binary definition of gender, which does not capture the full spectrum of gender identity.
  • Expanding Modalities: The authors suggest that future work could extend this causal perspective to other multimodal inputs, such as audio or video, to see if similar "primary contributor" patterns exist there.

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 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