TL;DR
The paper introduces Diffusion Trajectory Matching (DTM), a framework that treats diffusion model guidance as a variational optimal control problem. By optimizing "control signals" at each step of the generative process, the authors enable high-quality, training-free guidance for complex tasks—including non-linear and blind inverse problems—outperforming existing state-of-the-art methods in both speed and perceptual accuracy.
What Problem Does This Paper Address?
Diffusion models are world-class at generating high-fidelity images, but "steering" them toward a specific result (like reconstructing a sharp image from a blurry one) remains a challenge.
Existing approaches generally fall into two camps:
- Training-based: These require retraining the model or training additional "classifiers" for every new task, which is computationally expensive and inflexible.
- Training-free: Methods like Diffusion Posterior Sampling (DPS) attempt to guide pre-trained models during inference. However, these often rely on simplistic assumptions (like linear approximations) that lead to artifacts, instability, or poor performance on non-linear tasks (e.g., complex deblurring).
The authors aim to provide a unified, principled mathematical framework that can guide any pre-trained diffusion model to satisfy specific constraints without needing any additional training.
Methods
The core innovation is framing guidance as Stochastic Optimal Control.
Imagine the diffusion process as a particle moving through space. DTM introduces a control signal ($u_t$) that nudges this particle at every timestep. The goal is to minimize a cost function with two parts:
- Terminal Cost: Ensures the final generated image satisfies the goal (e.g., "this image must match the blurry input when blurred").
- Transient Cost: A regularizer (using KL-divergence) that ensures the guided path doesn't stray too far from the model's "natural" distribution. This prevents the model from generating "adversarial" or unrealistic images.
The authors specifically instantiate this as Non-linear Diffusion Trajectory Matching (NDTM). Unlike previous methods that simply add a gradient to the score function, NDTM optimizes the control signal through the model's non-linear layers. They use Tweedie’s Formula to estimate the final state at each step, allowing for a "greedy" optimization that is computationally tractable.
Datasets
The researchers evaluated their method across several standard benchmarks:
- FFHQ (256x256): A dataset of high-quality human faces used for deblurring, super-resolution, and inpainting.
- ImageNet (256x256): Used to test the model's ability to handle diverse, real-world objects.
- WikiArt & PartiPrompt: Used for Style Guidance experiments, where the model must generate an image matching a text prompt while adopting the artistic style of a reference image.
Key Insights and Ideas
- Guidance as Inference: The paper reinforces the "Control as Inference" perspective, showing that many existing guidance methods are actually just restricted, linear versions of the DTM framework.
- Hierarchical Control: By visualizing the optimal controls, the authors found that the model naturally handles guidance in a "coarse-to-fine" manner. Early steps establish global structure, while later steps refine high-frequency details like edges and textures.
- Agnosticism: Because DTM is an optimization process at inference time, it is agnostic to the model architecture. It works equally well on pixel-space models and latent-space models like Stable Diffusion.
- Stability through Regularization: The "Transient Cost" is the secret sauce. By penalizing deviations from the unguided trajectory, the model stays on the "image manifold," producing realistic results even under heavy constraints.
Key Results
NDTM consistently outperformed baselines like DPS, RED-diff, and MPGD across multiple metrics:
- Non-linear Deblurring: On FFHQ, NDTM achieved an LPIPS score of 0.046, vastly superior to DPS (0.752) and RED-diff (0.362). Lower LPIPS indicates higher perceptual similarity to the ground truth. Visual results confirm that NDTM avoids the severe artifacts seen in DPS.
- Blind Inverse Problems: In "Blind" deblurring (where the blur kernel is unknown), NDTM was not only more accurate but also 7x faster than the previous state-of-the-art, DMPlug (7 mins vs 51 mins per image).
- Style Transfer: When used with Stable Diffusion, NDTM provided a better balance between following the text prompt (CLIP score) and adhering to the reference style compared to other training-free methods.
Limitations and Future Work
- Computational Overhead: While faster than some competitors, NDTM still requires an inner optimization loop (e.g., 2-5 iterations of Adam) at each diffusion step. This makes it slower than simple, unguided sampling.
- Differentiability: The current formulation assumes the "terminal cost" (the task constraint) is differentiable. The authors note that extending this to non-differentiable constraints (like discrete logic or certain physical simulations) is a key area for future research.
- Fast Samplers: Integrating DTM with accelerated sampling techniques (like Consistency Models) could potentially bring the high-quality guidance of NDTM to real-time applications.
Summary updated