Abstract
Graph Neural Networks (GNNs) have emerged as a dominant paradigm for data classification, yet their performance is strictly contingent on the availability of a high-quality graph structure. In many practical applications, explicit connections between data points are absent, necessitating the construction of synthetic graphs. Traditional approaches like k-Nearest Neighbor (kNN) graphs are often plagued by noise, while sophisticated graph-learning methods suffer from high computational complexity. We introduce GLAM (Graph Learning by Modeling Affinity), a streamlined approach that models affinity to labeled nodes to construct robust graphs. GLAM achieves state-of-the-art accuracy while training up to 70x faster than existing complex graph-learning methods.
Introduction
The efficacy of GNNs relies on the underlying graph topology. When this topology is missing, researchers often resort to kNN graphs based on feature similarity. However, feature similarity does not always imply categorical similarity, leading to "noisy" edges that connect nodes of different classes. While existing literature proposes iterative refinement or bi-level optimization to learn the graph structure, these methods are frequently computationally prohibitive and sensitive to initial noise. GLAM addresses these challenges by focusing on high-confidence connections between unlabeled nodes and the training set, significantly reducing the search space and computational overhead.
Methodology
The GLAM architecture is built upon three core components designed to maximize the utility of limited labeled data while maintaining computational efficiency.
1. Label-Affinity Model
Rather than attempting to learn a dense adjacency matrix for all node pairs, GLAM focuses on the affinity between unlabeled nodes and the labeled (training) set. A simple two-layer neural network is employed to predict the likelihood that an input node shares a label with specific nodes in the training set. This restricted attention mechanism leverages supervision more effectively than global attention models.
2. Cropped kNN and Convex Combination
GLAM utilizes a "cropped" kNN graph as a structural prior. To prevent noise from corrupting the ground truth, all incoming edges to labeled nodes are removed. The final graph is a convex combination (weighted average) of this cleaned kNN graph and the supervised label-affinity graph.
3. Feature Boosting and Differentiability
To enhance input representations, GLAM uses "boosted features" ($X\tilde{X}^\top X$), which capture higher-order feature correlations. To ensure the entire pipeline is end-to-end differentiable, the Gumbel-Softmax trick is used to sample discrete edges from the continuous probability distributions generated by the affinity model.
Experimental Results
GLAM was evaluated on five benchmark citation networks: Cora, CiteSeer, PubMed, ACM, and DBLP.
Robustness to Noise vs. Sparsity
A critical finding of this work is that GNNs are significantly more sensitive to "noisy" (incorrect) edges than to the removal of "good" edges. As shown in Figure 5, performance remains stable even when 75% of correct edges are removed, but drops precipitously when incorrect edges are added. This justifies GLAM's strategy of prioritizing high-confidence supervised connections over dense, unsupervised links.
Performance and Efficiency
GLAM demonstrates remarkable efficiency, training up to 42x faster than IDGL and 70x faster than LDS (Learning Discrete Structures). On the Cora dataset, GLAM reaches convergence in approximately 5 seconds, compared to over 5 minutes for LDS. Despite this speed, GLAM maintains competitive or superior accuracy, outperforming state-of-the-art models by up to 1.5% on several benchmarks.
Conclusion
GLAM offers a highly efficient and effective solution for GNN training in the absence of a pre-defined graph. By focusing on label affinity and utilizing boosted features, it bypasses the pitfalls of iterative refinement. While it shows slightly lower performance on high-homophily datasets like PubMed compared to iterative methods, its speed and robustness make it an ideal candidate for large-scale applications. Future research will explore hybrid models that combine GLAM's affinity modeling with iterative refinement and generative graph components.
Summary updated