arXiv Machine Learning

Distribution-free false-alarm calibration and chance-corrected spatial evaluation for industrial anomaly detection

arXiv:2608. 15090v1 Announce Type: cross Abstract: Studies of industrial visual inspection commonly report the area under the receiver operating characteristic curve (AUROC) and the overlap between anomaly maps and defect masks.

arXiv Computer Vision
Sep 4

SafeRestore: Detector-Relative Risk Certificates for Selective Industrial Image Restoration

SafeRestore introduces a framework for certifying when an industrial image restoration should be automatically returned to a detector or require human review. It ranks five restoration candidates using action‑specific fitted scores, selects a threshold gate on tuning data, and evaluates the gate on a separate certification sample with two one‑sided exact binomial bounds—one for evidence‑loss incidents and one for excess‑activation incidents. In a retrospective study of 4,591 Carinthia‑S images, the protocol demonstrates auditable risk‑coverage behavior, with varying pass rates across different policies and morphologies.

By Shaoliang Yang, Jun Wang
arXiv Computer Vision
Aug 25

When More References Hurt: Contamination-Aware DINOv2 Memory Banks for Few-Shot Steel Defect Detection

The paper investigates how to improve patch‑memory anomaly detectors for steel defect detection when additional industrial images may contain unseen defects. By filtering out the most suspicious 20% of patches from a contaminated reference bank and merging the remaining patches with a clean seed bank, the authors reduce contamination from 9.46% to 2.59% and achieve higher AUPRC scores compared to naive expansion or random removal. The method demonstrates that reference purity is a critical design factor and that unverified images can be beneficial only after explicit filtering.

By Hannaneh Kalantari, Javad Khoramdel
arXiv Machine Learning
Aug 19

Training-Free Human-in-the-Loop Anomaly Detection via Memory Bank Correction

The paper introduces a training‑free, human‑in‑the‑loop anomaly detection framework that allows a domain expert to correct a PatchCore detector by editing its memory bank, without retraining or using gradients. Using only ten golden samples, operator corrections close a median 66% of the performance gap to a fully trained bank, improving 12 of 15 MVTec AD categories while harming none. The approach is evaluated with a rigorous held‑out protocol and shows that passive and active querying yield statistically indistinguishable gains, with a defect‑memory extension failing decisively.

By Ayusha Abbas, Saram Abbas, Kabita Adhikari
arXiv Machine Learning
Oct 3

How Many Categories Are Enough? Distribution-Free Certification Limits for Few-Shot Anomaly Thresholds

The paper investigates how many normal samples are required to reliably set an alarm threshold for few‑shot anomaly detectors, focusing on distribution‑free certification limits. Using a frozen DINOv2 PCA residual ranker on 15 MVTec and 12 VisA categories, the authors show that simple leave‑one‑image‑out calibration is limited by resolution and shift, leading to empirical false‑alarm rates far above the nominal level. They derive a category‑count feasibility calculus, demonstrating that at least 14, 29, and 59 independent category draws are needed for 95% upper confidence bounds at α=0.20, 0.10, and 0.05, and propose the CRESS protocol to split source categories into reference, proposal, and certification roles. whyItMatters":"The study provides concrete numerical thresholds for the amount of source evidence needed to guarantee reliable anomaly detection in new categories, informing practical deployment of few‑shot detectors."

By Gia Huy Thai, Nguyen Thai Anh
Hugging Face Trending Papers
Aug 19

SPARC: Subspace Position-Aware Robust Few-Shot Calibration for Distribution-Shifted Industrial Anomaly Detection

SPARC is a few‑shot calibration technique for vision‑based industrial anomaly detectors that corrects deployment‑time nuisances by projecting patch features onto a per‑cell subspace, requiring only up to eight verified‑normal images and no gradient updates. It operates between the encoder and detector, using a closed‑form, spatially indexed estimate based on the encoder’s native patch grid. Across seven detectors on shift‑prone benchmarks, SPARC boosts pooled Image AUROC by 13.8 pp and AU‑PRO₀.₃ by 3.5 pp, while showing modest changes on benchmarks without engineered shift.

arXiv Machine Learning
Nov 2

What Standard Evaluations Hide About Detectors of Hijacked LLM Agents: Rare Attacks, Unseen Tools and Benchmark Transfer

The paper investigates how standard evaluations of detectors for hijacked large language model (LLM) agents may conceal important weaknesses. By auditing eleven evaluations on the AgentDrift and AgentDojo benchmarks, the authors show that detectors often perform poorly when faced with rare attacks, unseen tools, or data from a different benchmark, with precision dropping dramatically at low attack rates and rankings reversing as tool coverage falls. They also find that a released LLM action monitor, despite high AUROC on its own data, would still generate many false alerts when applied to a new benchmark. "whyItMatters":"The study highlights that current evaluation practices can give a misleading sense of detector reliability, underscoring the need for more robust, cross‑benchmark testing to ensure real‑world safety of LLM agents."

By Mahmoud Abbasi, Juan M. N\'u\~nez V., Amin Shahraki
arXiv Computer Vision
Nov 6

Fault-Guided Cross-Layer Prediction for Unsupervised Anomaly Detection

The paper introduces a single‑class unsupervised anomaly detector that leverages cross‑layer predictions within a frozen vision transformer. By treating transformer depth as a sequence of discrete transitions, a directed predictor learns block‑to‑block hidden‑state transitions, revealing fault lines that separate stable depth segments. Using a bounded foreground prior calibrated only on training data, the method achieves state‑of‑the‑art AUROC scores on MVTec‑AD, VisA, and Real‑IAD datasets.

By Tao Wang