Papers › Unsupervised Out-of-Distribution Detection with Diffusion Inpainting

Unsupervised Out-of-Distribution Detection with Diffusion Inpainting

20 Feb 2023arXiv:2302.10326archive 2025-07-28

Zhenzhen Liu, Jin Peng Zhou, Yufan Wang, Kilian Q. Weinberger

Unsupervised out-of-distribution detection (OOD) seeks to identify out-of-domain data by learning only from unlabeled in-domain data. We present a novel approach for this task - Lift, Map, Detect (LMD) - that leverages recent advancement in diffusion models. Diffusion models are one type of generative models. At their core, they learn an iterative denoising process that gradually maps a noisy image closer to their training manifolds. LMD leverages this intuition for OOD detection. Specifically, LMD lifts an image off its original manifold by corrupting it, and maps it towards the in-domain manifold with a diffusion model. For an out-of-domain image, the mapped image would have a large distance away from its original manifold, and LMD would identify it as OOD accordingly. We show through extensive experiments that LMD achieves competitive performance across a broad variety of datasets. Code can be found at https://github.com/zhenzhel/lift_map_detect.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2302.10326")

Code

Syntology Ran 7 of 13 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 1 ran · honoured contract; 3 ran · our draft was wrong; 1 ran · fixture could not drive it; 2 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

zhenzhel/lift_map_detect officialmentioned in papermentioned on GitHubjax report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 7 ran; 1 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

1ran · honoured contract
3ran · our draft was wrong
1ran · fixture could not drive it
2ran
6unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from zhenzhel/lift_map_detect. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

NoneCorrector zhenzhel/lift_map_detect/recon.py official repository ran Apache-2.0 (permissive) · 9fbf2bcfe266f4eb · report
NonePredictor zhenzhel/lift_map_detect/recon.py official repository ran Apache-2.0 (permissive) · 23801547159a0cde · report
get_data_inverse_scaler zhenzhel/lift_map_detect/recon.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 6c419026e778dee2 · report
get_data_scaler zhenzhel/lift_map_detect/recon.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 346d2e6cc8b48a5d · report
get_pc_inpainter zhenzhel/lift_map_detect/recon.py official repository ran · our draft was wrong Apache-2.0 (permissive) · e9b0be8f6581cb5e · report
lpips_scaler zhenzhel/lift_map_detect/detect.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · 134293ad842ab4e6 · report
shared_predictor_update_fn zhenzhel/lift_map_detect/recon.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · 74fd9b4740562d25 · report
Corrector zhenzhel/lift_map_detect/recon.py official repository unverified Apache-2.0 (permissive) · 8d49d40d9988b215 · report
Detector zhenzhel/lift_map_detect/recon.py official repository unverified Apache-2.0 (permissive) · 33bb242d2a46a8af · report
Predictor zhenzhel/lift_map_detect/recon.py official repository unverified Apache-2.0 (permissive) · 60424db455a86fdc · report
get_corrector zhenzhel/lift_map_detect/recon.py official repository unverified Apache-2.0 (permissive) · e476e461754cc223 · report
shared_corrector_update_fn zhenzhel/lift_map_detect/recon.py official repository unverified Apache-2.0 (permissive) · 2fa0834d22aee527 · report
simclr_resize zhenzhel/lift_map_detect/detect.py official repository unverified Apache-2.0 (permissive) · de5c88ea9339be33 · report

Tasks

DenoisingOut-of-Distribution Detection

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections