MaLP: Manipulation Localization Using a Proactive Scheme

Vishal Asnani, Xi Yin, Tal Hassner, Xiaoming LiuCVPR 2023

Abstract: Advancements in the generation quality of various Generative Models (GMs) has made it necessary to not only perform binary manipulation detection but also localize the modified pixels in an image. However, prior works termed as passive for manipulation localization exhibit poor generalization performance over unseen GMs and attribute modifications. To combat this issue, we propose a proactive scheme for manipulation localization, termed MaLP. We encrypt the real images by adding a learned template. If the image is manipulated by any GM, this added protection from the template not only aids binary detection but also helps in identifying the pixels modified by the GM. The template is learned by leveraging local and global-level features estimated by a two-branch architecture. We show that MaLP performs better than prior passive works. We also show the generalizability of MaLP by testing on 22 different GMs, providing a benchmark for future research on manipulation localization. Finally, we show that MaLP can be used as a discriminator for improving the generation quality of GMs.

Introduction

The rapid evolution of generative models (GMs) has created a significant challenge for digital forensics. Traditional detection methods are primarily passive, meaning they analyze images post-manipulation to identify tell-tale artifacts. However, as GMs improve, these artifacts become increasingly subtle, and passive detectors often fail when encountering new architectures or unseen manipulation types (e.g., changing hair color vs. adding a smile).

To address this, we introduce MaLP (Manipulation Localization Proactive). Instead of waiting for an image to be faked, MaLP takes a proactive stance by "encrypting" real images with a hidden, learned template before they are distributed. This embedded signature ensures that any subsequent AI-driven manipulation inevitably disrupts the template, leaving a clear trail for detection and precise localization.

Methods and Architecture

The MaLP framework is an end-to-end system composed of three specialized modules designed to protect images and identify tampering.

The MaLP framework architecture, featuring Encryption, Detection, and Localization modules.
  1. Encryption Module: This module learns a set of orthogonal templates. A subtle, nearly invisible amount of a template is added to the real image. The goal is to maintain high image quality while ensuring the signature is robust enough to survive manipulation.
  2. Localization Module: This "detective" component uses a unique two-branch architecture. It combines a Shallow CNN for high-speed inference and local feature extraction with a Vision Transformer (ViT) to capture global context. Crucially, the Transformer is used only during training to guide the CNN; during inference, only the fast CNN is required, making the system highly efficient.
  3. Detection Module: This performs binary classification (Real vs. Fake) by attempting to recover the original template and analyzing the "fakeness map" generated by the localization module.

Experimental Results

To prove its generalizability, MaLP was tested against a massive benchmark of 22 different generative models across multiple domains, including faces (CelebA-HQ), landscapes (GTA2CITY), and objects (Horse2Zebra).

Qualitative results of MaLP across different domains, showing successful localization of manipulated regions.

Key Performance Metrics

  • Superior Localization: MaLP achieved a Cosine Similarity of 0.9394 between predicted and ground-truth fakeness maps, significantly outperforming passive baselines which typically hover around 0.88.
  • Reliable Detection: On many benchmarks, MaLP achieved an AUC of 1.0, demonstrating near-perfect reliability in distinguishing real images from protected-then-faked ones.
  • Inference Speed: Thanks to the optimized shallow CNN, MaLP is more than 2x faster than standard segmentation models like DeepLabv3, processing images in approximately 29ms.
  • Robustness: The proactive signature remains effective even after common image "attacks" such as JPEG compression, blurring, and noise addition.

Conclusion

MaLP represents a paradigm shift in digital forensics by moving from reactive analysis to proactive protection. By embedding a verifiable signature into the source image, it overcomes the generalization limitations of passive detectors. Furthermore, MaLP can be used as a discriminator to help generative models improve their own output quality. Future work will explore training GMs from scratch using this proactive scheme and enhancing resistance to template reversal attacks.

Summary updated

BibTeX
@inproceedings{asnani2023malp,
  author = {Vishal Asnani and Xi Yin and Tal Hassner and Xiaoming Liu},
  title = {{MaLP: Manipulation Localization Using a Proactive Scheme}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  url = {https://openreview.net/forum?id=IbqwYr8SiA},
}
Figure