Skip to main content
QUICK REVIEW

[Paper Review] X-Paste: Revisiting Scalable Copy-Paste for Instance Segmentation using CLIP and StableDiffusion

Hanqing Zhao, Dianmo Sheng|arXiv (Cornell University)|Dec 7, 2022
Advanced Neural Network ApplicationsComputer Science5 citations
TL;DR

X-Paste proposes a scalable data augmentation framework for instance segmentation that leverages CLIP for zero-shot category filtering and StableDiffusion for text-to-image generation of diverse object instances. By combining these models in a four-stage pipeline—object acquisition, mask generation, filtering, and composition—it achieves +2.6 box AP and +2.1 mask AP gains on LVIS and +1.6 box AP and +1.1 mask AP on COCO with Swin-L backbone, significantly boosting performance on long-tail categories without architectural changes.

ABSTRACT

Copy-Paste is a simple and effective data augmentation strategy for instance segmentation. By randomly pasting object instances onto new background images, it creates new training data for free and significantly boosts the segmentation performance, especially for rare object categories. Although diverse, high-quality object instances used in Copy-Paste result in more performance gain, previous works utilize object instances either from human-annotated instance segmentation datasets or rendered from 3D object models, and both approaches are too expensive to scale up to obtain good diversity. In this paper, we revisit Copy-Paste at scale with the power of newly emerged zero-shot recognition models (e.g., CLIP) and text2image models (e.g., StableDiffusion). We demonstrate for the first time that using a text2image model to generate images or zero-shot recognition model to filter noisily crawled images for different object categories is a feasible way to make Copy-Paste truly scalable. To make such success happen, we design a data acquisition and processing framework, dubbed ``X-Paste", upon which a systematic study is conducted. On the LVIS dataset, X-Paste provides impressive improvements over the strong baseline CenterNet2 with Swin-L as the backbone. Specifically, it archives +2.6 box AP and +2.1 mask AP gains on all classes and even more significant gains with +6.8 box AP, +6.5 mask AP on long-tail classes. Our code and models are available at https://github.com/yoctta/XPaste.

Motivation & Objective

  • To address the scalability limitations of traditional Copy-Paste augmentation, which relies on expensive human-annotated or 3D-rendered object instances.
  • To enable open-vocabulary, scalable data augmentation by leveraging zero-shot recognition (CLIP) and text-to-image generation (StableDiffusion).
  • To design a systematic framework that automatically acquires, masks, filters, and composes diverse object instances for training.
  • To improve instance segmentation performance, especially for long-tail object categories, without modifying model architecture.

Proposed method

  • Object Instance Acquisition uses text prompts with StableDiffusion to generate diverse, object-centric images across unlimited categories.
  • Instance Mask Generation applies category-agnostic saliency models to segment objects from generated or web-crawled images, leveraging their simplicity and object-centric nature.
  • Instance Filtering uses CLIP to compute similarity between predicted masks and class prompts, discarding low-similarity or misclassified instances.
  • Background Composition pastes filtered, masked instances onto diverse background images, using strategies that preserve realism and avoid occlusion artifacts.
  • The framework is integrated as a plug-in augmentation method, compatible with existing instance segmentation models like CenterNet2.
  • A hybrid data acquisition strategy combines text-to-image generation and CLIP-based filtering of web-crawled images to maximize diversity and quality.

Experimental results

Research questions

  • RQ1Can text-to-image diffusion models like StableDiffusion generate sufficiently diverse and realistic object instances for scalable data augmentation in instance segmentation?
  • RQ2Can zero-shot vision models like CLIP effectively filter noisy, web-crawled images to extract high-quality, category-accurate instances for training?
  • RQ3How does the performance of Copy-Paste augmentation scale when using synthetic and filtered real images instead of human-annotated or 3D-rendered data?
  • RQ4To what extent can X-Paste improve instance segmentation performance on long-tail object categories without architectural modifications?
  • RQ5How does X-Paste compare to state-of-the-art open-vocabulary detection methods in terms of accuracy and data efficiency?

Key findings

  • On the LVIS dataset, X-Paste achieves +2.6 box AP and +2.1 mask AP gains over the strong baseline CenterNet2 with Swin-L backbone, with even greater improvements of +6.8 box AP and +6.5 mask AP on long-tail classes.
  • On COCO, X-Paste improves the baseline by +1.6 box AP and +1.1 mask AP when using the Swin-L backbone, demonstrating consistent gains across different datasets and architectures.
  • The method outperforms state-of-the-art open-vocabulary detection models like ViLD, PromptDet, and DetPro, achieving 35.7 box AP and 31.8 mask AP on LVIS.
  • Combining X-Paste with standard Copy-Paste yields further gains, with +1.6 box AP and +1.1 mask AP on COCO using Swin-L, showing complementary benefits.
  • The framework is effective even on COCO, which has high instance density and long-tailed distribution, indicating robustness across data regimes.
  • The ablation study confirms that both text-to-image generation and CLIP-based filtering contribute significantly to performance, with their combination yielding the best results.

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.