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

Tao Ren, Zishi Zhang, Jinyang Jiang, Zehao Li, Shentao Qin, Yi Zheng, Guanghao Li, Qianyou Sun, Yan Li, Jiafeng Liang, Xinping Li, Yijie Peng

Overview

Fine-tuning diffusion models (DMs) to align with human preferences typically forces a difficult choice: endure the massive memory requirements of backpropagation or accept the sluggish, high-variance convergence of reinforcement learning. This paper introduces the Recursive Likelihood Ratio (RLR) optimizer, a novel "Half-Order" approach that rearranges the denoising computation graph. By doing so, RLR provides an unbiased gradient with significantly lower variance. Balancing memory efficiency and estimation accuracy, RLR outperforms state-of-the-art methods in both image and video alignment tasks.

Introduction: The Fine-Tuning Trilemma

Diffusion models generate content by recursively removing noise over many steps. To ensure these models follow specific human preferences—such as aesthetic quality or subject consistency—they must be fine-tuned using a reward model. However, the recursive nature of DMs creates a significant optimization "trilemma":

  1. Full Backpropagation (BP): While theoretically perfect, it is practically impossible for most setups. Fine-tuning Stable Diffusion 1.4 through 50 steps would require roughly 1TB of GPU RAM, far exceeding consumer and most enterprise hardware capabilities.
  2. Truncated BP: To save memory, researchers often backpropagate through only the last few steps. This introduces structural bias, which frequently leads to "model collapse," a state where the model eventually learns to output pure noise.
  3. Reinforcement Learning (RL): Methods like DDPO treat the generation process as a black box. While unbiased, they suffer from extreme variance, requiring a massive number of samples and extensive time to converge.

The authors seek a middle ground: an optimizer that is memory-efficient, unbiased, and stable enough for rapid convergence.

The Recursive Likelihood Ratio (RLR) Optimizer

The authors propose the RLR optimizer, categorized as a Half-Order (HO) fine-tuning paradigm. The core innovation is a strategic rearrangement of the computation graph into three distinct parts:

  • Direct Differentiation (First-Order): Exact backpropagation is used for the very first step to directly link the reward model to the generation chain.
  • Local Sub-chain (Half-Order): The method identifies a local "window" of steps (length $h$) and applies the Likelihood Ratio trick to the inherent noise already present in the diffusion process. This captures structural information without needing to store the entire chain's activations.
  • Parameter Perturbation (Zeroth-Order): For the remaining steps, parameter-level noise is used to ensure the total gradient remains unbiased while keeping memory costs low.

By optimizing the length of the sub-chain ($h$) and the starting index ($j$), RLR minimizes variance within a strict memory budget.

Core Innovations

  • The "Half-Order" Advantage: By embedding a local BP chain within a larger perturbation-based framework, RLR "borrows" the low variance of first-order methods and the memory efficiency of zeroth-order methods.
  • Unbiasedness is Non-Negotiable: The authors mathematically prove that while truncated BP is computationally cheaper, its inherent bias causes models to fail. RLR’s proof of unbiasedness explains why it successfully avoids the model collapse seen in other efficient methods.
  • Diffusive Chain-of-Thought (DCoT): Recognizing that DMs generate content from coarse shapes to fine details, the authors developed DCoT. This technique breaks a single prompt into three levels (Coarse, Mid, Fine). RLR can then target specific steps in the diffusion chain to improve specific scales of the image (e.g., fixing structural anomalies by targeting mid-to-fine steps).

Empirical Results

Qualitative comparison of Stable Diffusion 1.4 before and after RLR fine-tuning, alongside RLR-optimized Text2Video generation.

The researchers evaluated RLR across several high-standard benchmarks, including Pick-a-Pic and HPD v2 for Text-to-Image, and VBench for Text-to-Video.

  • Superior Performance: In Text-to-Image tasks, RLR consistently achieved higher reward scores than both DDPO (RL-based) and AlignProp (BP-based). For example, on SD 1.4 using the ImageReward metric, RLR scored 75.65 compared to AlignProp's 65.07.
  • Memory Efficiency: RLR required only 22.4 GB of total memory for SD 1.4 fine-tuning. In stark contrast, AlignProp required 103.9 GB, forcing it to offload memory to System RAM to avoid crashing.
  • Faster Convergence: RLR reached target aesthetic scores in just 75 steps, whereas RL-based methods required 600 steps to achieve comparable quality.
  • Video Excellence: RLR outperformed state-of-the-art video models (like Gen-2 and VideoCrafter) on the VBench weighted average, particularly excelling in "Dynamic Degree" and "Imaging Quality."

Limitations and Future Work

While highly effective, the method requires balancing the sub-chain length ($h$). If $h$ is too small, variance increases; if it is too large, memory usage spikes. Additionally, the method relies on the stochasticity of the diffusion model, meaning deterministic ODE solvers require explicit noise injection to work with RLR. Future work will explore applying RLR to larger models like SDXL and investigating more complex Chain-of-Thought prompting structures for multi-modal tasks.

Summary updated

BibTeX
@inproceedings{ren2026half,
  author = {Tao Ren and Zishi Zhang and Jinyang Jiang and Zehao Li and Shentao Qin and Yi Zheng and Guanghao Li and Qianyou Sun and Yan Li and Jiafeng Liang and Xinping Li and Yijie Peng},
  title = {{Half-order 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