TL;DR
Traditional Graph Neural Networks (GNNs) are typically forced to make a prediction even when they are highly uncertain, which can lead to catastrophic errors in safety-critical applications like drug discovery. AbstainGNN addresses this by introducing a theory-driven framework that teaches GNNs to say "I don't know" through an explicit abstention function. Backed by PAC-Bayesian generalization bounds, the model minimizes intra-class variance to achieve superior classification accuracy on accepted samples.
What Problem Does This Paper Address?
Graph classification is a foundational task with massive real-world implications, from predicting molecular toxicity to analyzing financial fraud. However, standard GNNs suffer from a major deployment flaw: they lack a rejection mechanism. When faced with ambiguous structural evidence or out-of-distribution samples, they are forced to make a guess, often resulting in highly confident but incorrect decisions.
While "Learning with Abstention" (selective classification) has been widely explored in computer vision, adapting it to graph-structured data introduces unique challenges. Existing heuristic rejection methods fail to capture the rich topological and relational information inherent in graphs. Furthermore, they lack solid theoretical grounding, making it difficult to guarantee a principled trade-off between classification error (risk) and the fraction of samples predicted (coverage).
Methods
AbstainGNN introduces a graph-level abstention function $g(\mathbf{A}, \mathbf{X})$ alongside a standard predictive function $f(\mathbf{A}, \mathbf{X})$. If the confidence score produced by $g$ falls below a predefined threshold $\epsilon$, the model abstains from making a prediction.
Instead of relying on heuristics, the authors use PAC-Bayesian generalization theory to derive a unified learning objective. This theoretical insight guides a robust two-stage training strategy:
- Predictive Function Warm-start: The predictive network $f$ is pretrained using standard cross-entropy loss to drive it into a small-gradient region, ensuring a stable initialization.
- Abstention Function Calibration: The abstention network $g$ is trained via binary classification to predict whether $f$'s prediction will be correct. Concurrently, $f$ is optimized using a regularized loss ($\mathcal{L}_{\text{total}} = \mathcal{L}_{\text{ce}} + \lambda_r \mathcal{L}_{\text{icv}}$) that minimizes the intra-class variance ($\mathcal{L}_{\text{icv}}$) of the graph representations.
To prevent the estimation bias typical of mini-batch training, the authors implement a Global Cluster Adjustment strategy, which smoothly tracks and updates global class representations across iterations.
Datasets
The framework was evaluated on five widely used graph classification benchmarks:
- Chemical Graphs: PROTEINS, MUTAG, and NCI1 (where nodes represent atom types).
- Social Graphs: IMDB-BINARY and COLLAB (where node degrees serve as structural attributes).
Key Insights and Ideas
- The Power of Compactness: The core theoretical finding (Theorem 4.1) proves that an abstention model's generalization performance is upper-bounded by the intra-class variance of graph-level representations. Forcing graphs of the same class to cluster tightly in the embedding space directly tightens the generalization bound.
- Coordinated Two-Stage Learning: Rather than training both functions simultaneously, the warm-start phase ensures the predictive function stabilizes before the abstention function attempts calibration. As shown in the visual analysis below, the intra-class variance sharply drops the moment the second stage begins (at epoch 100).
- Structural Rejection: Implementing the abstention function $g$ as a GNN (rather than a simple MLP or softmax logit heuristic) allows the rejection mechanism to directly leverage graph topology, which proves crucial for performance.
Key Results
AbstainGNN was compared against seven baselines (including classic softmax response, MC-Dropout, and specialized selective networks like Deep Gamblers and GraphPPD) across coverage levels ranging from 10% to 95%.
- Consistent Risk Reduction: AbstainGNN achieved the lowest classification error rate (risk) across almost all coverage levels and datasets. Notably, it yielded an average relative risk reduction of 16.8% on MUTAG, 9.8% on PROTEINS, 4.8% on NCI1, 15.8% on IMDB-BINARY, and 5.9% on COLLAB.
- Robustness at High Coverage: While many methods perform well when allowed to reject 90% of the data (10% coverage), AbstainGNN maintains a significant edge at high coverage levels (80%–95%), where the model is forced to predict on highly ambiguous samples.
Limitations and Future Work
- GNN Architecture Dependencies: The current implementation uses a relatively simple GCN backbone for the abstention function $g$. The authors note that exploring more sophisticated GNN architectures (such as Graph Attention Networks) specifically tailored for abstention remains an open and promising direction.
- Task Extension: This framework is strictly designed for graph-level classification. Future work includes extending this principled abstention mechanism to other graph-related tasks, such as node classification and link prediction.
Summary updated