Skip to content
AI.info

Research

Creating Blank Canvas Against AI-enabled Image Forgery

Overview Research area: Computer vision — image forensics and adversarial attacks on vision foundation models, specifically tamper localization for AI-generated and AI-edited images. Technical level:

arXiv
2511.22237
Published
2025-11-27
Authors
Qi Song, Ziyuan Luo, Renjie Wan

AI summary

Overview

  • Research area: Computer vision — image forensics and adversarial attacks on vision foundation models, specifically tamper localization for AI-generated and AI-edited images.
  • Technical level: Advanced. The paper assumes familiarity with the Segment Anything Model (SAM), adversarial perturbation optimization (PGD), and frequency-domain signal processing (discrete wavelet transform, spectral projection, SSIM).
  • Scope: The paper proposes a proactive, training-free method that uses frequency-aware adversarial perturbations to make a protected image appear as a "blank canvas" to SAM, so that any later tampering becomes locally detectable by an off-the-shelf SAM. Code is released at https://github.com/qsong2001/blank_canvas.

What This Paper Is About

AI image editors (inpainting and diffusion-based tools) can now alter photographs at a photorealism level, which makes the resulting forgeries hard to catch. Existing tamper detectors work after the fact and rely on forgery patterns learned during task-specific training, which limits their generalizability to new kinds of manipulation. This paper flips the problem: rather than training a detector to find tampering, it embeds an invisible adversarial perturbation into the image before distribution so that SAM sees nothing at all — and therefore notices anything later added.

Key Contributions

  1. A new tamper-localization paradigm using adversarial perturbations on SAM. Instead of training SAM to recognize tampered regions, the authors suppress SAM's segmentation confidence so the protected image reads as a uniform "blank canvas"; subsequent edits then stand out as anomalies.
  2. The "blank canvas" concept. The paper argues that tampering artifacts invisible in a complex, textured image become conspicuous on a simplified canvas — shifting image forensics from post-hoc detection toward proactive protection that needs no labeled tampered samples.
  3. A frequency-aware optimization strategy. Because a naive attack leaves SAM's perception intact at edges and textures (high-frequency structure), the authors combine wavelet-domain high-frequency disruption, a low-frequency structural preservation term, and a spectral projection of the gradient with momentum and an adaptive step size.
  4. A training-free, interpretable alternative to steganographic protection. The method is contrasted with EditGuard (Zhang et al. 2024), which relies on non-intuitive steganographic content comparisons; the authors position their approach as visually detectable and human-verifiable without pre-registered steganographic references.

Main Findings

  • Classical benchmarks (Table 1, metrics are IoU / F1): The method reports 0.62 / 0.67 on CASIA1+, 0.58 / 0.66 on IMD2020, 0.74 / 0.81 on Columbia, 0.31 / 0.45 on NIST, 0.55 / 0.60 on DSO, and 0.27 / 0.31 on Korus. The prior proactive method EditGuard reports 0.60 / 0.67, 0.55 / 0.62, 0.70 / 0.78, 0.35 / 0.40, 0.52 / 0.56, and 0.22 / 0.28 on the same six columns.
  • Where the comparison is not uniformly better: On NIST, the proposed method's IoU (0.31) is below EditGuard's (0.35) even though its F1 (0.45) exceeds EditGuard's (0.40). The paper describes its classical-benchmark gains as "marginally better localization accuracy" over EditGuard.
  • AIGC-based editing (Table 2, metrics are F1 / IoU): Against SD Inpaint, ControlNet, SDXL, RePaint, and Lama, the method reports F1 of 0.972, 0.973, 0.970, 0.961, and 0.954, with IoU of 0.958, 0.938, 0.958, 0.957, and 0.951. EditGuard reports 0.966 / 0.936, 0.968 / 0.940, 0.965 / 0.936, 0.967 / 0.938, and 0.965 / 0.934.
  • Ablation on frequency-aware optimization (Table 3, F1 / IoU): Unprotected clean images score 0.352 / 0.378. Adding the stealth loss and adaptive spectral optimization without MSE gives 0.934 / 0.928; MSE plus stealth without the adaptive component gives 0.931 / 0.921; the full method gives 0.964 / 0.955; a random variant gives 0.945 / 0.931.
  • High-frequency areas are the failure mode of naive attacks: Figure 1 shows a previous adversarial attack (Zhang et al. 2023a) could not fully disrupt SAM's perception, especially at edges and texture regions, producing fragmented segmentation instead of coherent suppression. Figure 5 visualizes false positives arising in high-frequency areas.
  • Passive detectors degrade on AI-edited images: The paper states that F1-scores of existing passive forensic methods are generally below 0.7 on AIGC-edited images, and that even fine-tuning MVSS-Net on the AIGC-edited dataset (denoted MVSS-Net with a dagger) leaves significant limitations.
  • Reported robustness: Supplemental experiments (stated to be in the supplement, not shown in the provided content) reportedly confirm robustness under clean conditions and random degradations, and consistent effectiveness across diverse SAM variants. The text also claims F1 scores and AUCs exceeding 95% with IoU around 90% across tampering types, though AUC values do not appear in the tables provided.

Methodology in Plain English

The pipeline has two stages.

Stage 1 — Blank canvas creation (done by the image owner before sharing). SAM normally returns a confidence map for any prompted region, and pixels above a threshold become a mask. The authors add a small, invisible perturbation to the image and optimize it so that SAM's output confidence everywhere converges toward a fixed constant, chosen as 15 because background (non-mask) predictions typically hover there. This uses a mean squared error loss against that constant. Optimization follows the PGD attack framework with a maximum perturbation of 16/255 and a step size of 2/255, using SAM with a ViT-H backbone and a single point prompt at (0,0).

Stage 2 — Tamper localization (done by anyone later). Because the protected image already looks like a blank canvas to SAM, any malicious edit breaks the pattern locally. The tampered region is thresholded out of SAM's confidence map, with the threshold chosen adaptively by Otsu's method.

The key technical insight is that the naive constant-target attack is not enough, because SAM still latches onto high-frequency structure such as edges and textures. The authors therefore add three pieces. First, a wavelet-domain term using the discrete wavelet transform with the Daubechies-8 basis constrains the perturbation toward high-frequency bands, weighted by a Canny edge mask. Second, an SSIM-based structural preservation term protects low-frequency content so the image still looks natural to humans and automated checks. Third, the gradient itself is spectrally projected — a mask keeps only frequency components above a cutoff frequency f_cutoff — and combined with momentum and an adaptive step size α_t = α_0 (1 − e^(−5t/T)) in Algorithm 1. The overall objective trades off attack strength (suppressing SAM's masks) against stealth (preserving low frequencies while disrupting high frequencies).

Why This Matters

Impact on research. The paper argues that the dominant post-hoc forensic paradigm generalizes poorly, because detectors learned on known forgery traces fail on novel manipulation types. It offers a proactive direction: instead of training a new foundation model for forensics — which the authors note would demand datasets that are prohibitively hard to obtain and computational resources inaccessible to many photo owners — it repurposes an existing off-the-shelf foundation model without task-specific tampering training.

Real-world applications:

  • Photojournalism and news wire services: protecting images at the point of capture or distribution so that later edits are automatically flagged by a standard segmentation model.
  • Legal and insurance evidence handling: producing images whose alterations leave detectable traces that a third party can verify without access to the original file.
  • Social media and content moderation platforms: checking user-uploaded images against a model that treats an untampered protected image as empty output.
  • Personal photo ownership: giving individual photographers a low-resource protection step that does not require training or maintaining their own detector.

Industry relevance. The method is training-free and built on a widely available foundation model, which lowers the barrier for deployment by photo owners and platform operators. It also directly targets the threat model created by diffusion-based inpainting and editing tools such as SD Inpaint, ControlNet, and SDXL, which the paper tests explicitly.

Future Directions

  • Closing the NIST gap. The method's IoU on NIST (0.31) trails EditGuard (0.35), so localization quality is not uniformly superior across classical datasets and would need strengthening.
  • Broadening the foundation-model coverage. The paper reports consistent effectiveness across diverse SAM variants only in the supplement; independent validation of the attack against newer or differently architected segmentation models remains open.
  • Robustness under real-world processing. The paper reports robustness under clean conditions and random degradations, but the scope of those degradations (compression, resizing, filtering chains typical of social media pipelines) is not enumerated in the provided content.
  • Trade-off between stealth and attack strength. The method must disrupt high-frequency content while preserving perceptual fidelity under a 16/255 perturbation budget; whether the protection survives detection by human observers or automated quality systems in adversarial settings is left as an open question.

Target Audience

Researchers and graduate students in computer vision, image forensics, and adversarial machine learning; practitioners building content-authenticity or provenance systems; and security engineers interested in applying foundation models such as SAM to protection tasks. Readers without background in adversarial optimization or frequency-domain analysis will find the methodology section demanding.

Authors’ abstract

AIGC-based image editing technology has greatly simplified the realistic-level image modification, causing serious potential risks of image forgery. This paper introduces a new approach to tampering detection using the Segment Anything Model (SAM). Instead of training SAM to identify tampered areas, we propose a novel strategy. The entire image is transformed into a blank canvas from the perspective of neural models. Any modifications to this blank canvas would be noticeable to the models. To achieve this idea, we introduce adversarial perturbations to prevent SAM from ``seeing anything'', allowing it to identify forged regions when the image is tampered with. Due to SAM's powerful perceiving capabilities, naive adversarial attacks cannot completely tame SAM. To thoroughly deceive SAM and make it blind to the image, we introduce a frequency-aware optimization strategy, which further enhances the capability of tamper localization. Extensive experimental results demonstrate the effectiveness of our method.

Read the original paper