Towards Distribution-Shift Uncertainty Estimation for Inverse Problems with Generative Priors

Namhoon Kim, Sara Fridovich-KeilarXiv 2025 · DOI

Introduction

In medical imaging and other inverse problems, generative AI models are increasingly used as "priors" to reconstruct high-quality images from sparse or noisy measurements. While these models can significantly reduce radiation exposure in CT scans or scan times in MRI, they introduce a critical safety risk: hallucination. When a model encounters data that differs from its training set—a phenomenon known as distribution shift—it may "correct" unfamiliar features to match its learned expectations, potentially obscuring pathologies. This paper proposes a calibration-free method to detect such shifts by evaluating the internal consistency of reconstructions.

Methodology: Internal Consistency via Subsampling

The proposed approach relies on the hypothesis that a generative prior will produce stable reconstructions for in-distribution (ID) data, even when provided with different subsets of measurements. Conversely, for out-of-distribution (OOD) data, the prior's attempt to reconcile unfamiliar measurements with its internal learned distribution will lead to inconsistent results.

The workflow involves:

  1. Measurement Subsampling: Randomly selecting subsets from the total available measurements (e.g., specific projection angles in a CT scan).
  2. Iterative Reconstruction: Using a Learned Proximal Network (LPN) to generate images for each measurement subset.
  3. Uncertainty Quantification: Calculating the pixel-wise variance across the resulting reconstructions. High variance serves as a "red flag" indicating that the model is struggling with a distribution shift.

Experimental Evaluation

The researchers validated this method using the MNIST handwritten digit dataset. A generative prior was trained exclusively on the digit "0" to represent the in-distribution data. The model was then evaluated on digits "0" through "9," with digits "1" through "9" serving as out-of-distribution samples.

The MNIST dataset used for evaluation, featuring the in-distribution digit '0' and out-of-distribution digits '1' through '9'.

The forward model simulated sparse-view CT projections using the Radon transform, testing the method's sensitivity across various measurement budgets (11, 22, and 33 projection angles).

Results and Discussion

The results demonstrated that the average pixel-wise standard deviation was significantly lower for the in-distribution digit "0" compared to OOD digits. This variance directly correlated with reconstruction errors, as measured by Peak Signal-to-Noise Ratio (PSNR) and Structural Similarity Index (SSIM).

Example reconstruction of the in-distribution digit '0'.

Key insights include:

  • The "Prior Pull": OOD data causes the generative prior to "pull" the reconstruction toward the training distribution. Because different measurement subsets constrain this pull differently, the resulting inconsistency (variance) effectively flags the shift.
  • Data Scarcity Sensitivity: The method is most effective when measurements are limited. This is the regime where generative priors have the most influence and where the risk of hallucination is highest.
  • Calibration-Free Detection: Unlike standard uncertainty quantification methods like Conformal Prediction, this approach does not require a separate calibration dataset, making it suitable for real-time clinical use where new pathologies may be encountered for the first time.

Conclusion

By providing a per-instance "guardrail," this research offers a path toward safer deployment of generative AI in medical imaging. While currently demonstrated on simplified datasets, the internal consistency check provides a lightweight, real-time warning system that can alert clinicians when a model's output may be unreliable due to distribution shift.

Summary updated

BibTeX
@misc{kim2025towards,
  author = {Namhoon Kim and Sara Fridovich-Keil},
  title = {{Towards Distribution-Shift Uncertainty Estimation for Inverse Problems with Generative Priors}},
  year = {2025},
  eprint = {2510.10947},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.10947},
}
Figure