Research
From Passive Perception to Active Memory: A Weakly Supervised Image Manipulation Localization Framework Driven by Coarse-Grained Annotations
Summary: BoxPromptIML — Weakly Supervised Image Manipulation Localization Overview Research area: Computer vision / multimedia forensics — specifically image manipulation localization (IML), the task
- arXiv
- 2511.20359
- Published
- 2025-11-25
- Authors
- Zhiqing Guo, Dongdong Xi, Songlin Li, Gaobo Yang
AI summary
Summary: BoxPromptIML — Weakly Supervised Image Manipulation LocalizationOverview
Research area: Computer vision / multimedia forensics — specifically image manipulation localization (IML), the task of producing a pixel-level mask showing which region of an image has been altered.
Technical level: Intermediate. The paper is readable without deep prior knowledge of IML, but it assumes familiarity with segmentation backbones, knowledge distillation, attention/gating mechanisms, and standard F1-based evaluation.
One-sentence scope: The paper proposes BoxPromptIML, a weakly supervised framework that uses cheap coarse bounding boxes (rather than expensive pixel-level masks or mere image-level labels) as prompts for a frozen Segment Anything Model (SAM) teacher, whose pseudo masks supervise a lightweight student model enhanced by a memory-guided gated fusion module — accepted at AAAI 2026.
What This Paper Is About
Image manipulation localization currently forces a choice: fully supervised methods need dense pixel-level masks that are extremely costly to produce, while weakly supervised methods using image-level "real/fake" labels are cheap but give no spatial guidance and localize poorly. This paper targets that middle ground by asking how much spatial information can be bought with only a few seconds of annotation effort per image. The goal is a framework that achieves localization accuracy rivaling fully supervised models while training without any real pixel-level ground truth and running as a compact, deployable student network.
Key Contributions
-
A coarse-to-fine weak supervision paradigm. Instead of pixel-level masks, only low-cost coarse bounding boxes are required. A frozen SAM teacher converts these box prompts into fine-grained pseudo masks, which are then distilled into a compact student model via a standard binary cross-entropy objective.
-
A quantitative user study of annotation cost. A controlled study with 10 volunteers annotated 100 tampered images and their authentic counterparts (drawn from IMD2020 and In-the-Wild) using the CVAT platform, measuring time for pixel-level masks (23 minutes per image), image-level labels (4 seconds per image), and coarse bounding boxes (about 7 seconds per image).
-
A Memory-Guided Gated Fusion Module (MGFM). Inspired by the paper's framing of subconscious/collective memory and selective attention, the module maintains a learnable memory bank of prototypical manipulation patterns and fuses multi-scale features under a dual-guidance mechanism combining a real-time gate prior with a long-term memory prior.
-
Empirical demonstration of efficiency and generalization. Extensive in-distribution and out-of-distribution experiments show the method outperforms or rivals fully supervised models, while the deployed student model uses 5.5M parameters and 1.4G FLOPs at 224×224 input.
Main Findings
-
Annotation cost is cut dramatically. The user study reports pixel-level masks at 23 minutes per image, rough bounding boxes at about 7 seconds, and image-level labels at 4 seconds; the paper states rough box annotation reduces labeling effort by over 98% compared to full supervision while retaining spatial cues.
-
Strong in-distribution results at very few epochs. At 20 epochs with weak (box) supervision, BoxPromptIML reaches an average IND F1 of 0.619 (NIST16 0.618, CASIAv1 0.552, Columbia 0.903, Coverage 0.403), and at 10 epochs an average of 0.591 (0.566, 0.538, 0.883, 0.376 respectively).
-
Out-of-distribution generalization improves with training. Average OOD F1 rises from 0.253 at 10 epochs to 0.285 at 20 epochs (CocoGlide 0.289, In-the-Wild 0.353, Korus 0.249, DSO 0.205, IMD2020 0.328 at 20 epochs), despite no real masks being used for training.
-
Fully supervised baselines overfit on OOD data. TruFor drops from 0.303 (10 epochs) to 0.267 (70 epochs) average OOD F1, and PSCC-Net degrades from 0.360 to 0.323 over the same range. Mesorch improves only marginally from 0.228 to 0.241 OOD, while reaching a strong 0.754 average IND F1 at 70 epochs (MFI-Net reaches 0.694).
-
Competitive at 20 epochs against full supervision. The method's 0.619 average IND F1 at 20 epochs surpasses several fully supervised baselines including TruFor, PSCC-Net, and SparseViT at the same training stage.
-
Large margin over other weakly supervised methods. On the IND benchmark (Table 2), BoxPromptIML achieves an average F1 of 0.619 versus WSCL 0.239, EdgeCAM 0.322, SOWCL 0.312, WSCCL 0.356, and SCAF 0.400. The paper notes SCAF (scribble-based, around 20 seconds per image annotation) does not reach optimal performance in the controlled 20-epoch setting.
-
Lowest computational cost among compared models. The student uses 5.5M parameters and 1.4G FLOPs at 224×224 input, versus e.g. PIM (152.5M params, 682.9G FLOPs), Mesorch (85.8M, 124.9G), TruFor (68.70M, 236.5G), PSCC-Net (3.7M, 45.7G), SparseVit (50.3M, 46.2G), MFI-Net (32.54M, 36.25G), and SCAF (27.57M, 35.39G).
-
Robustness to social media recompression. Under recompression by Facebook, Weibo, WeChat, and WhatsApp, WSCL falls below 0.15 F1 in all compressed settings, while BoxPromptIML (0.552 none, 0.532 Facebook, 0.536 Weibo, 0.477 WeChat, 0.530 WhatsApp) outperforms several fully supervised models such as MFI-Net (0.524, 0.449, 0.455, 0.363, 0.474) and SparseViT (0.557, 0.493, 0.529, 0.365, 0.506). Mesorch shows the strongest overall performance under compression.
-
The memory bank is the single most important component. Ablation shows removing it drops average OOD F1 from 0.285 to 0.227 and IND from 0.619 to 0.576. Replacing gated integration with simple concatenation drops averages to 0.579 (IND) and 0.250 (OOD). Removing the real-time gate prior matters mainly for OOD (0.285 to 0.277) and barely for IND (0.619 to 0.618). The full model beats the FPN-style baseline (0.599 IND, 0.252 OOD).
-
Qualitative behavior. On IND samples the predicted masks are described as visually indistinguishable from TruFor and PIM and clearly better than WSCL's broad, inaccurate masks; on challenging OOD samples the method is reported to capture manipulated regions more completely than fully supervised alternatives.
-
Training setup specifics. Training uses a composite set from CASIAv2, Coverage, Columbia, and NIST16, all as manipulated images with coarse boxes; only the student is used at inference, with no test-time prompts. Baseline models were retrained on the same training set for fairness. Evaluation uses F1 at a fixed threshold of 0.5, because prior work (Ma et al. 2024) indicates pixel-level AUC often overestimates confidence.
Methodology in Plain English
The approach is a teacher–student knowledge distillation scheme.
-
Teacher (frozen SAM): A pre-trained Segment Anything Model is used as-is, without any fine-tuning. Given an image and a rough bounding box that says "the manipulation is somewhere in here," SAM's prompt encoder and mask decoder output a high-quality binary mask. Costly human pixel-level labeling is replaced by this automatic mask generation.
-
Student (lightweight): A compact model with a Tiny-ViT backbone takes only the raw image — no box, no prompt — and predicts a manipulation mask. It is trained with a simple binary cross-entropy loss against the teacher's pseudo mask, so it learns to reproduce fine-grained masks while remaining deployable on its own.
-
Feature handling: The backbone produces four multi-scale features, which are resized and dimension-aligned. A Gated Integration stage computes a per-feature gate map via a 1×1 convolution and sigmoid, uses those gates to let each feature draw on the others, modulates the original features, and concatenates the results into one fused feature map. An average of the gates, G_avg, serves as a spatial saliency prior derived from the current input.
-
Dual-guidance refinement: A base attention map is computed from the fused features, then refined as A_final = α(A'_base ⊙ G_avg) + (1 − α)·Ā_mem. The first term is the real-time, input-specific prior; the second is recalled long-term knowledge from the memory bank, which stores prototypical tampering patterns and averages feature activations across iterations. The authors argue the memory bank acts as a regularizer because it decouples knowledge aggregation from network weights, forcing the model to reconcile live evidence with a stable prior.
-
Evaluation protocol: Models are compared at 10, 20, and 70 epochs on IND datasets (NIST16, CASIAv1, Columbia, Coverage) and OOD datasets (CocoGlide, In-the-Wild, Korus, DSO, IMD2020), plus a compression-robustness test on social network recompression and an ablation of each MGFM component.
Why This Matters
Impact on research. The paper reframes the annotation trade-off in IML as a spectrum rather than a binary, showing that an intermediate supervision level (rough boxes at about 7 seconds per image) can preserve enough spatial signal to approach fully supervised accuracy — and that avoiding pixel-level mask bias may actually help out-of-distribution generalization, where several fully supervised models degrade with more training. It also demonstrates a practical way to harness a large foundation segmentation model as a label generator rather than as a deployed component.
Real-world applications:
- Misinformation and fact-checking: Rapidly flagging and outlining altered regions in images circulated online, where waiting for minute-level manual annotation is not viable.
- Social media content moderation: The recompression robustness test (Facebook, Weibo, WeChat, WhatsApp) targets the exact degradation images undergo when shared on platforms.
- Financial fraud and insurance claims: The paper explicitly cites financial fraud as a motivation, and localized tamper masks can support document or image-based evidence checks.
- Digital forensics and legal workflows: Producing interpretable tamper masks for evidentiary review, and enabling on-device or edge analysis given the 5.5M-parameter, 1.4G-FLOP student and 224×224 input.
Industry relevance. The student model's low parameter count, lowest reported FLOPs among compared models, fast convergence (strong results at 20 epochs), and low annotation cost address deployment constraints in resource-limited settings. The authors explicitly contrast their method with SCAF's larger model size and computational overhead when arguing for practical, low-supervision forensics.
Future Directions
-
Closing the in-distribution gap at convergence. The paper reports comparison at 10, 20, and 70 epochs and shows some fully supervised models (e.g., Mesorch at 0.754 average IND F1, MFI-Net at 0.694) pulling ahead given enough training; how the weak-supervision student behaves at comparable convergence is an open question.
-
Extending beyond still images. The entire setup is single-image, box-prompted localization; whether the memory bank and gated fusion transfer to video manipulation localization or to multi-image evidence is not addressed.
-
Better negotiation of the upper end of the input resolution. All compared baselines except PSCC-Net operate at 512×512 while the proposed student uses 224×224. Investigating whether the efficiency advantage is preserved at higher resolution could sharpen the accuracy comparison.
-
Improving the memory mechanism for novel manipulations. The ablation shows the memory bank is the most influential component and is especially important for OOD generalization, so designing memory that adapts to never-before-seen manipulation types (e.g., novel AI-generated content) is a natural next step, as is combining box supervision with even cheaper image-level labels.
-
Details left unreported in the provided content. The exact sizes of the training and test sets, the value of the balancing factor α, inference speed/latency, the number of annotators beyond 10, and per-dataset sample counts are not given in the material available (the paper points to Appendix A.I and A.II for training configurations and splits).
Target Audience
Researchers and graduate students working on image forensics, weakly supervised learning, or knowledge distillation from foundation models; practitioners building tamper-detection or content-moderation systems who need low annotation cost and small model footprints; and readers interested in how coarse prompts can replace dense annotations without sacrificing spatial localization. Beginners can follow the motivation and user-study results, but the MGFM equations and benchmark comparisons assume intermediate familiarity with segmentation and detection evaluation.
Authors’ abstract
Image manipulation localization (IML) faces a fundamental trade-off between minimizing annotation cost and achieving fine-grained localization accuracy. Existing fully-supervised IML methods depend heavily on dense pixel-level mask annotations, which limits scalability to large datasets or real-world deployment.In contrast, the majority of existing weakly-supervised IML approaches are based on image-level labels, which greatly reduce annotation effort but typically lack precise spatial localization. To address this dilemma, we propose BoxPromptIML, a novel weakly-supervised IML framework that effectively balances annotation cost and localization performance. Specifically, we propose a coarse region annotation strategy, which can generate relatively accurate manipulation masks at lower cost. To improve model efficiency and facilitate deployment, we further design an efficient lightweight student model, which learns to perform fine-grained localization through knowledge distillation from a fixed teacher model based on the Segment Anything Model (SAM). Moreover, inspired by the human subconscious memory mechanism, our feature fusion module employs a dual-guidance strategy that actively contextualizes recalled prototypical patterns with real-time observational cues derived from the input. Instead of passive feature extraction, this strategy enables a dynamic process of knowledge recollection, where long-term memory is adapted to the specific context of the current image, significantly enhancing localization accuracy and robustness. Extensive experiments across both in-distribution and out-of-distribution datasets show that BoxPromptIML outperforms or rivals fully-supervised models, while maintaining strong generalization, low annotation cost, and efficient deployment characteristics.