Training-free Diffusion Model Alignment with Sampling Demons

Po-Hung Yeh, Kuang-Huei Lee, Jun-Cheng Chen
2/12/2026

No official code found. Best implementation: aiiu-lab/DemonSampling (25 stars, Apache-2.0, last commit 2025-10-27). 2 more below.

Abstract

Aligning diffusion models with user preferences has been a key challenge. Existing methods for aligning diffusion models either require retraining or are limited to differentiable reward functions. To address these limitations, we propose a stochastic optimization approach, dubbed Demon, to guide the denoising process at inference time without backpropagation through reward functions or model retraining. Our approach works by controlling noise distribution in denoising steps to concentrate density on regions corresponding to high rewards through stochastic optimization. We provide comprehensive theoretical and empirical evidence to support and validate our approach, including experiments that use non-differentiable sources of rewards such as Visual-Language Model (VLM) APIs and human judgements. To the best of our knowledge, the proposed approach is the first inference-time, backpropagation-free preference alignment method for diffusion models. Our method can be easily integrated with existing diffusion models without further training. Our experiments show that the proposed approach significantly improves the average aesthetics scores for text-to-image generation. Implementation is available at https://github.com/aiiu-lab/DemonSampling.

View on arXivView PDF

Code Implementations(3)

Apache-2.0

[ICLR'25] Official implementation of "Training-free Diffusion Model Alignment with Sampling Demons"

253PythonJan 25, 202511 months agoApache-2.0

Project Page for https://arxiv.org/abs/2410.05760

50CSS, HTMLOct 9, 20245 months ago
diffusion-modeliclr2025
rareone0602/demonCommunity56%

Legacy implementation of ICLR 2025 "Sampling Demon" (arXiv:2410.05760).

00PythonMar 17, 20241 years ago
alignmentdiffusion-models

Similar Papers

Cite this paper

@article{yeh2026trainingfree,
  title  = {Training-free Diffusion Model Alignment with Sampling Demons},
  author = {Po-Hung Yeh and Kuang-Huei Lee and Jun-Cheng Chen},
  year   = {2026},
  eprint = {2410.05760},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.05760},
  journal = {ICLR 2024 2024}
}

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.05760.svg)](https://codeofpaper.com/paper/2410.05760)

Discussion