Papers › Reconstruction by Inpainting for Visual Anomaly Detection
Reconstruction by Inpainting for Visual Anomaly Detection
Vitjan Zavrtanik, Matej Kristan, Danijel Skočaj
Visual anomaly detection addresses the problem of classification or localization of regions in an image that deviate from their normal appearance. A popular approach trains an auto-encoder on anomaly-free images and performs anomaly detection by calculating the difference between the input and the reconstructed image. This approach assumes that the auto-encoder will be unable to accurately reconstruct anomalous regions. But in practice neural networks generalize well even to anomalies and reconstruct them sufficiently well, thus reducing the detection capabilities. Accurate reconstruction is far less likely if the anomaly pixels were not visible to the auto-encoder. We thus cast anomaly detection as a self-supervised reconstruction-by-inpainting problem. Our approach (RIAD) randomly removes partial image regions and reconstructs the image from partial inpaintings, thus addressing the drawbacks of auto-enocoding methods. RIAD is extensively evaluated on several benchmarks and sets a new state-of-the art on a recent highly challenging anomaly detection benchmark.
Code
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
Not run by Syntology. Nothing on this page verifies that the listed code works.
Tasks
Results from the paper archive 2025-07-28
| Task | Dataset | Model | Metric | Value | Rank at snapshot | Leaderboard | Report |
|---|---|---|---|---|---|---|---|
| Anomaly Detection | AeBAD-S | RIAD | Detection AUROC | 40.0 | #8 of 8 | Archive leaderboard | report |
| Anomaly Detection | AeBAD-S | RIAD | Segmentation AUPRO | 58.2 | #8 of 8 | Archive leaderboard | report |
| Anomaly Detection | AeBAD-V | RIAD | Detection AUROC | 56.1 | #6 of 7 | Archive leaderboard | report |
| Anomaly Detection | MVTec AD | RIAD | Detection AUROC | 91.7 | #108 of 148 | Archive leaderboard | report |
| Anomaly Detection | MVTec AD | RIAD | Segmentation AUROC | 94.2 | #108 of 148 | Archive leaderboard | report |
Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.
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