Simple Copy-Paste Is a Strong Data Augmentation Method for Instance Segmentation

Golnaz Ghiasi, Yin Cui, Aravind Srinivas, Rui Qian, Tsung-Yi Lin, Ekin D. Cubuk, Quoc V. Le, Barret Zoph

Abstract

Building instance segmentation models that are data-efficient and can handle rare object categories is an important challenge in computer vision. Leveraging data augmentations is a promising direction towards addressing this challenge. Here, we perform a systematic study of the Copy-Paste augmentation for instance segmentation where we randomly paste objects onto an image. Prior studies on Copy-Paste relied on modeling the surrounding visual context for pasting the objects. However, we find that the simple mechanism of pasting objects randomly is good enough and can provide solid gains on top of strong baselines. Furthermore, we show Copy-Paste is additive with semi-supervised methods that leverage extra data through pseudo labeling (eg. self-training). On COCO instance segmentation, we achieve 49.1 mask AP and 57.3 box AP, an improvement of +0.6 mask AP and +1.5 box AP over the previous state-of-the-art. We further demonstrate that Copy-Paste can lead to significant improvements on the LVIS benchmark. Our baseline model outperforms the LVIS 2020 Challenge winning entry by +3.6 mask AP on rare categories.

Introduction

Instance segmentation—the task of identifying and outlining every individual object in an image—is notoriously data-hungry. Annotating these datasets is expensive and time-consuming; for instance, the COCO dataset required roughly 22 worker hours per 1,000 masks. Furthermore, models often struggle with "long-tail" distributions, where rare object categories have very few examples.

While data augmentation is a standard fix, most common methods like flipping or cropping are general-purpose. Previous attempts at "object-aware" augmentation—specifically Copy-Paste—tried to be "smart" by modeling the surrounding visual context to ensure objects were pasted in realistic locations. This research asks a fundamental question: Do we actually need that complexity, or is simple randomness enough?

The Simple Copy-Paste Mechanism

The researchers propose a surprisingly simple Copy-Paste mechanism that ignores visual context entirely. The process involves:

  1. Selection: Picking two images at random from the training set.
  2. Jittering: Applying Large Scale Jittering (LSJ), which involves resizing images anywhere from 0.1x to 2.0x of their original size.
  3. Pasting: Randomly selecting a subset of object instances from one image and pasting them onto the other.
  4. Update: Adjusting the ground-truth annotations, removing masks for objects that were completely covered by the new additions.
The Simple Copy-Paste mechanism: randomly selecting object instances from one image and pasting them onto another, ignoring visual context.

Crucially, modeling visual context was found to be unnecessary. Pasting a soccer player into a forest or a tiny giraffe next to a giant bird doesn't hurt the model; instead, it creates challenging and novel training data for free. The model learns to focus on the object's intrinsic features rather than relying on environmental cues.

Key Insights: Scale and Efficiency

Two major factors contribute to the success of this method: aggressive scaling and extreme data efficiency.

The Power of Scale

Copy-Paste works best when combined with Large Scale Jittering (LSJ). Standard scale jittering (typically 0.8x to 1.25x) is too restrictive. Aggressive scaling (0.1x to 2.0x) allows the model to see objects at many different resolutions, which is vital for robust instance segmentation. This combination forces the model to learn scale-invariant features.

Extreme Data Efficiency

In low-data regimes, the impact of Copy-Paste is most dramatic. When using only 10% of the COCO dataset, the method provided a massive +10 AP boost. It essentially makes the model twice as data-efficient, allowing it to reach performance levels with a fraction of the labeled data usually required.

Performance gains of Copy-Paste across different dataset sizes. Note the significant boost in the low-data (0.1 fraction) regime.

Results and Benchmarks

The simplicity of the method belies its power. It is additive, meaning it stacks well on top of strong backbones (like EfficientNet and ResNet) and self-training methods.

  • COCO State-of-the-Art: The authors achieved 49.1 mask AP and 57.3 box AP, surpassing previous leaders like SpineNet and DetectoRS.
  • LVIS Breakthrough: On the LVIS benchmark, which focuses on long-tail recognition, the baseline model outperformed the 2020 Challenge winning entry by +3.6 mask AP on rare categories.
  • Transferability: The method proved effective across various training lengths and architectures, demonstrating it is a general-purpose tool for the computer vision pipeline.

Conclusion

The success of random Copy-Paste suggests that for data augmentation in segmentation, "simple" is often better. By pairing random object pasting with aggressive scale jittering, researchers can significantly boost model performance, especially for rare classes and in scenarios where labeled data is scarce. This approach moves away from complex context modeling toward a more robust, feature-centric learning process.

Summary updated

BibTeX
@inproceedings{ghiasi2021simple,
  author = {Golnaz Ghiasi and Yin Cui and Aravind Srinivas and Rui Qian and Tsung-Yi Lin and Ekin D. Cubuk and Quoc V. Le and Barret Zoph},
  title = {{Simple Copy-Paste Is a Strong Data Augmentation Method for Instance Segmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  url = {https://openreview.net/forum?id=xaEJe38O1B},
}
Figure