What Remains Normal? Clean Images Miss Useful Near-Defect Normal Patches for Anomaly Detection

Joongwon Chae, Runming Wang, Peiwu Qin
8/24/2026
1 citation
cs.CV

Official code: jw-chae/boundary_support (0 stars, Python, Apache-2.0, last commit 2026-08-23).

Abstract

Normal-only industrial anomaly detectors use patches from clean training images as normal references or reconstruction targets. This assumes that clean patches are sufficient for the normal regions encountered at test time.

Show full abstract

We test that assumption directly. On MVTec AD, admitting ground-truth-normal patches from real defect images to a DINOv2 memory candidate pool raises pixel average precision (P-AP) from 73.34 to 76.95 while keeping the encoder, test-time score, and number of stored references fixed. Patches within two patch cells of the annotated defect recover 94.70% of this gain. We then ask whether useful patches of this kind can be exposed using clean training images alone. BoundarySupport inserts a procedural synthetic defect to alter surrounding context, excludes every token intersecting the nominal insertion or a detected RGB change, and learns only from pixel-preserved neighboring patches. Across three paired seeds, the same principle improves P-AP in all six memory and reconstruction settings across MVTec, VisA, and Real-IAD. Matched controls identify the altered-context feature itself as the useful normal evidence: with synthetic input or selected positions fixed, altered-context features outperform their clean-view counterparts as both reconstruction targets and memory references. On MVTec memory, the final score change is also spatially selective, with larger reductions on normal patches next to defects than on mid-distance or far-normal patches in all 15 categories. Code is publicly available at https://github.com/jw-chae/boundary_support.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
00Python, ShellAug 22, 20263 months agoApache-2.0

Similar Papers

Cite this paper

@article{chae2026what,
  title  = {What Remains Normal? Clean Images Miss Useful Near-Defect Normal Patches for Anomaly Detection},
  author = {Joongwon Chae and Runming Wang and Peiwu Qin},
  year   = {2026},
  eprint = {2608.23299},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.23299v2}
}

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

Discussion