Frozen DINO Localizes Image Edits Without a Localizer
Organizations: Department of Computing St Paul’s School London London, United Kingdom · Department of Computing Imperial College London London, United Kingdom · Computing / AIBE Imperial College London / FAU London, UK / Erlangen, Germany
Abstract
Localized image edits can change a photograph's meaning while leaving most of it authentic, so forensic analysis must identify where an edit occurred. We show that patch-level perturbation responses from frozen DINO encoders are themselves localization maps. Training-free Localization of AI-image Edits from patch-token Drift (TRAIL) applies one global Haar perturbation and maps cosine drift between corresponding patch tokens. On 80 source-disjoint CocoGlide test images, TRAIL reaches .903 patch AUROC versus .912 for the mask-supervised Detective SAM; fixed-threshold Dice is .619 versus .709, while an oracle threshold raises TRAIL to .790. Transferred unchanged to Poisson image interpolation, TRAIL reaches .855 AUROC versus .864, showing that the cue persists without a generator. Across sixteen DINO encoders, the best block lies at normalized depth .80-.94. Global context matters: AUROC falls from .903 globally to .857 for local-in-canvas perturbations and .735 for independently encoded crops. Frozen DINO patch tokens therefore contain a strong late-layer localization signal whose visibility depends on the perturbation and preserved context. Code: https://github.com/VishalJ99/trail-image-edit-localization.
Figures & tables
| Patch AUROC | Fixed-operating-point Dice | Per-image oracle Dice | TRAIL | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Dataset / regime | TRAIL | Det. SAM | TRAIL | Det. SAM | TRAIL | Det. SAM | F–R | ||||
| CocoGlide | 80 | .903 | .912 | .619 | .709 | .790 | — | — | |||
| TGIF2 semantic | 400 | .811 | .904 | .212 | .357 | .363 | .540 | ||||
| TGIF2 random | 320 | .727 | .758 | .256 | .281 | .405 | .408 | ||||
| FPI | 80 | .850 | .894 | .482 | .694 | .697 | .829 | ||||
| PII | 79 | .855 | .864 | .558 | .613 | .769 | .800 | ||||
| Perturbation | Application | CocoGlide | TGIF2 dev. |
|---|---|---|---|
| Haar attenuation | Global | .903 | .809 |
| Local canvas | .857 | .735 | |
| Independent crops | .735 | .453 | |
| Gaussian noise | Global | .798 | .481 |
| Local canvas | .738 | .418 | |
| Independent crops | .527 | .226 |
Image Forgery Localization
Image forgery localization identifies manipulated or AI-generated regions in images, often alongside image-level authenticity detection.
See all 79 papers