Editing Partially Observable Networks via Graph Diffusion Models

Puja Trivedi, Ryan A. Rossi, David Arbour, Tong Yu, Franck Dernoncourt, Sungchul Kim, Nedim Lipka, Namyong Park, Nesreen K. Ahmed, Danai Koutra

TL;DR

SGDM (Subgraph-based Diffusion Model) brings the power of image "in-painting" to the world of graph data. By training on sampled subgraphs and using global "GPS-like" coordinates for nodes, it allows researchers to precisely edit large, noisy networks—removing erroneous edges, filling in missing connections, and even performing "style transfer" to alter local structural properties.

The Challenge of Imperfect Networks

Real-world networks, from social circles to protein interactions, are rarely perfect. They are often "partially observable," meaning they contain "noise" (extra edges that shouldn't exist) or are "incomplete" (missing edges that should be present).

While Diffusion Models have revolutionized image editing (e.g., AI removing a photobomber from a picture or filling in missing backgrounds), applying them to graphs is notoriously difficult. Existing Graph Denoising Diffusion Models (GDDMs) face two major hurdles:

  1. Scalability: Most models have quadratic complexity relative to the number of nodes, making them crawl on networks larger than a few hundred nodes.
  2. Overfitting: When trained on a single large, noisy graph, these models tend to "memorize" the noise rather than learning the underlying clean structure.

To address this, researchers have introduced a framework to perform surgical "edits" on these imperfect networks without needing to regenerate the entire graph from scratch.

The SGDM Framework

To overcome scalability and overfitting issues, the authors propose SGDM (Subgraph-based Diffusion Model). Its architecture rests on three main pillars:

  • Subgraph Sampling & Stitching: Instead of processing the whole graph at once, SGDM breaks it down into smaller, manageable chunks (specifically, 2-hop ego-networks). The model learns the distribution of these local structures, which bypasses the scalability bottleneck.
  • Global Context (LPEs): To prevent the model from losing track of where a subgraph belongs, the authors use Laplacian Positional Encodings (LPEs). Think of these as unique structural coordinates that tell the model, "This subgraph belongs in the dense center," or "This one is on the sparse periphery."
  • Guided Reverse Process: The authors adapt the diffusion "reverse process" for three specific editing tasks.
Overview of the SGDM framework and its three primary graph editing tasks.

As illustrated above, SGDM supports three primary refinement tasks:

  • (T1) Denoising: The model identifies and removes noisy edges that don't fit the learned "clean" distribution.
  • (T2) Expansion: Similar to image in-painting, the model recovers missing subgraphs and fills in missing edges while keeping the observed ones fixed.
  • (T3) Style Transfer: Using classifier guidance, the model can steer a subgraph toward specific properties, such as adapting graph attributes to increase the maximum degree of a node.

Experimental Setup and Datasets

The researchers evaluated SGDM on three distinct types of networks, intentionally corrupting them by randomly adding or removing 5–10% of the edges to test the model's recovery capabilities:

  • BA-Shapes: A synthetic graph where "house-shaped" motifs are attached to a random Barabási-Albert graph. This is excellent for testing if the model can recover specific, known structures.
  • Cora: A standard citation network where nodes are papers and edges are citations.
  • PolBlogs: A real-world network of political blogs, characterized by high density and community clusters.

Key Insights and Results

Treating graph completion as a generative "fill-in-the-blank" task is a powerful insight. By masking parts of the adjacency matrix, the diffusion model learns to predict the most likely structural "texture" to fill the gap. However, a local subgraph doesn't contain enough information to fix itself; it needs its "address" in the global network. The paper shows that adding global context (LPEs) is the "secret sauce" that prevents the model from generating generic, disconnected blobs.

To measure success, the authors introduced a Consensus metric. Since diffusion is stochastic, they run it multiple times. If the model consistently adds the same missing edge across different runs, it indicates high confidence that the edge truly belongs there.

Performance comparison of SGDM against baselines across multiple datasets and metrics.

As seen in the performance charts, SGDM yields impressive results across multiple dimensions:

  • Superior Denoising: On the BA-Shapes dataset, SGDM achieved a Consensus score of nearly 1.0 (0.996) for denoising, meaning it almost perfectly identified which edges were noise versus part of the original "house" motifs.
  • Scalability: Unlike previous models that struggle with 500+ nodes, SGDM successfully handled the Cora dataset (~2,500 nodes) by decomposing it into subgraphs.
  • Outperforming Baselines: SGDM consistently beat baselines like EDGE, DiGRESS, and GDSS across metrics including Consensus, Diversity, and Sparsity.
  • Effective Style Transfer: The model successfully modified local graph properties with significantly lower error rates than standard graph models, provided that global context was used to stabilize the training.

Limitations and Future Work

While SGDM is a significant leap forward for graph generation and editing, the authors note a few areas for future improvement:

  • Dynamic Networks: The current model works on static snapshots. Real networks evolve over time, and future versions would need to handle temporal "edits."
  • Downstream Impact: While the paper proves the structure is refined, more work is needed to quantify exactly how much this improves specific downstream tasks like node classification or recommendation accuracy.
  • Attribute Editing: The current focus is primarily on the "topology" (the edges). Extending this to "edit" node features (like user profiles in a social network) simultaneously with the edges is a promising next step.

Summary updated

BibTeX
@inproceedings{trivedi2024editing,
  author = {Puja Trivedi and Ryan A. Rossi and David Arbour and Tong Yu and Franck Dernoncourt and Sungchul Kim and Nedim Lipka and Namyong Park and Nesreen K. Ahmed and Danai Koutra},
  title = {{Editing Partially Observable Networks via Graph Diffusion Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=2cEhQ4vtTf},
}
Figure