arXiv:2606.00852cs.CVcs.AI2026-06

用参考图增强图像,让微小PCB缺陷更容易被发现

RefDiffNet: Learning to Expose Subtle PCB Defects Before Detection

论文配图:RefDiffNet: Learning to Expose Subtle PCB Defects Before Detection
图 1 · 摘自论文原文
  • 引入无缺陷参考图,对比后突出结构差异
  • 在多个检测器上提升18%的检测精度,参数增加不足0.25%
  • 轻量插件模块,适配各类检测模型

印刷电路板(PCB)缺陷检测因缺陷微小且易被复杂背景干扰而困难。现有深度学习方法仅依赖待检图像,忽略提供预期布局信息的无缺陷参考图。本文提出RefDiffNet,一种轻量级、即插即用的输入增强模块,置于检测器主干前。它将缺陷图像与对齐的参考图对比,捕捉相对于参考图的结构变化,通过轻量编码器输出缺陷区域突出的图像,降低下游检测难度。在HRIPCB和DeepPCB数据集上的实验表明,RefDiffNet在多种检测器上均显著提升性能,包括从YOLOv8到YOLOv26的一阶段检测器、基于Transformer的RT-DETR以及两阶段的Faster R-CNN。最高实现18%的相对mAP50:95提升,额外参数仅增加0.004–0.005M,计算开销为0.7–0.8 GFLOPs,占任一评估检测器参数量的最多0.25%。结果证明,RefDiffNet是一种高效、通用、轻量的输入增强模块,能以极低代价大幅提升PCB缺陷检测能力。

原文摘要 · Abstract (English)

Printed circuit board (PCB) defect detection is challenging because many defects are small and difficult to distinguish from complex background patterns. Most deep learning-based PCB inspection methods rely only on the inspected PCB image for defect detection, ignoring the defect-free reference image that encodes the expected layout of traces, pads, and other PCB structures. In this work, we propose RefDiffNet, a lightweight plug-and-play input enhancement block placed before the detector backbone to enhance the image before defect detection. RefDiffNet brings one proven idea from classical inspection into the deep learning era, using a defect-free reference image to reveal defects. RefDiffNet compares the defective image with the aligned reference, captures structural changes relative to the reference, and uses a lightweight encoder to output the original image with defective regions highlighted, thereby making the downstream detector's task easier. Results on HRIPCB and DeepPCB show that RefDiffNet consistently improves performance across detector families, including one-stage detectors from YOLOv8 to YOLOv26, the transformer-based RT-DETR, and the two-stage Faster R-CNN. It achieves up to 18% relative mAP50:95 gain with negligible overhead, introducing only 0.004 - 0.005M additional parameters and 0.7 - 0.8 GFLOPs, amounting to at most 0.25% of the parameter count of any evaluated detector. Results establish RefDiffNet as a lightweight, plug-and-play, detector-agnostic input enhancement module that substantially improves PCB defect detection with minimal computational cost.

缺陷检测PCB图像增强轻量化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。