Solving Inverse Problems via Diffusion Optimal Control

Henry Li, Marcus Aloysius Pereira

Diffusion models have revolutionized data generation, but leveraging them to solve inverse problems—reconstructing an original signal $x$ from a corrupted or partial measurement $y$—remains a significant challenge. Existing approaches typically frame this signal recovery task as a probabilistic sampling episode, attempting to draw solutions from a desired posterior distribution.

However, this standard framework suffers from critical drawbacks. Calculating the necessary "conditional score function" is mathematically intractable because it depends on noisy intermediate states. Consequently, existing solvers rely on approximations (like using Tweedie’s formula to guess the clean image at every step). This leads to brittle performance that drops sharply with fewer diffusion steps, poor early-stage predictions of the clean image ($x_0$), and an inability to handle complex, nonlinear measurement operators.

To sidestep these limitations, researchers propose reframing the generative process as a discrete optimal control problem.

Diffusion Optimal Control (DOC)

Instead of viewing the reverse diffusion process as "sampling plus a nudge," the authors treat it as a dynamical system that must be controlled to reach a specific target measurement.

Comparison of standard posterior sampling trajectories versus Diffusion Optimal Control.

To achieve this, they introduce Diffusion Optimal Control (DOC), a solver inspired by the iterative Linear Quadratic Regulator (iLQR) algorithm—a classic tool from robotics and control theory.

Key components of the DOC framework include:

  • iLQR Adaptation: The algorithm uses first-order approximations of the system dynamics and second-order approximations of a "cost function" (measuring how well the image matches the target) to find optimal "control inputs" at each step.
  • High-Dimensional Scaling: Standard iLQR requires massive matrices that are impossible to store for high-resolution images. The authors solve this using randomized low-rank approximations and matrix-free evaluations, allowing the algorithm to run efficiently on standard GPUs.
  • Exact $x_0$ Rollouts: Unlike prior methods that approximate the final clean image using noisy heuristics, DOC computes the exact $x_0$ resulting from a specific trajectory, yielding much higher quality gradients.

Key Insights

By treating the problem as end-to-end control, the algorithm naturally accounts for the entire trajectory. This makes it significantly less sensitive to the total number of timesteps ($T$) compared to traditional posterior samplers.

A beautiful theoretical finding in the paper is that the desired conditional score function arises naturally as the Jacobian of the "value function" within this control framework. Furthermore, the idealized posterior sampling equation can be recovered as a special case of the DOC algorithm.

Surprisingly, the method is also robust to the underlying prior. Even if the diffusion model is poorly trained, the control logic focuses heavily on satisfying the measurement constraint, often producing a feasible solution where other methods would fail.

State-of-the-Art Results

The researchers evaluated DOC against popular solvers (like DPS, DDRM, and MCG) across various tasks, including $4\times$ Super-Resolution, Inpainting, and Deblurring, primarily using the FFHQ 256x256 dataset.

  • Benchmark Dominance: DOC established a new state-of-the-art baseline, achieving the best FID and LPIPS scores across almost all categories on the FFHQ-1K benchmark. For instance, in Random Inpainting, DOC achieved an FID of 15.93, significantly outperforming the next best diffusion-based solver (DPS at 33.12).
  • Low-Step Efficiency: While competing methods fail or produce severe artifacts when diffusion steps are reduced, DOC remains highly stable.
  • Nonlinear Success: Tested on MNIST with highly nonlinear constraints (e.g., generating a digit that satisfies a specific neural network classifier's label), DOC produced images much more clearly aligned with the target class than previous methods.

Limitations and Future Directions

While powerful, DOC is not without limitations. The iLQR framework involves an iterative "forward-backward" optimization loop, making it more computationally intensive than simple one-pass samplers. Additionally, the forward measurement operator must be differentiable to calculate the necessary gradients.

Looking ahead, this control-based perspective could be extended to other generative architectures beyond diffusion, or utilized to incorporate even more complex costs, such as aesthetic preferences or safety constraints, opening new doors for precise, controllable generation.

Summary updated

BibTeX
@inproceedings{li2024solving,
  author = {Henry Li and Marcus Aloysius Pereira},
  title = {{Solving Inverse Problems via Diffusion Optimal Control}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=wqLC4G1GN3},
}
Figure