EquiSteer: 面向更公平的文本引导图像生成的交叉注意力引导
EquiSteer: Cross-Attention Steering Towards a Fairer Text-Guided Image Generation
AI总结:
提出EquiSteer,一种无需训练的方法,通过在推理时引导交叉注意力激活来减少文本到图像扩散模型中的性别偏见,平均减少高达87%的性别差异。
摘要:
文本到图像扩散模型支撑着日常创意任务,但它们仍然再现了训练数据中的人口统计偏见。对于诸如“护士照片”、“CEO照片”等常见提示,模型会根据训练数据的统计数据而非文本内容,使输出偏向某一性别。现有的去偏方法在狭窄场景下显示出潜力,但需要重新训练、批次级控制或特定提示调整,限制了其可扩展性。我们提出EquiSteer,一种无需训练的方法,通过在推理时引导交叉注意力(CA)激活来逐样本工作。对于每个目标属性,EquiSteer从对比提示中预计算引导向量。在生成时,一个提示感知的门控保持属性特定提示不变,而对于中性提示,它从CA激活中清除现有属性信号并注入目标属性。在SD-1.5、SD-2.1、SDXL和SANA上,EquiSteer平均减少了高达87%的性别差异,对图像质量和文本-图像对齐影响极小。代码可在\href{this https URL}{this https URL}获取。
英文摘要:
Text-to-image diffusion models power everyday creative tasks, but they still reproduce the demographic biases in their training data. On common prompts such as ``a photo of a nurse,'' ``a photo of a CEO'', they skew their outputs toward one gender, driven by the statistics of training data rather than anything in the text. Existing debiasing methods show promise in narrow settings but require retraining, batch-level control, or prompt-specific tuning, limiting their scalability. We propose \emph{EquiSteer}, a training-free method that works per sample by steering cross-attention (CA) activations at inference time. For each target attribute, EquiSteer precomputes steering vectors from contrastive prompts. Then at generation time, a prompt-aware gate leaves attribute-specific prompts untouched, while for neutral ones it clears existing attribute signals from the CA activations and injects a target attribute. Across SD-1.5, SD-2.1, SDXL, and SANA, EquiSteer reduces the average parity gap by up to $87\%$, with minimal effect on image quality and text-image alignment. Code is available at \href{https://github.com/Atmyre/EquiSteer}{https://github.com/Atmyre/EquiSteer}.%
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。