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:
- 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.
- 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.
- 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.
- 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