Skip to main content
QUICK 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 Sciences被引用 0
一句话总结

该论文提出一种机制性公平性审计,通过使用投影残差流分解、零-shot CAV 基于排序和带偏置的 TextSpan 分析,将人口偏见本地化到 CLIP 视觉编码器中注意力头的级别,并在 FACET 的性别与年龄偏见上对 CLIP ViT-L-14 进行演示。

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

研究动机与目标

  • 提供一种在视觉变换器内部按注意力头定位人口偏见的方法论。
  • 证明偏见是否可以局部化到 CLIP 的 ViT-L-14 编码器的特定头。
  • 比较性别与年龄偏见的局部化以评估属性相关的局部化。
  • 提供诊断工具(消融、TextSpan)以验证哪些头携带人口信号。

提出的方法

  • 使用投影残差流分解将输出归因于 CLIP ViT-L-14 编码器中的单个注意力头。
  • 将人口统计和职业原型扩展到 TextSpan,以为头部分析创建带偏置的描述符。
  • 应用来自 CLIP 文本嵌入的零-shot 概念激活向量(CAV)对头部进行按人口统计敏感性排序。
  • 对目标头进行均值消融以因果性地测试它们对偏见和预测的贡献。
  • 纳入逐层匹配的随机对照以确保效应是头部特异的,而非由于整体注意力移除。
  • 在 FACET 子集(42 种职业)上评估性别与年龄偏见,使用卡方检验和 Cramér’s V 作为偏见度量。

实验结果

研究问题

  • RQ1是否能够将人口偏见局部化到像 CLIP 这样的 discriminative 视觉编码器的单独注意力头?
  • RQ2在 CLIP ViT-L-14 架构中,性别和年龄偏见在局部化方面有何差异?
  • RQ3识别头部的消融是否会因果性地降低偏见,且对随机头对照的鲁棒性如何?
  • RQ4偏见局部化发现与 TextSpan 衍生的头部功能语义注释之间如何对齐?
  • RQ5通过头部层消融进行的偏见缓解在预测上的类级和属性级含义是什么?

主要发现

  • 性别偏见集中在少数终端层头部;消融四个头部可以降低全局性别偏见(V 从 0.381 降至 0.362),同时准确率略有提高(从 64.30% 提升至 64.72%)。
  • 单个最终层头部(L23H4)主导性别偏见的降低,约占偏见降低的 87%(与医生相关偏见的降低相关)。
  • 类别级分析显示在头部消融后预测更趋向正确职业(如医生)。
  • 年龄偏见的局部化程度较低;识别出的年龄头部产生的效应较弱且不一致,提示该模型中年龄偏见的编码更加分散。
  • 层匹配的随机对照证实观察到的偏见降低是特定于所识别头部的,而非对注意力的普遍削减。
  • 均值消融显示移除带偏见的头部会改变预测方向而非消除偏见,表明存在再分配效应,消融具有诊断性而非去偏化的作用。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。