Learning Discrete Structures for Graph Neural Networks

Luca Franceschi, Mathias Niepert, Massimiliano Pontil, Xiao He

Abstract

Graph Neural Networks (GNNs) are powerful tools for relational data, yet their performance is heavily dependent on the quality of the input graph. In many real-world scenarios, graphs are noisy, incomplete, or entirely absent. This paper introduces Learning Discrete Structures (LDS), a framework that treats the graph topology as a learnable hyperparameter. By jointly optimizing the graph structure and GNN parameters through bilevel optimization, LDS discovers task-specific connections that improve generalization. Experimental results demonstrate that LDS significantly outperforms standard GCNs on corrupted graphs and effectively constructs useful topologies for datasets where no natural graph exists.

Introduction: Bridging the "Graph Gap"

Most GNN research assumes the input graph is a "ground truth" representation. However, when graphs are missing or unreliable, researchers often rely on heuristics like $k$-nearest neighbors ($k$-NN) to build one. These heuristics are decoupled from the learning task; a $k$-NN graph based on raw features may not be optimal for a specific classification objective. LDS addresses this "Graph Gap" by learning a discrete, sparse graph structure mathematically optimized for the GNN's performance.

Methodology: Bilevel Optimization of Graphs

LDS frames graph learning as a bilevel optimization problem, consisting of two nested loops:

  1. Inner Loop: Trains the GNN weights ($w$) to minimize training loss on a graph sampled from the current structure parameters.
  2. Outer Loop: Optimizes the graph parameters ($\theta$) to minimize validation error.
Overview of the LDS framework: The process alternates between sampling graphs, updating GCN parameters, and computing hypergradients to refine the graph generator.

Key Technical Innovations

  • Probabilistic Edge Modeling: Instead of a fixed adjacency matrix, every potential edge is modeled as a Bernoulli random variable. The parameters $\theta_{ij}$ represent the probability of an edge existing between nodes $i$ and $j$.
  • Straight-Through Estimator (STE): To overcome the non-differentiability of discrete sampling, the authors use an STE to approximate gradients, allowing backpropagation through the sampling process.
  • Truncated Hypergradients: To maintain computational feasibility, the model uses truncated reverse-mode algorithmic differentiation. This avoids unrolling the entire training process for every graph update.

Experimental Evaluation

The authors evaluated LDS in two primary scenarios: incomplete graphs (using Cora and Citeseer with 25-75% of edges removed) and missing graphs (using feature-heavy datasets like Wine and 20 Newsgroup where no explicit graph is provided).

Key Results and Insights

LDS consistently outperformed standard GCNs and $k$-NN heuristics. On the Cora dataset with 50% of edges removed, LDS achieved 78.98% accuracy, compared to 73.60% for a standard GCN.

Performance comparison and sensitivity analysis: (Left/Middle) LDS outperforms GCN and GCN-RND across varying levels of edge corruption. (Right) Impact of the truncation parameter $\tau$ on performance.

Analysis of the learned topologies revealed that LDS tends to increase the probability of edges between nodes of the same class, creating task-specific structures that are more effective than generic similarity maps. Furthermore, the use of Bernoulli variables naturally encourages sparsity, making the learned structures more efficient than dense similarity matrices.

Conclusion and Future Work

LDS represents a significant shift in GNN research by treating the adjacency matrix as a set of discrete hyperparameters. While the bilevel optimization approach is computationally intensive and currently limited to transductive settings, it provides a robust method for denoising and discovering graph structures. Future work will focus on scaling the framework to massive graphs and extending it to inductive learning scenarios.

Summary updated

BibTeX
@inproceedings{franceschi2019learning,
  author = {Luca Franceschi and Mathias Niepert and Massimiliano Pontil and Xiao He},
  title = {{Learning Discrete Structures for Graph Neural Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
}
Figure