Zeroth-order Informed Fine-Tuning for Diffusion Model: A Recursive Likelihood Ratio Optimizer

Tao Ren, Zishi Zhang, Zehao Li, Jingyang Jiang, Shentao Qin, Guanghao Li, Yan Li, Yi Zheng, Xinping Li, Min Zhan, Yijie Peng · OpenReview

Abstract

The probabilistic diffusion model (DM), generating content by inferencing through a recursive chain structure, has emerged as a powerful framework for visual generation. After pre-training on enormous unlabeled data, the model needs to be properly aligned to meet requirements for downstream applications. How to efficiently align the foundation DM is a crucial task. Contemporary methods are either based on Reinforcement Learning (RL) or truncated Backpropagation (BP). However, RL and truncated BP suffer from low sample efficiency and biased gradient estimation respectively, resulting in limited improvement or, even worse, complete training failure. To overcome the challenges, we propose the Recursive Likelihood Ratio (RLR) optimizer, a zeroth-order informed fine-tuning paradigm for DM. The zeroth-order gradient estimator enables the computation graph rearrangement within the recursive diffusive chain, making the RLR's gradient estimator an unbiased one with the lower variance than other methods. We provide theoretical guarantees for the performance of the RLR. Extensive experiments are conducted on image and video generation tasks to validate the superiority of the RLR. Furthermore, we propose a novel prompt technique that is natural for the RLR to achieve a synergistic effect.

Introduction

Fine-tuning large-scale Diffusion Models (DMs) to align with human preferences—such as aesthetic quality or prompt adherence—presents significant computational challenges. Current alignment strategies typically fall into two problematic categories. Full Backpropagation (BP) is theoretically ideal but computationally prohibitive; for instance, training Stable Diffusion 1.4 through 50 time steps would require approximately 1TB of GPU RAM. To mitigate this, Truncated BP limits backpropagation to the final steps, which introduces "structural bias" and often leads to model collapse. Conversely, Reinforcement Learning (RL) methods avoid high memory costs by treating the model as a black box, but they suffer from high gradient variance and slow convergence.

Methodology: The Recursive Likelihood Ratio Optimizer

To address the limitations of existing methods, we introduce the Recursive Likelihood Ratio (RLR) optimizer. RLR operates as a "Half-Order" (HO) approach, balancing the precision of first-order gradients with the memory efficiency of zeroth-order methods.

The computation paradigm of the RLR optimizer.

The core innovation of RLR lies in the rearrangement of the diffusion chain's computational graph. The optimizer employs a composite strategy:

  1. Direct Differentiation: Standard first-order gradients are used for the final step connected to the reward model.
  2. Half-Order Estimation: A local "shifting window" of length $h$ is selected within the chain. Backpropagation is performed only within this window, utilizing the inherent noise of the diffusion process via Likelihood Ratio techniques.
  3. Zeroth-Order Estimation: For steps outside the window, parameter perturbation is used to maintain an unbiased gradient estimate without storing activation tensors.

Additionally, the framework introduces Diffusive Chain-of-Thought (DCoT). Recognizing that DMs generate content hierarchically (from coarse outlines to fine details), DCoT decomposes a single prompt into three levels—coarse, mid, and fine—to target specific stages of the diffusion process more effectively.

Experiments and Results

We evaluated RLR across both image and video generation tasks using benchmarks such as Pick-a-Pic, HPD v2, and VBench. Reward models including PickScore and ImageReward served as the objective functions for alignment.

Reward convergence analysis across training steps.

RLR consistently outperformed state-of-the-art baselines like DDPO and AlignProp. On Stable Diffusion 2.1, RLR achieved an ImageReward score of 83.07, significantly higher than AlignProp (72.62) and DDPO (52.85). Furthermore, RLR demonstrated exceptional sample efficiency, reaching target aesthetic scores in just 75 steps, compared to the 600 steps required by RL-based methods. In video generation, RLR achieved a leading weighted average score of 84.63 on the VBench benchmark.

Discussion and Conclusion

The RLR optimizer provides a mathematically sound "Middle Way" for DM alignment. By ensuring unbiasedness, it avoids the model collapse seen in truncated BP, while its "Half-Order" structure captures enough model information to significantly reduce the variance seen in RL. While RLR introduces some computational overhead compared to pure RL and requires tuning of the window length $h$, its ability to achieve high-quality alignment with manageable memory requirements marks a significant advancement in the field.

Summary updated

BibTeX
@inproceedings{ren2026zeroth,
  author = {Tao Ren and Zishi Zhang and Zehao Li and Jingyang Jiang and Shentao Qin and Guanghao Li and Yan Li and Yi Zheng and Xinping Li and Min Zhan and Yijie Peng},
  title = {{Zeroth-order Informed Fine-Tuning for Diffusion Model: A Recursive Likelihood Ratio Optimizer}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=AZ6lqcvHLX},
}
Figure