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:
- Stage A (Ingestion): Standardizes source data into a unified schema.
- 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.
- 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.
- 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. - 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.
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.
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-Instructmodel 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