TL;DR
This paper introduces LDS (Learning Discrete Structures), a framework that simultaneously learns both the optimal graph structure and the parameters of a Graph Neural Network (GNN). By treating the graph itself as a set of discrete hyperparameters optimized via bilevel programming, LDS enables GNNs to excel even when the underlying graph is noisy, incomplete, or entirely missing.
What Problem Does This Paper Address?
Graph Neural Networks (GNNs) are powerful because they leverage relational data. However, they have a "chicken and egg" problem: to use a GNN, you need a graph. In the real world, graphs are often:
- Incomplete: Many edges are missing.
- Noisy: Existing edges might represent spurious correlations.
- Non-existent: For many datasets (like tabular data), we suspect relationships exist but don't have a defined graph.
Common workarounds, like building a $k$-nearest neighbor ($k$NN) graph based on feature similarity, are heuristic and independent of the actual learning task. This paper asks: Can we learn the graph structure and the GNN weights together to maximize task performance?
Methods
The authors frame graph learning as a bilevel optimization problem.
- Inner Loop: Trains the GNN weights ($w$) to minimize training loss on a sampled graph.
- Outer Loop: Optimizes the graph generator parameters ($\theta$) to minimize validation error.
Key Innovations:
- Probabilistic Edge Modeling: Instead of learning a fixed adjacency matrix, they model each potential edge as a Bernoulli random variable. This allows the model to explore different structures.
- Hypergradient Descent: They use gradient-based optimization to update the graph parameters $\theta$. This involves calculating how a change in the graph structure affects the final trained weights of the GNN.
- Straight-Through Estimator (STE): Since sampling a discrete graph is non-differentiable, they employ an STE to backpropagate gradients through the discrete sampling step.
- Truncated Reverse-Mode Algorithmic Differentiation: To make the bilevel optimization computationally feasible, they truncate the "unrolling" of the inner optimization loop.
Datasets
The authors evaluated LDS across two main scenarios:
- Incomplete Graphs: Using standard citation networks Cora and Citeseer, where they randomly removed 25%, 50%, and 75% of the edges.
- Missing Graphs: Using non-graph datasets from scikit-learn and other sources, including Wine, Breast Cancer, Digits, 20 Newsgroup, and FMA (music genre classification). For these, the model had to "invent" a graph from scratch.
Key Insights and Ideas
- Joint Learning > Heuristics: Learning the graph specifically for the classification task consistently beats using fixed $k$NN graphs or random graphs.
- Denoising Capabilities: Even when 100% of the original graph is provided, LDS often improves performance by learning additional helpful edges or effectively "weighting down" noisy ones.
- Interpretability: The learned Bernoulli parameters $\theta$ provide a probabilistic interpretation of relationships. The model tends to assign higher probabilities to edges between nodes of the same class.
- Structural Sparsity: Unlike methods that learn a dense similarity matrix, LDS maintains a sparse structure, which is more computationally efficient and often generalizes better.
Key Results
- Robustness to Missing Data: On Cora and Citeseer with only 25% of edges retained, LDS outperformed vanilla GCNs by significant margins (e.g., ~7% absolute accuracy gain on Citeseer).
- Superiority on Non-Graph Data: On datasets like Wine and Cancer, LDS (initialized with a $k$NN graph) outperformed standard $k$NN-GCNs and other semi-supervised baselines like Label Propagation.
- Better Embeddings: As shown in the t-SNE visualizations below, the embeddings learned by LDS provide much clearer class separation compared to dense or standard $k$NN approaches.
Limitations and Future Work
- Scalability: The current implementation is transductive (requires all nodes at once) and has difficulty scaling to massive graphs due to the $O(N^2)$ potential edges, though sparsity helps. The authors suggest mini-batching as a future direction.
- Inductive Learning: Adding new nodes after training currently requires retraining the model from scratch.
- Connectivity: The model doesn't explicitly guarantee that the sampled graphs are connected, which might be beneficial for some message-passing architectures.
- Generalization to other GNNs: While tested on GCNs, the framework is theoretically applicable to other architectures like Graph Attention Networks (GATs).
Summary updated