ContextBias:文本到图像模型中上下文偏移下偏差持续性的受控评估
研究论文 · 2026/09/01
本文提出 ContextBias 框架和 ContextBench 基准,用于评估文本到图像模型在上下文变化下职业角色视觉表征的偏见持续性。通过 92 个角色和 1,656 个语义控制提示,对四个模型生成的 66,240 张图像进行分析,发现将角色置于语义无关的上下文中并不会抑制角色关联属性,反而增加了跨角色属性集中度(合并 BI +0.047)。人口统计线索、特征服装和角色特定工具在无上下文、相关和不相关条件下均高度存在,且对语义提示重述具有鲁棒性。场景构图和相机取景对上下文最敏感。这些发现揭示了一种在无上下文评估中基本不可见的刻板印象持续性,强调了在偏见基准测试中引入受控上下文变化的必要性。代码和数据集已公开。
本文针对文本到图像模型中的偏见持久性问题,提出了新的评估框架和基准,并通过大规模实验揭示了上下文变化对偏见的影响,为偏见评估提供了新视角,具有重要的方法论贡献和实际意义。
Text-to-image models learn associations between concepts - in the case of this paper, people's professions, which we refer to as roles - and visual attributes. These associations can underpin many observed forms of stereotypical bias. A key open question in this area is whether these associations are stable or change when visual representations of people in professional roles are placed in different prompted contexts. We introduce ContextBias, a controlled evaluation framework, and ContextBench, a benchmark spanning 92 roles and 1,656 semantically controlled prompts, designed to isolate the effect of contextual variation on role-linked visual representations. Evaluating four state-of-the-art models on 66,240 generated images, we find that placing a role in a semantically unrelated context does not suppress role-linked attributes; instead, cross-role attribute concentration increases (pooled BI +0.047). Demographic cues, characteristic garments, and role-specific tools remain highly prevalent across context-free, related, and unrelated conditions, and are robust to semantic prompt reformulation. Scene composition and camera framing show the greatest context-sensitivity. These findings reveal a form of stereotypical persistence that remains largely invisible to context-free evaluations, highlighting the need for controlled contextual variation in bias benchmarking. Code and dataset: https://huggingface.co/datasets/shaghayegh/ContextBias , https://github.com/Sina-Emami/ContextBias