Skip to main content
QUICK REVIEW

[Paper Review] Debiasing Vision-Language Models via Biased Prompts

Ching-Yao Chuang, Varun Jampani|arXiv (Cornell University)|Jan 31, 2023
Multimodal Machine Learning ApplicationsComputer Science22 citations
TL;DR

The paper presents a zero-shot debiasing method for vision-language models by calibrating a projection that removes biased directions from text embeddings, improving robustness in discriminative and generative tasks without extra data or fine-tuning.

ABSTRACT

Machine learning models have been shown to inherit biases from their training datasets. This can be particularly problematic for vision-language foundation models trained on uncurated datasets scraped from the internet. The biases can be amplified and propagated to downstream applications like zero-shot classifiers and text-to-image generative models. In this study, we propose a general approach for debiasing vision-language foundation models by projecting out biased directions in the text embedding. In particular, we show that debiasing only the text embedding with a calibrated projection matrix suffices to yield robust classifiers and fair generative models. The proposed closed-form solution enables easy integration into large-scale pipelines, and empirical results demonstrate that our approach effectively reduces social bias and spurious correlation in both discriminative and generative vision-language models without the need for additional data or training.

Motivation & Objective

  • Motivate and address biases in vision-language foundation models trained on uncured internet data.
  • Propose a data-free, training-free debiasing approach that operates on the text embedding via a calibrated projection.
  • Show that debiasing only the text embedding suffices for robust zero-shot classifiers and fair text-to-image generation.
  • Provide a closed-form solution enabling easy integration into large-scale pipelines.

Proposed method

  • Define biased directions in the text embedding using prompts describing biases (e.g., “a photo of a male/female”).
  • Compute an orthogonal projection P0 to remove those biased directions from embeddings.
  • Introduce a calibration loss on prompt embeddings using positive pairs that describe the same class with different biases, solved in closed form (P* = P0(I + (lambda/|S|) sum (zi - zj)(zi - zj)^T)^{-1}).
  • Show the calibration matrix can be interpreted as a calibration term that down-weights spurious directions via Zdiff and SVD (ZdiffZdiff^T = U Sigma^2 U^T).
  • Establish equivalence to an equalization loss that yields the same optimal solution (z* form).
  • Extend the approach to generative models by learning a universal debiasing matrix applied as preprocessing to prompt embeddings (lambda = 500 throughout).
Figure 2: Improving Gender Diversity of Stable Diffusion. We fix the random seed of initial latent noise of Stable Diffusion [ 36 ] and generate the images with the training / testing prompt “a photo of a doctor / firefighter”. The results demonstrate that applying the calibration matrix to the prom
Figure 2: Improving Gender Diversity of Stable Diffusion. We fix the random seed of initial latent noise of Stable Diffusion [ 36 ] and generate the images with the training / testing prompt “a photo of a doctor / firefighter”. The results demonstrate that applying the calibration matrix to the prom

Experimental results

Research questions

  • RQ1Can biased directions in vision-language embeddings be identified purely from prompts describing biases?
  • RQ2Does debiasing the text embedding via a calibrated projection improve group robustness in zero-shot discrimination without requiring data or labels?
  • RQ3Can the same debiasing approach generalize to generative models like Stable Diffusion for fair image generation?
  • RQ4Is there a computationally simple, closed-form solution to calibrate the projection that is training-free and data-free?
  • RQ5How does the proposed method compare to data-driven debiasing methods in terms of fairness metrics (group robustness, MaxSkew) and diversity of outputs?

Key findings

  • Calibrated projection (Orth-Cali) substantially improves worst-group robustness on Waterbird and CelebA benchmarks for CLIP-based zero-shot classifiers.
  • The calibration method achieves comparable or better fairness gains than state-of-the-art data-driven adapters without requiring any data or labels.
  • MaxSkew retrieval fairness on FairFace improves with debiasing across backbones and prompts.
  • For generation with Stable Diffusion, the method reduces gender and race discrepancy and increases output diversity (human evaluation supports diversity gains).
  • The calibration matrix generalizes to unseen prompts and professions, showing robust transfer to test prompts and unseen categories.
Figure 3: Improving Racial Diversity of Stable Diffusion. We again generate the images with Stable Diffusion. After applying the calibration matrix, the race attributes are more diverse in the generated images.
Figure 3: Improving Racial Diversity of Stable Diffusion. We again generate the images with Stable Diffusion. After applying the calibration matrix, the race attributes are more diverse in the generated images.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.