Skip to main content
QUICK REVIEW

[Paper 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 Science3 citations
TL;DR

This paper proposes a novel framework that leverages synthetic data from text-to-image diffusion models (e.g., Stable Diffusion) to improve few-shot object detection (FSOD), using a copy-paste pipeline with saliency-based cropping and CLIP-based filtering to reduce false positives. The method achieves up to a 21.9% performance gain over baseline FSOD models on PASCAL VOC and MS COCO datasets by combining synthetic instances with real data and applying CLIP for zero-shot classification filtering.

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.

Motivation & Objective

  • To investigate the feasibility and effectiveness of using high-quality synthetic images from text-to-image generators for few-shot object detection (FSOD).
  • To address the challenge of integrating unannotated synthetic data into FSOD by designing a robust data augmentation pipeline.
  • To reduce the high false positive (FP) ratio in FSOD for novel categories, which remains a key limitation despite synthetic data augmentation.
  • To develop a representative synthetic dataset by maximizing diversity through feature-based sampling and clustering.
  • To integrate CLIP as a zero-shot classifier to filter false positives and improve detection reliability.

Proposed method

  • A copy-paste-based data augmentation pipeline is designed: saliency detection is applied to synthetic images, and the main object is cropped using the minimum enclosing box of the saliency map before being pasted onto real base dataset images.
  • The input text prompt format for the text-to-image generator is systematically evaluated, showing that prompt design significantly affects detection performance across different few-shot settings.
  • The number of synthetic images used is optimized, with 20 generated images per category found to yield the best performance across most few-shot scenarios.
  • A diversity-driven data selection strategy is proposed, using CLIP features to cluster or uniformly sample from synthetic data, ensuring high representativeness in the final training set.
  • CLIP is integrated into the inference pipeline to filter false positives: predictions with a CLIP similarity score below a learned threshold (0.1) are discarded.
  • The framework is evaluated under a new $(K+G)$-shot setting, combining $K$ real novel instances and $G$ synthetic instances, with ablation on prompt design, data quantity, and filtering thresholds.
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

Experimental results

Research questions

  • RQ1How can synthetic images from state-of-the-art text-to-image generators be effectively integrated into few-shot object detection without annotations?
  • RQ2What is the optimal number and prompt design for generating synthetic data that improves FSOD performance?
  • RQ3How can representative synthetic samples be selected from a large-scale, diverse synthetic dataset to maximize detection accuracy?
  • RQ4Why does the false positive ratio for novel categories remain high despite using synthetic data, and can it be mitigated?
  • RQ5To what extent can CLIP be used as a zero-shot filter to reduce false positives in FSOD?

Key findings

  • The proposed copy-paste pipeline with saliency-based cropping improves FSOD performance by up to 21.9% compared to the baseline on PASCAL VOC and MS COCO.
  • Using 20 synthetic images per category yields the best performance, and further increases do not improve accuracy, indicating a saturation point.
  • The CLIP-based filtering mechanism reduces false positives by up to 90%, with the optimal threshold set at 0.1 for CLIP similarity scores.
  • The method achieves strong performance even when using only synthetic data for novel categories, with a marginal gap between real and synthetic pasting, indicating synthetic data are highly suitable for FSOD.
  • The choice of text-to-image generator matters: Stable Diffusion outperforms GLIDE, with a 2.3–3.0% accuracy advantage across all shot settings.
  • Using both base and novel category names in CLIP's text encoder yields better results than using only novel categories, with the optimal list size being 20 (all PASCAL VOC categories or all MS COCO novel categories).
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

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.