EditSleuth: A Dataset of Grounded Reasoning Chains for Image-Edit Forensics

Van-Loc Nguyen, AprilPyone MaungMaung, Minh-Triet Tran, Isao EchizenarXiv 2026 · arXiv

TL;DR

EditSleuth introduces a dataset of 257,725 image-edit triplets designed to train vision-language models (VLMs) for advanced image forensics. Instead of relying on potentially unfaithful, LLM-generated rationales, EditSleuth uses a deterministic pipeline to construct auditable, six-step reasoning chains grounded directly in computable image differences and metadata.

What Problem Does This Paper Address?

AI-driven image editing has evolved far beyond simple copy-paste splices; modern tools can make subtle, semantic, or globally diffuse modifications that are incredibly difficult to detect. Traditional image forensics datasets usually frame this problem as a binary "real vs. fake" classification or provide a simple pixel mask, completely omitting the semantic context or the reasoning behind a decision.

On the flip side, recent reasoning-supervised vision-language datasets use Chain-of-Thought (CoT) prompting to generate explanations. However, these are typically synthesized by frontier LLMs that do not directly "see" the visual evidence. This creates an auditability gap where a model might hallucinate a plausible-sounding but entirely ungrounded rationale. EditSleuth addresses this gap by providing a large-scale dataset where every step of the forensic explanation is strictly tied to verifiable, upstream computational artifacts.

Methods

The authors developed a five-stage deterministic pipeline to re-purpose existing image-editing datasets into forensic training data:

  1. Stage A (Ingestion): Standardizes source data into a unified schema.
  2. Stage B (Mask Generation): Computes a binary edit mask using a multi-signal stack that combines $L^*a^*b^*$ color distance, structural dissimilarity (1-SSIM), and LPIPS perceptual distance via an elementwise maximum.
  3. Stage C (Difficulty Scoring): Computes a scalar difficulty score. The authors introduce a "V2" formula combining structural change, mask compactness, and instruction complexity to fix a "rank-2 correlation collapse" found in naive formulations.
  4. Stage D (Category Classification): Maps the edit to a 12-class canonical taxonomy (e.g., object_addition, style_transfer, text_edit) using metadata or regex rules.
  5. Stage E (Reasoning Chain Composition): Automatically constructs a structured, six-step prose explanation. Steps 1–4 and 6 are filled with exact computed values (like mask area percentages and structural change scores), while Step 5 injects a hand-curated, hedged forensic prior specific to that edit category.
The EditSleuth Pipeline

Datasets

The pipeline was applied to two main sources:

  • Pico-Banana (Single-turn corpus): Used as the primary training source, yielding 257,725 fully annotated triplets.
  • MagicBrush (Dev split): Consisting of 528 triplets, this dataset was used strictly as a held-out evaluation set to test how well models generalize to natural, conversational instruction styles.

Key Insights and Ideas

  • The Rank-2 Correlation Collapse: In early iterations (V1), the authors tried combining structural, perceptual, and locality features. However, they discovered a strong negative correlation: larger edits naturally increase structural and perceptual differences but decrease the locality score (since the mask covers more area). This caused the features to cancel each other out, collapsing the score variance. The V2 formula fixes this by swapping locality for mask compactness, which tracks spatial dispersion independently of edit size.
  • Max-Pool Inflation: When calibrating thresholds for global vs. local edits across different signal stacks, threshold shifts directly track changes in the mean combined difference signal. This indicates that the threshold primarily compensates for the mathematical inflation caused by elementwise max-pooling, rather than signal-specific artifacts.
  • Difficulty is Not a Proxy for Type: Within-category analysis showed that difficulty varies widely across almost all edit types (except geometric edits, which skew hard, and text edits, which skew easy). This means difficulty serves as a true independent axis for curriculum learning.
Figure 2: V1 vs V2 difficulty score distributions, side-by-side, on Pico-Banana (n = 257,725) and MagicBrush dev split (n = 528). V2 widens the standard deviation by +55% (σV 1 = 0.070, σV 2 = 0.109) and produces tertile bins separated by ∼1σ rather than by margins below noise.

Key Results

  • Variance Widening: The V2 difficulty formula successfully widened the score's standard deviation by +55% on Pico-Banana and +94% on MagicBrush compared to the V1 baseline, providing much cleaner separation for easy, medium, and hard categories.
  • VLM Pilot Study: The authors fine-tuned a Qwen2-VL-2B-Instruct model using LoRA on a 20k subset of EditSleuth. When comparing a model trained to output the full reasoning chain ("chain-target") against one trained to output just a JSON label ("label-only"), they found that conditional on successful parsing, the chain-target model matched or exceeded the label-only baseline (obtaining 33.4% vs 39.7% on category classification, and 40.8% vs 33.1% on difficulty binning).
  • The Prose Benefit: Unlike the label-only baseline, the chain-target model successfully generated grounded explanatory prose detailing mask areas and forensic signatures without sacrificing underlying classification quality.

Limitations and Future Work

  • Format Conformance Bottleneck: The primary downside of the chain-target approach was lower raw accuracy caused by a lower extraction recall (~67–80%). The 2B model struggled to consistently adhere to the strict six-step format—a limitation that did not improve with an extra training epoch and likely requires larger base models or explicit conformance training.
  • Residual Mask-Quality Coupling: Even in V2, a moderate negative correlation ($r = -0.44$) remains between structural change and compactness on local edits, because subtle edits tend to produce noisier, less compact masks. The authors suggest exploring image-pair embedding distances to resolve this.
  • Single-Source Bias: Because Pico-Banana relies on a single text-conditioned editor model, the generated masks inherit that specific editor's artifact statistics, which might affect generalization to other generative tools.

Summary updated

Abstract

Forensic analysis of AI-edited images requires more than binary real-versus-fake prediction: a useful system should localize the edit, identify its semantic type, and ground its decisions in visual evidence. Existing image-forensics datasets typically emphasize detection or localization, while reasoning-supervised vision-language datasets rarely target image manipulation and often rely on LLM-generated rationales whose faithfulness is difficult to verify. We introduce EditSleuth, a dataset of 257,725 image-edit triplets constructed from existing image-editing corpora for grounded image-edit forensic reasoning. Each example includes an edited image, its source image, a binary edit mask, a 12-class edit taxonomy label, a difficulty score, and a six-step reasoning chain. EditSleuth chains are generated deterministically from triplet-grounded upstream artifacts, with each statement tied to a specific computable source of evidence. Our analysis reveals that a naive four-component difficulty formulation suffers from a rank-2 correlation collapse among magnitude features; a simplified three-component formulation substantially increases score dispersion on both Pico-Banana and MagicBrush. Difficulty also varies meaningfully within most edit categories, indicating that the score is not a proxy for edit type. As an initial learning study, we fine-tune Qwen2-VL-2B with LoRA and find that chain-as-target supervision matches a label-only baseline on classification accuracy among parseable answers, while additionally yielding grounded explanatory prose that label-only supervision cannot produce. We release the dataset, the deterministic construction pipeline, and pilot training scripts.
BibTeX
@misc{nguyen2026editsleuth,
  author = {Van-Loc Nguyen and AprilPyone MaungMaung and Minh-Triet Tran and Isao Echizen},
  title = {{EditSleuth: A Dataset of Grounded Reasoning Chains for Image-Edit Forensics}},
  year = {2026},
  eprint = {2605.08695},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.08695},
}
Figure