Explicit Diffusion of Gaussian Mixture Model Based Image Priors

Martin Zach, Thomas Pock, Erich Kobler, Antonin Chambolle

In the rapidly evolving world of generative AI, "diffusion models" have become the gold standard for creating and restoring images. However, most state-of-the-art diffusion models rely on massive, "black-box" neural networks to estimate the "score" (the gradient of the log-density). While effective, these models often lack interpretability and don't always correspond to a mathematically well-defined probability density.

A recent paper titled "Explicit Diffusion of Gaussian Mixture Model Based Image Priors" by Martin Zach and colleagues proposes a more principled alternative. By combining classic Gaussian Mixture Models (GMMs) with the framework of diffusion, they’ve created a model that is both mathematically transparent and highly efficient.

TL;DR

The authors propose a new image prior (GMDM) that uses a Product of Experts model with Gaussian Mixture components. By enforcing an orthogonality constraint on the filters, they derive an exact analytical solution for how the model evolves during diffusion, leading to an interpretable, parameter-efficient tool for tasks like blind image denoising.

What Problem Does This Paper Address?

Estimating the probability density of natural images is notoriously difficult because images live in high-dimensional spaces where data is "sparse" (the manifold hypothesis). Diffusion solves this by gradually adding noise to "fill the space," making the density easier to estimate at various scales.

However, current "score-based" diffusion models usually train a neural network to predict noise. These networks are rarely constrained to be the actual gradient of a scalar potential function, meaning they might not be modeling a valid probability distribution at all. Furthermore, these models are often massive and provide little insight into what features of the image they are actually prioritizing.

Methods

The researchers bridge the gap between classic "Fields of Experts" models and modern diffusion.

  1. The Model Architecture: They use a Product of Experts approach. The image density is modeled as a product of several one-dimensional Gaussian Mixture Models (GMMs) applied to filtered versions of the image patches.
  2. The "Explicit" Diffusion: The core innovation is an orthogonality constraint on the filters. The authors prove that if the filters are pairwise orthogonal, the diffusion process (the heat equation) has a closed-form solution. Specifically, as you add noise (increase time $t$), the variances of the GMM components simply grow linearly.
  3. Training: Instead of standard maximum likelihood, they use Denoising Score Matching. They train the model to "reverse" the diffusion process across all noise levels simultaneously.
  4. Inference: For denoising, they use Empirical Bayes (specifically Tweedie’s formula), which provides a direct way to estimate the "clean" image from a noisy one using the model’s learned score.

Datasets

The authors used the BSDS 500 (Berkeley Segmentation Dataset), a standard benchmark in image processing. They trained on $7 \times 7$ and $15 \times 15$ patches extracted from the 400 grayscale images in the training and test sets.

Key Insights and Ideas

  • Orthogonality is the Key: By forcing filters to be orthogonal, the complex interaction of pixels during diffusion simplifies into independent 1D problems. This makes the math tractable without sacrificing much representational power.
  • Time-Conditioning by Design: Unlike neural diffusion models that use "time embeddings" (a heuristic), this model’s reaction to noise is baked into its mathematical structure. The model knows exactly how its internal GMMs should broaden as noise increases.
  • Interpretability: You can actually visualize the learned filters (see Figure 1 in the paper). They look like Gabor-like edges and textures, and you can see exactly how the "potential functions" change as the noise level increases.
  • Blind Denoising: Because the model is a valid density estimator, it can be used to estimate the noise level of an image it has never seen before. By finding the "time" $t$ that maximizes the likelihood of the noisy image, it can perform "blind" denoising on images with varying noise levels (heteroscedastic noise).

Key Results

  • Parameter Efficiency: The GMDM model achieves competitive results with only 8,352 parameters (for $7 \times 7$ patches). For comparison, the popular GMM-EPLL model uses over 819,000 parameters.
  • Denoising Performance: In quantitative tests (Table 1), the model performs similarly to or better than the "Fields of Experts" (FoE) model and remains competitive with much larger GMM-based priors across various noise levels ($\sigma = 15$ to $100$).
  • Qualitative Success: The model successfully handles complex noise patterns, such as a "checkerboard" of different noise intensities, by accurately estimating the local noise level and applying the appropriate amount of smoothing.

Limitations and Future Work

  • Patch Size: The current implementation focuses on relatively small patches ($7 \times 7$ or $15 \times 15$). While this captures local textures well, it might struggle with long-range structural dependencies in images.
  • Complexity: While the patch-based model is fast, the authors note that the full convolutional version of the model is still being evaluated.
  • Future Directions: The authors suggest applying this framework to medical imaging, where interpretability and reliability are paramount, and "black-box" errors can be costly. They also plan to extend the numerical evaluation to more complex inverse problems beyond simple denoising.

Summary updated

BibTeX
@inproceedings{zach2023explicit,
  author = {Martin Zach and Thomas Pock and Erich Kobler and Antonin Chambolle},
  title = {{Explicit Diffusion of Gaussian Mixture Model Based Image Priors}},
  booktitle = {SSVM},
  year = {2023},
  url = {https://openreview.net/forum?id=LZlsxMityy},
}
Figure