NWaaS: Nonintrusive Watermarking as a Service for X-to-Image DNN

Haonan An, Guang Hua, Yu Guo, Hangcheng Cao, Susanto Rahardja, Yuguang Fang · DOI

Training state-of-the-art Deep Neural Networks (DNNs) is an resource-intensive endeavor, making the protection of model intellectual property (IP) a critical concern. Traditional watermarking techniques—embedding hidden signals to prove ownership—typically require modifying model weights or fine-tuning behavior. This paper introduces NWaaS (Nonintrusive Watermarking as a Service), a paradigm shift that enables IP protection without altering a single parameter of the original model.

The Problem: The Cost of Intrusion

Existing watermarking methods (white-box, black-box, and box-free) are inherently intrusive. By requiring fine-tuning to "bake in" the watermark, they introduce three significant drawbacks:

  1. Fidelity Loss: Weight modifications often degrade the quality of the model's output.
  2. Unpredictable Behavior: In large-scale models, even minor weight shifts can cause unexpected changes in how the AI responds to prompts.
  3. Trust Barriers: In a standard "Watermarking as a Service" (WaaS) model, owners must provide their proprietary weights to a third party, creating a massive security risk.

The NWaaS Paradigm and ShadowMark

To address these issues, the authors propose ShadowMark, a framework that treats the model ($M_\theta$) as an immutable, frozen component. Instead of modifying the model, ShadowMark establishes a nonintrusive side channel within the model's API.

The NWaaS paradigm shifts from a trusted third-party model (WaaS) to a trustless system where the model remains unmodified.

As shown in the comparison between WaaS and NWaaS, the nonintrusive approach allows model owners to define their own keys and verify ownership without exposing their raw model weights to a third party. This creates a "trustless" environment for IP protection.

Technical Framework: ShadowMark Architecture

ShadowMark functions as a "wrapper" around the model's API, consisting of two primary trainable components: the Key Encoder ($G_\gamma$) and the Watermark Decoder ($D_\delta$).

The ShadowMark architecture uses a frozen model $M_\theta$ and learns a side channel for watermark extraction via a Key Encoder and Watermark Decoder.

How it Works:

  • Key Encoder ($G_\gamma$): Transforms a secret, owner-defined key ($k$) into a specific "trigger" input (often abstract noise) that is fed into the frozen model.
  • Watermark Decoder ($D_\delta$): Analyzes the model's output resulting from that trigger and decodes it back into the owner's original watermark image ($m$).
  • Side-Channel Separation: The system is trained to ensure that normal user queries pass through the model unaffected, while only the specific trigger key activates the watermark extraction process.

Key Insights and Results

ShadowMark was validated across diverse tasks, including Image-to-Image (dehazing, style transfer), Noise-to-Image (GANs), and Text-to-Image (Stable Diffusion).

  • Absolute Fidelity: Because the model $M_\theta$ is never modified, its performance on standard tasks remains at 100% of its original state, breaking the traditional fidelity-robustness trade-off.
  • Verification Accuracy: In 15 out of 16 experiments, the Normalized Cross-Correlation (NCC) between the extracted and original watermark was > 0.99.
  • Robustness to Theft: The watermark often persists even if an attacker attempts to "steal" the model by training a surrogate model to mimic the original's outputs. In 10 out of 12 successful stealing attacks, the watermark remained detectable.
  • Security: The system proved immune to brute-force "ambiguity attacks." Even after 1 million random guesses, the probability of an attacker finding a valid key was zero.

Conclusion

NWaaS via ShadowMark represents a significant advancement in AI IP protection. By decoupling the watermark from the model weights, it provides a secure, high-fidelity, and trustless solution for protecting generative models in an increasingly competitive landscape. Future work may extend this nonintrusive approach to other domains, such as Large Language Models (LLMs) and audio generation.

Summary updated

BibTeX
@misc{an2025nwaas,
  author = {Haonan An and Guang Hua and Yu Guo and Hangcheng Cao and Susanto Rahardja and Yuguang Fang},
  title = {{NWaaS: Nonintrusive Watermarking as a Service for X-to-Image DNN}},
  year = {2025},
  eprint = {2507.18036},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.18036},
}
Figure