Reconstruction-Shift Discrimination via Mask-Guided Latent Diffusion for Medical Anomaly Detection

Yibo Wan, Jinyu Cai, Yunhe Zhang, Yi Bin, See-kiong Ng
8/1/2026
cs.CV
diffusion-flow

No confident code implementation found for this paper.

Abstract

Unsupervised medical anomaly detection learns normal anatomical patterns from healthy training images and identifies deviations at test time. Reconstruction-based and diffusion-based methods commonly use the difference between an input image and its reconstruction as anomaly evidence.

Show full abstract

However, this residual can be ambiguous. Expressive models may preserve pathological structures, while benign anatomical variation, imaging noise, and acquisition differences may also produce large reconstruction errors. We propose discriminative mask-guided diffusion (DMD), a medical anomaly detection framework that complements residual-based localization with reconstruction-shift discrimination. DMD first learns a compact quantized latent representation of normal images. Localized masks then perturb selected latent regions, and a latent diffusion model reconstructs the perturbed representations. The resulting reconstructions are paired with their original normal images to define a self-supervised classification task. At inference, the classifier provides a learned image-level anomaly score, while the residual between the input and its diffusion-based reconstruction yields a pixel-level anomaly map. Experiments on five datasets spanning brain MRI, breast ultrasound, and chest radiography show that DMD achieves the best overall performance among the state-of-the-art baseline methods.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wan2026reconstructionshift,
  title  = {Reconstruction-Shift Discrimination via Mask-Guided Latent Diffusion for Medical Anomaly Detection},
  author = {Yibo Wan and Jinyu Cai and Yunhe Zhang and Yi Bin and See-kiong Ng},
  year   = {2026},
  eprint = {2608.00444},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.00444v1}
}

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/2608.00444.svg)](https://codeofpaper.com/paper/2608.00444)

Discussion