Image Manipulation Detection with Implicit Neural Representation and Limited Supervision

Zhenfei Zhang, Mingyang Li, Xin Li, Ming-Ching Chang, Jun-Wei Hsieh

Abstract

State-of-the-art Image Manipulation Detection (IMD) models often rely on extensive pixel-level annotations, which are costly to produce and limit generalization to novel tampering techniques. This paper proposes a unified framework that leverages Implicit Neural Representations (INR) to detect forgeries with minimal supervision. By introducing a Neural Representation Reconstruction (NRR) pre-processing step, the model generates error maps that naturally highlight tampered regions. Combined with selective pixel-level contrastive learning and adaptive global average pooling, the proposed method outperforms existing unsupervised approaches and competes with fully supervised models on modern AI-driven manipulation tasks.

Introduction

Detecting image forgeries such as splicing, copy-move, and inpainting is increasingly challenging due to the rise of sophisticated AI-driven manipulation tools. Traditional supervised models struggle with data scarcity and often fail to generalize to unseen tampering methods. This work addresses these bottlenecks by utilizing the unique reconstruction properties of INRs. Unlike standard applications where perfect reconstruction is desired, this framework exploits the INR's inability to accurately model the statistical anomalies of tampered regions, using the resulting reconstruction error as a powerful detection signal.

Methodology

The proposed framework integrates several novel components to enable effective IMD under limited supervision.

Overview of the proposed framework architecture, including the NRR module, two-branch shared weights, and selective contrastive learning.

Neural Representation Reconstruction (NRR)

The core innovation is the NRR module, a coordinate-based MLP trained on authentic image distributions. When applied to a potentially tampered image, the INR struggles to reconstruct manipulated pixels, creating a high-intensity signal in the reconstruction error map. This error map serves as a universal prior, sensitive to unnatural distributions regardless of the specific tampering tool used.

Visual examples of original images, ground truth masks, and the generated error maps highlighting tampered regions.

Learning with Limited Supervision

To handle the absence of pixel-level masks, the framework employs:

  • Two-Branch Shared Architecture: One branch processes the original image concatenated with the NRR error map, while the other processes the NRR-reconstructed image. This dual-stream approach helps the model distinguish between content and manipulation artifacts.
  • Selective Pixel-level Contrastive Learning (SCL): High-confidence regions are identified by intersecting unsupervised clustering results with Otsu’s thresholding. Contrastive loss (InfoNCE) is then applied only to these reliable "authentic" vs. "tampered" pixels, cleaning up the training signal.
  • Adaptive Global Average Pooling (AGAP): Standard pooling often misses small tampered regions. AGAP adaptively focuses on high-confidence tampered regions to produce more robust image-level predictions.
  • Self-Distillation: In fully unsupervised modes, the model uses high-confidence pseudo-labels from its deepest layers to "teach" its shallower layers, creating a self-improving loop.

Experiments and Results

The authors evaluated their method across a wide range of standard benchmarks (CASIAv1, CASIAv2, Coverage, Columbia, NIST16, IMD2020) and modern AI-driven datasets (IEdit, MagicBrush).

Key Findings

  • Unsupervised Lead: In the fully unsupervised setting, the proposed method achieved the highest F1 scores across all five standard benchmarks, outperforming established methods like NoisePrint and CFA1.
  • Weakly Supervised Success: When given only image-level labels, the model outperformed existing weakly supervised methods (like WSCL) in almost every metric.
  • Generalization to AI Fakes: On the novel MagicBrush dataset, the proposed weakly supervised model achieved a combined F1 (C-F1) of 0.382, nearly doubling the performance of the previous best weakly supervised method (0.201) and even beating several fully supervised models like Mantra-Net and SPAN.

Conclusion

By reframing the reconstruction "failure" of INRs as a feature, this work provides a robust, generalizable solution for IMD with limited supervision. While the current approach faces challenges in precise edge localization—resulting in slightly "fat" prediction masks—it significantly bridges the gap between unsupervised and fully supervised performance. Future work will focus on refining edge detection and exploring more powerful backbone architectures to further improve pixel-level accuracy.

Summary updated

BibTeX
@inproceedings{zhang2024image,
  author = {Zhenfei Zhang and Mingyang Li and Xin Li and Ming-Ching Chang and Jun-Wei Hsieh},
  title = {{Image Manipulation Detection with Implicit Neural Representation and Limited Supervision}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73223-2\_15},
}
Figure