Skip to main content
QUICK REVIEW

[Paper Review] Locating Demographic Bias at the Attention-Head Level in CLIP's Vision Encoder

Alaa Yasser, Kittipat Phunjanna|arXiv (Cornell University)|Mar 12, 2026
Ethics and Social Impacts of AISocial Sciences0 citations
TL;DR

The paper introduces a mechanistic fairness audit that localises demographic bias to individual attention heads in CLIP's vision encoder using projected residual-stream decomposition, zero-shot CAV-based ranking, and bias-augmented TextSpan analysis, demonstrated on gender and age bias in CLIP ViT-L-14 with FACET.

ABSTRACT

Standard fairness audits of foundation models quantify that a model is biased, but not where inside the network the bias resides. We propose a mechanistic fairness audit that combines projected residual-stream decomposition, zero-shot Concept Activation Vectors, and bias-augmented TextSpan analysis to locate demographic bias at the level of individual attention heads in vision transformers. As a feasibility case study, we apply this pipeline to the CLIP ViT-L-14 encoder on 42 profession classes of the FACET benchmark, auditing both gender and age bias. For gender, the pipeline identifies four terminal-layer heads whose ablation reduces global bias (Cramer's V: 0.381 -> 0.362) while marginally improving accuracy (+0.42%); a layer-matched random control confirms that this effect is specific to the identified heads. A single head in the final layer contributes to the majority of the reduction in the most stereotyped classes, and class-level analysis shows that corrected predictions shift toward the correct occupation. For age, the same pipeline identifies candidate heads, but ablation produces weaker and less consistent effects, suggesting that age bias is encoded more diffusely than gender bias in this model. These results provide preliminary evidence that head-level bias localisation is feasible for discriminative vision encoders and that the degree of localisability may vary across protected attributes. keywords: Bias . CLIP . Mechanistic Interpretability . Vision Transformer . Fairness

Motivation & Objective

  • Provide a methodology to locate demographic bias inside vision transformers at the attention-head level.
  • Demonstrate whether bias is localisable to specific heads in CLIP’s ViT-L-14 encoder.
  • Compare gender and age bias localisation to assess attribute-dependent localisation.
  • Offer diagnostic tools (ablation, TextSpan) to validate which heads carry demographic signal.

Proposed method

  • Use projected residual-stream decomposition to attribute outputs to individual attention heads in a CLIP ViT-L-14 encoder.
  • Extend TextSpan with demographic and occupation prototypes to create bias-augmented descriptors for head analysis.
  • Apply zero-shot Concept Activation Vectors (CAV) derived from CLIP text embeddings to rank heads by demographic sensitivity.
  • Perform mean ablation of targeted heads to causally test their contribution to bias and predictions.
  • Incorporate a layer-matched random control to ensure effects are head-specific rather than due to overall attention removal.
  • Evaluate on FACET subset (42 professions) for gender and age bias, with chi-squared tests and Cramér’s V as bias metrics.

Experimental results

Research questions

  • RQ1Can demographic bias be localised to individual attention heads in a discriminative vision encoder like CLIP?
  • RQ2How do gender and age biases compare in terms of localisability within the CLIP ViT-L-14 architecture?
  • RQ3Does ablation of identified heads causally reduce bias, and is the effect robust to random head controls?
  • RQ4How do bias-localisation findings align with TextSpan-derived semantic annotations of head functions?
  • RQ5What are the class- and attribute-level implications of head-level bias mitigation (via ablation) on predictions?

Key findings

  • Gender bias concentrates in a small set of terminal-layer heads; ablating four heads reduces global gender bias (V from 0.381 to 0.362) while slightly increasing accuracy (64.30% to 64.72%).
  • A single final-layer head (L23H4) dominates the gender-bias reduction, accounting for about 87% of the doctor-related bias reduction.
  • Class-level analysis shows corrected predictions move toward the correct occupation after head ablation (e.g., doctor).
  • Age bias is less localisable; identified age heads yield weaker and inconsistent effects, suggesting more diffuse encoding of age bias in this model.
  • Layer-matched random controls confirm that observed bias reductions are specific to the identified heads rather than generic attenuation of attention.
  • Mean ablation reveals that removing a biased head shifts predictions rather than eliminating bias, indicating redistribution effects and that ablation is diagnostic, not debiasing.

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.