轻量级方法LightFair通过微调文本编码器提升文生图模型公平性。
LightFair: Towards an Efficient Alternative for Fair T2I Diffusion via Debiasing Pre-trained Text Encoders
- 微调文本嵌入,用距离约束策略平衡不同属性的图像分布。
- 在Stable Diffusion v1.5上实现最优去偏效果,训练开销仅为四分之一。
- 适合关注生成公平性且资源有限的研究者与开发者。
本文提出一种轻量级方法LightFair,通过缓解文本编码器的偏差来实现更公平的文生图扩散模型(T2I DMs)。现有方法或需全参数训练,或依赖额外网络修正,导致训练与采样负担重、性能不理想。由于文本编码器是可高度微调的前端模块,本文聚焦于微调文本嵌入以缓解偏差。实验发现,文本编码器输出的中性嵌入在CLIP空间中对不同属性图像的嵌入分布存在显著偏移,且噪声预测网络会进一步放大该不平衡。为此,提出协同距离约束去偏策略,在无辅助参考的情况下平衡嵌入距离。但去偏可能影响生成质量,因此引入两阶段文本引导采样策略,控制去偏编码器的介入时机。大量实验表明,LightFair高效有效:在Stable Diffusion v1.5上达到当前最佳去偏效果,仅需原方法1/4的训练开销,采样负担几乎无增加。代码已开源。
原文摘要 · Abstract (English)
This paper explores a novel lightweight approach LightFair to achieve fair text-to-image diffusion models (T2I DMs) by addressing the adverse effects of the text encoder. Most existing methods either couple different parts of the diffusion model for full-parameter training or rely on auxiliary networks for correction. They incur heavy training or sampling burden and unsatisfactory performance. Since T2I DMs consist of multiple components, with the text encoder being the most fine-tunable and front-end module, this paper focuses on mitigating bias by fine-tuning text embeddings. To validate feasibility, we observe that the text encoder's neutral embedding output shows substantial skewness across image embeddings of various attributes in the CLIP space. More importantly, the noise prediction network further amplifies this imbalance. To finetune the text embedding, we propose a collaborative distance-constrained debiasing strategy that balances embedding distances to improve fairness without auxiliary references. However, mitigating bias can compromise the original generation quality. To address this, we introduce a two-stage text-guided sampling strategy to limit when the debiased text encoder intervenes. Extensive experiments demonstrate that LightFair is effective and efficient. Notably, on Stable Diffusion v1.5, our method achieves SOTA debiasing at just $1/4$ of the training burden, with virtually no increase in sampling burden. The code is available at https://github.com/boyuh/LightFair.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。