TruFor: Leveraging all-round clues for trustworthy image forgery detection and localization

Fabrizio Guillaro, Davide Cozzolino, Avneesh Sud, Nicholas Dufour, Luisa Verdoliva

Abstract

In an era of sophisticated AI-driven image manipulation, distinguishing authentic content from forgeries has become a high-stakes challenge. This paper introduces TruFor, a forensic framework designed for robust and trustworthy image forgery detection and localization. By fusing high-level RGB semantic data with a learned, noise-sensitive fingerprint called Noiseprint++, TruFor captures both semantic inconsistencies and low-level forensic traces. A key innovation is the inclusion of a per-pixel confidence map, which allows the system to assess the reliability of its own predictions, significantly reducing false alarms. TruFor demonstrates state-of-the-art performance across multiple benchmarks, particularly in maintaining accuracy against common social media image "laundering" practices.

Introduction

Digital forensics faces significant hurdles: the need for generalization across diverse manipulation techniques, robustness against image compression and resizing, and the reduction of false positives in pristine images. Traditional methods often rely on a single type of forensic trace, which can be easily erased or misinterpreted. TruFor addresses these limitations by employing "all-round clues"—combining semantic features with noise fingerprints—and providing an explicit measure of prediction certainty.

Methodology

TruFor's architecture is built upon a transformer-based dual-stream encoder that processes RGB data and noise fingerprints in parallel.

Noiseprint++: A Robust Forensic Fingerprint

The core of the low-level analysis is Noiseprint++, a learned fingerprint trained in a self-supervised manner to recognize unique camera noise patterns. Unlike standard noise filters, Noiseprint++ is specifically optimized for robustness. By training on images subjected to over 500 different "editing history" combinations of resizing and compression, the authors created a trace that survives the harsh processing typical of social media platforms.

Comparison of Noiseprint++ with standard Noiseprint and SRM filtering, demonstrating its superior ability to highlight forged regions.

Architecture and Multi-Output Fusion

The framework utilizes a Cross-Modal Fusion strategy (based on CMX and SegFormer) to integrate the RGB and Noiseprint++ streams. As illustrated in the architecture diagram, the system generates three distinct outputs:

  1. Anomaly Localization Map ($a$): A heatmap identifying likely tampered pixels.
  2. Confidence Map ($c$): A reliability score for every pixel, allowing the system to "know what it doesn't know" and filter out unreliable detections.
  3. Integrity Score ($y$): A global score for the entire image, calculated by weighting the anomaly map with the confidence map.
The TruFor architecture, showing the dual-stream encoder and the separate decoders for anomaly and confidence mapping.

Experimental Results

TruFor was tested on seven standard public benchmarks and a new dataset, CocoGlide, featuring images manipulated with the GLIDE diffusion model.

  • Localization and Detection: TruFor achieved an average F1 score of 0.785 for localization and an AUC of 0.857 for image-level detection, outperforming competitors like CAT-Net v2.
  • Robustness: In tests involving Facebook and WhatsApp compression, TruFor maintained significantly higher performance than other state-of-the-art models. For example, on the DSO-1 dataset with Facebook compression, TruFor achieved an F1 of 0.685, while the next best model dropped to 0.484.
  • Modern AI Forgeries: The framework proved effective against diffusion-based edits in the CocoGlide dataset, showing that its noise-based approach remains relevant for modern AI-generated content.

Conclusion

TruFor represents a significant advancement in trustworthy image forensics. By combining multi-modal clues with uncertainty estimation, it provides a more reliable and robust solution for detecting local image manipulations. Future research will focus on extending the framework to detect entirely synthetic images and exploring weakly supervised learning techniques to reduce the need for pixel-level ground truth data.

Summary updated

BibTeX
@inproceedings{guillaro2022trufor,
  author = {Fabrizio Guillaro and Davide Cozzolino and Avneesh Sud and Nicholas Dufour and Luisa Verdoliva},
  title = {{TruFor: Leveraging all-round clues for trustworthy image forgery detection and localization}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure