Organizations: School of Computer Science and Technology, Xinjiang University, Urumqi 830046, China. · College of Computer Science and Electronic Engineering, Hunan University, Changsha 410082, China.
Existing weakly supervised image manipulation localization (IML) methods typically rely on annotation-specific training strategies, hindering the joint use of diverse annotations within a single model. This limits the scale of usable training data and constrains further progress. We propose UniIML, a teacher-student framework that maps diverse weak annotations into a unified representation to guide the Segment Anything Model (SAM) in generating multiple candidate masks. However, SAM is designed for general-purpose segmentation and has limited sensitivity to manipulation traces; its predicted quality scores alone may therefore fail to reliably identify the candidate that best delineates the manipulated region. We introduce Ordinal Safe Consensus (OSC), which first filters candidates using trusted weak-annotation constraints encoded in the unified representation. It then ranks the remaining candidates separately by consistency with weak annotations, SAM-predicted quality scores, and cross-view stability, aggregating these rankings for an initial selection. To assess how changes in the evaluation criteria affect candidate selection, OSC repeats ranking and selection while omitting one criterion at a time. The most frequently selected candidate is adopted as the final mask, and its relative selection frequency quantifies selection stability. We construct soft pseudo-labels from the selected candidate's predicted probabilities and estimate pixel-level supervision weights based on selection stability, pixel-level agreement among candidates, and predictive certainty. The student receives direct supervision in regions defined by weak annotations and learns from soft pseudo-labels elsewhere through reliability-weighted distillation, enabling unified training across weak annotation types. Experiments show that UniIML achieves superior average performance compared with state-of-the-art IML methods.
Figures & tables
Fig. 1: Overview of our unified weak-supervision framework. Unlike existing methods that are typically tailored to a single annotation type, our framework jointly supports image-level labels, bounding boxes, scribbles, and points.
Fig. 2: Overview of UniIML. Unified weak annotations, vision-language prompts, and localization priors guide a frozen SAM to generate candidate masks. OSC selects a candidate mask and assesses its selection stability. The student is trained using reliability-weighted soft pseudo-labels, direct annotation supervision, and a weighted soft Dice loss.
Dataset
Nums
#CM
#SP
#IP
Train
Test
CASIAv2 [ 33 ]
5123
3295
1828
0
5123
0
Coverage [ 34 ]
100
100
0
0
70
30
NIST16-C [ 35 ]
564
68
288
208
383
181
CASIAv1 [ 33 ]
920
459
461
0
0
920
Columbia [ 36 ]
180
0
180
0
0
180
Korus [ 37 ]
220
–
–
–
0
220
TABLE I: The datasets used in our experiments. CM, SP, and IP indicate three common image manipulation types: copy-move, splicing, and inpainting.
Method
Pub.
Sup.
Epoch
ID F1
OOD F1
CASIAv1
Coverage
NIST16-C
Avg.
Columbia
IMD2020
Korus
ITW
CocoGlide
DSO
Avg.
MFI-Net
TCSVT’24
Full
10
0.604
0.521
0.426
0.517
0.652
0.373
0.241
0.315
0.323
0.188
0.349
20
0.571
0.448
0.432
0.483
0.342
0.331
0.176
0.255
0.204
0.081
0.232
70
0.669
0.478
0.451
0.533
0.544
0.288
0.166
0.236
0.224
0.094
0.259
Mesorch
AAAI’25
Full
10
0.611
0.307
0.398
0.439
0.537
0.349
0.176
0.308
0.175
0.190
0.289
20
0.649
0.449
0.440
0.512
0.655
0.364
0.185
0.294
0.159
0.196
0.309
TABLE II: Performance comparison with other advanced IML methods in terms of F1 score (fixed threshold at 0.5). The best results are highlighted in bold, and the second-best results are underlined.
Method
Epoch
CASIAv1
Coverage
NIST16
IMD2020
Columbia
Avg.
WSCL [ 16 ]
60
0.153
0.201
0.099
0.173
0.362
0.198
EdgeCAM [ 15 ]
100
0.301
0.262
0.254
0.242
0.470
0.306
SOWCL [ 18 ]
–
0.334
0.239
0.288
0.259
0.385
0.301
WSCCL [ 17 ]
100
0.349
0.281
0.278
0.259
0.516
0.337
Ours
10
0.279
0.307
0.176
0.232
0.517
0.302
20
0.365
0.395
0.192
0.264
0.474
0.338
TABLE III: Comparison with image-level weakly supervised IML methods.
Fig. 3: Qualitative comparison of image manipulation localization on six representative examples. From left to right: input image, ground truth (GT), UniIML (Ours), RelayFormer, FRD-Net, SCAF, BoxPromptIML, PIM, and MFI-Net. The results of UniIML are obtained under scribble supervision, and all methods are visualized using models trained for 20 epochs. White and black denote manipulated and authentic regions, respectively.
Fig. 4: Localization performance under varying compositions of mixed weak annotations on (a) in-distribution (ID) and (b) out-of-distribution (OOD) datasets. The three vertices correspond to single-type supervision, the edges denote pairwise mixtures, and the interior points represent three-way mixtures with different annotation ratios. The values shown in (a) and (b) denote the mean F1 scores across the ID and OOD datasets, respectively.
Settings
CASIAv1
Coverage
NIST16
IMD2020
Columbia
Avg.
w/o OSC
0.293
0.292
0.175
0.256
0.367
0.276
w/o confidence weighting
0.296
0.329
0.155
0.233
0.507
0.304
w/o direct supervision
0.165
0.209
0.159
0.179
0.285
0.199
w/o weighted Dice loss
0.304
0.339
0.171
0.243
0.444
0.300
Full UniIML
0.365
0.395
0.192
0.264
0.474
0.338
TABLE IV: Ablation results under image-level supervision.
Supervision
Settings
CASIAv1
Coverage
NIST16-C
ID Avg.
Columbia
IMD2020
Korus
ITW
CocoGlide
DSO
OOD Avg.
Scribble
w/o OSC
0.628
0.611
0.379
0.539
0.621
0.460
0.243
0.417
0.441
0.314
0.416
w/o safety filtering
0.653
0.599
0.418
0.557
0.625
0.459
0.245
0.469
0.492
0.353
0.440
w/o ordinal consensus voting
0.646
0.635
0.435
0.572
0.650
0.473
0.264
0.435
0.465
0.319
0.434
w/o confidence weighting
0.613
0.619
0.404
0.545
0.643
0.435
0.257
0.442
0.474
0.349
0.434
w/o direct supervision
0.655
0.629
0.439
0.574
0.613
0.469
0.252
0.426
0.470
0.317
0.424
w/o weighted Dice loss
0.635
0.596
0.407
0.546
0.632
0.445
0.231
0.444
0.462
0.308
0.420
TABLE V: Ablation results under scribble, point, and bounding-box supervision.
Fig. 5: Case studies of OSC-based candidate selection under scribble supervision (top two rows), box supervision (middle two rows), and point supervision (bottom two rows). From left to right: input image, weak annotation, SAM Top-1 mask, OSC-selected mask, and ground truth (GT). White indicates manipulated regions, while black indicates authentic regions.
Fig. 6: Qualitative comparison of student optimization variants under scribble supervision: (a) input image, (b) ground truth (GT), (c) full UniIML (Ours), (d) without direct supervision, (e) without confidence weighting, and (f) without the weighted Dice loss.
Method
Sup.
None
Gaussian Noise ( σ )
Gaussian Blur (Kernel Size)
JPEG Compression
Avg. Drop Rate (%)
3
7
11
3×3
7×7
11×11
50
70
90
Mesorch
Full
0.649
0.625
0.612
0.605
0.609
0.586
0.530
0.315
0.437
0.583
16.1
PIM
Full
0.577
0.539
0.515
0.496
0.526
0.511
0.439
0.251
0.353
0.517
20.1
PNF-Net
Full
0.694
0.632
0.631
0.627
0.650
0.600
0.547
0.439
0.542
0.645
14.9
Co-Transformers
Full
0.667
0.654
0.649
0.641
0.617
0.560
0.483
0.409
0.523
0.636
13.8
FRD-Net
Full
0.686
0.645
0.640
0.641
0.625
0.591
0.538
0.427
0.548
0.661
13.9
TABLE VI: Robustness to synthetic image degradations.
Method
Sup.
Platform
Drop
Facebook
WeChat
Weibo
WhatsApp
Mesorch
Full
0.600
0.488
0.604
0.612
11.2%
PIM
Full
0.522
0.408
0.539
0.544
12.8%
PNF-Net
Full
0.627
0.483
0.620
0.633
14.9%
RelayFormer
Full
0.514
0.392
0.522
0.520
14.1%
FRD-Net
Full
0.656
0.544
0.640
0.663
8.8%
TABLE VII: Robustness to online social network processing.
Image manipulation localization identifies edited regions and provides spatial evidence for assessing image reliability, but fully supervised methods require costly pixel-level annotations. Weakly supervised methods reduce this cost using image-level labels, but classification can rely on a few salient cues without ensuring accurate or complete localization. This difficulty is pronounced when manipulation traces are weak and unevenly distributed and authentic and manipulated regions share similar appearance. We propose a CLIP-based framework that integrates Trace-Oriented Vision--Language Adaptation (TOVA) and Relation-Aware Trace Discrimination (RATD). TOVA adapts the visual encoder and uses global visual context to aggregate edge-weighted patch features into image-conditioned class prompts. The resulting class representations support image-level alignment and guide patch selection for Hierarchical Trace Contrastive Learning, providing local contrastive supervision across visual layers. RATD combines local context, spatial structure, and original-image details, then compares learned descriptors between appearance-matched regions. Bidirectional comparison messages are integrated with local features for dense localization. The two components share a visual encoder and are jointly trained using only image-level authenticity labels. Experiments on multiple public benchmarks demonstrate that our framework outperforms the evaluated weakly supervised baselines in image manipulation localization.
Although some existing image manipulation localization (IML) methods incorporate authenticity-related supervision, this information is typically utilized merely as an auxiliary training signal to enhance the model's sensitivity to manipulation artifacts, rather than being explicitly modeled as localization evidence opposing the manipulated regions. Consequently, when manipulation traces are subtle or degraded by post-processing and noise, these methods struggle to explicitly compare manipulated and authentic evidence, resulting in unreliable predictions in ambiguous areas. To address these issues, we propose a courtroom-style adjudication framework (CSAF) that regards IML task as the confrontation of evidence followed by judgment. The framework comprises a prosecution stream, a defense stream, and a judge model. We first build a dual-hypothesis segmentation architecture on a shared multi-scale encoder, in which the prosecution stream asserts manipulation and the defense stream asserts authenticity. Guided by edge priors, it produces evidence for manipulated and authentic regions through cascaded multi-level fusion, bidirectional disagreement suppression, and dynamic debate refinement. We further develop a reinforcement learning judge model that performs strategic re-inference and refinement on uncertain regions, yielding a manipulated-region mask. The judge model is trained with advantage-based rewards and a soft-IoU objective, and reliability is calibrated via entropy and cross-hypothesis consistency. Experimental results show that our model achieves superior average performance compared with SOTA IML methods. Our code will be released upon acceptance.
Songlin Li, Zhiqing Guo, Kebin Chen +4
School of Computer Science and Technology, Xinjiang University, Urumqi 830046, China. · College of Computer Science and Electronic Engineering, Hunan University, Changsha 410082, China.
Image Manipulation Localization (IML) is commonly formulated as a fully supervised learning task that estimates the optimal manipulation mask y for a given image x. In this work, we first reveal the latent nature of artifacts and thus reinterpret IML as a latent-variable problem, P(y∣x)=∫P(y∣z)P(z∣x)dz, where z denotes the artifacts. Following this interpretation, we pinpoint the cause for the current IML models' insufficiency as their implicit artifacts modeling strategy, highlighting the necessity of modeling z in an explicit manner. Without direct labels, feature disentanglement is the most appropriate solution for this explicit modeling. Accordingly, we propose a two-stage learning paradigm with the Pairwise Artifacts Learning (PAL) and Standard Localization (SL) phases to estimate P(z∣x) and P(y∣z) via edit relations. To support our edit-relation-based learning, we further curate EditGroup-45K, a source-anchored dataset organized into edit groups for pair construction. Extensive experiments show that our PAL paradigm yields consistent improvements across diverse IML architectures, and empirical analyses further verify that PAL does capture artifacts explicitly through feature disentanglement. Code and dataset are available at https://github.com/venus-guangjian/PAL
Xuekang Zhu, Kaiwen Feng, Ruifeng Wang +10
Sichuan University · Ant Group · The Hong Kong University of Science and Technology +4