High-Fidelity Face Content Recovery via Tamper-Resilient Versatile Watermarking

Peipeng Yu, Jinfeng Xie, Chengfu Ou, Xiaoyu Zhou, Jianwei Fei, Yunshu Dai, Zhihua Xia, Chip Hong ChangarXiv 2026

TL;DR

VeriFi is a proactive, versatile watermarking framework that simultaneously achieves robust copyright protection, pixel-level tamper localization, and high-fidelity face recovery from deepfakes. By repurposing copyright signal degradation as a localization map and embedding a compact VAE-based semantic prior, it eliminates the traditional trade-off between image fidelity and forensic functionality.

What Problem Does This Paper Address?

With the explosion of AI-generated content (AIGC), deepfakes and malicious facial manipulations pose severe threats to media authenticity and copyright. While digital watermarking offers a proactive defense, existing "versatile" watermarking systems suffer from two major flaws:

  1. The Fidelity–Functionality Trade-Off: To localize where an image was tampered with, current methods embed large, explicit localization payloads. This extra data degrades the original image's visual quality and makes the watermark fragile under heavy generative editing.
  2. Irreversibility: Existing frameworks can tell you if and where an image was faked, but they cannot restore the original face, limiting their utility in legal or forensic scenarios where preserving the original evidence is critical.

VeriFi solves these issues by unifying copyright verification, precise localization, and high-fidelity content recovery into a single, payload-efficient framework.

Overview of the VeriFi framework

Methods

VeriFi consists of four tightly integrated components:

  • Unified Recovery-Copyright Watermarking (URW): Instead of embedding separate payloads for different tasks, the embedder injects a composite watermark ($W$) containing a discrete $n$-bit ownership code ($w_{cop}$) and a compact, low-dimensional facial latent vector ($z_{face}$) extracted from a pretrained Variational Autoencoder (VAE).
  • Watermark-Guided Forgery Locator: Content edits naturally corrupt the embedded watermark in the tampered regions. A dual-branch Swin-UNet compares multi-scale features of the edited image with the decoded watermark signals, using per-pixel cosine similarity to map out spatial inconsistencies and pinpoint the forgery ($\hat{M}$).
  • Watermark-Guided Content Recovery Network: A dual-stream Transformer uses the decoded semantic prior ($z_{face}$) and the predicted tamper mask ($\hat{M}$) to selectively reconstruct the original face ($\hat{I}_{ori}$) via spatially gated cross-attention, preventing semantic leakage into unaltered areas.
  • AIGC Attack Simulator: To train the network to withstand realistic deepfakes, the authors introduce a simulator that operates during training. It performs Latent Mixing (grafting features in the VAE latent space) followed by Image Blending (Poisson blending) to mimic sophisticated generative pipelines.
Figure 2: Overview of our VeriFi. (1) Unified Recovery-Copyright Watermark Embedder 𝐸𝑛𝑐inserts an ownership code 𝑤𝑐𝑜𝑝 and a compact facial signature 𝑧𝑓𝑎𝑐𝑒. (2) AIGC Attack Simulator performs Latent Mixing and Poisson blending to mimic realistic deepfake attacks during training. (3) Watermark Extractor 𝐷𝑒𝑐recovers ˆ𝑤𝑐𝑜𝑝and ˆ𝑧𝑓𝑎𝑐𝑒, reconstructs a coarse content proxy ˆ𝐼𝑏, and uses the decoded watermark signals to guide the Forgery Locator in predicting the manipulation map ˆ𝑀. (4) Watermark-Guided Content Recovery Network employs a dual-stream Transformer with spatially gated cross-attention to fuse the edited image, ˆ𝐼𝑏, and ˆ𝑀for selective content restoration.

Datasets

The framework was trained and evaluated on two standard high-resolution facial datasets:

  • CelebA-HQ: 30,000 celebrity images.
  • FFHQ: 70,000 diverse, high-quality face images.

To simulate real-world attacks during evaluation, the authors tested VeriFi against several advanced AIGC manipulation models, including SD Inpainting, HD-painter, E4S, InfoSwap, MaskFaceGAN, and SimSwap.

Key Insights and Ideas

  • Degradation as a Map: The core "aha moment" is that you don't need a dedicated watermark to find tampered pixels. Because generative edits destroy the local structure of a robust watermark, the absence or corruption of the decoded signal serves as an incredibly precise localization prior.
  • Semantic Compression for Recovery: Storing a full backup of an image inside itself is impossible without massive distortion. By compressing the face into a compact VAE latent space, VeriFi embeds a structural "cheat sheet" that provides enough semantic guidance for a Transformer to realistically rebuild the original face, even if it was completely swapped out.

Key Results

VeriFi was benchmarked against state-of-the-art passive detectors and active watermarking methods (like EditGuard, OmniGuard, and StableGuard):

  • Tamper Localization: VeriFi achieved outstanding localization accuracy on CelebA-HQ, yielding an F1 score of 0.946 on SD Inpainting, 0.975 on HD-painter, and 0.989 on Face Splicing, significantly outperforming passive and active baselines.
  • Face Recovery Quality: Under severe diffusion-based tampering (SD Inpainting), VeriFi restored faces with a PSNR of 31.05 dB and an SSIM of 0.894, preserving fine-grained facial details where other methods left visible artifacts.
  • Robustness: Even under heavy AIGC attacks and common degradations (like JPEG compression or Gaussian noise), VeriFi maintained an average watermark bit extraction accuracy of 98.78% for its 48-bit variant.

Limitations and Future Work

While VeriFi demonstrates excellent performance on static images, the authors note that the current framework is tailored specifically for human faces and static imagery. The authors state that future research will focus on extending this multi-task proactive defense framework to video content and exploring its applicability to other sensitive biometric modalities (such as voice or iris data).

Summary updated

BibTeX
@misc{yu2026high,
  author = {Peipeng Yu and Jinfeng Xie and Chengfu Ou and Xiaoyu Zhou and Jianwei Fei and Yunshu Dai and Zhihua Xia and Chip Hong Chang},
  title = {{High-Fidelity Face Content Recovery via Tamper-Resilient Versatile Watermarking}},
  year = {2026},
  eprint = {2603.23940},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.23940},
}
Figure