ManipShield: A Unified Framework for Image Manipulation Detection, Localization and Explanation

Zitong Xu, Huiyu Duan, Xiaoyu Wang, Zhaolin Cai, Kaiwei Zhang, Qiang Hu, Jing Liu, Xiongkuo Min, Guangtao Zhai · DOI

Abstract

The rapid advancement of generative AI has complicated image forensic tasks, moving beyond simple face-swaps to complex semantic manipulations. This paper introduces ManipBench, a comprehensive dataset of 455,000 AI-edited images across 12 categories, and ManipShield, a multimodal large language model (MLLM) framework. ManipShield integrates detection, localization, and explanation, providing human-readable reasoning for its forensic judgments. By leveraging contrastive LoRA fine-tuning and a Layer Discrimination Selection (LDS) module, ManipShield achieves state-of-the-art performance and robust generalization across diverse generative models.

Introduction

The explosion of generative AI has moved image manipulation far beyond simple face-swapping. Modern tools can seamlessly add objects, change textures, or alter lighting in ways that traditional deepfake detectors—often trained only on human faces—completely miss. Existing benchmarks for Image Manipulation Detection and Localization (IMDL) suffer from limited diversity, narrow model coverage, and the "black box" problem, where detectors provide binary scores without explaining the underlying reasoning.

To address these challenges, we present ManipShield, a unified framework designed to detect, locate, and explain image tampering. Unlike previous tools, ManipShield provides bounding boxes and human-readable reasoning, setting a new state-of-the-art for forensic transparency.

Overview of the ManipBench dataset collection and the ManipShield framework's multi-step approach to detection, localization, and explanation.

ManipBench: A Large-Scale Forensic Dataset

A core contribution of this work is ManipBench, which is significantly larger and more diverse than previous datasets. It consists of 455,000 AI-edited images derived from 22,000 high-resolution real-world sources. The dataset covers 12 manipulation categories, including object addition/removal, material changes, and scanning text alterations, across 25 different state-of-the-art editing models such as FLUX, SD3, and IP2P.

Crucially, 100,000 images are meticulously annotated with bounding boxes, "judgment cues" (e.g., "unnatural lighting"), and full textual explanations, providing a rich training signal for multimodal models.

The ManipShield Framework

ManipShield is built on the InternVL3.5 multimodal architecture and introduces several novel components to enhance forensic analysis:

Contrastive LoRA Fine-Tuning

To sharpen the model's ability to perceive subtle artifacts, the vision encoder is fine-tuned using a contrastive loss. This approach forces the model to learn the minute differences between a real image and its AI-edited counterpart within a shared feature space.

Layer Discrimination Selection (LDS)

Not all layers in a large language model are equally effective at forensic analysis. The LDS module statistically identifies the "sweet spot"—the specific hidden layer that best separates real and manipulated features. Research indicates that layer 24 (out of 32) provides the most discriminative power, capturing the "reasoning" necessary to spot semantic inconsistencies.

Task-Specific Decoders

Instead of relying solely on text generation, ManipShield utilizes three specialized decoders branching off the optimal LLM layer:

  1. Detection Decoder: For binary real/fake classification.
  2. Unrealistic Attribute Decoder: To identify specific cues like distorted shapes or inconsistent lighting.
  3. Region Localization Decoder: To predict precise bounding boxes for manipulated areas.
Detailed architecture of the ManipShield framework, highlighting the vision encoder, LDS module, and specialized decoders for detection, attribute identification, and localization.

Key Insights and Results

ManipShield outperforms both traditional forensic models and general-purpose MLLMs like GPT-4o and LLaVA-1.6. It achieved 94.66% accuracy and a 95.12 F1-score on the ManipBench dataset. In bounding box prediction (mIoU), it reached 0.749, outperforming specialized object detection models like GroundingDINO.

One of the most significant findings is the model's zero-shot performance. On unseen proprietary models (e.g., NanoBanana or GPT-Image), ManipShield maintained high performance while other detectors saw significant drops, proving its robustness against future AI editing tools. The use of an MLLM backbone allows the model to spot high-level logic errors—such as a hand having six fingers or a reflection that doesn't match the object—which are often the only clues in high-quality AI edits.

Conclusion and Future Work

ManipShield represents a significant step toward transparent and robust image forensics. While powerful, the framework faces challenges regarding computational cost due to its MLLM-based nature. Future work will focus on improving efficiency for real-time deployment and exploring even more complex multi-step edits. By providing not just a verdict but a reasoned explanation, ManipShield offers a tool that human investigators can truly trust in the fight against digital misinformation.

Summary updated

BibTeX
@inproceedings{xu2026manipshield,
  author = {Zitong Xu and Huiyu Duan and Xiaoyu Wang and Zhaolin Cai and Kaiwei Zhang and Qiang Hu and Jing Liu and Xiongkuo Min and Guangtao Zhai},
  title = {{ManipShield: A Unified Framework for Image Manipulation Detection, Localization and Explanation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=umrmVI1xvK},
}
Figure