Skip to content

Repository files navigation

DyMO: Training-Free Diffusion Model Alignment with Dynamic Multi-Objective Scheduling

Xin Xie, Dong Gong

This is the official implementation of DyMO, introduced in Training-Free Diffusion Model Alignment with Dynamic Multi-Objective Scheduling.

TODO

  • Release the inference code of DyMO (Coming soon/Almost there🤓).

Abstract

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/

Method Overview

method_overview

Gallery

Compare of SD V1.5-based models Compare of SD XL-based models

🔓 Available Checkpoints

Step-Aware_Preference_Models

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.

🔧 Inference

SD v1.5 inference

python inference_sd15_dymo.py

SDXL inference

python inference_sdxl_dymo.py

🚀 Acknowledgement

Our codebase references the code from Diffusers, SPO and PickScore. We extend our gratitude to their authors for open-sourcing their code.

📬 Citation

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}
}

About

DyMO: Training-Free Diffusion Model Alignment with Dynamic Multi-Objective Scheduling

Resources

Stars

12 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages