Measuring Distribution Shifts in Inverse Problems without clean data

Shirin Shoushtari, Edward P. Chandler, Salman Asif, Ulugbek S. KamilovOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

This paper introduces the first unsupervised framework to detect and quantify distribution shifts in inverse problems (like MRI or inpainting) using only corrupted measurements, without requiring clean ground-truth images. By leveraging diffusion model score functions, the authors provide a theoretically grounded metric for model selection and a training objective to adapt "out-of-distribution" models to new data on the fly.

What Problem Does This Paper Address?

Diffusion models have become the gold standard for solving imaging inverse problems—reconstructing a clean image $x$ from corrupted measurements $y$ (where $y = Hx + z$). However, these models are notoriously sensitive to "distribution shift." If you train a model on brain MRIs but try to use it to reconstruct a knee MRI, the results degrade significantly.

The catch-22 is that to detect or measure this shift using standard tools (like KL divergence), you usually need access to clean test images. But in a real-world inverse problem, the clean image is exactly what you don't have. This paper solves that "blind spot," allowing researchers to quantify how much a model's prior mismatches the observed data using only the noisy, incomplete measurements available at test time.

Methods

The authors bridge the gap between the image domain (where we want to measure shift) and the measurement domain (where we actually have data) through a few key innovations:

  1. Theorem 1 (The Measurement-Domain KL): The core contribution is a mathematical proof showing that the KL divergence between two image distributions can be estimated by comparing the "denoising residuals" of their respective diffusion models, evaluated directly on projected measurements.
  2. SVD Decoupling: They use Singular Value Decomposition (SVD) on the measurement operator $H$ to transform the problem into a coordinate system where the measurement process is decoupled, making the math tractable.
  3. Compound MSE Residuals: Instead of needing clean images, they calculate a "compound Mean Squared Error" across all diffusion noise levels. The model that produces the smallest residual on the measurements is mathematically guaranteed to be the best fit for the underlying data.
  4. Adaptation Loss: They turn this metric into a loss function ($L_{adapt}$). This allows them to take a pre-trained model and "nudge" its score functions to align with the new test-time measurements, effectively fine-tuning the model without ever seeing a clean image.

Datasets

The researchers validated their framework across several challenging domains:

  • Facial Images: Used FFHQ as the in-distribution (InD) dataset, with AFHQ (animals), MetFaces (art), and Microscopy (CHAMMI) as out-of-distribution (OOD) targets.
  • Medical Imaging: Used the fastMRI dataset, treating Brain scans as InD and Knee/Prostate scans as OOD.
  • Synthetic Data: Gaussian Mixture Models (GMMs) were used to provide a "ground truth" environment to verify that their measurement-domain metric perfectly tracks the theoretical image-domain KL divergence.

Key Insights and Ideas

  • The "Denoising Gap" is a Proxy for Shift: The fundamental "aha" moment is that if a diffusion model is a poor fit for the data, its ability to "denoise" the measurements will be predictably worse across specific noise scales. This discrepancy is a direct proxy for KL divergence.
  • Model Selection without Ground Truth: You can rank a pool of pre-trained models (e.g., "Which of these five MRI priors fits this specific patient's data best?") simply by looking at which one is most "consistent" with the observed k-space data.
  • Robustness to Theory Violations: While the theory assumes randomized measurement operators (like random inpainting masks), the authors found the metric still works surprisingly well on "fixed" operators, such as standard Cartesian MRI undersampling masks and even JPEG-compressed images.

Key Results

  • Accurate KL Estimation: In both inpainting and MRI tasks, the proposed measurement-domain metric closely tracked the "true" image-domain KL divergence (which requires clean data).
  • Reliable Model Selection: The framework consistently identified the correct "closest" model. For example, when testing on FFHQ faces, it correctly ranked MetFaces (portraits) as closer than AFHQ (animals).
  • Effective Adaptation: By fine-tuning an AFHQ-trained model using only 64–128 corrupted FFHQ measurements, they significantly improved reconstruction quality. In one inpainting test, PSNR improved from 25.84 dB (unadapted) to 26.52 dB (adapted), narrowing the gap toward the gold-standard InD model (28.36 dB).
  • MRI Performance: The method successfully distinguished brain scans from knee/prostate scans using only undersampled k-space data, even at high acceleration factors (R=8).

Limitations and Future Work

  • Operator Span: The theoretical guarantees rely on the assumption that the measurement operators eventually "span" the whole signal space. In cases with very rigid, highly structured masks that always hide the same frequencies, the metric might lose some accuracy.
  • Independence Assumption: The proof assumes the measurement operator is independent of the denoiser residuals. If a model was specifically trained on a very narrow set of operators, this independence might break down.
  • Future Directions: The authors suggest extending this to even more complex, non-linear forward operators and exploring how this could be used for real-time "self-correcting" medical imaging devices.

Summary updated

Abstract

Diffusion models are widely used as priors in imaging inverse problems. However, their performance often degrades under distribution shifts between the training and test-time images. Existing methods for identifying and quantifying distribution shifts typically require access to clean test images, which are never available at test time when solving inverse problems. We propose a flexible framework for measuring distribution shift using *only* corrupted test measurements and candidate diffusion model scores. Our framework enables three complementary capabilities. First, in the general case with only a pool of diffusion models, it supports a principled model selection by identifying the model whose prior best matches the test data. Second, when an in-distribution model is available, our metric provides a theoretically guaranteed estimator of KL divergence that closely matches the image-domain KL. Third, the metric serves as a tool for adaptation guidance: aligning score functions with corrupted measurements reduces the estimated shift and improves reconstruction quality. Experiments on inpainting and MRI confirm that our method (i) achieves robust model selection, (ii) reliable estimates KL divergence in the presence of an in-distribution model, and (iii) enables effective adaptation to mitigate distribution shift.
BibTeX
@misc{shoushtari2026measuring,
  author = {Shirin Shoushtari and Edward P. Chandler and Salman Asif and Ulugbek S. Kamilov},
  title = {{Measuring Distribution Shifts in Inverse Problems without clean data}},
  year = {2026},
  url = {https://openreview.net/forum?id=F5sQPP7Swa},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}

Loading related content...

Figure