Papers
Topics
Authors
Recent
Search
2000 character limit reached

DocShield: Towards AI Document Safety via Evidence-Grounded Agentic Reasoning

Published 3 Apr 2026 in cs.CV and cs.AI | (2604.02694v1)

Abstract: The rapid progress of generative AI has enabled increasingly realistic text-centric image forgeries, posing major challenges to document safety. Existing forensic methods mainly rely on visual cues and lack evidence-based reasoning to reveal subtle text manipulations. Detection, localization, and explanation are often treated as isolated tasks, limiting reliability and interpretability. To tackle these challenges, we propose DocShield, the first unified framework formulating text-centric forgery analysis as a visual-logical co-reasoning problem. At its core, a novel Cross-Cues-aware Chain of Thought (CCT) mechanism enables implicit agentic reasoning, iteratively cross-validating visual anomalies with textual semantics to produce consistent, evidence-grounded forensic analysis. We further introduce a Weighted Multi-Task Reward for GRPO-based optimization, aligning reasoning structure, spatial evidence, and authenticity prediction. Complementing the framework, we construct RealText-V1, a multilingual dataset of document-like text images with pixel-level manipulation masks and expert-level textual explanations. Extensive experiments show DocShield significantly outperforms existing methods, improving macro-average F1 by 41.4% over specialized frameworks and 23.4% over GPT-4o on T-IC13, with consistent gains on the challenging T-SROIE benchmark. Our dataset, model, and code will be publicly released.

Summary

  • The paper presents DocShield, a unified framework that integrates multi-modal visual-logical reasoning for robust text-centric forgery detection and explanation.
  • The approach employs a six-stage Cross-Cues-aware Chain of Thought (CCT) pipeline to jointly extract, validate, and ground visual and semantic cues in document analysis.
  • The model leverages a weighted multi-task reward with GRPO to achieve state-of-the-art performance and enhanced robustness on benchmarks like RealText-V1.

DocShield: Evidence-Grounded Agentic Reasoning for AI Document Safety

Motivation and Problem Definition

Recent advances in generative AI have dramatically escalated the risk and sophistication of text-centric image forgeries, which now threaten the authenticity of high-stakes documents such as receipts, legal records, and financial certificates. Existing forensic models are either narrowly focused on visual clues or treat detection, localization, and explanation as independent tasks. This compartmentalization leads to error cascades, limits holistic interpretability, and results in unreliable analysis—particularly when forgeries intentionally minimize or obfuscate low-level artifacts. There exists a critical need to establish AI document safety methodology that is robust, interpretable, and grounded in rigorous cross-modal evidence.

The DocShield Framework

DocShield proposes a unified, generative approach that formulates text-centric forgery analysis as a visual-logical co-reasoning task. Central to this framework is the Cross-Cues-aware Chain of Thought (CCT) mechanism, which mandates structured, multi-stage reasoning that cross-validates spatial visual cues against semantic logical clues. The model generates a single, machine-readable analysis report—including detection verdict, localized coordinates, and explanation—by autoregressively synthesizing multi-modal evidence. Figure 1

Figure 1: DocShield’s architecture performing end-to-end reasoning via the CCT pipeline, ultimately outputting a structured forensic report integrating detection, grounding, and explanation.

The CCT pipeline is designed to mitigate error propagation and hallucination, compensating for challenges such as visually imperceptible but semantically inconsistent manipulations. Six distinct stages are executed:

  1. Knowledge Preparation: Context creation via implicit captioning, prior retrieval, and OCR extraction.
  2. Visual Cues Extraction: Multiscale analysis for detecting subtle artifact patterns.
  3. Logical Cues Extraction: Internal consistency checks, world knowledge integration, and semantic anomaly detection.
  4. Cross-Cues Validation: Joint evidence synthesis, enabling logical cues to recover visual ‘blind spots’.
  5. Grounding: Precise mapping of reasoning findings to pixel-level tampered regions.
  6. Report Synthesis: Compilation of verdict, evidence, and rationale in a structured output.

Combinatorially, these components ensure that detection and localization are fully justified by a causally-connected rationale, crucial for trustworthy document forensics.

Weighted Multi-Task Reward and GRPO Alignment

To rigorously optimize this multi-faceted analysis pipeline, DocShield implements a weighted multi-task reward function—balancing format adherence, grounding precision, and explanation fidelity—and trains the model using Group Relative Policy Optimization (GRPO). Empirical results indicate that this composite, reward-optimized RL objective is essential for suppressing hallucinated rationales and maximizing both accuracy and robustness, especially under domain shifts and adversarial perturbations.

RealText-V1: A Fine-Grained Benchmark

A core contribution is RealText-V1, the first dataset to provide multilingual, pixel-level masks, and structured explanations for text-centric forgery detection, grounding, and rationale. Data curation is achieved via a PR² (Perceiver, Reasoner, Reviewer) hierarchical agent pipeline: Figure 2

Figure 2: The PR² multi-agent pipeline generating high-fidelity structured annotations via iterative, feedback-driven assessment and refinement.

This protocol ensures annotation integrity, fine-grained evidence-alignment across tasks, and supports robust, scalable supervision for multi-modal reasoning architectures.

Empirical Evaluation and Analysis

DocShield is thoroughly benchmarked against state-of-the-art MLLM-based and traditional forensic models across RealText-V1, T-IC13, and T-SROIE datasets. The unified macro-F1 (M-F1) metric, encompassing detection, grounding, and explanation, consistently demonstrates the superiority and balance of the proposed approach. Figure 3

Figure 3: Aggregate performance on RealText-V1, with DocShield delivering state-of-the-art detection, grounding, and explanation (pink area), reflecting its balanced, multi-task proficiency.

Key numerical results:

  • RealText-V1: M-F1 68.9% (vs. 55.8% for GPT-4o, 40.6% for FakeShield)
  • T-IC13 (zero-shot): M-F1 79.8%, outperforming all baselines.
  • T-SROIE (robustness): M-F1 62.5%, indicating superior resilience under dense-text and complex scenes.

Crucially, DocShield achieves this using a 7B-parameter architecture, surpassing larger proprietary MLLM systems; this suggests that architectural coherence and evidence-based reward shaping, not model scale, drive performance gains. Furthermore, robustness studies under heavy visual distortions (blur, compression, noise) show consistently smaller performance drops than competitive baselines, attributable to the co-reasoning mechanism’s compensatory logic.

Comprehensive ablations reveal that removal of the CCT pipeline or reward components each leads to marked drops in detection, grounding, and explanation F1, quantitatively underscoring their necessity. In comparative qualitative analysis, DocShield’s explanations are less prone to high-confidence hallucinations and demonstrate higher causal linkage between evidence and verdict. Figure 4

Figure 4: Qualitative artifact grounding and logical explanation comparison; DocShield accurately identifies challenging manipulations while justifying its findings.

Theoretical and Practical Implications

DocShield marks a significant advance in multi-modal, explainable document forensics by demonstrating that structured, evidence-aligned agentic reasoning is fundamentally superior to monolithic or cascaded approaches. Its formalization of reasoning as a chain of visual-logical validation closes critical vulnerabilities both in direct image artifacts and semantic manipulation. DocShield’s methodology, especially the CCT mechanism and multi-task reward-driven RL, sets a new methodological baseline for explainability, robustness, and generalization in forensic AI.

Practically, the unified forensic report output is directly compatible with regulatory compliance demands and can serve as an actionable substrate for downstream auditing, legal documentation, or feedback-driven model improvement.

Future Directions

Several open research avenues are highlighted:

  • Failure Mode Mitigation: Reducing failure cases in extremely degraded images or masterfully consistent forgeries remains an open challenge, potentially requiring further advances in visual reasoning, calibration, or fact-checking modules.
  • Scalability and Real-Time Trade-offs: While current inference is computationally intensive, advances in efficient vision encoders and modular CCT components could allow deployment at scale.
  • Dataset Expansion: RealText-V1 offers a foundation, but further multilingual, high-density annotation will be required, especially reflecting cross-cultural and regulatory diversity.

Continued integration of agentic reasoning, reinforcement alignment, and fine-grained annotation is likely to remain a critical triad in the evolution of trustworthy AI document safety.

Conclusion

DocShield introduces an evidence-grounded, agentic reasoning paradigm for text-centric forgery analysis, combining structural innovation with rigorous reward shaping and comprehensive benchmarking. The framework’s superiority across detection, grounding, and explanation tasks—both in accuracy and robustness—positions it as a new reference point for AI-driven document safety and explainable multimodal forensics (2604.02694).

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We found no open problems mentioned in this paper.

Collections

Sign up for free to add this paper to one or more collections.

Tweets

Sign up for free to view the 1 tweet with 0 likes about this paper.