KLIP: localized distribution shift detection via KL-divergence with diffusion priors in Inverse Problems

Alireza Kheirandish, Jihoon Hong, Sara Fridovich-Keil
5/29/2026
1 citation
cs.CVcs.LG
diffusion-flow

Official code: voilalab/KLIP (2 stars, Jupyter Notebook, last commit 2026-09-29).

Abstract

Diffusion models have shown promising performance as data-driven priors for computational imaging, as well as some capacity to detect out-of-distribution (OOD) images. However, existing approaches to OOD detection often require some knowledge of the shifted distribution, fail to detect subtle or localized distribution shifts, and operate on full images, rather than the indirect measurements available in inverse problems.

Show full abstract

We propose an OOD detection metric based on the Kullback-Leibler divergence between the diffusion prior and the posterior distribution, that (i) does not require any calibration data or knowledge of the shifted distribution, and (ii) can detect whole images as OOD as well as localize OOD patches within an image. Experimentally, we show that this metric can detect subtle yet semantically meaningful distribution shifts, such as the shift from healthy liver CT scans to those with tumors, and generalizes across different types of diffusion models, datasets, and inverse problems. Our code can be found at https://github.com/voilalab/KLIP.

View on arXivView PDF

Code Implementations(1)

voilalab/KLIPOfficial100%

KLIP: localized distribution shift detection via KL-divergence with diffusion priors in Inverse Problems (CVPR'26)

20Jupyter Notebook, PythonMar 26, 20262 months ago

Similar Papers

Cite this paper

@article{kheirandish2026klip,
  title  = {KLIP: localized distribution shift detection via KL-divergence with diffusion priors in Inverse Problems},
  author = {Alireza Kheirandish and Jihoon Hong and Sara Fridovich-Keil},
  year   = {2026},
  eprint = {2605.31596},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.31596v1},
  journal = {CVPR 2026 2026}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.31596.svg)](https://codeofpaper.com/paper/2605.31596)

Discussion