Introduction
The proliferation of advanced image editing tools has made the detection of local forgeries—such as object splicing or removal—an increasingly difficult task. Conventional deep learning approaches often rely on large-scale datasets of labeled forged images. However, these models frequently struggle with real-world variations like image cropping or multiple re-saving cycles, which can obscure the digital evidence used for detection. This paper presents a self-supervised framework that identifies forgeries by analyzing invisible JPEG compression "fingerprints," requiring only authentic images for training.
Methodology
The proposed approach utilizes a two-stage framework designed to extract and compare JPEG compression histories.
JPEG Compression Trace Extractor
Rather than analyzing raw pixels, the method employs a Convolutional Neural Network (CNN) to isolate the truncation error ($E_{QF}$). This error represents the mathematical noise generated during the Discrete Cosine Transform (DCT) process when decimal values are rounded to integers. By training with a combined spatial and frequency-domain loss, the network effectively filters out visual content, leaving behind a pure compression "fingerprint."
Self-Supervised Contrastive Training
To achieve sensitivity to varying compression histories without labeled forgery data, the authors adopt a contrastive learning strategy. Patches from authentic images are subjected to different Quality Factors (QF). The model is then trained to recognize that patches with identical compression histories should cluster together in feature space, while those with differing histories should remain distinct. This focus on mathematical traces rather than pixel grids ensures the model remains effective even after cropping, which typically disrupts grid-aligned forensic tools.
Experimental Evaluation
The model was evaluated across several benchmark datasets, including Spliced CoCo (object splicing), Coverage (copy-move), and Korus (a high-resolution dataset featuring splicing, copy-move, and object removal).
Comparative Performance
The proposed method was compared against state-of-the-art (SOTA) tools, including Mantra, Noiseprint, and CAT-Net.
As shown in the experimental results, the proposed method demonstrates superior localization accuracy. On the Korus dataset, it achieved an F1 score of 63.66%, significantly outperforming Noiseprint (37.07%) and Mantra (21.05%). Notably, the method exhibits remarkable robustness to cropping; while DCT-based methods like CAT-Net saw performance drops (e.g., 8.76% F1), the proposed model maintained a stable F1 score of 61.94%.
Key Insights
- Residual System Theory: The authors demonstrate that double compression functions similarly to a modulo operation, making the resulting traces highly sensitive to the minimum Quality Factor in the compression chain.
- Content-Agnostic Forensics: By targeting truncation errors, the model ignores the semantic content of the image, focusing solely on the "how it was saved" metadata.
- Zero-Fake Training: The ability to learn from authentic images alone allows the model to naturally identify any region that deviates from the background's compression history.
Conclusion and Future Work
While highly effective for JPEG-based images, the method's primary limitation is its dependency on compression traces; it may not apply to lossless formats like PNG. Additionally, isolating very small forged objects remains a challenge for the current binarization process. Future research will focus on enhancing resilience against aggressive post-processing techniques, such as AI-based upscaling or heavy blurring, which may degrade subtle truncation errors.
Summary updated