Unsupervised Detection of Distribution Shift in Inverse Problems using Diffusion Models
Shirin Shoushtari, Edward P. Chandler, Yuanhao Wang, M. Salman Asif, Ulugbek S. Kamilov
TL;DR
The paper tackles distribution shifts in diffusion-prior imaging inverse problems where clean test data are unavailable. It introduces a measurement-domain KL divergence estimator that uses corrupted measurements and pretrained diffusion-model scores, proving under mild assumptions that it equals the image-domain $D_{KL}(p||q)$ and enabling shift quantification without ground-truth images. Empirically, the metric tracks the image-domain KL in inpainting and MRI tasks and the authors show that adapting OOD diffusion models using only corrupted measurements reduces the estimated shift and improves reconstruction quality. This unsupervised approach provides a practical tool for evaluating and mitigating distribution shifts in high-stakes imaging applications, with potential to guide lightweight adaptation strategies in real-world inverse problems.
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 almost never available while solving inverse problems (at test time). We propose a fully unsupervised metric for estimating distribution shifts using only indirect (corrupted) measurements and score functions from diffusion models trained on different datasets. We theoretically show that this metric estimates the KL divergence between the training and test image distributions. Empirically, we show that our score-based metric, using only corrupted measurements, closely approximates the KL divergence computed from clean images. Motivated by this result, we show that aligning the out-of-distribution score with the in-distribution score -- using only corrupted measurements -- reduces the KL divergence and leads to improved reconstruction quality across multiple inverse problems.
