Abstract
Image Manipulation Localization (IML) requires high-quality ground-truth masks, which are scarce in real-world scenarios. We present the $M^3$ (Manipulation Mask Manufacturer) framework, which treats mask generation as a change detection task enhanced by arbitrary-scale super-resolution. By aligning features and leveraging local frequency encoding, $M^3$ produces clean masks from noisy internet image pairs. We also introduce MMMD, a large-scale dataset of 11,069 image triplets that enhances the generalization of IML models.
Introduction
The primary bottleneck in Image Manipulation Localization (IML) is the lack of diverse, high-quality training data. While the internet provides a wealth of "before and after" examples from editing communities, simple pixel subtraction fails to produce usable ground-truth masks. Discrepancies in resolution, compression, and clarity between original and tampered versions introduce significant "subtraction noise."
The $M^3$ Framework
The $M^3$ framework addresses these challenges by framing mask generation as a change detection problem integrated with Super-Resolution (SR).
Key Components:
- Feature Extraction & Alignment: A Fully Convolutional Network (FCN) extracts features, while Maximum Mean Discrepancy (MMD) aligns distributions to mitigate domain gaps caused by varying compression levels.
- Arbitrary-Scale Super-Resolution: The core innovation involves a Cross-scale Local Attention Block (CSLAB) for fine-grained detail aggregation and a Local Frequency Encoding Block (LFEB) for capturing edge and texture variations. This projects images into a shared high-resolution space, separating semantic manipulations from artifacts.
- Residual Decoding: The model predicts residual images to refine upsampled features. The final mask is derived from the absolute difference between these enhanced feature sets.
The MMMD Dataset
To support this framework, we introduce the Manipulation Mask Manufacturer Dataset (MMMD). It consists of 11,069 triplets (Original, Tampered, and Predicted Mask) sourced from real-world online communities like the Baidu PS Bar. Unlike static datasets like CASIAv2 or NIST16, MMMD is scalable and covers a wide array of manipulations, including Deepfakes, inpainting, and style transfer.
Results and Insights
The $M^3$ framework significantly outperforms traditional subtraction methods by effectively "denoising" the clarity disparity between image pairs.
Key Findings:
- Superior Mask Quality: $M^3$ achieved F1 scores between 0.88 and 0.95 across established benchmarks.
- Enhanced Generalization: Training state-of-the-art models like MVSS-Net on MMMD led to substantial performance gains. For instance, F1 scores on the Columbia dataset improved from 0.39 to 0.49 compared to training on CASIAv2.
- Robustness: The inclusion of AI-manipulated content in MMMD makes models more resilient to modern forgery techniques.
Conclusion
While $M^3$ provides a robust automated pipeline for mask generation, it faces challenges with extremely degraded inputs and relies on heuristic filtering for quality control. Future work will focus on expanding the MMMD dataset and extending the framework to video manipulation localization.
Summary updated