Conditional Generative Models are Provably Robust: Pointwise Guarantees for Bayesian Inverse Problems

Fabian Altekrüger, Paul Hagemann, Gabriele Steidl

Abstract

Conditional generative models became a very powerful tool to sample from Bayesian inverse problem posteriors. It is well-known in classical Bayesian literature that posterior measures are quite robust with respect to perturbations of both the prior measure and the negative log-likelihood, which includes perturbations of the observations. However, to the best of our knowledge, the robustness of conditional generative models with respect to perturbations of the observations has not been investigated yet. In this paper, we prove for the first time that appropriately learned conditional generative models provide robust results for single observations.

Introduction

Modern generative AI—including Normalizing Flows, GANs, and Diffusion models—has revolutionized our ability to solve complex inverse problems. These problems involve reconstructing a hidden signal $x$ from a noisy observation $y$. While empirical success is widespread, a critical theoretical question remains: can we trust these models for a specific, single observation if they were only trained to be accurate on average?

This paper, published in Transactions on Machine Learning Research (07/2023), provides the first formal proof that Conditional Generative Models (CGMs) are pointwise robust. The authors demonstrate that if a model is trained to be accurate across a distribution, it inherits the inherent mathematical robustness of Bayesian posteriors, provided the model and the problem satisfy certain smoothness conditions.

The Robustness Gap in Inverse Problems

In fields like medical imaging or geophysics, inverse problems are often ill-posed. Instead of a single "correct" answer, there is a posterior distribution $p(x|y)$ representing all likely reconstructions.

Traditional methods often rely on point estimates like the Maximum A-Posteriori (MAP) estimate. However, point estimates can be dangerously brittle. As shown in Figure 1, a tiny change in the observation $y$ can cause the MAP estimate to jump discontinuously between different modes of the distribution. In contrast, the full posterior distribution typically changes smoothly with $y$.

Instability of point estimates (MAP) compared to the smooth transition of the posterior distribution across different observations $y$.

Generative models aim to capture this entire distribution, making them inherently more robust than point-estimation methods. However, standard training guarantees only ensure the model is good on average over the training data. This paper bridges the gap between average training performance and the reliability of the model for a single, specific measurement $\tilde{y}$.

Methodology: Geometric Pointwise Guarantees

The authors quantify robustness using the Wasserstein-1 distance ($W_1$), which measures the "cost" of transforming the model's generated distribution into the true posterior.

The core of their proof is a geometric argument. They assume that both the true posterior and the neural network generator are locally Lipschitz continuous—meaning small changes in the input $y$ lead to bounded changes in the output distribution. By considering a small "ball" $B_r(\tilde{y})$ around a specific observation, they show that if the model's average error over this ball is small, the error at the specific point $\tilde{y}$ must also be bounded.

Geometric argument for bounding the Wasserstein distance $W_1$ for a single observation $\tilde{y}$ by considering a ball $B_r(\tilde{y})$ within the support of $P_Y$.

Furthermore, the authors demonstrate that standard loss functions used across the "Big Four" generative architectures—KL divergence for Normalizing Flows, Score Matching for Diffusion, ELBO for VAEs, and adversarial losses for GANs—all implicitly minimize the Wasserstein distance required for these robustness guarantees.

Key Theoretical Insights

The paper's main contribution, Theorem 5, provides a formal upper bound for the distance between the true posterior and the generated distribution for a single observation. Several critical insights emerge from this analysis:

  1. The Curse of Dimensionality: The error bound scales with $\epsilon^{1/(n+1)}$, where $\epsilon$ is the training loss and $n$ is the dimension of the observation. This implies that for high-dimensional data like high-resolution images, maintaining pointwise guarantees requires exponentially lower training losses.
  2. Out-of-Distribution (OOD) Sensitivity: The guarantee is inversely proportional to the probability density of the observation $p_Y(y)$. If an observation is highly unlikely or out-of-distribution, the theoretical guarantee of robustness vanishes.
  3. Adversarial Resilience: The authors extend their findings to show that well-trained CGMs are naturally resistant to adversarial attacks. An attacker cannot easily "break" the model's output with a small perturbation because the model is constrained by the underlying smoothness of the inverse problem.

Conclusion and Limitations

While this work provides a vital theoretical foundation for the reliability of generative models in inverse problems, it highlights several challenges. The derived bounds are "worst-case," meaning real-world performance might be better than the theory suggests, but the constants involved can be large and difficult to calculate for complex neural networks. Future work is needed to determine if these bounds are tight and to find ways to calculate practical error estimates for specific real-world applications.

Summary updated

BibTeX
@article{altekruger2023conditional,
  author = {Fabian Altekrüger and Paul Hagemann and Gabriele Steidl},
  title = {{Conditional Generative Models are Provably Robust: Pointwise Guarantees for Bayesian Inverse Problems}},
  journal = {Accepted by TMLR},
  year = {2023},
  url = {https://openreview.net/forum?id=Wcui061fxr},
}
Figure