A Masked Reverse Knowledge Distillation Method Incorporating Global and Local Information for Image Anomaly Detection

Yuxin Jiang, Yunkang Can, Weiming Shen
12/17/2025
49 citations
cs.CV
distillation

No official code found. Best implementation: yuxin-jiang/MRKD (48 stars, Python, last commit 2025-12-23).

Abstract

Knowledge distillation is an effective image anomaly detection and localization scheme. However, a major drawback of this scheme is its tendency to overly generalize, primarily due to the similarities between input and supervisory signals.

Show full abstract

In order to address this issue, this paper introduces a novel technique called masked reverse knowledge distillation (MRKD). By employing image-level masking (ILM) and feature-level masking (FLM), MRKD transforms the task of image reconstruction into image restoration. Specifically, ILM helps to capture global information by differentiating input signals from supervisory signals. On the other hand, FLM incorporates synthetic feature-level anomalies to ensure that the learned representations contain sufficient local information. With these two strategies, MRKD is endowed with stronger image context capture capacity and is less likely to be overgeneralized. Experiments on the widely-used MVTec anomaly detection dataset demonstrate that MRKD achieves impressive performance: image-level 98.9% AU-ROC, pixel-level 98.4% AU-ROC, and 95.3% AU-PRO. In addition, extensive ablation experiments have validated the superiority of MRKD in mitigating the overgeneralization problem.

View on arXivView PDF

Code Implementations(1)

yuxin-jiang/MRKDCommunity75%

This is an official implementation of “A Masked Reverse Knowledge Distillation Method Incorporating Global and Local Information for Image Anomaly Detection” (MRKD) with PyTorch, accepted by knowledge-based systems.

480PythonDec 24, 202311 months ago
anomaly-detectionknowledge-distillationmasked-image-modeling

Similar Papers

Cite this paper

@article{jiang2025masked,
  title  = {A Masked Reverse Knowledge Distillation Method Incorporating Global and Local Information for Image Anomaly Detection},
  author = {Yuxin Jiang and Yunkang Can and Weiming Shen},
  year   = {2025},
  eprint = {2512.15326},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.15326v1}
}

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

Discussion