Generate, Segment, and Refine: Towards Generic Manipulation Segmentation

Peng Zhou, Bor-Chun Chen, Xintong Han, Mahyar Najibi, Abhinav Shrivastava, Ser-Nam Lim, Larry Davis

Introduction

The proliferation of sophisticated image editing tools and generative AI has made it increasingly easy to create convincing fake images, posing a significant threat to information integrity. Detecting these manipulations at a pixel level—identifying exactly which parts of an image have been tampered with—is a critical but challenging task known as manipulation segmentation.

An example of a copy-move forgery where an object is duplicated within the same scene.

Current detection methods face two primary hurdles: a severe lack of large-scale, pixel-level annotated training data and an inability to generalize across diverse tampering techniques and post-processing "attacks" like JPEG compression or blurring.

The GSR-Net Framework

To address these challenges, this research introduces GSR-Net, a three-stage architecture designed to Generate, Segment, and Refine.

1. Generation: Creating Hard Positives

Rather than relying solely on scarce human-labeled data, GSR-Net utilizes a Generative Adversarial Network (GAN) to produce synthetic training examples. By taking an authentic background and a pasted foreground object, the GAN learns to blend the lighting and textures of the pasted region seamlessly. This creates "hard positive" examples that force the subsequent segmentation network to learn robust, non-trivial features rather than simple edge discontinuities.

2. Segmentation: Multi-Task Learning

The segmentation stage employs a DeepLab VGG-16 architecture. It uses a multi-task approach with two distinct branches: one focused on predicting the boundary of the manipulated region and another on the interior. By concatenating these features, the model is forced to prioritize boundary artifacts—the subtle "tells" left behind during the editing process.

3. Refinement: Self-Adversarial Training

The refinement stage is a novel self-adversarial step. The network takes its own predicted boundary, replaces those pixels with the authentic background, and re-processes the image. This "erasing" of detected artifacts forces the model to hunt for even subtler clues during training. Crucially, this stage shares weights with the segmentation stage, improving performance without increasing inference time.

Datasets and Evaluation

The model was trained primarily on the CASIA 2.0 dataset. To test its generalization capabilities, it was evaluated against four major benchmarks: CASIA 1.0, COVER (focused on copy-move forgeries), Carvalho, and In-The-Wild.

Manipulation detection benchmarks often include scenes with duplicated objects to test model sensitivity to edge artifacts.

Key Results

GSR-Net demonstrates significant improvements over existing state-of-the-art methods:

  • Superior Accuracy: It achieved higher F1 scores across all test datasets, notably outperforming methods like RGB-N and EXIF-consistency on the challenging COVER dataset (achieving an F1 of 0.489).
  • Exceptional Speed: By focusing on learned visual features, GSR-Net processes images in just 0.05 seconds—1600 times faster than metadata-based approaches like EXIF-consistency.
  • Robustness: The model maintains stable performance even under heavy JPEG compression (down to a quality factor of 50) and image scaling.
  • Synthetic Data Efficacy: Experiments showed that training exclusively on synthetic data generated using COCO object masks yields highly competitive results, proving the power of the GAN-based generation stage.

Conclusion

GSR-Net represents a significant step toward generic manipulation segmentation. By integrating synthetic data generation with a boundary-aware refinement process, it achieves high accuracy and speed. Future work will focus on expanding the generation stage to include a wider variety of manipulation techniques beyond simple blending and copy-pasting.

Summary updated

BibTeX
@inproceedings{zhou2020generate,
  author = {Peng Zhou and Bor-Chun Chen and Xintong Han and Mahyar Najibi and Abhinav Shrivastava and Ser-Nam Lim and Larry Davis},
  title = {{Generate, Segment, and Refine: Towards Generic Manipulation Segmentation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i07.7007},
}
Figure