Graph Sparsification for Enhanced Conformal Prediction in Graph Neural Networks

Yuntian He, Pranav Maneriker, Anutam Srinivasan, Aditya Vadlamani, Srinivasan ParthasarathyarXiv 2024 · DOI

TL;DR

SparGCP is a novel framework designed to improve the efficiency of Conformal Prediction (CP) in Graph Neural Networks (GNNs). By integrating learnable graph sparsification with a CP-specific loss function during training, SparGCP reduces uncertainty-aware prediction set sizes by an average of 32% while maintaining rigorous coverage guarantees.

Introduction: The Challenge of Uncertainty in Graphs

In high-stakes domains such as healthcare or drug discovery, model accuracy alone is insufficient; understanding the reliability of a prediction is critical. Conformal Prediction (CP) addresses this by generating a prediction set of labels guaranteed to contain the ground truth with a specified probability (e.g., 90%).

However, applying CP to graphs presents two significant challenges:

  1. Efficiency: If a model is highly uncertain, the resulting prediction sets may be too large to be actionable.
  2. Structural Noise: Graphs often contain irrelevant or "noisy" edges that degrade GNN performance and increase predictive uncertainty.

While most existing research treats CP as a post-hoc step applied to pre-trained models, this paper argues that optimizing for CP efficiency during the training phase—while simultaneously denoising the graph—is essential for producing concise, useful prediction sets.

The SparGCP Framework

The authors propose SparGCP, a framework that bakes "CP-awareness" directly into the GNN training pipeline through two primary mechanisms:

1. Layer-wise Graph Sparsification

To mitigate the impact of noisy edges, SparGCP employs a parameterized module (a small MLP) to assign scores to edges within each layer's "Message Flow Graph" (MFG). By pruning low-scoring edges, the framework ensures that the GNN aggregates information only from the most relevant neighbors, thereby reducing model confusion.

2. CP-based Loss Function ($L_{cp}$)

Standard GNN training typically relies on Cross-Entropy loss to maximize point-wise accuracy. SparGCP introduces a secondary objective, $L_{cp}$, which specifically simulates the CP process during training. Based on the Adaptive Prediction Sets (APS) method, this loss encourages the model to produce probability distributions that naturally result in smaller, more efficient prediction sets.

Overview of the SparGCP framework, integrating layer-wise graph sparsification and CP-based training objectives.

Crucially, by operating on MFGs during mini-batching, SparGCP scales effectively to massive graphs—such as Ogbn-Products with over 2.4 million nodes—without exceeding GPU memory limits.

Experimental Evaluation

The framework was evaluated across six diverse real-world datasets, including citation networks (CiteSeer, Cora) and large-scale benchmarks.

Key Results

  • Efficiency Gains: SparGCP achieved an average 32% reduction in prediction set sizes compared to vanilla GNNs and standard sparsification techniques like DropEdge. On the Cora dataset, the average set size dropped significantly from 22.18 to 13.00.
  • Training Efficiency: The method is up to 76.82% faster to train than specialized baselines like CF-GNN, as it avoids the need for a separate wrapper model.
  • Loss Sensitivity: Empirical results demonstrate that the CP-based loss is vital for efficiency. As shown in the figure below, tuning the weight of $L_{cp}$ allows for significant optimization of the APS Efficiency metric across various datasets.
Impact of the CP-based loss weight on APS Efficiency across four datasets. Lower values indicate smaller, more efficient prediction sets.

Discussion and Future Work

The success of SparGCP highlights that denoising is a "superpower" for conformal prediction; by filtering out confusing structural information, the model becomes more confident in its primary predictions. Furthermore, the results prove that training-time optimization is superior to post-hoc wrappers for uncertainty quantification.

Future research directions include extending SparGCP to heterogeneous networks, applying the technique to tasks like link prediction, and adapting the framework to support a wider variety of non-conformity measures beyond APS.

Summary updated

BibTeX
@misc{he2024graph,
  author = {Yuntian He and Pranav Maneriker and Anutam Srinivasan and Aditya Vadlamani and Srinivasan Parthasarathy},
  title = {{Graph Sparsification for Enhanced Conformal Prediction in Graph Neural Networks}},
  year = {2024},
  eprint = {2410.21618},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.21618},
}
Figure