arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.12700cs.CVcs.AIcs.CYcs.LGcs.MM
收藏

嵌入伦理心智:通过轻量级价值优化对齐文本到图像合成

Embedding an Ethical Mind: Aligning Text-to-Image Synthesis via Lightweight Value Optimization

Tsinghua University(清华大学);Microsoft Research Asia(微软亚洲研究院)

Xingqi Wang, Xiaoyuan Yi, Xing Xie, Jia Jia

AI总结:

针对文本到图像模型易产生有害内容的问题,提出轻量级对齐方法LiVO,通过优化即插即用的价值编码器并结合自适应价值选择,在不更新大部分模型参数的情况下显著减少有害输出并加速收敛。

摘要:

在大规模数据上训练的扩散模型的最新进展使得生成难以区分的人类水平图像成为可能,然而它们经常产生与人类价值观不一致的有害内容,例如社会偏见和冒犯性内容。尽管对大型语言模型(LLMs)进行了广泛研究,但文本到图像(T2I)模型对齐的挑战在很大程度上仍未被探索。针对这一问题,我们提出了LiVO(Lightweight Value Optimization,轻量级价值优化),一种将T2I模型与人类价值观对齐的新型轻量级方法。LiVO仅优化一个即插即用的价值编码器,以将指定的价值原则与输入提示词相结合,从而允许对生成图像在语义和价值上进行控制。具体而言,我们设计了一个为扩散模型量身定制的偏好优化损失,它在理论上近似于LLM对齐中使用的Bradley-Terry模型,但在图像质量和价值一致性之间提供了更灵活的权衡。为了优化价值编码器,我们还开发了一个框架,自动构建包含86k个(提示词,对齐图像,违规图像,价值原则)样本的文本-图像偏好数据集。在不更新大多数模型参数的情况下,通过从输入提示词中进行自适应价值选择,LiVO显著减少了有害输出并实现了更快的收敛,超越了几个强大的基线,并向伦理对齐的T2I模型迈出了初步的一步。

英文摘要:

Recent advancements in diffusion models trained on large-scale data have enabled the generation of indistinguishable human-level images, yet they often produce harmful content misaligned with human values, e.g., social bias, and offensive content. Despite extensive research on Large Language Models (LLMs), the challenge of Text-to-Image (T2I) model alignment remains largely unexplored. Addressing this problem, we propose LiVO (Lightweight Value Optimization), a novel lightweight method for aligning T2I models with human values. LiVO only optimizes a plug-and-play value encoder to integrate a specified value principle with the input prompt, allowing the control of generated images over both semantics and values. Specifically, we design a diffusion model-tailored preference optimization loss, which theoretically approximates the Bradley-Terry model used in LLM alignment but provides a more flexible trade-off between image quality and value conformity. To optimize the value encoder, we also develop a framework to automatically construct a text-image preference dataset of 86k (prompt, aligned image, violating image, value principle) samples. Without updating most model parameters and through adaptive value selection from the input prompt, LiVO significantly reduces harmful outputs and achieves faster convergence, surpassing several strong baselines and taking an initial step towards ethically aligned T2I models.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑