Can vision-language models (VLMs) reason about AI edits in images?Can Vision-Language Models Reason about AI Edits in Images?
The authors use GRPO reinforcement learning to train Qwen2.5-VL to reason about whether an image has been AI-tampered, and state that detection accuracy and eff-IoU are highest on four datasets.
The paper targets forensic detection and localization of AI-tampered images: given an image that may have been locally edited (photoshop, diffusion inpainting, DeepFake, etc.), the model must determine whether it has been tampered with and output a pixel-level mask of the tampered region. The paper does not define a threat model from an adversarial attacker's perspective.
- AI-generated image editing is becoming increasingly realistic, and tampering detection and localization are critical for trustworthy AI; the authors argue that traditional binary classifiers lack interpretability and generalization, and that existing VLM methods mostly rely on supervised fine-tuning with reasoning annotations.
- Proposes a GRPO reinforcement learning framework: the VLM first generates reasoning traces and tampering judgments (including bounding boxes), trained using only format rewards and accuracy rewards; then a frozen SAM segmentation module refines the coarse bounding boxes into pixel-level masks based on the reasoning output.
- On the four datasets AutoSplice, MagicBrush, FFHQ-FM, SD inpaint, the authors state the method has the highest detection accuracy and eff-IoU, with average eff-IoU 0.211, higher than second-place SIDA's 0.144 (Table 2); mIoU is not best on most datasets.
- The authors state that evaluation of larger VLMs is left for future work, and that training data scale and annotation quality are directions for scaling; training uses only 97K samples, the largest backbone is 7B, and the noise robustness experiments tested only Gaussian noise and did not include the segmentation module.
- Evaluated models
- Qwen2.5-VL-7B-InstructQwen2.5-VL-3BGemma 3 4B
- Benchmarks
- AutoSpliceCASIAv2Fantastic RealityFFHQ-FMMagicBrushSD inpaint
- Metrics
- AccmIoUeff-IoUPixel-F1
Researchers trained a vision-language model (VLM) via GRPO reinforcement learning to reason about AI edits in images, achieving detection and localization performance comparable to state-of-the-art image forgery detectors on multiple image tampering datasets. The model first outputs a structured reasoning trace and judges whether the image has been tampered with, and then a lightweight segmentation model uses this to generate pixel-level localization masks. The method requires far weaker supervision than existing approaches and proposes the eff-IoU metric, which uniformly evaluates detection and localization.
Paper analysis
What problem does this paper attempt to solve?
Whether reinforcement learning (GRPO), rather than reasoning-annotation supervision, can train a VLM to reason about and localize AI image edits.
Core question: can reinforcement learning enable a VLM to learn to "reason first, then judge," accomplishing detection and pixel-level localization of AI-tampered images without relying on manually curated reasoning annotations.
- Problem setting: the authors argue that generative models make image tampering realistic, tampering detection and localization are critical for trustworthy AI, but traditional binary classifiers lack interpretability and generalization.
- Shortcomings of existing methods: the authors state that most existing VLM-based explainable forensics (e-IFDL) methods rely on strongly supervised fine-tuning with curated reasoning annotations, and generalize poorly outside the training distribution; recent GRPO/RL methods mainly target whole-image real/fake classification and do not handle localization of local edits.
- Core hypothesis: inspired by GRPO's success in eliciting reasoning on DeepSeek R1, the authors hypothesize that simple accuracy and format rewards suffice to elicit reasoning traces and tampering judgments from a VLM without explicit reasoning supervision.
- Proposed in the paper: a GRPO-based training framework — the VLM outputs a structured reasoning trace and tampering judgment (including a bounding box), and a lightweight segmentation model then generates pixel-level masks from these; a unified metric eff-IoU is proposed to jointly evaluate detection and localization.
- Research questions: RQ1 whether the reward model can elicit reasoning to detect tampering; RQ2 whether the framework generalizes across VLM architectures and datasets; RQ3 whether the weakly supervised reasoning model can match strongly supervised SOTA detectors.
What related research exists?
Related work falls into three categories: traditional forensic detection, MLLM interpretable forensics, and GRPO/RL detection methods; the baselines are four localization methods.
Traditional image forensics detection
- The paper mentions detection means such as metadata analysis, watermark detection, spectral analysis, and lighting cues, as well as deep learning methods and MLLMs; the authors state MLLMs leverage visual and textual information to reason about edits, with better robustness and generalization, but are susceptible to hallucination.
MLLM-based explainable image forensics (e-IFDL)
- FakeShield (Xu et al., 2025) — uses supervised fine-tuning to make a VLM give explainable predictions, combined with pixel-level mask extraction and explanation.
- ForgeryGPT (Liu et al., 2025) — a multimodal LLM framework combining pixel-level mask extraction with explainable interactive dialogue.
- ForgerySleuth (Sun et al., 2024) — fuses multiple visual and textual clues via Chain-of-Clues prompting to generate localization segmentation maps.
- SIDA (Huang et al., 2025) — trained on the large-scale SID-Set, predicts tampering masks and generates textual explanations.
- The paper points out that these methods rely on strongly supervised training and curated reasoning annotations (often from third-party models), and often generalize poorly; this paper's VLM does not rely on explanation supervision and learns reasoning only from rewards.
GRPO/RL-type detection methods
- ThinkFake, Ivy-Fake, Fake-HR1, RAIDX, etc. (2025–2026) — the paper points out that these GRPO/RL methods mainly target whole-image real/fake AIGC classification, whereas this paper handles local edits requiring simultaneous detection and spatial localization, hence the design of a localization-aware reward using bounding-box IoU.
Baselines and benchmarks
- Comparison baselines: Mesorch, AdaIFL, FakeShield, SIDA, and untrained Qwen2.5-VL (vanilla).
- Datasets: training uses AutoSplice, CASIAv2, Fantastic Reality, FFHQ-FM, MagicBrush, SD inpaint; evaluation uses the test sets of AutoSplice, MagicBrush, FFHQ-FM, SD inpaint.
The authors position this paper as: a decoupled GRPO reasoning-localization framework for local edit detection, a setting the authors state has not been explored before.
How does the paper address this problem?
Two stages: GRPO trains the VLM to output reasoning traces + bounding boxes, then with the VLM frozen, a SAM segmentation module is trained to generate pixel masks.
Overall approach: detection and localization are decoupled. First, GRPO reinforcement learning trains a VLM (Qwen2.5-VL) to generate a reasoning trace, tampering judgment, and coarse bounding box for the input image; then the VLM is frozen, and its reasoning output guides a SAM-based segmentation module to produce pixel-level tampering masks.
GRPO Training and Reward Design
- GRPO objective: sample G generations for the same input, update the policy using group-normalized advantages, with the objective being JGRPO(θ) from Eq. 1 of the paper (including the importance sampling ratio and clip truncation), requiring no separate critic model.
- Format reward: the output must strictly follow the <think>...</think><answer>[...]</answer> format, scoring 1 if compliant and 0 otherwise; format-incorrect generations do not participate in the accuracy reward (Eq. 2).
- Accuracy reward (Eq. 4): when an edited image is judged as edited, the reward is the IoU between the predicted and ground-truth bounding boxes; when a real image is judged as real, the reward is the hyperparameter w; both types of incorrect predictions receive reward 0.
- This stage optimizes only VLM parameters, without any explicit reasoning supervision.
Reasoning-Guided Segmentation Module
- Motivation: the VLM's bounding box is only coarse localization; the segmentation module refines the reasoning trace and bounding box into a dense mask; the authors state this design is inspired by prompt-driven segmentation work [32].
- Prompt encoding: a multimodal encoder Φ jointly encodes the image and the VLM's full output R, taking the hidden representation of the special token ⟨SEG⟩, zseg = Φ(I, R)⟨ SEG ⟩, and obtaining the segmentation prompt q via a learnable projection.
- SAM segmentation: the SAM backbone is entirely frozen; the mask decoder outputs the final mask conditioned on image features, q, and the bounding box; only the prompt encoder and projection module are trained.
- Segmentation loss: weighted sum of pixel-level BCE and region overlap loss, Lseg = Lpix + λ · Loverlap (Eq. 11).
Evaluation Method and eff-IoU
- Detection uses classification accuracy Acc, localization uses mIoU; a unified metric eff-IoU = Acc × mIoU (range [0,1]) is proposed to jointly reflect detection and localization.
- Evaluation is conducted on the test sets of AutoSplice, MagicBrush, FFHQ-FM, SD inpaint, with balanced numbers of tampered and real images.
Implementation Details (Appendix E)
- Images are uniformly resized to 500×500; bounding box format is [x, y, w, h], and real images output the token [NO EDIT].
- Trained on 4 NVIDIA H100s for 4 epochs, per-device batch size 8, 8 generations sampled per prompt; AdamW, learning rate 5×10⁻⁶, weight decay 0.1.
What experiments did the paper conduct?
Comparison with 4 baselines on four datasets: the authors state that Acc and eff-IoU are highest on all, while mIoU is not best on most datasets.
Experimental Setup
- Model under test: main model Qwen2.5-VL-7B-Instruct; additionally Qwen2.5-VL-3B and Gemma 3 4B for backbone comparison (Table 3).
- Baselines: Qwen2.5-VL (vanilla), AdaIFL, Mesorch, FakeShield, SIDA.
- Datasets: training uses AutoSplice, CASIAv2, Fantastic Reality, FFHQ-FM, MagicBrush, SD inpaint; evaluation uses the AutoSplice, MagicBrush, FFHQ-FM, SD inpaint test sets, with balanced numbers of tampered/real images.
- Metrics: Acc (detection), mIoU (localization), eff-IoU = Acc × mIoU; Pixel-F1 is additionally reported in the appendix.
- Training scale: the authors state only 97K training samples were used, while baseline training sets are 106K to 300K+ (Appendix F).
- Data overlap note: Appendix F states FakeShield's training set contains FFHQ-FM and SD inpaint, and SIDA's contains MagicBrush, constituting in-domain comparisons; the paper does not report repetition counts or statistical tests.
Main Results
According to Table 1 (Acc / mIoU / eff-IoU per dataset):
Swipe horizontally to read the table
Model AutoSplice eff-IoU MagicBrush eff-IoU FFHQ-FM eff-IoU SD inpaint eff-IoU Qwen2.5-VL (vanilla) 0.016 0.009 0.000 0.003 AdaIFL 0.143 0.065 0.081 0.033 Mesorch 0.135 0.068 0.016 0.042 FakeShield 0.267 0.076 0.116 0.084 SIDA 0.284 0.131 0.105 0.056 Ours 0.432 0.134 0.146 0.132 - Detection Acc: the authors state the method has the highest Acc on all four datasets (0.842 / 0.951 / 0.590 / 0.850, Table 1); average Acc 0.808, with second-place SIDA at 0.650 (Table 2).
- Localization mIoU: the method's mIoU is not best on all — on AutoSplice 0.513 is higher than FakeShield's 0.497, but on MagicBrush 0.141 is lower than SIDA's 0.162, and on SD inpaint 0.155 is lower than FakeShield's 0.166 (Table 1).
- eff-IoU: the authors state the method ranks first on all four datasets and in average ranking (0.211), with average eff-IoU more than 46% higher than second-place SIDA (0.144) (Table 2).
Relationship between eff-IoU and Pixel-F1 (Appendix C)
- What was measured: eff-IoU and Pixel-F1 are reported together on the four datasets (Table 5).
- Results: on AutoSplice, SIDA's Pixel-F1 is 0.484, higher than the method's 0.340, yet the method's Acc, mIoU, and eff-IoU are higher; on the other three datasets the method's Pixel-F1 is also lower than SIDA's (e.g., MagicBrush 0.157 vs 0.436).
- Authors' interpretation: the authors state eff-IoU does not replace Pixel-F1 but complements joint detection-localization scenarios; the method performs more strongly in joint detection-localization.
Backbone Scale Comparison (Table 3)
- What was measured: the same framework trained for 1 epoch each on Qwen2.5-VL-7B, Qwen2.5-VL-3B, Gemma 3 4B, comparing average eff-IoU.
- Results: the three are 0.1381, 0.1359, 0.1342 respectively, with very small differences.
- Authors' interpretation: the authors believe that under this setting reward design, training data, and training duration may have greater influence than backbone scale; evaluation of larger VLMs is left for the future.
Other Ablations and Analyses
- TN reward weight w (Appendix Table 4, VLM bounding-box output only): at w=0.2, Acc 0.959 and mIoU 0.180 are best; at w=0.8, Acc drops to 0.500 and mIoU is 0.000. The authors state w needs careful tuning, otherwise the model learns to "judge everything as untampered" to game the reward.
- Input noise robustness (Appendix D, Figure 11): Gaussian noise with variance [0, 5, 10, 20] is added to the input, evaluating only the VLM (excluding the segmentation module); the authors state performance is comparable to baselines under low-to-medium noise, and the performance advantage gradually diminishes as noise increases. The specific values in the figure are unreadable in the text conversion.
- Qualitative results (Figures 4, 5): the authors state the method's masks are more spatially coherent with fewer spurious activations; Figure 5 shows the model's reasoning traces on real/tampered samples, and the authors state the model can often reason based on forensic clues. The textual details in the figures are unreadable in the text conversion.
What are some points that can be further explored?
The authors state that larger backbones and data scaling are left for future work; the experiments cover 3 VLMs, 4 evaluation datasets, and 97K training samples.
Limitations and future directions noted by the authors
- Larger VLMs not evaluated (4.5 Discussion): limited by compute, evaluation of larger VLM backbones is left for future work.
- Training data scale and annotation limited (4.5 Discussion): scaling training data requires image-level labels and ground-truth masks of AI edits, which remain limited in public datasets; the authors consider investing in higher-quality data and annotations a worthwhile direction.
- Robustness to be strengthened (5 Conclusion): future work will explore scaling to larger backbones and broader training data, and improve robustness to distribution shift and difficult perturbations.
- Advantage diminishes under noise (Appendix D): the authors state that as noise intensity increases, the method's performance advantage gradually diminishes.
Scope of experimental coverage
- The VLM backbones tested are Qwen2.5-VL-7B-Instruct, Qwen2.5-VL-3B, and Gemma 3 4B, 3 in total, the largest being 7B (Table 3).
- The evaluation datasets are AutoSplice, MagicBrush, FFHQ-FM, and SD inpaint, 4 in total; training additionally includes CASIAv2 and Fantastic Reality (4.1).
- Training samples are 97K, while baseline training sets range from 106K to 300K+; some baselines overlap in-domain with the evaluation data (Appendix F).
- The robustness experiments tested only Gaussian noise at inference time (variance 0–20) and did not include the segmentation module; the authors note that these results are not directly comparable to the values in Section 4 (Appendix D).
- The paper does not report the number of repetitions, statistical significance tests, or convergence analysis beyond the training reward curves (reward curves are in Figure 6, values unreadable).
Summarize the main content of the paper
GRPO-trained VLM reasoning localizes AI image edits; under weak supervision the authors state that detection and joint metrics exceed strong-supervision baselines.
A study using reinforcement learning for AI-tampered image forensics: the core question is whether, without human reasoning annotations and using only simple rewards, a VLM can learn to "reason first, then judge" whether an image has been AI-edited and localize the edited region.
- Method: based on GRPO, trains Qwen2.5-VL to generate reasoning traces, tampering judgments, and bounding boxes, with rewards consisting only of a format reward and an accuracy reward (edited images are rewarded by bounding-box IoU, real images by weight w); then the VLM is frozen, and its reasoning output guides a frozen SAM-based segmentation module to produce pixel-level masks, decoupling detection and localization.
- Main results: on AutoSplice, MagicBrush, FFHQ-FM, SD inpaint, the authors state detection Acc is highest on all (e.g., MagicBrush 0.951), average Acc 0.808 vs SIDA's 0.650; the proposed joint metric eff-IoU averages 0.211, higher than second-place SIDA's 0.144 (Tables 1, 2).
- Exceptions: localization mIoU is not uniformly leading — lower than SIDA on MagicBrush and lower than FakeShield on SD inpaint; Pixel-F1 is lower than SIDA on all four datasets (Table 5).
- Other findings: the average eff-IoU gap from 3B to 7B backbone is very small (0.1342–0.1381, Table 3); the TN reward weight w needs to be set to 0.2, and when too large the model judges everything "untampered" (Appendix Table 4).
- Authors' conclusion: the authors consider reinforcement learning a scalable mechanism for teaching VLMs to reason about AI-generated content, and that under weak supervision it can compete with strongly supervised SOTA; future work will scale up the backbone and training data and improve robustness to distribution shift and perturbations.