Direct Distributional Optimization for Provable Alignment of Diffusion Models

Ryotaro Kawata, Kazusato Oko, Atsushi Nitanda, Taiji Suzuki

Introduction

Aligning generative models with human preferences—ensuring they produce outputs that are aesthetic, safe, or contextually accurate—is a central challenge in modern artificial intelligence. While techniques like Reinforcement Learning with Human Feedback (RLHF) and Direct Preference Optimization (DPO) have become standard for Large Language Models (LLMs), applying these frameworks to diffusion models presents unique mathematical and computational hurdles. This paper introduces a novel framework that treats alignment as a direct distribution optimization problem, providing the first alignment method for diffusion models with rigorous convergence guarantees that do not rely on restrictive geometric assumptions.

The Alignment Challenge: Densities and Isoperimetry

Existing alignment methods for diffusion models typically struggle with two primary issues:

  1. Inaccessibility of Densities: Unlike some generative architectures, diffusion models do not provide an explicit probability density for a generated sample. This makes it difficult to apply standard optimization objectives that require calculating the likelihood of specific outputs.
  2. The Curse of Isoperimetry: Real-world data, such as high-resolution images, is inherently multimodal. Traditional optimization theory often requires a Log-Sobolev Inequality (LSI) to hold, which assumes the distribution is well-connected. In multimodal settings, the LSI constant becomes extremely poor, leading to agonizingly slow convergence for standard gradient-based methods.

The authors address these challenges by asking whether it is possible to align diffusion models without needing these restrictive mathematical assumptions, particularly in complex, multimodal environments.

Direct Distributional Optimization (DDO)

The proposed solution is a two-phase approach called Direct Distributional Optimization (DDO), which decouples the optimization of the target distribution from the sampling process.

Phase 1: Dual Averaging (DA)

Instead of attempting to update the model parameters directly through a noisy gradient process, the authors optimize the probability distribution itself. By employing an iterative Dual Averaging algorithm, they construct a sequence of potential functions ($f_k$) that define the optimal aligned distribution. Crucially, this phase is "isoperimetry-free," meaning its convergence is not hindered by the number of modes or the connectivity of the data distribution.

Phase 2: Sampling via Doob’s h-transform

Once the optimal potential is identified, the model must generate samples from this new distribution. Rather than retraining the entire diffusion model from scratch—a computationally expensive task—the framework utilizes Doob’s h-transform. This mathematical tool allows the authors to calculate a "drift" or correction term that is added to the pre-trained model's score function. This effectively "nudges" the generation process toward the preferred distribution while retaining the foundational knowledge of the pre-trained model.

Experimental Validation

The authors validated the DDO framework across three distinct benchmarks, ranging from theoretical toy cases to real-world medical imaging:

  • Synthetic GMM: Using a 2D Gaussian Mixture Model, the authors demonstrated that DDO can successfully navigate between distant modes. DDO achieved a lower True DPO loss (0.328) compared to the standard Diffusion-DPO baseline (0.343) and significantly improved the metric loss (the distance to the target mode).
  • Butterfly Images: Using 32x32 RGB images, the model was tasked with color-based alignment (e.g., shifting the population toward lighter-colored butterflies). The method successfully shifted the distribution within just a few iterations of Dual Averaging.
  • Medical MNIST (Head CT): In a practical application, the authors used 10,000 Head CT scans to perform "tilt correction." By augmenting the dataset, they successfully aligned the model to generate images facing a specific, preferred orientation, demonstrating the utility of DDO for domain-specific alignment tasks.

Key Insights and Theoretical Contributions

The primary contribution of this work is the provable convergence of the alignment process. The authors establish a $O(1/K)$ convergence rate for convex objectives and demonstrate robust performance even in non-convex settings. By leveraging the sampling efficiency of the pre-trained reference model, the complexity of sampling from the aligned distribution becomes independent of the geometric constraints (like LSI) that typically plague diffusion optimization.

Furthermore, the framework is highly versatile. It provides a unified recipe for various alignment objectives, including RLHF, DPO, and Kahneman-Tversky Optimization (KTO), suggesting that score correction is a powerful alternative to full model fine-tuning.

Limitations and Future Directions

While DDO offers strong theoretical guarantees, it introduces a trade-off in sampling speed. The current implementation of the h-transform relies on a naive Monte Carlo method with a time complexity of $O(L^2)$, where $L$ is the number of diffusion steps. This makes the generation process slower than standard diffusion. Additionally, the framework assumes that neural networks can accurately estimate the required drift; while the authors provide error bounds for these approximations, real-world performance remains dependent on the quality of the estimator.

Future research may focus on integrating Neural ODE solvers to approximate the correction term more efficiently, potentially reducing the sampling overhead and making DDO viable for real-time generative applications.

Summary updated

BibTeX
@inproceedings{kawata2025direct,
  author = {Ryotaro Kawata and Kazusato Oko and Atsushi Nitanda and Taiji Suzuki},
  title = {{Direct Distributional Optimization for Provable Alignment of Diffusion Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=Nvw2szDdmI},
}
Figure