Rel-Zero: Harnessing Patch-Pair Invariance for Robust Zero-Watermarking Against AI Editing

Pengzhen Chen, Yanwei Liu, Xiaoyan Gu, Xiaojun Chen, Wu Liu, Weiping Wang

TL;DR

Rel-Zero is a novel "zero-watermarking" framework that protects image copyright against AI-driven editing without altering a single pixel of the original image. It exploits a newly discovered geometric property: while generative AI models drastically change absolute pixel values, the relative distance between pairs of image patches remains remarkably invariant. By learning and storing these stable relationships externally, Rel-Zero achieves unprecedented robustness against aggressive diffusion-based manipulations while preserving perfect image fidelity.

What Problem Does This Paper Address?

The explosion of diffusion-based image editing tools (like InstructPix2Pix and ControlNet) has made realistic image manipulation effortless, creating severe challenges for copyright protection and content authentication.

Traditional watermarking injects hidden signals directly into image pixels. However, to survive generative AI editing—which completely reconstructs pixel data—these embedded signals must be applied heavily, causing noticeable artifacts and degrading image quality. This trade-off is unacceptable in high-precision fields like medical imaging, autonomous driving, or professional digital art.

"Zero-watermarking" avoids this by extracting a unique "fingerprint" from the original image and storing it in an external database, leaving the original pixels untouched. Unfortunately, existing zero-watermarking methods rely on fragile high-frequency details or absolute feature descriptors that generative models are explicitly designed to alter or rewrite. As a result, they fail catastrophically when faced with modern AI editing. Rel-Zero bridges this gap by providing a zero-watermarking solution that is actually robust against generative AI.

Methods

The core innovation of Rel-Zero is moving away from absolute image features and focusing instead on Stable Relational Geometry.

The framework consists of three main stages:

  1. Stable Patch Pair Identification: To find out which parts of an image maintain their relationship during editing, the authors pass the input image through a pre-trained Variational Autoencoder (VAE). The VAE acts as a computationally lightweight proxy that simulates the content-preserving and smoothing effects of a full generative diffusion pipeline. Features are extracted from both the original and VAE-reconstructed images using a Vision Transformer (ViT). The system computes the $L_2$ distances between all patch pairs and identifies the top-$K$ most stable pairs (where the distance changed the least) to serve as the ground-truth target ($E_g$).
  2. Patch Relational Learning: Using only the original image features, a simple neural network called an edge predictor ($\Phi$) is trained to predict these stable patch pairs. It uses a Binary Cross-Entropy loss to align its confidence scores with the ground-truth stable set.
  3. Watermark Generation and Verification:
  4. Generation: The top-$K$ most confident patch pairs predicted by the network are hashed/encrypted and stored externally as the zero-watermark ($E_p$).
  5. Verification: To verify a suspect image, the same predictor extracts its top-$K$ pairs ($E'_p$). The verification score is simply the Jaccard-style overlap ratio between the original and suspect pair sets.
Framework of the proposed Rel-Zero method, illustrating stable patch-pair identification and relational learning.

Datasets

  • Training: The network was trained on the widely used COCO dataset.
  • Evaluation: The authors evaluated the model on a validation set of 10,000 images sampled from the UltraEdit and MagicBrush datasets. This evaluation suite was meticulously split into specific tasks: 1,000 images for deterministic regeneration, 1,000 for global editing, 4,000 for local editing, and 4,000 for common image degradations.

Key Insights and Ideas

  • Relational Stability over Absolute Appearance: Generative models fundamentally alter absolute pixel values and local descriptors, but they respect the internal structural consistency and layout of the image due to fidelity constraints (like perceptual losses).
  • Near-Affine Invariance: The authors empirically prove that editing transformations act as a global similarity transformation on the feature-space manifold. As shown in their correlation analysis, post-edit patch distances map linearly to pre-edit patch distances with a near-perfect Spearman correlation ($\rho \approx 1$).
  • The VAE as an Edit Simulator: Instead of running expensive diffusion model loops during watermark generation, a simple VAE component is sufficient to expose which patch relationships will survive a generative edit.
Analysis showing that patch-pair distances maintain a tight linear correlation before and after various AI editing methods.

Key Results

  • Perfect Fidelity: Because it is a zero-watermarking method, Rel-Zero achieves a perfect PSNR of $\infty$ and an SSIM of 1.000, outperforming all embedding-based methods that inherently introduce distortion.
  • Superior Robustness against AI Edits: Under aggressive generative edits where prior zero-watermarking baselines (like ConZWNet and FGPCET) dropped to near 0% True Positive Rate (TPR), Rel-Zero maintained remarkably high detection rates at a strict 0.1% False Positive Rate:
  • 97.43% TPR against ControlNet-Inpainting
  • 96.55% TPR against UltraEdit
  • 89.65% TPR against InstructPix2Pix
  • Natural Resilience to Common Distortions: Without any explicit adversarial training, Rel-Zero naturally resisted standard image processing attacks, achieving over 95% TPR against Gaussian noise, scaling, contrast, and brightness adjustments.

Limitations and Future Work

While Rel-Zero marks a massive leap forward, the authors note that large-scale semantic changes remain a challenge. In scenarios involving extreme global edits or deterministic regeneration (where the entire image context is rewritten), the relational structure can be heavily distorted, causing the verification TPR to dip to around 85%.

Additionally, modeling all $N \times N$ patch pairs introduces a quadratic scaling factor, which the authors managed by keeping the patch count reasonable ($N=196$). Future work could explore more complex relational geometries beyond simple pairwise distances or extend this framework to video and 3D generative models.

Summary updated

BibTeX
@inproceedings{chen2026rel,
  author = {Pengzhen Chen and Yanwei Liu and Xiaoyan Gu and Xiaojun Chen and Wu Liu and Weiping Wang},
  title = {{Rel-Zero: Harnessing Patch-Pair Invariance for Robust Zero-Watermarking Against AI Editing}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=dUtexeohga},
}
Figure