RingID: Rethinking Tree-Ring Watermarking for Enhanced Multi-key Identification

Hai Ci, Pei Yang, Yiren Song, Mike Zheng Shou

Abstract

As diffusion-based generative models become ubiquitous, the need for robust watermarking to ensure copyright protection and accountability has intensified. While existing methods like Tree-Ring Watermarking excel at binary verification (detecting if an image is AI-generated), they often fail at multi-key identification—the ability to distinguish between thousands of unique users. This paper introduces RingID, a framework that addresses the fundamental design flaws of previous frequency-domain watermarking. By implementing lossless imprinting, multi-channel heterogeneous patterns, and spatial centering, RingID achieves high identification accuracy and geometric robustness without compromising image quality.

Introduction

The rapid proliferation of AI-generated content has necessitated the development of invisible watermarks that can survive common image transformations. Tree-Ring Watermarking emerged as a leading technique by imprinting patterns into the initial noise of the diffusion process. However, research from the National University of Singapore’s Show Lab reveals that Tree-Ring's success in binary detection is largely a byproduct of an unintentional distribution shift rather than a robust identification signal.

RingID is proposed as a significant evolution of this concept, moving beyond simple "is this AI?" verification to a system capable of robustly identifying thousands of unique keys. This capability is essential for practical applications where a model provider must trace a specific image back to a specific user account.

Addressing the Flaws in Tree-Ring Watermarking

The authors' investigation into the original Tree-Ring method yielded a critical "eureka" moment: the method's robustness was partially a side effect of discarding the imaginary part of the frequency-domain noise during imprinting. This process shifts the $\ell_1$ distance by a factor of $\sqrt{3}/2$. While this shift helps distinguish AI-generated images from human-made ones (verification), it provides no utility for identification because every unique key undergoes the same mathematical shift, causing overlapping distributions.

Furthermore, Tree-Ring patterns are notoriously fragile. Because the energy is often concentrated in the corners of the frequency spectrum, simple geometric transformations like rotation or cropping easily destroy the watermark signal.

The RingID Framework

To transform tree-ring patterns into a viable identification system, RingID introduces four technical innovations:

  1. Multi-Channel Heterogeneous (MCH) Watermarking: Rather than relying on a single watermark type, RingID imprints diverse patterns (such as Gaussian noise and structured tree-rings) across different channels of the initial diffusion noise. This allows the extraction process to adaptively select the most "survivable" watermark based on the specific attack the image has undergone (e.g., JPEG compression vs. rotation).
  2. Lossless Imprinting: To prevent the distribution shift that hindered identification in previous methods, RingID applies a mathematical constraint ensuring the imprinted pattern remains intact when converted between the frequency and spatial domains. This preserves the unique signature of each key.
  3. Discretization: Previous methods sampled ring values from a continuous Gaussian distribution, leading to keys that were statistically too similar. RingID utilizes discrete values ($\pm\alpha$), which maximizes the distance between different keys and significantly improves the success rate of multi-user identification.
  4. Spatial Centering: To combat geometric vulnerability, RingID circularly shifts the watermark to the center of the spatial domain. By moving the signal away from the edges, the watermark becomes significantly more resilient to rotation and peripheral transformations.

Experimental Evaluation

The researchers evaluated RingID across several versions of Stable Diffusion (v1.4, v1.5, and v2.1) to ensure universality. To measure the impact on image quality, they utilized the COCO 2017 dataset to calculate the Frechet Inception Distance (FID) and the Stable-Diffusion-Prompts dataset (5,000 prompts) to assess text-image alignment via CLIP scores.

Identification Performance

The most striking result is the massive boost in identification accuracy. In a benchmark involving 2,048 unique keys, RingID maintained an identification accuracy of 81.9%. In contrast, the original Tree-Ring method's accuracy plummeted to just 6.6% under the same conditions. Even in simple binary verification, RingID improved the Area Under the Curve (AUC) from 0.975 to 0.995.

Robustness to Attacks

RingID demonstrated superior resilience against common image manipulations. Most notably, under a 75° rotation attack—which typically destroys frequency-based watermarks—Tree-Ring’s identification accuracy fell to nearly 0%, while RingID maintained a robust 86% accuracy.

Image Fidelity

Crucially, these improvements do not come at the cost of visual quality. RingID maintained a CLIP score of 0.365 and an FID of 26.13, metrics that are virtually identical to unwatermarked images. This ensures that the protection remains imperceptible to the end-user.

Conclusion and Future Work

RingID represents a significant step forward in the traceability of generative AI. By rethinking the mathematical foundations of frequency-domain watermarking, the authors have created a system that is both highly discriminative and robust to geometric shifts.

Despite these gains, the authors note that RingID—like most current watermarking techniques—remains vulnerable to extreme cropping and scaling (C&S). Because the watermark relies on the global frequency spectrum, significant loss of image area disrupts the pattern. Future research will likely focus on transform domains that offer greater resilience to these specific spatial distortions.

Summary updated

BibTeX
@inproceedings{ci2024ringid,
  author = {Hai Ci and Pei Yang and Yiren Song and Mike Zheng Shou},
  title = {{RingID: Rethinking Tree-Ring Watermarking for Enhanced Multi-key Identification}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73390-1\_20},
}
Figure