Abstract: In this chapter we provide a thorough overview of the use of energy-based models (EBMs) in the context of inverse imaging problems. EBMs are probability distributions modeled via Gibbs densities $p(x) \propto \exp{-E(x)}$ with an appropriate energy functional $E$. Within this chapter we present a rigorous theoretical introduction to Bayesian inverse problems that includes results on well-posedness and stability in the finite-dimensional and infinite-dimensional setting. Afterwards we discuss the use of EBMs for Bayesian inverse problems and explain the most relevant techniques for learning EBMs from data. As a crucial part of Bayesian inverse problems, we cover several popular algorithms for sampling from EBMs, namely the Metropolis-Hastings algorithm, Gibbs sampling, Langevin Monte Carlo, and Hamiltonian Monte Carlo. Moreover, we present numerical results for the resolution of several inverse imaging problems obtained by leveraging an EBM that allows for the explicit verification of those properties that are needed for valid energy-based modeling.
Introduction
In computer vision and medical imaging, researchers frequently encounter "inverse problems"—the challenge of reconstructing a high-quality image from noisy, incomplete, or blurry observations, such as those found in MRI or CT scans. These problems are inherently ill-posed, meaning multiple potential images could explain the same set of degraded data. To navigate this ambiguity, a mathematical "prior" is required to guide the reconstruction toward realistic solutions.
Traditionally, these priors were hand-crafted using mathematical heuristics like Total Variation (TV), which assumes images are piecewise smooth. While robust, these methods often fail to capture the intricate textures of natural scenes. Energy-Based Models (EBMs) offer a sophisticated alternative by learning the underlying probability distribution of natural images directly from data. By defining a density $p(x) \propto \exp(-E(x))$, where $E(x)$ represents a learned "energy" function, EBMs assign low energy to realistic images and high energy to noise or artifacts.
Theoretical Framework and Well-Posedness
A significant contribution of this work is the establishment of a rigorous theoretical foundation for EBMs in Bayesian inverse problems. The authors provide proofs for the existence and stability of solutions in both finite and infinite-dimensional spaces. This ensures that the mathematical framework remains valid even as sensor resolutions increase toward the infinite-dimensional limit, providing a level of reliability often missing in "black-box" deep learning approaches.
Learning and Architecture
The paper explores several paradigms for training EBMs to act as effective priors:
- Divergence Minimization: This includes techniques like Kullback-Leibler (KL) divergence or Score Matching (Fisher divergence). A key insight presented is the connection between Score Matching and Tweedie’s Formula, which demonstrates that training a model to denoise an image is mathematically equivalent to learning the gradient of the image's probability distribution.
- Bilevel Learning: This task-specific approach optimizes model parameters by minimizing the final reconstruction error across a training set, effectively "tuning" the prior for a specific imaging modality.
For the model architecture, the authors utilize the Fields-of-Experts (FoE) framework, enhanced with Gaussian Mixture Models (GMMs) as potentials. This specific choice is deliberate: unlike standard deep neural networks, GMM-based potentials allow for the explicit verification of integrability and other properties essential for valid energy-based modeling.
Sampling and Inference
Since EBMs are probabilistic, reconstruction involves sampling from the posterior distribution. The authors detail the use of advanced Markov Chain Monte Carlo (MCMC) techniques, including Hamiltonian Monte Carlo (HMC) and Underdamped Langevin Dynamics. These algorithms utilize the gradient of the energy function to navigate the high-dimensional image space efficiently. A notable advantage of this Bayesian approach is the ability to generate marginal standard deviation maps, which quantify the model's uncertainty regarding specific regions of the reconstructed image.
Experimental Results
The models were trained on overlapping patches from the BSDS500 (Berkeley Segmentation Dataset). The performance of learned EBM priors was compared against the standard Total Variation (TV) baseline across three tasks: denoising, Fourier inversion (MRI-style), and Radon inversion (CT-style).
| Task | TV (Baseline) | Bilevel EBM | Score-Matching EBM |
|---|---|---|---|
| Denoising | 27.05 dB | 28.03 dB | 27.97 dB |
| Fourier (MRI) | 26.30 dB | 26.72 dB | 26.88 dB |
| Radon (CT) | 24.79 dB | 25.40 dB | 25.32 dB |
Results measured in Peak Signal-to-Noise Ratio (PSNR); higher values indicate better reconstruction quality.
Qualitatively, EBM-based reconstructions outperformed TV by producing sharper edges and more natural textures, avoiding the "blocky" artifacts characteristic of TV regularization.
Limitations and Conclusion
While EBMs represent a powerful bridge between classical physics and modern machine learning, challenges remain. The computational cost of MCMC sampling is significantly higher than feed-forward neural networks, and the models can occasionally develop spurious low-energy regions—artifacts where the model incorrectly identifies noise as a realistic feature. Furthermore, achieving optimal results currently requires careful manual tuning of parameters like temperature scaling.
Future research directions include the development of more efficient Gibbs samplers and the refinement of training techniques to eliminate spurious minima, potentially leading to more robust and automated imaging pipelines.
Summary updated