Debias your Large Multi-Modal Model at Test-Time with Non-Contrastive Visual Attribute Steering

Neale Ratzlaff, Matthew Lyle Olson, Musashi Hinck, Estelle Aflalo, Shao-Yen Tseng, Vasudev Lal, Phillip Howard · DOI

TL;DR

This paper introduces a novel, training-free method to debias Large Multi-Modal Models (LMMs) at test-time. By "steering" the model's internal representations, they effectively reduce the generation of text related to protected attributes (like race, gender, age) without sacrificing performance on downstream tasks.

What Problem Does This Paper Address?

Large Multi-Modal Models (LMMs), which combine vision and language capabilities, are increasingly used for conversational AI. However, like their text-only counterparts (LLMs), LMMs inherit societal biases from their massive training datasets. This can lead to undesirable and unfair outputs, especially when images depict people from different demographic groups. For instance, an LMM might disproportionately associate certain occupations or characteristics with specific races or genders. Existing debiasing methods often require extensive retraining or fine-tuning, which is computationally expensive and can degrade model performance. This paper aims to provide an efficient, test-time solution that mitigates these biases without requiring additional training data or compromising the model's core capabilities.

Methods

The core of the proposed solution is "attribute steering," which involves identifying and "ablating" (removing) specific linear directions in the LMM's internal representations that correspond to unwanted biases. They introduce two complementary methods for constructing these "steering vectors":

  1. PAR (Protected Attribute Removal): This is a dataset-based approach. It constructs a steering vector by comparing the model's internal activations when processing biased inputs (e.g., images designed to elicit mentions of protected attributes) versus neutral inputs. This requires a curated dataset of contrasting examples.
  2. PARzero: This is a novel, low-resource, training-free approach designed for situations where additional data is scarce. PARzero constructs the steering vector at inference time using just the input image and the target attribute. It achieves this by performing a single step of gradient descent on the visual representation to maximize the likelihood of generating text related to the target attribute, then using the difference in activations to define the steering direction.

Both methods then apply this steering vector to intermediate layers of the LMM during text generation, effectively projecting out the biased component of the representation.

Datasets

The authors utilize several datasets for their experiments:

  • SocialCounterfactuals: A dataset of synthetic images designed to be semantically similar but differ in protected attributes (race, gender, age, body type). Used for both steering vector construction (PAR) and evaluation.
  • DA-COCO (Demographic Annotations on COCO): Contains images with annotations for perceived race and gender. Used for evaluation.
  • FACET: A large-scale dataset with diverse images and expert annotations for various person attributes, including age, race, and gender. Used for evaluation.
  • LLaVA-Instruct-80K: Used to sample benign text generations for the PAR method.

Key Insights and Ideas

  • Test-time intervention is effective: The paper demonstrates that it's possible to significantly reduce bias in LMMs without any form of model retraining, simply by intervening during the generation process.
  • PARzero's efficiency is a game-changer: The ability to debias with a single gradient step at inference time, requiring no additional data, is a major practical advantage, especially for real-world deployment.
  • Steering doesn't harm performance: A crucial finding is that debiasing via steering does not negatively impact the LMM's accuracy on downstream tasks or its ability to generate coherent and fluent text. This addresses a common concern with bias mitigation techniques.
  • Bias is encoded linearly: The work builds on the idea that high-level concepts in LLMs can be represented as linear directions in their activation space, making them amenable to manipulation via steering vectors.

Key Results

  • Reduced Protected Attribute Mentions: Both PAR and PARzero significantly reduced the frequency of protected attribute mentions across multiple datasets and LMMs (LLaVA 1.5 and Llama 3.2). For example, PARzero showed a particularly large reduction in negative sentiment variability for Llama-3.2.
  • Improved Sentiment Fairness: The steering methods helped to reduce disparities in sentiment across different demographic groups, leading to more equitable outputs.
  • Comparable Accuracy: Evaluations using GPT-4o to assess image description accuracy showed no significant difference between steered and unsteered LLaVA models, indicating that steering does not degrade the model's ability to understand image content.
  • Minimal Impact on Occupation Mentions: PARzero showed minimal change in occupation accuracy relative to the baseline, suggesting it preserves factual content better than PAR.

Limitations and Future Work

  • Limitations:
    • The authors acknowledge that the terms used to describe social attributes (race, gender, age) are inherited from prior work and may be considered stereotypical or harmful.
  • The scope of social attributes considered is not exhaustive.
  • The study is limited to English language models.
  • The evaluation relies on LLMs (GPT-4o) for annotation, which may themselves contain biases.
  • Future Work:
    • Extend the techniques to other LMM architectures and explore different types of steering or alignment tasks.
  • Investigate the effectiveness of these methods for other languages.
  • Further explore model control beyond bias mitigation.

Summary updated

BibTeX
@misc{ratzlaff2024debias,
  author = {Neale Ratzlaff and Matthew Lyle Olson and Musashi Hinck and Estelle Aflalo and Shao-Yen Tseng and Vasudev Lal and Phillip Howard},
  title = {{Debias your Large Multi-Modal Model at Test-Time with Non-Contrastive Visual Attribute Steering}},
  year = {2024},
  eprint = {2411.12590},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.12590},
}
Figure