The Challenge with Current Diffusion Models
Generative diffusion models are the current gold standard for solving linear inverse problems in imaging—such as deblurring, inpainting, and super-resolution. However, existing implementations suffer from two major limitations:
- Implicit Density: They learn the gradient of the probability distribution (the score) rather than the explicit probability density itself. This makes it difficult to evaluate and compare the true likelihood of different solutions.
- Sampling Bias: Combining a general image prior with a specific measurement model often requires likelihood approximations. These mathematical shortcuts introduce sampling biases and can lead to hallucinated artifacts.
Traditionally, researchers have had to choose between Bayesian methods (which are flexible but slow and approximate) and regression methods (which are fast but rigid, requiring a new model for every type of degradation). Zilberstein et al. introduce a "middle way": a framework for learning normalized energy-based models (EBMs) that solves diverse linear inverse problems without task-specific retraining.
The Solution: Anisotropic Covariance Score Matching
The core contribution of this paper is Anisotropic Covariance Score Matching (A-CSM), a novel training objective that gives the model explicit access to posterior densities.
- Anisotropic Denoising: Unlike standard diffusion models that add isotropic noise (the same amount of noise to every pixel), this model is trained to handle anisotropic, or "colored," noise. This mirrors real-world degradations where certain pixels or frequencies are corrupted at different rates (e.g., missing pixels in inpainting).
- The Fokker-Planck Regularizer: To ensure the model learns a properly normalized probability distribution, the authors introduce a training objective derived from the Fokker-Planck equation. This regularizer forces the model to maintain consistency across different noise levels and covariances.
- Specialized Architecture: The authors modify a standard U-Net with a specialized embedding module, allowing the network to process complex noise structures in both spatial domains (for masking) and frequency domains (for blurring).
New Capabilities Unlocked by Explicit Energy
Because the model provides an explicit energy value ($U(y, \Sigma) = -\log p(y|\Sigma)$), it unlocks several previously unavailable capabilities:
- Blind Estimation: Without knowing the exact parameters of a blur kernel or a mask, the model can perform blind reconstruction by finding the degradation parameters that maximize the log-likelihood according to the model.
- Adaptive Sampling: Instead of following a fixed diffusion schedule, the model uses its own energy gradients to dynamically decide which parts of an image to "reveal" first, improving accuracy with fewer steps.
- Unbiased Correction: Explicit energy values allow the use of the Metropolis-Adjusted Langevin Algorithm (MALA). This introduces an "accept/reject" step that mathematically guarantees samples are drawn from the correct posterior distribution, eliminating the biases of standard score-based sampling.
Experimental Validation & Results
The framework was validated on standard benchmarks including CelebA, ImageNet64, AFHQ-Cat, and MNIST for tasks like inpainting and deblurring.
- Performance: The model achieves competitive or superior performance compared to established baselines (like DPS and RED-Diff) across PSNR, LPIPS, and FID metrics.
- Calibration: The probability estimates are highly calibrated—ground-truth images reliably sit at the high-probability peaks of the learned distribution.
- Efficiency: Despite the added mathematical rigor, inference time remains comparable to standard diffusion samplers (e.g., ~139 seconds for a batch of 16 images versus 167 seconds for DPS).
Limitations and Future Directions
Training with "dual score matching" (calculating gradients with respect to both the image and the noise covariance) is computationally heavier than standard diffusion training. Additionally, to keep the math tractable, the current framework is limited to diagonal covariances in either pixel or frequency space, which restricts its application to complex, non-diagonal degradations.
Looking forward, the authors suggest these models could be leveraged to optimize "measurement design"—helping scientists determine the most informative ways to capture medical scans or photographs to maximize information retrieval.
Summary updated