Papers

Jev 与 Clef-Flash 决策模型:每类仅需 2 张参考图完成工业缺陷检测

Beyond CLIP: Calibrated (Few-Shot) Defect Detection With System One Decision Models

Why we picked it

工厂质检最头疼缺陷样本太少,这篇论文用 Jev 和 Clef-Flash 做到每类 2 张图就超过 CLIP,还开源了代码和网页工具,做机器视觉的可以试试。

arXiv 论文比较了 Jev 和 Clef-Flash 两种结构化决策模型在工业缺陷检测中的少样本表现,每类只需 k=2 张参考图像。在五个制造案例中,Jev 准确率达 0.75-1.00,Clef-Flash 达 0.71-0.99,均超过相同条件下 CLIP 的 0.67-0.84。论文还提出用智能体自动优化文本描述的方法,在 8 组模型-应用组合中的 6 组显著提升准确率,校准方法在 15 组配置中的 13 组降低了 Brier score。作者开源了复现代码、R 语言的 decisions 包以及一个免代码网页应用。

Original · arXiv cs.AI

Beyond CLIP: Calibrated (Few-Shot) Defect Detection With System One Decision Models

Cameras and vision sensors are widely used for product and process inspection in manufacturing environments. Traditionally, this process required thousands of images of both nominal and defective products to train such models. Recent research shows that vision transformer (ViT) models, such as CLIP, can reduce this requirement to 50-100 images per nominal and defective class. However, collecting even 50 defective images can be difficult in high-yield or low-volume manufacturing processes. In this paper, we examine the utility of two recently proposed structured decision models (Jev and Clef-Flash) in applications using as few as k=2 reference images per class at inference. In the process, we provide three main contributions: (a) a framework for k-shot learning of these models for image classification/inspection applications; (b) an agentic approach for automatically refining the text descriptions that guide image classification in these decision models; and (c) an approach to calibrate the resulting defect probabilities to improve their reliability for inspection decisions. We test these contributions in five manufacturing case studies. Using two reference images per class, both Jev and Clef-Flash outperform CLIP's test accuracies with the same references (0.75-1.00 [Jev] and 0.71-0.99 [Clef-Flash] vs 0.67-0.84 [CLIP]). Furthermore, we show that our agentic refinement of text descriptions significantly improves accuracy across 6 of 8 model-application combinations, and our calibration approach reduces the Brier score in 13 of the 15 model-application configurations. To support the reproducibility of our work, we provide our replication code and have created the R "decisions" package for evaluating additional models. We also provide a publicly available web app that allows practitioners to inspect their own images with no code.