Coarse-Guided Visual Generation via Weighted h-Transform Sampling

Yanghao Wang, Ziqi Jiang, Zhen Wang, Long ChenarXiv 2026

TL;DR

The paper introduces Weighted $h$-Transform Sampling, a training-free and operator-free method that allows pretrained diffusion and flow-matching models to be guided by low-fidelity or degraded "coarse" references. By dynamically weighting a modified drift function based on the current noise level, it achieves state-of-the-art image and video restoration without needing to know the exact mathematical formula of the degradation process.

What Problem Does This Paper Address?

Conditional visual generation—such as image super-resolution, deblurring, or generating video from warped camera paths—typically relies on a "coarse" reference to guide the creation of a high-quality "fine" output.

Existing training-free methods generally fall into two categories, both of which have major drawbacks:

  1. Inverse Problem Solvers: These approximate a conditional posterior but require explicit knowledge of the forward operator (the exact mathematical degradation process, like bicubic downsampling or a specific blur kernel). If the operator is unknown or complex, these methods fail.
  2. Start-Guided Synthesis (e.g., SDEdit): These add noise directly to the coarse image and run the diffusion process from that midpoint. This creates an unstable trade-off: too much noise destroys the guidance signal, while too little noise prevents the model from fixing the underlying degradation.

The authors set out to design a method that is completely training-free, operator-free (doesn't need to know how the image was degraded), and stable across different tasks and modalities.

Overview of different guidance strategies compared to the proposed method.

Methods

The core innovation relies on Doob’s $h$-transform, a classical probabilistic tool used to steer a stochastic process (like a diffusion sampling trajectory) toward a specific target state $y$.

In an ideal world, adding an $h$-transform drift term ($h_{x_0=y}$) to the reverse SDE guarantees that the generation ends exactly at the clean ground-truth image $y$. However, because $y$ is the unknown image we want to generate, this ideal term is untractable.

To solve this, the authors propose two key steps:

  1. Tractable Approximation: They substitute the unknown ideal image $y$ with the given coarse reference $\tilde{y}$, deriving a tractable approximation ($h_{x_0=\tilde{y}}$) using Bayes' rule and the model's score predictor.
  2. Noise-Level-Aware Weighting: The authors mathematically prove that the error introduced by this approximation is negatively correlated with the noise level $\sigma_t$. Early in the sampling process (high noise), the approximation error is tiny, making the guidance highly accurate. As the noise drops, the error blows up. To counteract this, they introduce a smooth weight scheduler, $\lambda_\sigma = \sigma^\alpha$, which gracefully de-weights the guidance term as the generation progresses, allowing the pretrained model's natural generative priors to take over and ensure high image quality.

Algorithmically, this modifies the standard sampling ordinary differential equation (ODE) by injecting the weighted guidance term at each timestep. Crucially, the authors prove this framework is mathematically compatible with both score-based diffusion models and velocity-based Flow Matching models.

Datasets

The authors evaluated their approach across three distinct tasks:

  • Image Restoration: Evaluated on the validation set of FFHQ ($256\times256$), consisting of 1,000 clean human face images degraded via four simulated forward operators: super-resolution, inpainting, motion deblur, and Gaussian deblur.
  • Camera-Controlled Video Generation: Evaluated on a subset of DL3DV-10K, using 160 video clips (first 49 frames, resized to $720\times480$) to reconstruct clean, undistorted videos from rough, warped 3D-splatted video frames.
  • Text-Based Image Editing: Evaluated on PIEBench to test the method's broader generalization capability.

Key Insights and Ideas

  • The Error-Noise Duality: The most compelling insight is the mathematical proof showing that coarse guidance is incredibly reliable at high noise levels but destructive at low noise levels. This justifies why simple midpoint-noising methods struggle and provides a rigorous foundation for dynamic scheduling.
  • True Operator-Agnosticism: Unlike popular inverse problem solvers (like Diffusion Posterior Sampling), this method treats the coarse reference purely as a conditional target distribution endpoint rather than trying to mathematically invert the degradation function.
Fig. 1: Given a coarse visual sample (left one in each pair) as the guidance, our method generates its corresponding refined result (right one) in a training-free manner.

Key Results

  • Image Tasks: On FFHQ, the method outperformed the popular operator-free baseline (SDEdit) across six out of eight metrics, showing massive improvements in perceptual fidelity (LPIPS). It also performed competitively with operator-required methods (like DPS) despite having no access to the degradation function.
  • Video Tasks: When paired with CogVideoX, the method achieved the lowest Frechet Video Distance (FVD of 13.26 vs. 15.31 for the training-based GWTF baseline) and preserved motion consistency significantly better than alternative training-free video methods.
  • Model Agnosticism: The authors successfully plugged their sampling strategy into both the score-based CogVideoX and the flow-matching-based Wan2.2 without any fine-tuning, demonstrating excellent zero-shot generalization.

Limitations and Future Work

While highly flexible, the method introduces a key hyperparameter $\alpha$ in the weight scheduler $\lambda_\sigma = \sigma^\alpha$. The optimal value of $\alpha$ varies depending on the task and data modality (e.g., the authors used $\alpha=5$ for images, but split it into $\alpha=4$ and $\alpha=8$ for different regions in video frames).

The authors suggest that future work should explore automated or adaptive ways to tune this weight schedule, and extend the $h$-transform mechanism to more generalized conditional generation tasks beyond visual restoration.

Summary updated

BibTeX
@misc{wang2026coarse,
  author = {Yanghao Wang and Ziqi Jiang and Zhen Wang and Long Chen},
  title = {{Coarse-Guided Visual Generation via Weighted h-Transform Sampling}},
  year = {2026},
  eprint = {2603.12057},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.12057},
}
Figure