Inference-Time Alignment of Diffusion Models with Evolutionary Algorithms
Authors:
- Purvish JajalPJPurvish Jajal
- Nick John EliopoulosNENick John Eliopoulos
- Benjamin Shiue-Hal ChouBCBenjamin Shiue-Hal Chou
- George K. ThiruvathukalGTGeorge K. Thiruvathukal
- James C. DavisJDJames C. Davis
- Yung-Hsiang LuYLYung-Hsiang Lu
Preprint
Abstract
Diffusion models are state-of-the-art generative models in various domains, yet their samples often fail to satisfy downstream objectives such as safety constraints or domain-specific validity. Existing techniques for alignment require gradients, internal model access, or large computational budgets. We introduce an inference-time alignment framework based on evolutionary algorithms. We treat diffusion models as black-boxes and search their latent space to maximize alignment objectives. Our method enables efficient inference-time alignment for both differentiable and non-differentiable alignment objectives across a range of diffusion models. On the DrawBench and Open Image Preferences benchmark, our EA methods outperform state-of-the-art gradient-based and gradient-free inference-time methods. In terms of memory consumption, we require 55% to 76% lower GPU memory than gradient-based methods. In terms of running-time, we are 72% to 80% faster than gradient-based methods. We achieve higher alignment scores over 50 optimization steps on Open Image Preferences than gradient-based and gradient-free methods.Keywords
All Related Versions
This publication has 7 references indexed in Scilit:
- Alignment of Diffusion Models: Fundamentals, Challenges, and FutureACM Computing Surveys, 2026
- Automating the Search for Artificial Life With Foundation ModelsArtificial Life, 2025
- T2VSafetyBench: Evaluating the Safety of Text-to-Video Generative Models2024
- Pick-a-Pic: An Open Dataset of User Preferences for Text-to-Image Generation2023
- ImageReward: Learning and Evaluating Human Preferences for Text-to-Image Generation2023
- Photorealistic Text-To-Image Diffusion Models with Deep Language Understanding2022
- Genetic Algorithm Essentials2017