DRGW: Learning Disentangled Representations for Robust Graph Watermarking

Jiasen Li, Yanwei Liu, Zhuoyi Shang, Xiaoyan Gu, Weiping Wang

TL;DR

DRGW is the first graph watermarking framework to leverage disentangled representation learning, successfully separating a graph's core structural features from the watermark signal. By combining an adversarial encoder, a lossless invertible neural network, and a structure-aware editor, it achieves near-perfect watermark detectability and exceptional robustness without sacrificing the graph's original utility.

What Problem Does This Paper Address?

Graph data is foundational to modern web applications, from social networks to recommendation systems. Sharing this data across organizations drives innovation but introduces massive security risks, such as intellectual property theft and unauthorized commercial exploitation. While digital watermarking is a proven solution for multimedia and text, applying it natively to graphs is notoriously difficult due to properties like permutation invariance.

Existing graph watermarking approaches generally fall into two categories, both of which suffer from fundamental flaws:

  1. Structure-space watermarking: Directly modifies the graph topology. This makes the watermark fragile, highly dependent on local substructures, and easily destroyed by minor perturbations.
  2. Latent-space watermarking: Embeds watermarks into continuous representation spaces. However, this leads to information entanglement, where the watermark signal distorts the graph's functional utility. Furthermore, when a standard decoder converts these continuous representations back into a discrete graph, it suffers from discretization-induced degradation, treating the faint watermark signal as noise and discarding it.
Conceptual comparison of DRGW with existing schemes.

DRGW (Disentangled Robust Graph Watermarking) addresses these dual challenges of information entanglement and discretization loss.

Methods

The DRGW framework introduces three synergistic innovations to achieve robust, transparent, and detectable graph watermarking:

  1. Disentangled Encoder: Using a Graph Isomorphism Network (GIN) backbone, the encoder splits the input graph into two orthogonal latent subspaces: an invariant structural representation ($h_s$) and a watermark carrier ($h_w$). It enforces structural invariance via a contrastive loss (against node/edge perturbations) and forces statistical independence between the two spaces using an orthogonality loss.
  2. Graph-aware Invertible Neural Network (INN): To maximize detectability, the watermark injection must be perfectly reversible. DRGW passes the carrier $h_w$ through a conditional INN, where the bijective mapping is conditioned on the stable structural features ($h_s$). The watermark vector $w$ is then injected cleanly into this latent space.
  3. Structure-aware Editor: Instead of using a standard graph decoder (which suffers from quantization errors), DRGW employs a purpose-built editor. It uses a dyadic affinity predictor to compute editing scores based on both the modified carrier and the structural anchor ($h_s$), translating the continuous latent watermark into a precise, robust set of discrete edge flips (an edit plan).
Architecture of the DRGW framework showing embedding and verification pipelines.

For Watermark Verification, the framework extracts the carrier from a suspect graph using the frozen shared encoder and INN, then applies a rigorous statistical hypothesis test (Neyman-Pearson lemma) to confirm ownership while strictly controlling the false-positive rate.

Datasets

The authors conducted a comprehensive evaluation across 18 real-world datasets spanning 6 diverse categories:

  • Social Networks: Facebook (ego-net), Epinions, Pokec, LiveJournal
  • Academic Networks: Patents, ogbn-arxiv, DBLP
  • Knowledge Graphs: MIND, YAGO3-10, ogbl-wikikg2
  • E-commerce & Recommendation: Last-FM, Amazon Co-purchasing, ogbn-products
  • Web Graphs: web-Stanford, BerkStan, web-Google
  • Road Networks: roadNet-TX, roadNet-CA

Key Insights and Ideas

  • The Power of Orthogonality: By mathematically forcing the watermark carrier and structural representations to be orthogonal, the authors ensure that any modifications made to embed the watermark have a negligible impact on the graph's downstream performance (e.g., link prediction).
  • Anchoring to Structure: Conditioning both the INN and the Editor on the invariant structural representation ($h_s$) ensures the watermark is placed in the most topologically stable locations, allowing it to survive aggressive structural attacks.
  • Bypassing the Generative Bottleneck: Moving away from standard generative decoders (like VAEs) to a discrete "editor" prevents the faint watermark signal from being filtered out as noise during graph reconstruction.

Key Results

DRGW was evaluated against state-of-the-art baselines, including Towards [41] (structure-space) and KGMark [28] (latent-space):

  • Near-Perfect Detectability: On clean, unattacked graphs, DRGW consistently achieves an Area Under the ROC Curve (AUC) of 0.998 or higher across all six dataset categories.
  • Exceptional Robustness: Under severe structural attacks—such as a 50% node deletion or 50% edge flipping—DRGW maintains high AUC scores (e.g., 0.970 AUC under 50% node deletion on Academic Networks), vastly outperforming naive baselines which collapse to near-random guessing. It also successfully resists advanced adaptive embedding attacks (NEA and L2 Metric).
  • State-of-the-Art Transparency: DRGW slashes functional utility degradation. For instance, on Social Networks, it reduces the link prediction performance drop to just 0.72% (compared to 2.85% for a naive entangled baseline).

Limitations and Future Work

  • Focus on Topology: DRGW currently focuses primarily on graph topology. The authors note that explicitly modeling rich node and edge semantics (type-aware disentanglement) is a compelling direction for future work to better handle highly heterogeneous graphs.
  • Computational Complexity: While significantly more efficient than diffusion-based iterative sampling methods (like KGMark), DRGW's multi-component architecture introduces higher computational overhead than simple, non-robust structure-space modifications.

Summary updated

BibTeX
@inproceedings{li2026drgw,
  author = {Jiasen Li and Yanwei Liu and Zhuoyi Shang and Xiaoyan Gu and Weiping Wang},
  title = {{DRGW: Learning Disentangled Representations for Robust Graph Watermarking}},
  booktitle = {The Web Conference},
  year = {2026},
  doi = {10.1145/3774904.3792543},
}
Figure