TL;DR
Stochastic Optimal Control Sampling (SOCS) is a novel, training-free framework that solves image inverse problems by modeling diffusion denoising as a controlled dynamical system. By deriving a step-wise, closed-form control update, SOCS accurately steers sampling trajectories toward measurement consistency while preserving the diffusion model's native generative quality—all at a fraction of the computational cost of previous control-based methods.
What Problem Does This Paper Address?
Image inverse problems—such as super-resolution, deblurring, and inpainting—seek to reconstruct a high-quality image from a degraded measurement. Because multiple clean images can correspond to the same degraded input, solving these problems requires strong prior knowledge about what natural images look like. Pretrained diffusion models excel at providing this prior.
The core challenge lies in guidance: how do we controllably steer the diffusion model's generation process so that the final image matches the given measurement without destroying its visual realism?
Current training-free approaches fall into two main camps, both with drawbacks:
- Bayesian Sampling Methods: These approximate the intractable conditional score function using gradient guidance. However, they can suffer from trajectory drift and are highly sensitive to step-size choices.
- Trajectory-based Stochastic Optimal Control (SOC) Methods: These treat guidance as a global optimization problem over the entire diffusion path. While theoretically rigorous, they rely on iterative rollouts and second-order Taylor updates (Hessians), leading to massive memory usage and slow runtimes.
SOCS bridges this gap by providing the theoretical rigor of optimal control without the heavy computational burden.
Methods
SOCS formulates the denoising process as a stochastic optimal control problem where the objective is to minimize both the control energy (to stay close to the diffusion prior) and a terminal cost (to match the measurement).
By leveraging the certainty equivalence principle, the authors reduce the complex stochastic differential equation (SDE) formulation to a deterministic ordinary differential equation (ODE) subproblem. This allows them to derive a closed-form optimal control update ($u_{t,\gamma}^*$) that can be applied at each individual sampling step.
Instead of optimizing the entire trajectory globally, SOCS operates in a step-wise manner:
- Predict: Advance the reverse-diffusion path to get a preliminary clean estimate.
- Refine: Enforce measurement consistency on this estimate (using Langevin dynamics for nonlinear tasks or direct projection for linear tasks).
- Pullback: Use the closed-form control law to map the refined estimate back onto the native denoising manifold.
The authors introduce three variants tailored to different problem types:
- SOCS-Linear: A stable, closed-form affine projection for linear degradation operators.
- SOCS-Nonlinear-$\gamma$: Uses a finite terminal penalty ($\gamma$) and Jacobian-aware refinements to handle highly non-linear tasks.
- SOCS-Nonlinear-$\infty$: A special case where $\gamma \to \infty$, enforcing strict measurement consistency.
SOCS is highly versatile and compatible with Variance-Preserving (VP) SDEs, Variance-Exploding (VE) SDEs, Latent Diffusion Models (LDMs like Stable Diffusion v1.5), and Flow-Matching models (like SD3).
Datasets
The method was evaluated using 100 validation images from several standard benchmarks:
- FFHQ ($256 \times 256$, $512 \times 512$, and $768 \times 768$) for human faces.
- ImageNet ($256 \times 256$) for diverse, general object categories.
- LSUN Church ($256 \times 256$) specifically for evaluating VE-SDE inpainting performance.
Key Insights and Ideas
- The Danger of Over-Control: The authors show mathematically (via Girsanov's theorem) that excessive control energy drives the generation process away from the natural image manifold. By introducing a tunable, finite terminal penalty ($\gamma$), SOCS gently modulates the control strength, balancing data fidelity with perceptual quality.
- Trajectory Decoupling: By decoupling consecutive states along the sampling trajectory, the sampler can correct global errors made early in the denoising process rather than being overly constrained by previous steps.
- Theoretical Unification: SOCS provides a formal control-theoretic justification for the standard quadratic data-fidelity guidance terms commonly used heuristically in Bayesian diffusion methods.
Key Results
SOCS was tested across six linear tasks (including super-resolution, box/random inpainting, and deblurring) and three non-linear tasks (phase retrieval, HDR reconstruction, and non-linear deblurring).
- Performance: SOCS consistently achieved state-of-the-art or competitive results across PSNR, SSIM, LPIPS, and FID metrics compared to strong baselines like DPS, DAPS, and DDRM.
- Efficiency: Because it avoids computing second-order Hessian matrices, SOCS requires less than half the runtime and compute of previous trajectory-level SOC methods (like DOC), making its wall-clock time comparable to standard sampling baselines.
- Trajectory Directness: On synthetic 2D data, SOCS demonstrated a much straighter, lower-energy refinement path toward data consistency compared to unconstrained Langevin refinement.
Limitations and Future Work
While powerful, SOCS relies on a local surrogate model approach (Gauss-Newton linearization) when dealing with highly non-linear degradation operators or neural network architectures. This means it approximates the true optimal control policy rather than solving it exactly for arbitrary non-linearities.
Additionally, the theoretical analysis assumes that certain operator matrices are well-conditioned and invertible, which may not hold under extreme degeneracy. Future work could explore extending this step-wise control framework to more complex, non-linear SDE paths or non-Gaussian noise models.
Summary updated