Learning Hierarchical Graph Representation for Image Manipulation Detection

Wenyan Pan, Zhili Zhou, Miaogen Ling, Xin Geng, Q. M. Jonathan WuarXiv 2022

Abstract

The objective of image manipulation detection is to identify and locate the manipulated regions in the images. Recent approaches mostly adopt the sophisticated Convolutional Neural Networks (CNNs) to capture the tampering artifacts left in the images to locate the manipulated regions. However, these approaches ignore the feature correlations, i.e., feature inconsistencies, between manipulated regions and non-manipulated regions, leading to inferior detection performance. To address this issue, we propose a hierarchical Graph Convolutional Network (HGCN-Net), which consists of two parallel branches: the backbone network branch and the hierarchical graph representation learning (HGRL) branch for image manipulation detection. Specifically, the feature maps of a given image are extracted by the backbone network branch, and then the feature correlations within the feature maps are modeled as a set of fully-connected graphs for learning the hierarchical graph representation by the HGRL branch. The learned hierarchical graph representation can sufficiently capture the feature correlations across different scales, and thus it provides high discriminability for distinguishing manipulated and non-manipulated regions. Extensive experiments on four public datasets demonstrate that the proposed HGCN-Net not only provides promising detection accuracy, but also achieves strong robustness under a variety of common image attacks in the task of image manipulation detection, compared to the state-of-the-arts.

Introduction

Modern image forensics relies heavily on Convolutional Neural Networks (CNNs) to detect local tampering artifacts such as blurred edges or noise discrepancies. However, these methods often struggle with "feature inconsistency"—the subtle differences in texture, lighting, and noise patterns that occur when an object is spliced from one source into another. Standard CNNs have a limited receptive field, focusing primarily on local neighborhoods. To detect sophisticated manipulations, a model must compare regions across the entire image to identify global inconsistencies.

To bridge this gap, we introduce HGCN-Net, a novel framework that models the relationships between image regions as a hierarchical graph. By treating image features as nodes in a fully-connected graph, the network can capture long-range dependencies and inconsistencies that traditional grid-based convolutions miss.

Methodology: The HGCN-Net Architecture

The HGCN-Net utilizes a dual-branch architecture designed to fuse local artifact detection with global relationship modeling.

  1. Backbone Network Branch: This branch employs a ResNet-101 backbone integrated with a Feature Pyramid Network (FPN). It extracts multi-scale feature maps, capturing the local visual cues typically used in forensics.
  2. Hierarchical Graph Representation Learning (HGRL) Branch: This is the core innovation of the work. It processes the backbone's feature maps through three distinct stages:
  3. Graph Construction: Feature maps are down-sampled, and each grid cell is treated as a node. These nodes are linked into a fully-connected graph, allowing every part of the image to be compared against every other part.
  4. Hierarchical Graph Convolution: A 2-layer GCN learns representations from these graphs across multiple scales, capturing how features relate to one another globally.
  5. Transformation & Fusion: The learned graph features are mapped back into the original CNN space and fused with the backbone features to produce a final pixel-level "tamper mask."
The HGCN-Net architecture featuring the Backbone Network and the Hierarchical Graph Representation Learning (HGRL) branch.

The model is optimized using a weighted Dice Loss, which supervises both the graph-specific detection and the final fused output to ensure high localization accuracy.

Evaluation and Results

The performance of HGCN-Net was evaluated on four major benchmarks: CASIA (1.0 & 2.0), NIST16, COVER, and Columbia.

Detection Accuracy

HGCN-Net demonstrated state-of-the-art (SOTA) performance. On the CASIA dataset, it achieved an F1-score of 40.81%, significantly outperforming existing models like GSR-Net and CR-CNN. On the Columbia dataset, which focuses on uncompressed splicing, the model reached a near-perfect 91.81% F1-score. Qualitative analysis shows that HGCN-Net produces cleaner, more precise boundaries for detected regions compared to the noisy masks generated by purely CNN-based methods.

Robustness to Image Attacks

A critical challenge in image forensics is maintaining accuracy when images are degraded by common operations like JPEG compression, resizing, or blurring. Because HGCN-Net relies on feature correlations rather than just raw pixel values, it is remarkably resilient.

Robustness evaluation of HGCN-Net against common image attacks like JPEG compression, resizing, and blurring.

As shown in the experimental results, HGCN-Net maintains a significantly higher F1-score under various attack intensities compared to its competitors. This suggests that graph-based feature correlations are more stable indicators of tampering than local CNN features under image degradation.

Discussion and Future Work

The shift from grid-based processing to graph-based relationship modeling allows HGCN-Net to detect inconsistencies across an entire image. By modeling graphs hierarchically, the network captures both small-scale artifacts and large-scale lighting or texture mismatches.

However, the use of fully-connected graphs introduces computational complexity ($O(N^2)$), which may be a bottleneck for extremely high-resolution images. Future research could explore more efficient graph structures, such as sparse graphs or attention-based mechanisms, to further refine detection boundaries. Additionally, testing the model against AI-generated manipulations remains an important area for future exploration.

Summary updated

BibTeX
@misc{pan2022learning,
  author = {Wenyan Pan and Zhili Zhou and Miaogen Ling and Xin Geng and Q. M. Jonathan Wu},
  title = {{Learning Hierarchical Graph Representation for Image Manipulation Detection}},
  year = {2022},
  eprint = {2201.05730},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.05730},
}
Figure