Efficient Adjoint Matching for Fine-tuning Diffusion Models

Jeongwoo Shin, Dongsoo Shin, Yuchen Zhu, Wei Guo, Yongxin Chen, Joonseok Lee, Jaewoong Choi, Jaemoo Choi

TL;DR

Reward fine-tuning is essential for aligning text-to-image diffusion models with human preferences, but gradient-based methods like Adjoint Matching (AM) are notoriously slow. This paper introduces Efficient Adjoint Matching (EAM), a reformulation that replaces the complex base drift of the training dynamics with a simple linear drift. This mathematical shift eliminates the need for expensive backward ODE simulations and enables fast, deterministic forward sampling, accelerating training convergence by up to 4× while matching or exceeding state-of-the-art alignment quality.

What Problem Does This Paper Address?

While pretrained diffusion models excel at generating realistic images, they often fail to capture specific human preferences, prompt nuances, or high-level aesthetics. To bridge this gap, researchers fine-tune these models using differentiable reward functions (such as PickScore or ImageReward).

A mathematically rigorous framework for this is Adjoint Matching (AM), which treats fine-tuning as a Stochastic Optimal Control (SOC) problem. However, AM is computationally punishing due to two main bottlenecks:

  1. Forward SDE Simulation: It requires simulating full generative trajectories using a stochastic differential equation (SDE) solver during training, demanding a high number of function evaluations (NFEs).
  2. Backward Adjoint Simulation: It requires a sequential backward ODE simulation to propagate reward gradients back through time. This requires computing expensive Jacobian-Vector Products (JVPs) through the pretrained neural network at every single step.

The authors identify that both bottlenecks stem directly from the complex, non-linear base drift inherited from the pretrained model.

Methods

The core innovation of EAM is a clever redesign of the SOC problem's underlying mechanics. Instead of using the pretrained model's complex velocity field as the base drift, the authors introduce a linear base drift ($b(x,t) = D(t)x$) that satisfies a "memoryless" condition. To ensure the model still targets the correct reward-aligned distribution, they derive a corresponding terminal cost correction.

This structural change completely bypasses AM's computational bottlenecks:

  • Closed-Form Adjoint: Because the base drift is linear, its Jacobian simplifies to a scalar. The backward ODE can now be solved analytically in closed form, completely eliminating the backward simulation pass and its costly JVPs.
  • Solver-Agnostic Forward Trajectories: The memoryless property allows the training process to generate endpoint images ($X_1$) using an efficient, few-step deterministic ODE solver (e.g., 10 steps instead of 40 SDE steps). Intermediate states ($X_t$) are then directly sampled in a single step by adding noise to the endpoint via a closed-form kernel.
Comparison of the training pipelines between AM and EAM.

Datasets

  • Training: The authors fine-tuned Stable Diffusion 3.5-Medium using prompts from the Pick-a-Pic dataset.
  • Evaluation: Models were evaluated on DrawBench using 10-step DPM-Solver++ generation.
  • Metrics: Alignment quality was measured using PickScore, CLIPScore, ImageReward, HPSv2.1, and LAION-Aesthetics.

Key Insights and Ideas

  • The Drift is the Bottleneck: The primary "aha moment" is realizing that the complexity of Adjoint Matching isn't an inherent flaw of optimal control, but rather a consequence of tying the base drift to the pretrained model's velocity field. Decoupling them unlocks massive algebraic simplifications.
  • Trajectory Consistency Matters: Standard AM trains using stochastic SDE paths but evaluates using deterministic ODE paths. EAM generates training samples using the exact same few-step deterministic ODE solver used at inference, drastically reducing train-inference trajectory mismatch.
  • Preserving Fine-Grained Details: SDE-based training continuously injects stochastic noise, which tends to smooth out fine image details. Because EAM utilizes deterministic paths combined with exact endpoint-conditioned noising, it retains intricate textures and complex compositions much better than AM.

Key Results

  • 4× Faster Convergence: EAM achieves comparable or superior reward optimization up to 4× faster than standard AM in terms of wall-clock GPU hours.
  • Quantitative Superiority: In single-reward optimization (PickScore), EAM achieves a score of 23.16 compared to AM's 23.00. In multi-reward optimization (PickScore + HPSv2.1 + Aesthetics), EAM noticeably outperforms AM across ImageReward (0.98 vs 0.83), HPSv2.1 (0.306 vs 0.303), and Aesthetics (6.56 vs 6.21).
PickScore vs. Training Time on DrawBench, demonstrating EAM's 4x efficiency gain.

Limitations and Future Work

While EAM eliminates the backward ODE pass, its corrected terminal cost requires estimating the pretrained model's terminal score. The authors use Tweedie's formula as an approximation, which introduces a minor estimation error based on the intermediate timesteps chosen during training.

For future work, the authors suggest exploring advanced optimization enhancements common in reinforcement learning, such as experience replay buffers, managing old-policy trajectory drift, and implementing adaptive hyperparameter schedules.

Summary updated

BibTeX
@inproceedings{shin2026efficient,
  author = {Jeongwoo Shin and Dongsoo Shin and Yuchen Zhu and Wei Guo and Yongxin Chen and Joonseok Lee and Jaewoong Choi and Jaemoo Choi},
  title = {{Efficient Adjoint Matching for Fine-tuning Diffusion Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=vSHTrySbQc},
}
Figure