MAMQ-Net: Robust Image Forgery Localization via Complementary Tampering Features and Multi-level Tamper-aware Queries Aggregation

Minghao Jia, Zhuoyi Zhang, Jiwei Zhang, Siwei Wang, Feifei Kou, Lei Shi, ShaoZhang Niu, Jiaming PeiNeurIPS 2026

TL;DR

Spotting a doctored image requires looking at two worlds simultaneously: the semantic "big picture" (RGB) and the invisible, pixel-level statistical breadcrumbs (image noise). Most existing detectors process these two streams in isolation until the very end, causing subtle tampering clues to get lost or misclassified. MAMQ-Net introduces a continuous feedback loop where RGB and noise branches actively guide each other at every stage, paired with learnable "queries" that filter out background clutter—delivering state-of-the-art forgery localization without the massive compute overhead of giant multimodal models.

What Problem Does This Paper Address?

Image Forgery Localization (IFL) isn't just about asking if an image is fake; it’s about drawing an exact pixel-by-pixel map around the manipulated region.

To do this, models usually split into two branches: one looks at standard RGB pixels (good for semantic boundaries, blind to pixel-level statistics), and the other looks at high-frequency noise (great at catching compression anomalies, terrible at understanding context—often mistaking complex textures like tree leaves for tampering).

Historically, models follow an "extract first, fuse later" pipeline. Because the two branches don't talk to each other early on, they suffer from modality isolation. Furthermore, when decoding these features into a final mask, standard upsampling methods indiscriminately scoop up background noise, drowning out subtle tampering traces. Recent attempts to throw Multimodal Large Models at the problem improve generalization, but they are slow, computationally heavy, and bring along tons of task-irrelevant features.

Figure 2: Differences between the classical IFL model paradigm and our method.

Methods

Inspired by how humans repeatedly examine a puzzle from different angles, the authors propose MAMQ-Net, built around two novel mechanisms:

  1. Multi-stage Alternating Feature Extraction and Interaction: Instead of waiting until the end to fuse data, MAMQ-Net uses a cyclic "extract $\rightarrow$ interact $\rightarrow$ feedback" loop across four stages of a SegFormer backbone.
  2. Noise Input: Before starting, it creates a rich noise view by fusing three standard forensic filters (SRM, BayarConv, and NoisePrint++) via a simple $3\times3$ convolution.
  3. Cross-Guidance (DFCM): At every stage, RGB and noise features are aligned, recalibrated, and fed into a bidirectional cross-attention module (using lightweight Group Convolutions instead of heavy linear projections). Critically, these interacted features are fed back into the backbone to inform the next layer of extraction.
  4. Query-driven Multi-level Feature Decoding: Inspired by the Segment Anything Model (SAM), the authors ditch standard convolutional upsampling in favor of 16 learnable tamper-aware queries. Think of these queries as "fusion controllers" or detectives taking notes. At each stage, they use cross-attention and self-attention (MFAM) to interrogate both the RGB and noise features, selectively condensing tampering clues while ignoring irrelevant background textures. Finally, a lightweight decoder multiplies these refined queries against fused features from all four levels to output a sharp localization mask, trained using Dice Loss on both the region and its edges.
Figure 3: The pipeline of MAMQ-Net. Given an RGB view Ximg and a high-frequency noise view Xnoise, they are first processed by the Multi-stage Alternating Feature Extraction and Interaction architecture to generate multi-level complementary feature representations {R1 ∼R4, N1 ∼N4}. Subsequently, a set of learnable tamper-aware queries Qtaq progressively aggregates cross-modal information through the MFAM. Finally, the tampering features and query embeddings from all levels are fed into the QMFD to localize tampered regions Mloc.

Datasets

No new datasets were introduced; the authors relied on standardized benchmarks to ensure fair comparisons:

  • Training: Trained on the Protocol-CAT dataset (826,556 images combining CASIAv2, IMD2020, Fantastic Reality, and TampCOCO), covering splicing, copy-move, and object removal.
  • Evaluation: Tested across four classic, diverse-resolution benchmarks: CASIAv1, Coverage, NIST16, and Columbia (with two AI-editing datasets, AutoSplice and COCOGlide, evaluated in the appendix).

Key Insights and Ideas

  • Feedback beats late fusion: Feeding cross-modal interactions back into the feature extractor fundamentally changes what the backbone sees. Grad-CAM visualizations show that RGB Context stops the noise branch from freaking out over harmless background textures, while noise anomalies force the RGB branch to look closer at seamless-looking edits.
Figure 1: Ours vs. Classical. Grad-CAM visualizations of backbone output features under different paradigms. The redder the color of the region, the greater its contribution to the model’s prediction results.
  • Competing noise filters actually cooperate: Forensic extractors like SRM, Bayar, and NoisePrint++ look for different statistical traces. Ablations proved that fusing all three with a basic $3\times3$ convolution outperforms any single extractor, resolving potential conflicts between them.
  • The "Goldilocks" zone of queries: More learnable queries isn't always better. Testing 4, 8, 16, and 32 queries revealed a unimodal curve peaking at 16 queries (0.738 F1), whereas 32 queries dropped performance back down to 0.715—suggesting too many queries begin re-introducing redundant background noise.

Key Results

All baseline models were retrained on the exact same dataset for fairness.

  • Localization Accuracy: MAMQ-Net achieved the highest average Pixel-level F1 (0.738) and AUC (0.930) across the four test datasets, beating the strongest recent competitor, Mesorch (0.670 F1), by nearly 7 points. It saw massive gains on tough copy-move benchmarks like Coverage (0.659 F1 vs. second-best 0.546).
  • Robustness: When attacked with JPEG compression, Gaussian blur, and Gaussian noise, MAMQ-Net consistently outperformed state-of-the-art peers across CASIAv1, Coverage, and NIST16.
  • Efficiency: Full MAMQ-Net runs at 31.29 ms latency (230.0G FLOPs, 114M parameters). Remarkably, removing the heavy NoisePrint++ extractor creates a lightweight variant (MAMQ-Net$^\dagger$) that slashes FLOPs by 63.4% (to 84.3G) and latency by 31.9% (to 21.31 ms) while sacrificing only 0.010 F1 (0.728 Avg. F1)—still easily beating every baseline.

Limitations and Future Work

Not explicitly discussed in a dedicated section of the main text. However, two practical constraints surface in the experiments:

  • NoisePrint++ Bottleneck: As shown in the complexity analysis, the full model's computational cost is heavily bottlenecked by NoisePrint++, accounting for nearly two-thirds of the total FLOPs.
  • Query Sensitivity: Model accuracy is noticeably sensitive to the exact number of learnable queries, requiring empirical tuning (with detailed analysis deferred to the appendix).

Summary updated

Abstract

Image Forgery Localization (IFL) aims to identify and localize the tampered regions within edited images. Many studies employ a dual-branch backbone to extract tampering features from RGB modality and low-level modality, followed by feature fusion at the final stage. In this process, the extraction and fusion of dual-modality features is relatively independent, which fails to fully leverage the complementarity between different modalities and thus diminishes sensitivity to tampering artifacts. Inspired by the way humans continuously integrate multi-faceted knowledge to understand the world, we propose MAMQ-Net, which contains a novel Multi-stage Alternating Feature Extraction and Interaction architecture. At each stage, we deeply explore the intrinsic relationships and mappings between different modality features. Feature extraction and interaction are performed alternately, constructing complementary dual-modality tampering feature representations and enhancing sensitivity to tampering artifacts. Additionally, we introduce a lightweight, Query-driven Multi-level Feature Decoding. This mechanism progressively aggregates key information from multi-level dual-modality tampering features through multiple sets of learnable tamper-aware queries, effectively filtering out irrelevant features. Finally, multi-level queries are used to refine discriminative features, enabling precise localization of tampered regions. Extensive experiments demonstrate that our framework outperforms current state-of-the-art models in localization accuracy and robustness across multiple public datasets, achieving a favorable balance between performance and efficiency. Code is available at https://github.com/jmhppj/MAMQ-Net.
BibTeX
@inproceedings{jia2026mamq,
  author = {Minghao Jia and Zhuoyi Zhang and Jiwei Zhang and Siwei Wang and Feifei Kou and Lei Shi and ShaoZhang Niu and Jiaming Pei},
  title = {{MAMQ-Net: Robust Image Forgery Localization via Complementary Tampering Features and Multi-level Tamper-aware Queries Aggregation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Sad9HLajgI},
}

Loading related content...

Figure