Skip to main content
QUICK REVIEW

[论文解读] Explore the Power of Synthetic Data on Few-shot Object Detection

Shaobo Lin, Kun Wang|arXiv (Cornell University)|Mar 23, 2023
Advanced Neural Network ApplicationsComputer Science被引用 3
一句话总结

本文提出了一种新颖的框架,利用文本到图像扩散模型(如 Stable Diffusion)生成的合成数据来提升少样本目标检测(FSOD)性能,通过基于显著性检测的裁剪与 CLIP 基于的过滤相结合的复制粘贴流水线,有效降低误报率。该方法在 PASCAL VOC 和 MS COCO 数据集上,通过将合成实例与真实数据结合并应用 CLIP 进行零样本分类过滤,相较基线 FSOD 模型最高实现 21.9% 的性能提升。

ABSTRACT

Few-shot object detection (FSOD) aims to expand an object detector for novel categories given only a few instances for training. The few training samples restrict the performance of FSOD model. Recent text-to-image generation models have shown promising results in generating high-quality images. How applicable these synthetic images are for FSOD tasks remains under-explored. This work extensively studies how synthetic images generated from state-of-the-art text-to-image generators benefit FSOD tasks. We focus on two perspectives: (1) How to use synthetic data for FSOD? (2) How to find representative samples from the large-scale synthetic dataset? We design a copy-paste-based pipeline for using synthetic data. Specifically, saliency object detection is applied to the original generated image, and the minimum enclosing box is used for cropping the main object based on the saliency map. After that, the cropped object is randomly pasted on the image, which comes from the base dataset. We also study the influence of the input text of text-to-image generator and the number of synthetic images used. To construct a representative synthetic training dataset, we maximize the diversity of the selected images via a sample-based and cluster-based method. However, the severe problem of high false positives (FP) ratio of novel categories in FSOD can not be solved by using synthetic data. We propose integrating CLIP, a zero-shot recognition model, into the FSOD pipeline, which can filter 90% of FP by defining a threshold for the similarity score between the detected object and the text of the predicted category. Extensive experiments on PASCAL VOC and MS COCO validate the effectiveness of our method, in which performance gain is up to 21.9% compared to the few-shot baseline.

研究动机与目标

  • 探究使用高质量合成图像(来自文本到图像生成器)进行少样本目标检测(FSOD)的可行性和有效性。
  • 针对将未标注的合成数据整合到 FSOD 中的挑战,设计稳健的数据增强流水线。
  • 解决尽管进行了合成数据增强,新类别中仍存在高误报率(FP)这一关键限制问题。
  • 通过基于特征的采样与聚类方法,最大化多样性,构建具有代表性的合成数据集。
  • 将 CLIP 作为零样本分类器集成,以过滤误报并提升检测可靠性。

提出的方法

  • 设计了一种基于复制粘贴的数据增强流水线:对合成图像应用显著性检测,利用显著性图的最小外接矩形裁剪出主要目标,再将其粘贴到真实基础数据集图像上。
  • 系统评估了文本到图像生成器的输入文本提示格式,结果表明提示设计在不同少样本设置下显著影响检测性能。
  • 优化了所用合成图像的数量,发现在大多数少样本场景中,每类别生成 20 张图像时性能最佳。
  • 提出一种以多样性为导向的数据选择策略,利用 CLIP 特征对合成数据进行聚类或均匀采样,确保最终训练集中样本的高代表性。
  • 在推理流水线中集成 CLIP 以过滤误报:将 CLIP 相似度得分低于学习阈值(0.1)的预测结果予以丢弃。
  • 在新的 $(K+G)$-shot 设置下评估该框架,结合 $K$ 个真实新类别实例与 $G$ 个合成实例,并对提示设计、数据量和过滤阈值进行消融实验。
Figure 1 : How to utilize synthetic data for FSOD? (a) The few-shot novel categories, including bird, bus, cow, motorbike, and sofa, are from the dataset of PASCAL VOC split 1. (b) The synthetic data from Stable Diffusion. (c) The saliency detection map of the synthetic data. (d) The cropped novel i
Figure 1 : How to utilize synthetic data for FSOD? (a) The few-shot novel categories, including bird, bus, cow, motorbike, and sofa, are from the dataset of PASCAL VOC split 1. (b) The synthetic data from Stable Diffusion. (c) The saliency detection map of the synthetic data. (d) The cropped novel i

实验结果

研究问题

  • RQ1如何在无标注的前提下,有效将最先进文本到图像生成器生成的合成图像整合到少样本目标检测中?
  • RQ2生成合成数据以提升 FSOD 性能时,最优的图像数量与提示设计是什么?
  • RQ3如何从大规模、多样化的合成数据集中选取具有代表性的样本,以最大化检测准确率?
  • RQ4尽管使用了合成数据,为何新类别中的误报率仍然较高?是否可以缓解?
  • RQ5在 FSOD 中,CLIP 作为零样本过滤器,其缓解误报的潜力有多大?

主要发现

  • 所提出的基于显著性检测裁剪的复制粘贴流水线,在 PASCAL VOC 和 MS COCO 上相较基线模型,将 FSOD 性能最高提升 21.9%。
  • 每类别使用 20 张合成图像时性能最佳,进一步增加图像数量无法提升准确率,表明存在性能饱和点。
  • 基于 CLIP 的过滤机制可将误报率降低高达 90%,最优 CLIP 相似度得分阈值为 0.1。
  • 即使仅使用合成数据进行新类别训练,模型仍能取得优异性能,真实与合成数据粘贴的性能差距微小,表明合成数据非常适用于 FSOD。
  • 文本到图像生成器的选择具有重要影响:Stable Diffusion 在所有少样本设置下均优于 GLIDE,准确率优势达 2.3–3.0%。
  • 在 CLIP 的文本编码器中同时使用基础类别与新类别名称,效果优于仅使用新类别名称;最优列表大小为 20(即全部 PASCAL VOC 类别或全部 MS COCO 新类别)。
Figure 2 : The pipeline of using synthetic data for FSOD. (a) During the data generation, the novel dataset is generated by Stable Diffusion. (b) In the data selection step, the generated data is processed by the selection module to find representative samples for training. We use the cluster-based
Figure 2 : The pipeline of using synthetic data for FSOD. (a) During the data generation, the novel dataset is generated by Stable Diffusion. (b) In the data selection step, the generated data is processed by the selection module to find representative samples for training. We use the cluster-based

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。