Abstract
Image manipulation can lead to misinterpretation of visual content, posing significant risks to information security. Image Manipulation Localization (IML) has thus received increasing attention. However, existing IML methods rely heavily on task-specific designs, making them perform well only on one target image type but are mostly random guessing on other image types, and even joint training on multiple image types causes significant performance degradation. To this end, we propose Omni-IML, the first generalist model to unify diverse IML tasks. Specifically, Omni-IML achieves generalism by adopting the Modal Gate Encoder and the Dynamic Weight Decoder to adaptively determine the optimal encoding modality and the optimal decoder filters for each sample. We additionally propose an Anomaly Enhancement module that enhances the features of tampered regions with box supervision and helps the generalist model to extract common features across different IML tasks. We validate our approach on IML tasks across three major scenarios: natural images, document images, and face images. Without bells and whistles, our Omni-IML achieves state-of-the-art performance on all three tasks with a single unified model, providing valuable strategies and insights for real-world application and future research in generalist image forensics.
Introduction
Image Manipulation Localization (IML) is essential for identifying exactly which pixels in an image have been tampered with. Historically, the field has been fragmented into specialized silos: models designed for natural images often fail on document forgeries, and vice versa. This domain-specificity arises because tampering clues vary significantly—natural images may show lighting inconsistencies, while documents are often betrayed by font mismatches or frequency-domain anomalies.
Attempts to train a single "unified" model on these diverse tasks typically result in performance degradation, as the model becomes "confused" by conflicting features. Omni-IML addresses this by introducing a generalist architecture that adaptively specializes its processing for each input sample.
The Omni-IML Framework
Omni-IML utilizes three core architectural innovations to manage task diversity without sacrificing performance:
- Modal Gate Encoder: This module acts as an intelligent traffic controller. It automatically determines whether to prioritize standard visual features (RGB), frequency-domain features (crucial for documents), or a fusion of both, based on the specific characteristics of the input image. This prevents irrelevant noise from one modality from degrading performance in another domain.
- Anomaly Enhancement (AE) Module: During training, the model receives auxiliary "box supervision" (bounding boxes around forgeries). This encourages the model to focus on tampered regions. Importantly, this module is only used during training, meaning it provides a performance boost without increasing computational costs during inference.
- Dynamic Weight Decoder (DWD): Unlike traditional decoders with static filters, the DWD adaptively adjusts its weights for every image. This allows the model to specialize its detection strategy on-the-fly, whether it is analyzing a face, a document, or a natural scene.
Additionally, an Interpretation Module leverages a multimodal Large Language Model (LLM) to provide human-readable explanations. By feeding the LLM a "visual reference prompt"—the original image overlaid with the model's predicted mask—Omni-IML can describe specific artifacts like font inconsistencies or texture mismatches in natural language.
Data and Evaluation
To support this generalist approach, the authors introduced Omni-273k, a massive dataset of 273,776 images covering natural, document, face, and scene text tasks. The dataset includes high-quality, structured JSON annotations generated through an automated "Chain-of-Thought" (CoT) pipeline using GPT-4o. This pipeline ensures detailed descriptions of content, position, and specific artifacts, reducing the "black box" nature of traditional IML models.
Key Results
Omni-IML achieves state-of-the-art (SOTA) performance across all four domains using a single set of weights. Key highlights include:
- Document IML: Achieved an IoU of 0.659 on the SACP benchmark, significantly outperforming previous specialized models.
- Face IML: Reached a near-perfect 0.923 IoU on face forgery localization.
- Robustness: While other models experienced performance drops of up to 6.9 points when joint-trained, Omni-IML's performance remained stable, with a negligible drop of only 1.6 points.
Conclusion
Omni-IML represents a major advancement in image forensics by providing the first robust generalist model for manipulation localization. By adaptively handling diverse image types and providing linguistic interpretations of its findings, it offers a scalable and transparent solution for real-world information security challenges.
Summary updated