cs.CVAug 21, 2026

GAP-SAM: A Global Artifact Prior for Generalizable AI-Generated Image Manipulation Localization

Authors: Haozhen Yan, Siyuan Shan, Zijian Yu, Youqi Wang, Yan Hong, Jun Lan, Jianfu Zhang

Organizations: Shanghai Jiao Tong University · Ant Group · Shenzhen University

Abstract

AI-generated image manipulation localization identifies edited pixels, but its OOD performance lags behind image-level detection partly because pixel supervision entangles forensic evidence with dataset-specific mask geometry and semantic boundaries. Extending image-level distribution alignment to localization, we construct COCO-ControlNet with source-image Canny edges and depth maps to align semantics and geometry, improving OOD performance across multiple localizers. Yet tighter Mask-VAE Reconstruction Alignment (Mask-VAE) underperforms COCO-ControlNet, showing that VAE reconstruction artifacts transfer poorly to local diffusion-inpainting artifacts. We also identify boundary adhesion, where fine-tuned segmentation models snap predictions to semantic object contours rather than true manipulation boundaries. These findings motivate GAP-SAM, which encodes an image and its frozen VAE reconstruction into a global artifact token and injects it into SAM3's feature pyramid via zero-gated FiLM before pixel decoding. Without prescribing a spatial region, this token modulates dense decoding to preserve localization while suppressing semantic-boundary shortcuts. Across six datasets, GAP-SAM averages 79.8 Pixel-F1, outperforming the strongest prior method by 12.6 points. It also performs best at every tested severity of JPEG compression, Gaussian blur, and resizing.

Figures & tables

Explore similar work

CardsList
  1. Bridging the Micro--Macro Gap: Frequency-Aware Semantic Alignment for Image Manipulation Localization

    Apr 14, 2026Xiaojie Liang, Zhimin Chen, Ziqi Sheng +1Image Forgery LocalizationDigital Image Forensics

  2. FUSED: Forensic-Semantic Mixture-of-Experts for AI Inpainting Detection and Localization

    Aug 28, 2026Anton Nuzhdin, Marcel Worring, Ivona NajdenkoskaAI-Generated Image DetectionImage Forgery Detection

  3. Progressive Decision-Making for Localizing Open-Ended AI-Generated Image Forgeries

    Jul 31, 2026Jingyi Hou, Xiaoxia Chen, Leyu Zhou +2Image SegmentationImage Forgery Localization