Diffusion-NPO: Negative Preference Optimization for Better Preference Aligned Generation of Diffusion Models
Fu-Yun Wang, Yunhao Shui, Jingtan Piao, Keqiang Sun, Hongsheng Li
TL;DR
Diffusion-NPO tackles the gap in human-preference alignment for diffusion models by targeting not only generating preferred outputs but also avoiding undesired ones via negative preferences. It introduces Negative Preference Optimization (NPO), a plug‑and‑play approach that reuses existing preference-optimization methods to train a negative-preference aligned model, and integrates this with classifier-free guidance through dual weight offsets at inference. The method yields consistent improvements across text-to-image and text-to-video tasks (SD1.5, SDXL, DreamShaper, VideoCrafter2) on metrics such as PickScore, HPSv2, ImageReward, and Laion-Aesthetic, and outperforms training-free CFG-strengthening baselines. By enabling separate optimization of conditional and unconditional outputs, Diffusion-NPO enhances alignment with human preferences while preserving model compatibility and practicality, though it incurs additional storage for dual offsets.
Abstract
Diffusion models have made substantial advances in image generation, yet models trained on large, unfiltered datasets often yield outputs misaligned with human preferences. Numerous methods have been proposed to fine-tune pre-trained diffusion models, achieving notable improvements in aligning generated outputs with human preferences. However, we argue that existing preference alignment methods neglect the critical role of handling unconditional/negative-conditional outputs, leading to a diminished capacity to avoid generating undesirable outcomes. This oversight limits the efficacy of classifier-free guidance~(CFG), which relies on the contrast between conditional generation and unconditional/negative-conditional generation to optimize output quality. In response, we propose a straightforward but versatile effective approach that involves training a model specifically attuned to negative preferences. This method does not require new training strategies or datasets but rather involves minor modifications to existing techniques. Our approach integrates seamlessly with models such as SD1.5, SDXL, video diffusion models and models that have undergone preference optimization, consistently enhancing their alignment with human preferences.
