Inference-Time Alignment of Diffusion Models with Direct Noise Optimization

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Tang, Zhiwei, Peng, Jiangweizhi, Tang, Jiasheng, Hong, Mingyi, Wang, Fan, Chang, Tsung-Hui
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866913526061203456
author Tang, Zhiwei
Peng, Jiangweizhi
Tang, Jiasheng
Hong, Mingyi
Wang, Fan
Chang, Tsung-Hui
author_facet Tang, Zhiwei
Peng, Jiangweizhi
Tang, Jiasheng
Hong, Mingyi
Wang, Fan
Chang, Tsung-Hui
contents In this work, we focus on the alignment problem of diffusion models with a continuous reward function, which represents specific objectives for downstream tasks, such as increasing darkness or improving the aesthetics of images. The central goal of the alignment problem is to adjust the distribution learned by diffusion models such that the generated samples maximize the target reward function. We propose a novel alignment approach, named Direct Noise Optimization (DNO), that optimizes the injected noise during the sampling process of diffusion models. By design, DNO operates at inference-time, and thus is tuning-free and prompt-agnostic, with the alignment occurring in an online fashion during generation. We rigorously study the theoretical properties of DNO and also propose variants to deal with non-differentiable reward functions. Furthermore, we identify that naive implementation of DNO occasionally suffers from the out-of-distribution reward hacking problem, where optimized samples have high rewards but are no longer in the support of the pretrained distribution. To remedy this issue, we leverage classical high-dimensional statistics theory to an effective probability regularization technique. We conduct extensive experiments on several important reward functions and demonstrate that the proposed DNO approach can achieve state-of-the-art reward scores within a reasonable time budget for generation.
format Preprint
id arxiv_https___arxiv_org_abs_2405_18881
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Inference-Time Alignment of Diffusion Models with Direct Noise Optimization
Tang, Zhiwei
Peng, Jiangweizhi
Tang, Jiasheng
Hong, Mingyi
Wang, Fan
Chang, Tsung-Hui
Machine Learning
Artificial Intelligence
In this work, we focus on the alignment problem of diffusion models with a continuous reward function, which represents specific objectives for downstream tasks, such as increasing darkness or improving the aesthetics of images. The central goal of the alignment problem is to adjust the distribution learned by diffusion models such that the generated samples maximize the target reward function. We propose a novel alignment approach, named Direct Noise Optimization (DNO), that optimizes the injected noise during the sampling process of diffusion models. By design, DNO operates at inference-time, and thus is tuning-free and prompt-agnostic, with the alignment occurring in an online fashion during generation. We rigorously study the theoretical properties of DNO and also propose variants to deal with non-differentiable reward functions. Furthermore, we identify that naive implementation of DNO occasionally suffers from the out-of-distribution reward hacking problem, where optimized samples have high rewards but are no longer in the support of the pretrained distribution. To remedy this issue, we leverage classical high-dimensional statistics theory to an effective probability regularization technique. We conduct extensive experiments on several important reward functions and demonstrate that the proposed DNO approach can achieve state-of-the-art reward scores within a reasonable time budget for generation.
title Inference-Time Alignment of Diffusion Models with Direct Noise Optimization
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2405.18881