Papers › Hard-normal Example-aware Template Mutual Matching for Industrial Anomaly Detection
Hard-normal Example-aware Template Mutual Matching for Industrial Anomaly Detection
Zixuan Chen, Xiaohua Xie, Lingxiao Yang, JianHuang Lai
Anomaly detectors are widely used in industrial manufacturing to detect and localize unknown defects in query images. These detectors are trained on anomaly-free samples and have successfully distinguished anomalies from most normal samples. However, hard-normal examples are scattered and far apart from most normal samples, and thus they are often mistaken for anomalies by existing methods. To address this issue, we propose Hard-normal Example-aware Template Mutual Matching (HETMM), an efficient framework to build a robust prototype-based decision boundary. Specifically, HETMM employs the proposed Affine-invariant Template Mutual Matching (ATMM) to mitigate the affection brought by the affine transformations and easy-normal examples. By mutually matching the pixel-level prototypes within the patch-level search spaces between query and template set, ATMM can accurately distinguish between hard-normal examples and anomalies, achieving low false-positive and missed-detection rates. In addition, we also propose PTS to compress the original template set for speed-up. PTS selects cluster centres and hard-normal examples to preserve the original decision boundary, allowing this tiny set to achieve comparable performance to the original one. Extensive experiments demonstrate that HETMM outperforms state-of-the-art methods, while using a 60-sheet tiny set can achieve competitive performance and real-time inference speed (around 26.1 FPS) on a Quadro 8000 RTX GPU. HETMM is training-free and can be hot-updated by directly inserting novel samples into the template set, which can promptly address some incremental learning issues in industrial manufacturing.
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
1 archive task tag without a task page not shown.
Results from the paper archive 2025-07-28
| Task | Dataset | Model | Metric | Value | Rank at snapshot | Leaderboard | Report |
|---|---|---|---|---|---|---|---|
| Anomaly Detection | MVTec AD | HETMM | Detection AUROC | 99.8 | #4 of 148 | Archive leaderboard | report |
| Anomaly Detection | MVTec AD | HETMM | Segmentation AUPRO | 96.4 | #4 of 148 | Archive leaderboard | report |
| Anomaly Detection | MVTec AD | HETMM | Segmentation AUROC | 99 | #4 of 148 | Archive leaderboard | report |
| Anomaly Detection | MVTec LOCO AD | HETMM | Avg. Detection AUROC | 88.1 | #14 of 40 | Archive leaderboard | report |
| Anomaly Detection | MVTec LOCO AD | HETMM | Detection AUROC (only logical) | 83.2 | #14 of 40 | Archive leaderboard | report |
| Anomaly Detection | MVTec LOCO AD | HETMM | Detection AUROC (only structural) | 92.9 | #14 of 40 | Archive leaderboard | report |
| Anomaly Detection | Surface Defect Saliency of Magnetic Tile | HETMM | Detection AUROC | 99.5 | #1 of 4 | Archive leaderboard | report |
| Anomaly Detection | VisA | HETMM | Detection AUROC | 98.1 | #11 of 50 | Archive leaderboard | report |
| Anomaly Detection | VisA | HETMM | Segmentation AUROC | 99.1 | #11 of 50 | 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