UniShield: An Adaptive Multi-Agent Framework for Unified Forgery Image Detection and Localization

Qing Huang, Zhipei Xu, Xuanyu Zhang, Xiangyu Yu, Jian Zhang

TL;DR

UniShield is a novel multi-agent framework that unifies image forgery detection and localization across four distinct domains: general image manipulation, document tampering, DeepFakes, and AI-generated content. By leveraging a specialized "perception agent" to dynamically route images to the most suitable expert model, UniShield eliminates user confusion, avoids domain conflicts, and delivers highly interpretable, structured forensic reports.

What Problem Does This Paper Address?

As generative AI and image editing tools grow more sophisticated, creating hyper-realistic forged images has become trivial. This poses severe risks to information integrity and security. The field of Forgery Image Detection and Localization (FIDL) has responded with powerful tools, but they suffer from a major flaw: extreme fragmentation.

Current state-of-the-art models are hyper-specialized. A tool that excels at spotting a face-swapped DeepFake will fail miserably when analyzing a tampered receipt or a diffusion-generated landscape. For practical deployment, this creates two massive hurdles:

  1. User Confusion: Everyday users cannot be expected to know which type of forgery an image contains before selecting a tool to analyze it.
  2. Domain Conflicts: Simply training a single massive neural network on a mix of all forgery types typically degrades performance, as the features indicating a DeepFake conflict with those indicating a copy-move manipulation.

UniShield addresses this by creating an adaptive, multi-agent umbrella framework that orchestrates diverse expert models without cross-domain performance degradation.

Figure 1. Unified Framework for Forgery Image Detection and Localization. (a) Various types of forgery images (b) Previous methods required users to manually determine the detection tools based on image content, often leading to confusion. (c) Our system, UniShield, automatically coordinates various detection tools for efficient, unified forgery detection, and outputs interpretable reports including de- scription, detection, localization, and judgment basis.

Methods

UniShield splits the task into two core collaborative components: a Perception Agent and a Detection Agent.

1. The Perception Agent

This agent acts as the intelligent front-end router and consists of two stages:

  • Task Router: It analyzes the input image and categorizes it into one of four primary forgery tracks: Image Manipulation Detection and Localization (IMDL), Document Manipulation Detection and Localization (DMDL), DeepFake Detection (DFD), or AIGC Image Detection (AIGCD). To achieve high accuracy, the authors fine-tuned a Multimodal Large Language Model (MLLM) using Group Relative Policy Optimization (GRPO)—an R1-style reinforcement learning algorithm that optimizes the model via relative rewards rather than an explicit value critic.
  • Tool Scheduler: Within the selected track, it decides whether to deploy an LLM-based or non-LLM-based detector.

2. The Detection Agent

Once the Perception Agent makes its decision, the Detection Agent calls the chosen expert model from its integrated toolbox (which includes 8 specialized models like IML-ViT, FakeShield, and AscFormer). After the expert model outputs its confidence scores or localization masks, a Summarizer (powered by GPT-4o) synthesizes the findings into a clean, human-readable report detailing the description of the image, the detection verdict, precise localization, and the underlying low- and high-level visual judgment basis.

Figure 2. The pipeline of UniShield. Our method consists of two main components: Perception Agent and Detection Agent. The Perception Agent includes a task router that determines the forgery domain and a tool scheduler that selects the appropriate detector type based on image content. The Detection Agent then performs fake detection using the selected expert tool and generates a structured report, including detection result and the reasoning behind the judgment.

Datasets

The authors evaluated UniShield across a comprehensive suite of established benchmarks to prove its cross-domain robustness:

  • IMDL: CASIA1+ and IMD2020 (pixel-level natural image tampering).
  • DMDL: RTM (realistic document forgeries).
  • AIGCD: AIGCDetectionBenchmark (covering 16 different generative models like StyleGAN, Midjourney, and Stable Diffusion).
  • DFD: DF40 (a large-scale benchmark featuring 40 face-forgery techniques).

Key Insights and Ideas

  • The Semantic vs. Artifact Split: A key insight driving the Tool Scheduler is that LLM-based detectors are naturally better at catching high-level semantic or logical inconsistencies (e.g., contextual implausibility), whereas traditional computer vision models are superior at catching low-level pixel artifacts (e.g., texture discontinuities or edge anomalies).
Pilot study demonstrating how LLM-based tools excel at semantic forgeries, while non-LLM tools excel at low-level artifact detection.
  • 1 + 1 > 2 Synergy: By dynamically routing images to the single best tool rather than averaging predictions or using multi-tool voting, UniShield actually outperforms the individual expert models on their own home turf. It avoids the false positives that occur when an expert model is forced to evaluate an image outside its domain.
  • Explainable Forensics: Instead of just outputting a binary "fake/real" mask, the framework prioritizes human-in-the-loop utility by generating structured arguments (e.g., pointing out lighting mismatches or repetition patterns), bridging the gap between raw model outputs and legal/forensic requirements.

Key Results

UniShield achieved state-of-the-art performance across all four evaluated domains, outperforming both general cross-domain baselines and domain-specific experts:

  • DeepFake Detection (DFD): Achieved an F1 score of 0.911, a substantial 0.201 improvement over the next best unified baseline (FakeShield).
  • Document Forgery (DMDL): Reached a top F1 score of 0.736, outperforming the best baseline ResNet model by 0.086.
  • Image Manipulation (IMDL): Achieved an image-level F1 score of 0.96 and a pixel-level F1 score of 0.77 on the CASIA1+ dataset.
  • AI-Generated Content (AIGCD): Scored a 0.942 average accuracy across 16 distinct generative models, maintaining high consistency even against advanced diffusion models like DALL-E 2 and Midjourney.

Limitations and Future Work

While UniShield demonstrates impressive robustness, the authors noted a slight performance decline under heavy image degradation. When images are subjected to severe transmission artifacts—such as low-quality JPEG compression (level 70) or high variance Gaussian noise—the low-level visual clues become obscured, making it harder for the non-LLM expert models to accurately localize the forgery.

Future work will likely focus on enhancing the framework's resilience to extreme noise and expanding the toolbox to adaptively integrate new detection modules as generative deepfake techniques continue to evolve.

Summary updated

BibTeX
@inproceedings{huang2026unishield,
  author = {Qing Huang and Zhipei Xu and Xuanyu Zhang and Xiangyu Yu and Jian Zhang},
  title = {{UniShield: An Adaptive Multi-Agent Framework for Unified Forgery Image Detection and Localization}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=5Zlpz2lmMC},
}
Figure