cs.CVNov 21, 2026

Contrastive Gradient Guidance for Test-Time Multi-Preference Alignment of Diffusion Models

Authors: Po-Yi Lu, Jui-Chao Lu, Paul Kuo-Ming Huang, Shih-Hsin Wang, Chun-Liang Li, Hsuan-Tien Lin

Organizations: National Taiwan University · New York University · Harvard University · University of Washington

Abstract

Aligning pre-trained diffusion models with multiple context-dependent preferences requires adapting generation at test time rather than relying on offline fine-tuning, which requires hyperparameter tuning and a new training run for each preference trade-off. Existing approaches compress diverse preferences into a single scalar reward objective for fine-tuning or test-time guidance rather than directly reusing existing generative experts released for different purposes and obtained through different fine-tuning methods. In this work, we propose Contrastive Gradient Guidance (CGG), a test-time compositional generative framework that reformulates multi-preference alignment as a composition of distributions. CGG represents each preference as a contrastive preference pair of favored experts and unfavored anti-experts, whose score difference forms a contrastive gradient guidance signal that combines denoising directions (gradients) from off-the-shelf diffusion models during sampling. Experiments show that CGG reuses pre-trained and fine-tuned models as favored experts or anti-experts to control output style and safety, and that it can be combined with existing sampling-based reward guidance. With a single fixed scale per pair, CGG composes five preferences at once and gives a more balanced trade-off across text-image preference, concept control, photographic fidelity, and safety than offline fine-tuning, weight-space merging, and reward steering.

Figures & tables

Appendix figures & tables24 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Rethinking Preference Alignment for Diffusion Models with Classifier-Free Guidance

    Feb 21, 2026Zhou Jiang, Yandong Wen, Zhen LiuDiffusion Model AlignmentPreference Alignment

  2. Latent Reward Registers for Diffusion Preference Alignment

    Aug 4, 2026Yuanshen Guan, Zipeng Feng, Chengru Song +2Diffusion Model AlignmentDiffusion Model Guidance

  3. Direct Diffusion Score Preference Optimization via Stepwise Contrastive Policy-Pair Supervision

    Dec 29, 2025Dohyun Kim, Seungwoo Lyu, Seung Wook Kim +1Diffusion Model AlignmentDiffusion Model Fine-Tuning