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

Xingqi Wang, Xiaoyuan Yi, Xing Xie, Jia Jia
10/16/2024
cs.CVcs.AIcs.CY

No official code found. Best implementation: achernarwang/LiVO (20 stars, MIT, last commit 2024-12-09).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

achernarwang/LiVOCommunity100%
MIT

The official implementation of ACM Multimedia 2024 accepted paper "Embedding an Ethical Mind: Aligning Text-to-Image Synthesis via Lightweight Value Optimization"

202Shell, PythonAug 16, 20241 years agoMIT

Similar Papers

Cite this paper

@article{wang2024embedding,
  title  = {Embedding an Ethical Mind: Aligning Text-to-Image Synthesis via Lightweight Value Optimization},
  author = {Xingqi Wang and Xiaoyuan Yi and Xing Xie and Jia Jia},
  year   = {2024},
  eprint = {2410.12700},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.12700v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.12700.svg)](https://codeofpaper.com/paper/2410.12700)

Discussion