Abstract
Image Forgery Localization (IFL) is increasingly challenged by the rapid evolution of generative AI and the destructive nature of social media compression. Traditional methods, which rely on low-level artifacts like JPEG patterns, often fail to generalize or survive common image processing. This paper introduces CLUE (Capture Latent Uncovered Evidence), a novel framework that repurposes the internal generative mechanisms of Stable Diffusion 3 (SD3) and the Segment Anything Model (SAM) for high-fidelity forensics. By utilizing parameter-efficient fine-tuning (LoRA), CLUE identifies "unnatural" regions where images deviate from natural distributions. Experimental results demonstrate that CLUE achieves state-of-the-art performance and exceptional robustness, particularly in real-world social media scenarios.
Introduction
As AI-driven image manipulation becomes more sophisticated, distinguishing authentic media from forgeries is a critical challenge. Traditional IFL methods typically hunt for specific "artifacts"—low-level traces like camera-specific noise or compression patterns. However, these approaches suffer from poor generalization to new generative models and fragility under operations like resizing or social media uploading, which often "wash away" subtle forensic traces.
CLUE proposes a paradigm shift: instead of searching for external artifacts, it exploits the internal generative principles of foundation models to detect where an image deviates from the distribution of natural scenes.
Methodology
The CLUE framework employs a dual-branch architecture to capture both generative inconsistencies and semantic boundaries.
The Generative Branch (SD3)
The researchers repurposed Stable Diffusion 3 (SD3) to serve as a forensic expert. Using its Rectified Flow (RF) mechanism, controlled noise is injected into the image's latent representation. Through Low-Rank Adaptation (LoRA), the model is fine-tuned to "denoise" images in a way that amplifies statistical inconsistencies. In forged regions, the denoising process highlights "unnatural" elements, creating distinct forensic cues.
The Semantic Branch (SAM)
To ensure sharp and accurate forgery boundaries, CLUE integrates the image encoder from the Segment Anything Model (SAM). LoRA is used to fine-tune SAM’s attention blocks (specifically the Query, Key, and Value matrices), making the model highly sensitive to subtle boundary artifacts typical of splicing or copy-move operations.
Fusion and Localization
The forensic cues from the SD3 branch and the spatial-semantic context from the SAM branch are integrated within a Feature Fusion Module. This combined information is then processed by a lightweight Localization Module to produce the final pixel-level forgery mask.
Experiments and Results
CLUE was trained on a comprehensive dataset of over 34,000 images and evaluated across nine diverse benchmarks, including traditional forgery, multi-splicing, and AI-generated datasets.
State-of-the-Art Performance
CLUE achieved state-of-the-art (SOTA) results across nearly all benchmarks, significantly outperforming previous methods like TruFor and CoDE. On the AI-generated CocoGlide dataset, CLUE achieved an F1 score of 0.706, nearly doubling the performance of TruFor (0.360).
Robustness and Social Media Resilience
A key strength of CLUE is its resilience to image degradation. While other models' accuracy drops sharply under heavy JPEG compression or Gaussian blur, CLUE remains stable. In tests involving images processed by platforms like Facebook, WhatsApp, and WeChat, CLUE maintained a substantial lead. Notably, on WeChat—known for aggressive compression—CLUE achieved a 164.6% F1 gain over the baseline MVSS-Net.
Conclusion
CLUE demonstrates that generative foundation models, when properly adapted via LoRA, are uniquely qualified to detect the very fakes they were designed to create. By leveraging the deep "understanding" of natural image distributions inherent in models like SD3, CLUE provides a robust and generalizable solution for modern image forensics. Future work will explore multimodal potential, such as incorporating text encoders for query-based localization, and optimizing inference efficiency for real-world deployment.
Summary updated