Abstract
Inference-time alignment for diffusion models aims to adapt a pre-trained reference diffusion model toward a target distribution without retraining the reference score network, thereby preserving the generative capacity of the reference model while enforcing desired properties at the inference time. A central mechanism for achieving such alignment is guidance, which modifies the sampling dynamics through an additional drift term. In this work, we introduce variationally stable Doob's matching, a novel framework for provable guidance estimation grounded in Doob's $h$-transform. Our approach formulates guidance as the gradient of logarithm of an underlying Doob's $h$-function and employs gradient-regularized regression to simultaneously estimate both the $h$-function and its gradient, resulting in a consistent estimator of the guidance. Theoretically, we establish non-asymptotic convergence rates for the estimated guidance. Moreover, we analyze the resulting controllable diffusion processes and prove non-asymptotic convergence guarantees for the generated distributions in the 2-Wasserstein distance. Finally, we show that variationally stable guidance estimators are adaptive to unknown low dimensionality, effectively mitigating the curse of dimensionality under low-dimensional subspace assumptions.
Introduction
Diffusion models have emerged as a dominant paradigm in generative modeling, capable of producing high-fidelity data across various domains. However, a significant challenge remains: how to "steer" these models toward specific target distributions—such as those satisfying human preferences or physical constraints—without the prohibitive cost of retraining or fine-tuning the entire model. Fine-tuning often leads to catastrophic forgetting, where the model loses the rich prior information acquired during its massive pre-training phase.
Inference-time alignment, or guidance, offers a compelling alternative. Instead of modifying the model's weights, guidance introduces a "drift" term during the sampling process to nudge the generated samples toward a target distribution. This paper introduces Variationally Stable Doob’s Matching, a theoretically grounded framework that provides the first non-asymptotic convergence guarantees for this alignment process.
The Challenge of Guidance Estimation
Mathematically, inference-time alignment is often framed using Doob’s $h$-transform. In this framework, the ideal nudge is defined as the gradient of the logarithm of an underlying "$h$-function." The primary difficulty lies in estimating this gradient accurately.
Standard regression techniques often fail in this context. While a traditional estimator might approximate the $h$-function's values reasonably well on average (in an $L^2$ sense), its gradients can be highly oscillatory and unstable. Because the sampling process depends directly on these gradients, even small errors in the derivative can lead to significant divergence in the generated samples, making the sampling process mathematically unstable.
Methodology: Variationally Stable Doob’s Matching
To address the instability of gradient estimation, the authors propose a new training objective centered on gradient-regularized regression. The core components of the method include:
- Sobolev Regularization ($H^1$ Space): Unlike previous methods that minimize error only in function values, this approach employs Sobolev regularization. It minimizes a loss function that accounts for both the error in the function value and the error in its gradient simultaneously.
- Simultaneous Estimation: By forcing the neural network to learn the function and its derivative at the same time, the estimator becomes "variationally stable." This ensures that the resulting guidance term is mathematically consistent and well-behaved during the diffusion process.
- Derivative-Free Formulation: A key practical advantage of this method is that it does not require knowledge of the gradient of the reward or weight function itself. It only requires access to the values, making it highly flexible for complex "black-box" rewards or likelihood functions.
Theoretical Contributions
This work is primarily theoretical, establishing the mathematical foundations for stable guidance. The authors provide several landmark proofs:
Non-Asymptotic Convergence
The paper establishes a non-asymptotic convergence rate for the estimated guidance term. For a sample size $n$, the error scales at a rate of approximately $n^{-2/(d+8)}$. Furthermore, they prove that the final generated distribution converges to the target distribution with an error bound of $O(\epsilon \log^3(1/\epsilon))$ in the 2-Wasserstein distance, accounting for errors in score estimation, guidance estimation, and SDE discretization.
Mitigating the Curse of Dimensionality
One of the most significant findings is the proof of adaptivity. In high-dimensional data like images, the data often resides on a low-dimensional manifold or subspace. The authors prove that if the data exists in a $d^*$-dimensional subspace, the required sample complexity for the guidance estimator scales with the intrinsic dimension $d^*$ rather than the ambient dimension $d$. This effectively allows the method to bypass the "curse of dimensionality."
Conclusion and Future Work
Variationally Stable Doob’s Matching provides a rigorous statistical foundation for inference-time alignment. By moving the optimization into the Sobolev space, the authors resolve the stability gap that has plagued previous guidance methods.
While the current theory assumes the weight function (the "reward") is known, future research may extend this to scenarios where the reward function must be learned from noisy human feedback. Additionally, while this method avoids full model fine-tuning, it still requires training a smaller guidance network; future work could focus on further reducing this computational overhead or unifying the analysis of the reference score network and the guidance estimator into a single framework.
Summary updated