IMDL-BenCo: A Comprehensive Benchmark and Codebase for Image Manipulation Detection & Localization

Xiaochen Ma, Xuekang Zhu, Lei Su, Bo Du, Zhuohang Jiang, Bingkui Tong, Zeyu Lei, Xinyu Yang, Chi-Man Pun, Jiancheng Lv, Jizhe Zhou

Image Manipulation Detection & Localization (IMDL) is the dual task of determining if an image has been tampered with (detection) and highlighting exactly which pixels were changed (localization). Despite its critical role in digital forensics and security, the field has long suffered from a "Wild West" problem. Different researchers use inconsistent training sets, evaluation metrics, and image scales, making "State-of-the-Art" (SoTA) claims nearly impossible to verify. Furthermore, many top-performing models are not open-sourced, and popular benchmarks often contain "label leakage," where models memorize patterns rather than learning to detect forgeries.

To address these issues, researchers have introduced IMDL-BenCo, the first comprehensive benchmark and modular codebase designed to standardize the fragmented field of IMDL. By reproducing eight SoTA models and introducing GPU-accelerated metrics alongside a "cleaned" dataset, IMDL-BenCo provides a rigorous framework to finally compare models on a level playing field.

The IMDL-BenCo Framework

IMDL-BenCo is a modular codebase built on PyTorch that breaks the IMDL pipeline into four reusable components:

  • Data Loader: Handles complex augmentations and multi-modal inputs (like JPEG metadata).
  • Model Zoo: Includes 8 faithfully reproduced SoTA models (e.g., Mantra-Net, MVSS-Net, TruFor) and various backbones (ResNet, ViT, Swin).
  • Training Script: A standardized entry point that automates training and visualization.
  • Evaluator: A suite of 15 GPU-accelerated metrics.

Crucially, the framework decouples the loss function design from the model architecture, allowing researchers to swap components easily without rewriting the entire pipeline.

Overview of the IMDL-BenCo modular framework, detailing the Dataloader, Model Zoo, and Evaluators.

Tackling Dataset Bias

The benchmark utilizes eight widely used public datasets, including CASIA (v1 & v2), Fantastic Reality, IMD2020, NIST16, Columbia, COVERAGE, and tampered versions of COCO and RAISE.

A major contribution of this work is the introduction of NIST16-C. The authors discovered that the original NIST16 dataset suffered from severe "label leakage"—it contained nearly identical images in both the training and testing sets. By using Structural Similarity (SSIM) filtering to remove these redundancies, they created a more honest and challenging benchmark. When tested on the cleaned NIST16-C, model performance dropped significantly across the board, revealing the true, non-inflated capabilities of these models.

Key Insights and Results

The standardization provided by IMDL-BenCo has brought several critical insights to light:

  • Feature Extractor Nuance: While many IMDL models rely on low-level feature extractors (like Sobel filters or BayarConv), the authors found these aren't universally helpful. They can actually hurt performance in Transformer-based architectures or lead to overfitting in Swin Transformers.
  • Metric Inflation: The paper highlights how "Permute-F1" and "Macro-F1" can artificially inflate performance scores. They advocate for a standardized "binary" F1 score to ensure scientific integrity.
  • Backbone Fitness: Analysis shows that Swin Transformer and SegFormer are currently the most robust backbones for IMDL, significantly outperforming traditional ResNets and standard ViTs.
  • Speedup: The IMDL-BenCo GPU-accelerated evaluators are massive time-savers. For a batch of 12,554 images, calculating the F1 score took just 26 seconds on a GPU compared to nearly 8 minutes using the standard CPU-based Sklearn library.
  • Standardization: By re-evaluating 8 SoTA models under two unified protocols, the authors provided the first fair leaderboard for the field, with TruFor and IML-ViT emerging as top performers in generalization across different datasets.

Robustness to Perturbations

The benchmark includes rigorous tests for Gaussian blur, noise, and JPEG compression. The results show that most current models still struggle significantly when images are even slightly degraded, highlighting a major area for future improvement.

Robustness evaluation of various models under JPEG compression, Gaussian blur, and Gaussian noise.

Limitations and Future Work

While IMDL-BenCo provides the tools for fair comparison, the field remains limited by the relatively small size of high-quality, manually annotated IMDL datasets compared to general computer vision tasks.

Future work suggested by the paper includes exploring better feature fusion methods—specifically, how to better integrate low-level noise traces with high-level semantic features in Transformer architectures without triggering overfitting. The authors also hope the community will adopt the NIST16-C dataset to avoid the "memorization" bias in future research.

Summary updated

BibTeX
@inproceedings{ma2024imdl,
  author = {Xiaochen Ma and Xuekang Zhu and Lei Su and Bo Du and Zhuohang Jiang and Bingkui Tong and Zeyu Lei and Xinyu Yang and Chi-Man Pun and Jiancheng Lv and Jizhe Zhou},
  title = {{IMDL-BenCo: A Comprehensive Benchmark and Codebase for Image Manipulation Detection \& Localization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
}
Figure