Deep Generative Models for Subgraph Prediction

Erfaneh Mahmoudzadeh, Parmis Naddaf, Kiarash Zahirnia, Oliver Schulte · DOI

TL;DR

This paper introduces "subgraph queries," a novel task in deep graph learning that aims to predict multiple components (links, node labels, features) of a target subgraph based on observed evidence. They achieve this by extending the Variational Graph Auto-Encoder (VGAE) to a generative model capable of joint prediction, demonstrating superior performance over independent prediction baselines.

What Problem Does This Paper Address?

Traditional graph learning tasks like link prediction and node classification focus on predicting individual elements within a graph. However, in many real-world scenarios, these components are interdependent. For instance, predicting whether two actors will collaborate on a movie (link prediction) and predicting the movie's genre (node classification) are related. This paper addresses the limitation of these isolated tasks by proposing "subgraph queries," a more comprehensive approach that jointly predicts multiple related components of a target subgraph, given an observed subgraph as evidence. This allows for a more holistic understanding and prediction within complex relational data.

Methods

The core of the proposed solution is an extension of the Variational Graph Auto-Encoder (VGAE), termed VGAE+. This model is trained inductively, meaning it can generalize to unseen nodes and graph structures. The VGAE+ is augmented with decoders for reconstructing not only links but also node features and labels, allowing it to model a joint distribution over these components.

Key methodological contributions include:

  • Joint Prediction Framework: VGAE+ is trained to jointly predict links, node features, and node labels, moving beyond single-task prediction.
  • Bayesian Optimization for Hyperparameters: A Bayesian optimization approach is used to tune the weighting of link, feature, and label reconstruction objectives, adapting the model's focus to the specific domain.
  • Zero-Shot Inference: The paper introduces deterministic and sampling-based (Monte Carlo) inference methods that allow the trained VGAE+ model to answer subgraph queries without requiring retraining. This is crucial for practical deployment where query types might be unknown in advance.
  • Inductive Training: The model is trained on a subset of nodes and then evaluated on unseen nodes, making it applicable to dynamic or evolving graphs.

Datasets

The authors evaluate their approach on six benchmark datasets:

  • Cora: Citation network (machine learning papers).
  • ACM: Citation network (heterogeneous: authors, papers, subjects).
  • IMDb: Movie dataset (heterogeneous: movies, actors, directors).
  • CiteSeer: Citation network (machine learning papers).
  • Photo & Computers: Amazon co-purchase graphs (nodes represent goods, links indicate co-purchase).

These datasets are standard in graph learning research and cover both homogeneous and heterogeneous graph structures. The paper does not introduce new benchmark datasets but rather applies existing ones to the novel subgraph query task.

Key Insights and Ideas

  • The Power of Joint Prediction: The most significant insight is that jointly predicting multiple related graph components (links, labels, features) leads to superior performance compared to predicting them independently. This highlights the inherent dependencies within graph structures that are missed by traditional methods.
  • Generative Models for Flexible Queries: Using a generative model like VGAE+ allows for flexible query answering. Unlike discriminative models trained for specific tasks, a generative model can handle queries of varying sizes and types without retraining, making it highly practical for real-world applications.
  • Inductive Inference is Key: The ability to perform inductive inference (generalizing to unseen nodes) is critical for making subgraph prediction useful in dynamic environments where new entities constantly emerge.
  • Sampling vs. Deterministic Inference: While deterministic inference is faster, Monte Carlo (sampling-based) inference often yields better accuracy, suggesting that capturing the uncertainty in the latent space is beneficial for complex subgraph predictions.

Key Results

The paper demonstrates that their VGAE+ model, using both deterministic and Monte Carlo inference, consistently outperforms independent prediction baselines across various subgraph query types (single neighbor, neighborhood, single link, joint link, single node, joint node) and datasets.

  • Subgraph Queries: Improvements in AUC scores range from 0.06 to 0.2 points compared to independent baselines.
  • Inductive Settings: VGAE+ shows particularly strong performance in inductive settings, where target nodes are unseen during training, highlighting its generalization capabilities.
  • Competitive with Single-Task Methods: For tasks that can be framed as single-component predictions (e.g., link prediction or node classification), VGAE+ inference is competitive with state-of-the-art specialized methods.
  • Ablation Studies: The results confirm the importance of all components of the VGAE+ objective function (link, feature, and label reconstruction) for achieving good performance.

Limitations and Future Work

  • Homogeneous Graphs: The current evaluation is primarily on homogeneous graphs with a single link type. The authors suggest extending the approach to knowledge graphs (heterogeneous with multiple relation types) using a relational VGAE.
  • Model Expressiveness: While VGAE is a powerful model, the authors acknowledge that other generative models like auto-regressive or diffusion models might offer greater modeling power for capturing complex correlation patterns in graphs. Future work could explore these models for subgraph prediction.
  • Dynamic and Weighted Graphs: Extending subgraph prediction to dynamic (time-evolving) or weighted graphs is identified as a promising direction for future research.
  • Finding the Most Likely Subgraph: The current work focuses on probability estimation. Future work could explore using inference from the model to find the most likely subgraph given the evidence.

Summary updated

BibTeX
@inproceedings{mahmoudzadeh2024deep,
  author = {Erfaneh Mahmoudzadeh and Parmis Naddaf and Kiarash Zahirnia and Oliver Schulte},
  title = {{Deep Generative Models for Subgraph Prediction}},
  booktitle = {ECAI},
  year = {2024},
  url = {https://openreview.net/forum?id=GR2WMhQdHi},
}
Figure