Mitigating Bias in Large Vision-Language Models via Counterfactual Ensemble Decoding

Yisong Xiao, Aishan Liu, Yongxin Huang, Zonghao Ying, Shiji Zhao, Tianlin Li, Yong Han, Jian Yang, Xianglong LiuarXiv 2026

TL;DR

Large Vision-Language Models (LVLMs) frequently inherit harmful social stereotypes from their training data, leading to biased outputs when processing portraits of different demographic groups. To combat this, the authors introduce Counterfactual Ensemble Decoding (CED), a training-free inference-stage framework that generates multi-group counterfactual perspectives in the visual latent space. By dynamically ensembling these diverse perspectives during decoding, CED significantly reduces demographic bias while preserving the model's core reasoning capabilities.

What Problem Does This Paper Address?

When prompted with images of people, modern LVLMs often make stereotype-driven inferences—for instance, disproportionately associating female portraits with occupations like "nurse" or "legal secretary," and male portraits with "CEO" or "lawyer."

Fig. 1. Illustration of gender bias in LVLMs within the occupation scenario. We introduce CED for debiasing, which ensembles diverse perspectives to disrupt the dominance of stereotypical narratives.

Existing solutions generally fall into two camps, both with major drawbacks:

  1. Training-stage methods: Fine-tuning models on rebalanced or counterfactual datasets is computationally expensive and hard to scale.
  2. Inference-stage methods: Techniques like prompt modification or output distribution shifting typically rely on a single stereotypical perspective (e.g., contrasting a biased prompt against a neutral one). They fail to incorporate the diverse viewpoints of different social groups, which social science research shows is crucial for fostering true fairness.

CED addresses this gap by providing an efficient, inference-time framework that actively injects multi-group demographic diversity directly into the model's internal representations.

Methods

CED operates entirely during the inference phase via a three-step pipeline:

  1. Counterfactual Steering: Instead of performing complex and costly pixel-level image editing, CED manipulates the continuous visual representation space. The authors train simple linear classifiers (Logistic Regression) on a small auxiliary dataset to identify semantic directions associated with specific social groups (e.g., gender or race). During inference, the original image's latent representation is steered along these directions, creating "counterfactual" visual tokens that simulate how other demographic groups would be represented in the same context.
  2. Bias Layer Identification: Because social bias is unevenly distributed across the text decoder layers, CED passes both the original and counterfactual visual tokens through the LLM. It dynamically measures the Jensen-Shannon Divergence (JSD) between their token probability distributions at each layer to find the layer exhibiting the most severe conflict (highest divergence).
  3. Prediction Ensemble: At this identified "bias layer," CED ensembles the token distributions using uncertainty-aware weights derived from entropy. This prioritizes high-confidence tokens unique to each demographic perspective, resulting in a fairer, more balanced distribution. An adaptive plausibility constraint is applied to ensure the model doesn't output implausible or nonsensical tokens.

Datasets

The authors validated CED across several distinct datasets:

  • Direction Learning: FairFace, Phase, and PATA were used to sample demographic images for training the latent-space linear classifiers.
  • Bias Evaluation Benchmarks:
  • GenderBias-VL: A multiple-choice VQA benchmark evaluating occupation-related gender bias.
  • ModSCAN: Evaluates racial stereotypes across occupations, descriptors, and persona traits using real-world faces.
  • VisBias: Measures explicit and implicit gender bias in open-ended image descriptions.
  • General Capability Benchmarks: MMBench-en-dev and MMMU-dev were used to ensure the debiasing process did not degrade the model's core vision-language performance.

Key Insights and Ideas

  • Diversity Fosters Fairness: Rather than simply trying to suppress or penalize biased tokens, actively blending multiple counterfactual demographic perspectives effectively neutralizes the dominant, stereotypical narrative.
  • Latent Space Manipulation is Efficient: Shifting vectors within the vision-language alignment interface bypasses the need to generate actual counterfactual images, saving massive amounts of compute while perfectly preserving the background and task-relevant context.
  • Targeted Layer Intervention: Bias is concentrated in specific intermediate and deep layers of the text decoder. Dynamically identifying and intervening at the layer with the highest conflict yields significantly better fairness than ensembling at the final output layer.

Key Results

CED was evaluated against leading inference-stage baselines (such as SelfDebias and GenProj) across three popular LVLMs (LLaVA-1.5, Qwen3-VL, and InternVL2):

  • Substantial Bias Reduction: CED achieved an average gender bias reduction of 61.21% on GenderBias-VL and an average racial bias reduction of 47.97% on ModSCAN.
  • Cleaner Open-Ended Descriptions: On the VisBias image captioning task, CED cut stereotype-related word frequency differences by 38.22% and sentiment disparities by 65.75%.
  • Performance Preservation: Unlike prompt-based methods that often trigger severe accuracy drops (up to 8%), CED preserved or even slightly improved general reasoning performance on MMBench and MMMU.
  • Favorable Efficiency: CED proved highly practical, generating tokens significantly faster than strong inference baselines like SelfDebias and reprompt.

Limitations and Future Work

  • White-Box Requirement: CED is a white-box method that requires full access to the LVLM’s internal visual representations and text decoder layers. It cannot be applied to closed-source, API-only models (like GPT-4V).
  • Demographic Scope: The current evaluation focuses primarily on binary gender and four racial groups due to the limitations of existing bias benchmarks. The authors plan to extend this framework to a broader range of protected attributes and intersectional identities as more comprehensive datasets become available.

Summary updated

BibTeX
@misc{xiao2026mitigating,
  author = {Yisong Xiao and Aishan Liu and Yongxin Huang and Zonghao Ying and Shiji Zhao and Tianlin Li and Yong Han and Jian Yang and Xianglong Liu},
  title = {{Mitigating Bias in Large Vision-Language Models via Counterfactual Ensemble Decoding}},
  year = {2026},
  eprint = {2608.21415},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.21415},
}
Figure