Lossless Reversible Watermarking for AIGC with Applications in Authentication

Yupeng Qiu, Han Fang, Ee-Chien ChangarXiv 2026

In the rapidly evolving world of AI-Generated Content (AIGC), the line between a "permissible edit" and "malicious tampering" is often blurry. Traditional watermarking tells you if an image was AI-generated, but it rarely helps you verify if the content is still authentic.

A new paper from researchers at the National University of Singapore and USTC introduces Lossless Reversible Watermarking (LRW), a framework that doesn't just tag an image—it embeds the "digital DNA" required to perfectly reconstruct the original, unedited version.

TL;DR

LRW leverages the fact that AI images are generated from low-entropy inputs (prompts and seeds) to embed a "generative recipe" directly into the image's latent space. This allows a verifier to exactly recover the original watermarked image, providing a ground-truth reference to detect even the most sophisticated adaptive forgeries.

What Problem Does This Paper Address?

As AIGC becomes a staple of digital media, we face two major hurdles in authentication:

  1. Adaptive Forgery: Sophisticated attackers can perform "reprompting" attacks—reusing the watermarked noise of an image but changing the prompt to generate new, fraudulent content that still carries a "valid" watermark.
  2. Dynamic Requirements: What counts as "authentic" depends on the context. A news organization might allow color correction but forbid removing a person from a photo. Traditional watermarks often bind to a fixed semantic description, making them too rigid for diverse real-world applications.

The authors argue that the best way to authenticate an image is to have the exact original as a reference. However, storing every generated image in a massive database is impractical. LRW solves this by making the image itself carry the instructions for its own reconstruction.

Methods

The core "aha!" moment of this paper is realizing that while an image contains millions of pixels, its "source code" (the prompt and the random seed) is relatively small.

Figure 1. Lossless Reversible Watermarking (LRW). The sender embeds the compressed prompt, seed, decoding metadata, and HMAC tag as a watermark message. The receiver verifies the extracted message, reconstructs the prompt and watermarked initial noise, and recovers the original image.

The LRW Workflow: * Compression: The generation prompt is losslessly compressed using a Large Language Model (LLM) and arithmetic coding. * Message Construction: This compressed prompt is bundled with the random seed, decoding metadata, and a cryptographic HMAC (Hash-based Message Authentication Code). The HMAC ensures that an attacker cannot forge the recovery information. * Latent Embedding: This message is embedded into the initial Gaussian noise of a Diffusion Model using robust latent-space watermarking techniques (like PRC or T2SMark). * Recovery & Verification: To verify an image, the system inverts the diffusion process to extract the message. If the HMAC is valid, it decompresses the prompt and re-runs the generation with the original seed to produce a bit-perfect copy of the original image.

Datasets

The researchers evaluated their framework using:

  • MS-COCO 2017: A standard dataset for evaluating concise image captions.
  • Stable Diffusion Prompts (SDP): A dataset of more complex, "pro-level" prompts to test the limits of their lossless compression.
  • W-Bench: Used specifically to evaluate how well the watermark survives instruction-guided image editing (e.g., "make the cat a robot").

Key Insights and Ideas

  • Separation of Recovery and Verification: By focusing on recovering the original image rather than just detecting a watermark, the authors move the "logic" of authentication to the end-user. This allows for "Compare(y, x)" functions that can be tailored to specific needs after the image has been circulated.
  • Exploiting Low Entropy: Images are high-dimensional, but their generative origins are low-dimensional. This is a clever "cheat code" for reversible watermarking that wouldn't work for traditional photography.
  • Cryptographic Unforgeability: The use of HMAC is critical. It prevents an attacker from extracting a watermark and re-embedding it into a fake image with a fake "recovery recipe."

Key Results

The framework was tested on Stable Diffusion 2.1 and showed impressive resilience:

  • Compression Efficiency: A payload budget of 1,500 bits was enough to cover 100% of MS-COCO prompts and 99.83% of complex SDP prompts.
  • Robustness: The system achieved near 100% recovery rates under standard distortions like JPEG compression (quality 60), Gaussian noise, and blurring.
  • Forgery Detection: In head-to-head tests against semantic-based methods (like SEAL and SemBind), LRW-Auth provided superior protection against reprompting attacks because it could compare the forgery against the bit-perfect original.
Figure 4. Visual effects of the evaluated distortions. An LRW (T2SMark) image from SDP and its six transformed versions at the settings in Tables 2 and 3. Top: full images with the same region marked in red. Middle: fourfold enlargement of that region. Bottom: mean absolute RGB differences from the original region, shown on a shared linear color scale (8-bit intensity units, saturated at 64).

Limitations and Future Work

While powerful, the authors acknowledge several constraints:

  • Computational Overhead: Recovering the original image requires re-running the diffusion generation process, which is computationally expensive compared to simple watermark detection.
  • Model Dependency: The verifier must use the exact same model version and numerical settings as the creator to achieve bit-perfect reconstruction.
  • Payload Limits: Extremely long or "garbage" prompts might exceed the capacity of current latent-space watermarking methods, though the authors suggest this is rare in practice.

Future work could involve optimizing the recovery speed or developing "blind" versions that require less coordination between the creator and the verifier.

Summary updated

Abstract

AIGC watermarking is commonly used for tracing, but it can also support applications such as authentication and tampering detection. We study lossless reversible watermarking, which enables exact recovery of the original watermarked image after permissible distortions. By exploiting the relatively low entropy of the information required for image generation, together with robust latent-space watermarking, we design a framework that preserves sufficient information for lossless recovery. We then apply the framework to AIGC authentication, which generally faces two key challenges. First, the authentication mechanism must resist adaptive adversaries. Second, the content relevant to authentication, such as visual designs or expressed messages, may depend on application requirements that are not known at generation time. To solve these difficulties, we incorporate cryptographic message authentication to provide unforgeability against adaptive attacks. Lossless recovery provides the original image as reference evidence, after which a suitable analyzer can be selected to make the authentication decision. Experiments on Stable Diffusion demonstrate exact recovery under a wide range of distortions.
BibTeX
@misc{qiu2026lossless,
  author = {Yupeng Qiu and Han Fang and Ee-Chien Chang},
  title = {{Lossless Reversible Watermarking for AIGC with Applications in Authentication}},
  year = {2026},
  eprint = {2611.23395},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.23395},
}
Figure