This is the official implementation of DyMO, introduced in Training-Free Diffusion Model Alignment with Dynamic Multi-Objective Scheduling.
- Release the inference code of DyMO (Coming soon/Almost there🤓).
Text-to-image diffusion model alignment is critical for improving the alignment between the generated images and human preferences. While training-based methods are constrained by high computational costs and dataset requirements, training-free alignment methods remain underexplored and are often limited by inaccurate guidance.
We propose a plug-and-play training-free alignment method, DyMO, for aligning the generated images and human preferences during inference. Apart from text-aware human preference scores, we introduce a semantic alignment objective for enhancing the semantic alignment in the early stages of diffusion, relying on the fact that the attention maps are effective reflections of the semantics in noisy images. We propose dynamic scheduling of multiple objectives and intermediate recurrent steps to reflect the requirements at different steps.
Experiments with diverse pre-trained diffusion models and metrics demonstrate the effectiveness and robustness of the proposed method. The project page: https://shelsin.github.io/dymo.github.io/
Download the model "sd-v1-5_step-aware_preference_model.bin" and "sdxl_step-aware_preference_model.bin" first, and then duplicate them to the "model_ckpts" file.
SD v1.5 inference
python inference_sd15_dymo.pySDXL inference
python inference_sdxl_dymo.pyOur codebase references the code from Diffusers, SPO and PickScore. We extend our gratitude to their authors for open-sourcing their code.
If you find this code useful in your research, please consider citing:
@InProceedings{xin2025dymo,
author={Xie, Xin and Gong, Dong},
title={DyMO: Training-Free Diffusion Model Alignment with Dynamic Multi-Objective Scheduling},
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
month={June},
year={2025}
}


