Edge-aware Regional Message Passing Controller for Image Forgery Localization

Dong Li, Jiaying Zhu, Menglu Wang, Jiawei Liu, Xueyang Fu, Zheng-Jun Zha

Abstract

Image forgery localization aims to identify manipulated pixels in an image. However, standard deep learning models often suffer from "feature coupling," where features from tampered and authentic regions blend at the boundaries, leading to imprecise localization. This paper introduces the Edge-aware Regional Message Passing Controller (ERMPC), a framework that treats images as graphs and explicitly blocks information flow across detected forgery boundaries. By employing a differentiable binarization module for edge reconstruction and a regional message passing controller, ERMPC achieves sharp, accurate localization. Experimental results demonstrate state-of-the-art performance across multiple benchmarks, including a 99.7% AUC on the NIST16 dataset.

Introduction

In the field of image forensics, localization is the task of identifying exactly which pixels have been manipulated via splicing, copy-move, or object removal. While deep learning has significantly advanced this field, a persistent challenge is feature coupling. Standard convolutional neural networks (CNNs) tend to smooth features across the entire image. When a forged region is adjacent to an authentic one, their features often mix at the boundaries, resulting in blurry masks or false positives. To solve this, we must explicitly decouple these features. The ERMPC framework addresses this by treating the image as a graph where nodes represent feature patches and edges are functional gates that control information flow.

Methodology

The ERMPC architecture consists of two primary components: the Edge Reconstruction (ER) module and the Regional Message Passing Controller (RMPC).

The ERMPC architecture featuring the Edge Reconstruction module, Regional Message Passing Controller, and Dual Attention fusion.

Edge Reconstruction (ER) Module

Before blocking information flow at a boundary, the system must accurately locate it. The ER module uses a Context-Enhanced Graph (CEG) to capture global semantic information, helping it distinguish between forged and authentic regions that may appear visually similar. A critical innovation here is Threshold-Adaptive Differentiable Binarization (TDB). Unlike standard non-differentiable binarization, TDB uses a learnable Sigmoid-based variant that allows the model to learn sharp, discrete edges while remaining end-to-end trainable via backpropagation.

Regional Message Passing Controller (RMPC)

The RMPC acts as a gatekeeper. Once edges are identified, the RMPC adjusts the adjacency matrix of the graph. If the edge module detects a boundary between two nodes, the RMPC severs the connection between them. This prevents "message passing" (the exchange of feature information) across the forgery boundary. By forcing features to stay within their respective regions, the model maintains the statistical inconsistencies that signal a forgery.

Conceptual Innovation

The core shift in this approach is treating edges as controllers rather than just outputs. In previous methods, features often "bled" across boundaries. ERMPC uses the detected edges to actively disconnect nodes in the graph, ensuring that the unique signatures of tampered regions are not diluted by neighboring authentic pixels.

Comparison between previous methods (top) and ERMPC (bottom). ERMPC explicitly blocks message passing across forgery boundaries to prevent feature bleeding.

Experimental Results

ERMPC was pre-trained on a large synthetic dataset and evaluated on standard benchmarks including CASIA, Coverage, NIST16, and IMD20.

  • State-of-the-Art Performance: On the challenging NIST16 dataset, ERMPC achieved a near-perfect 99.7% AUC and an F1-score of 83.6%, significantly outperforming previous leaders like ObjectFormer.
  • Ablation Impact: Removing the RMPC caused the F1-score on the CASIA dataset to drop by over 22%, proving that controlling message passing is the fundamental driver of the architecture's success.
  • Robustness: The model remains resilient to post-processing. Even under heavy JPEG compression (quality = 50) or blurring, ERMPC maintained high performance where other models' accuracy plummeted.

Conclusion and Future Work

ERMPC provides a structural solution to the problem of feature coupling in image forensics. By integrating edge detection as a functional control mechanism, it achieves superior precision. While highly effective, future research could explore reducing the computational complexity associated with dynamic graph construction and further improving performance on specific splicing styles where current models still face challenges.

Summary updated

BibTeX
@inproceedings{li2023edge,
  author = {Dong Li and Jiaying Zhu and Menglu Wang and Jiawei Liu and Xueyang Fu and Zheng-Jun Zha},
  title = {{Edge-aware Regional Message Passing Controller for Image Forgery Localization}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  doi = {10.1109/cvpr52729.2023.00795},
}
Figure