We propose DINO-FIL, a transformer-based framework for pixel-level localization of generative image forgeries. The method leverages multi-layer representations from a pretrained DINOv3 ViT-H+/16 encoder combined with a lightweight fusion decoder to capture both semantic structure and fine-grained texture inconsistencies introduced by image editing. By aggregating intermediate transformer features across depths, the model improves sensitivity to subtle, spatially localized artifacts that are often missed by standard single-layer approaches. We evaluate DINO-FIL in a cross-dataset setting, training on B-Free and testing on Beyond the Brush, CocoGlide, TGIF, and SAGI-D. The model achieves strong generalization, outperforming existing baselines on average and on four of five evaluated datasets, while maintaining a high true negative rate on pristine images.
Figures & tables
Figure 1: Overview of DINO-FIL. The batch of resized images is encoded with DINOv3, and hidden states from layers 8,16,24, and 32 are converted into spatial patch maps fℓ by reshaping and discarding one CLS token and four register tokens. The projection adapter maps fℓ to pℓ∈RB×Cd×q×q . The context block produces gℓ∈RB×Cd×q×q using lightweight multi-scale depthwise-separable convolutions. Before fusion, gℓ is optionally regularized with spatial dropout, yielding g~ℓ during training and the identity mapping otherwise. The resulting g~ℓ maps are fused by a horizontal depth-wise top-down decoder on the fixed q×q patch grid. A 1×1 prediction head produces patch-level logits, which are upsampled and passed through a sigmoid to obtain the final inpainting probability mask. Here, q=S/P , P=16 , Cb=1280 , and Cd=1024 .
Test image resolution
Unfrozen layers
BtB
CocoGlide
TGIF
SAGI-D
B-Free
Average
IoU
F1
IoU
F1
IoU
F1
IoU
F1
IoU
F1
IoU
F1
512px
0
0.23
0.31
0.75
0.82
0.27
0.33
0.47
0.55
0.82
0.89
0.51
0.58
6
0.33
0.41
0.77
0.85
0.38
0.45
0.52
0.61
0.86
0.92
0.57
0.65
12
0.36
0.44
0.81
0.87
0.38
0.44
0.58
0.66
0.89
0.94
0.60
0.67
16
0.36
0.43
0.83
0.88
0.38
0.43
0.59
0.67
0.90
0.94
0.61
0.67
24
0.32
0.38
0.84
0.89
0.33
0.37
0.57
0.64
0.91
0.95
0.60
0.65
Table 1: Comparison of DINO-FIL variants under different numbers of unfrozen encoder layers and test image resolutions (training resolution is fixed at 512px), evaluated using average pixel-level IoU and F1 score on image forgery localization. The best results are shown in bold, and the second-best results are underlined.
Model
BtB
CocoGlide
TGIF
SAGI-D
B-Free
Average
IoU
F1
IoU
F1
IoU
F1
IoU
F1
IoU
F1
IoU
F1
DINO-FIL (ours)
0.59
0.68
0.87
0.92
0.57
0.63
0.66
0.73
0.87
0.92
0.71
0.77
DinoLizer
0.42
0.56
0.57
0.69
0.39
0.49
0.38
0.49
0.70
0.81
0.49
0.61
TruFor
0.22
0.30
0.29
0.36
0.70
0.80
0.35
0.41
0.22
0.30
0.36
0.43
Table 2: Comparison of DINO-FIL (ours) with DinoLizer and TruFor, the two strongest-performing methods reported in the DinoLizer benchmark [ 2 ] . Performance is reported using average pixel-level IoU and F1 score for image forgery localization. The SAGI-D results for DinoLizer and TruFor are computed as image-count-weighted averages of the reported SAGI-SP and SAGI-FR results. The best results are shown in bold, and the second-best results are underlined.
Dataset
Number of Images
Pixel-level FP Rate
Image-level TN Rate
COCO
2,922
0.0019
0.9767
Open Images
5,579
0.0040
0.9684
RAISE
580
0.0021
0.9810
Average
9,081
0.0032
0.9719
Table 3: False-positive evaluation of DINO-FIL on original, non-manipulated images. We report the pixel-level false-positive rate and the image-level true-negative rate. The average is computed over all images across the three datasets.
Train Resolution
Test Resolution
Beyond the Brush
TGIF
SAGI-D
Average
IoU
F1
IoU
F1
IoU
F1
IoU
F1
512px
512px
0.37
0.44
0.41
0.44
0.76
0.81
0.51
0.56
1024px
0.68
0.76
0.62
0.69
0.83
0.88
0.71
0.78
1024px
1024px
0.64
0.71
0.55
0.62
0.84
0.88
0.68
0.74
Table 4: Comparison of DINO-FIL variants trained at different resolutions (512px and 1024px) and evaluated at corresponding test resolutions for image forgery localization. Performance is reported in terms of average pixel-level IoU and F1 score across datasets. The best results are shown in bold, and the second-best results are underlined.