CheckMate! Watermarking Graph Diffusion Models in Polynomial Time

Roberto Gheda, Abele Mălan, Robert Birke, Maksim Kitsak, Lydia Y. ChenICLR 2026

As generative models for graphs—such as those used in drug discovery, molecular generation, or social network analysis—become increasingly powerful, the need for "data governance" has grown. Proving who owns or generated a synthetic dataset is critical for intellectual property and security. While watermarking is the standard solution in domains like images and text, applying it to graphs presents unique, computationally prohibitive challenges.

CheckWate is the first watermarking framework for graph diffusion models that offers polynomial-time verification while remaining invariant to graph isomorphism. By embedding watermark patterns into the eigenvalues of the model's latent space, CheckWate ensures that synthetic graphs can be traced back to their source even if their node indices are scrambled or their edges are modified.

The Challenge of Graph Watermarking

Watermarking graphs is notoriously difficult due to two "NP-hard" headaches:

  1. Graph Isomorphism (GI): A single graph can be represented by a staggering $N!$ different adjacency matrices simply by reordering the nodes. Most traditional watermarks are tied to a specific matrix representation. If an attacker simply swaps node indices, the watermark usually vanishes, rendering the protection useless.
Illustration of the Graph Isomorphism challenge: a single graph (a) can yield different adjacency matrices (b, c) depending on node ordering, which typically destroys standard watermarks.
  1. The Discrete-Continuous Gap: Diffusion models often generate data in a continuous latent space, which is then "quantized" into a discrete graph (composed of 0s and 1s). Reversing this process to extract a watermark is computationally exhausting and often requires solving the Graph Edit Distance (GED) problem, which is NP-hard.

Existing solutions either degrade the quality of the generated graphs or take exponential time to verify, making them impractical for large-scale use.

The CheckWate Framework

To bypass these bottlenecks, CheckWate moves the watermarking process entirely into the spectral domain.

  • Checkerboard Ensembles: Instead of starting the diffusion process with standard Gaussian noise, CheckWate uses "Checkerboard Ensembles." This technique injects a specific pattern into the eigenvalues of the initial noisy latent. In the spectral distribution, this creates distinct "blips" that stand out from the standard "bulk" distribution (the Wigner semicircle law).
  • Isomorphism Invariance: Because the eigenvalues of a matrix do not change when you permute its rows and columns, the watermark is naturally immune to node-shuffling attacks. The "spectral shortcut" realizes that while matching two graphs is hard, comparing their eigenvalue distributions is easy.
  • Approximate Dequantization: To verify the watermark, the model must "invert" the generated graph back into its noisy latent state. CheckWate uses a novel $O(N^3)$ algorithm that leverages graph eigenvectors to approximately reconstruct the continuous latent space without needing to solve the NP-hard GI problem.
  • Latent Sparsification: To protect against attackers who add or remove edges, CheckWate includes a robustness mechanism that "cleans" the reconstructed latent by zeroing out entries that are unlikely to have existed in the original noise.

Experimental Evaluation

The researchers evaluated CheckWate across four diverse graph datasets: Planar (synthetic graphs drawn on a plane without crossing edges), Tree (hierarchical structures), SBM (Stochastic Block Model graphs with community structures), and Proteins (real-world protein tertiary structures). They compared CheckWate against state-of-the-art baselines adapted from the image domain (Gaussian Shading and TreeRing) and a graph-specific Bipartite baseline.

Key Results

  • Unbeatable Robustness: Under isomorphism attacks (node shuffling), all baseline methods failed completely, dropping to a Z-score of 0. CheckWate maintained high detectability across all datasets.
  • High Fidelity: The watermark's strength is controlled by hyperparameters dictating the number and magnitude of the spectral "blips." CheckWate achieved a very high detectability Z-score with almost zero impact on the visual or structural quality of the graph. In the Proteins dataset, it even outperformed the unwatermarked reference in certain metrics.
  • Attack Resistance: The system remained highly detectable even when up to 20% of the graph's edges were deleted or added, or when 20% of the nodes were removed.
  • Efficiency: Because the dequantization and eigenvalue calculations scale polynomially ($O(N^3)$), verification is fast enough for practical, real-world applications.

Limitations and Future Work

While CheckWate represents a major leap forward for graph data governance, it has a few limitations. Currently, the framework is non-blind, meaning the owner needs the original reference noise to verify the watermark. Developing a "blind" version is a significant open research gap.

Additionally, the framework is optimized for models with continuous latents. Adapting it for discrete-latent models remains an area for future exploration. Finally, while empirical results show it is computationally difficult to forge the watermark without the key, a formal mathematical proof of resistance to forgery after the diffusion process is still needed.

Summary updated

BibTeX
@inproceedings{gheda2026checkmate,
  author = {Roberto Gheda and Abele Mălan and Robert Birke and Maksim Kitsak and Lydia Y. Chen},
  title = {{CheckMate! Watermarking Graph Diffusion Models in Polynomial Time}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=92fliNrbxY},
}
Figure