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.
School of Computer Science and Technology, Xinjiang University, Urumqi 830046, China. · College of Computer Science and Electronic Engineering, Hunan University, Changsha 410082, China.