Abstract
Graph Neural Networks (GNNs) are widely used for graph-structured data but often fail to provide reliable uncertainty estimates, especially under covariate shift. Standard Conformal Prediction (CP) requires data exchangeability, an assumption frequently violated in complex graph datasets. We propose CF-T²NN, a framework that integrates topological data analysis and tensor decomposition to achieve rigorous uncertainty quantification. By relaxing global exchangeability in favor of local topological similarity, CF-T²NN produces smaller, more informative prediction sets. Empirical results on ten benchmarks show that our method significantly outperforms existing GNN architectures in prediction precision while maintaining valid coverage.
Introduction
While Graph Neural Networks (GNNs) excel at tasks like molecular property prediction and social network analysis, they typically provide point predictions without a measure of confidence. Quantifying uncertainty is critical for high-stakes applications, yet GNNs struggle when test data distributions deviate from training data—a phenomenon known as covariate shift. Traditional Conformal Prediction (CP) offers statistical guarantees but relies on the strict assumption of exchangeability. When a model calibrated on one set of proteins is applied to a different structural sub-type, its uncertainty estimates often become invalid. This work addresses the need for valid uncertainty sets in non-exchangeable graph data.
Methods: The CF-T²NN Framework
The proposed Conformalized Tensor-based Topological Neural Networks (CF-T²NN) architecture integrates three core innovations to handle non-exchangeable data:
- Local Exchangeability: Rather than assuming global exchangeability, the model identifies a "local neighborhood" of topologically similar graphs for calibration. This allows for valid uncertainty quantification even when the overall dataset distribution shifts.
- Persistent Homology (PH): To quantify graph similarity, the framework utilizes Topological Data Analysis (TDA). It tracks structural features like loops and connected components across scales, represented as Persistence Images (PI).
- Tensor Transformation Layer (TTL): To preserve the multi-dimensional structure of topological data, the model employs low-rank tensor decompositions (e.g., Tucker or Tensor Train) instead of standard vector flattening.
As shown in Figure 1, the model processes both topological features and graph structures through parallel paths, fusing them via a Tensor Transformation Layer before the final MLP. The conformal prediction stage then computes non-conformity scores and determines quantiles based on local neighbors to construct the final prediction set.
Datasets and Evaluation
The framework was evaluated on 10 real-world benchmarks, including chemical compounds (MUTAG, DHFR, BZR, COX2) and protein/molecular datasets (ENZYMES, PROTEINS, and the PTC series). These datasets are characterized by high structural diversity, making them challenging for traditional uncertainty quantification methods.
Key Results
The primary performance metric is the average size of the prediction set at a fixed coverage level (e.g., 90%). A smaller set indicates higher precision.
As detailed in Figure 5, CF-T²NN variants consistently achieve the smallest prediction sets across all tested datasets. Key findings include:
- Precision Gains: Compared to standard baselines like ChebNet and GIN, CF-T²NN improved precision by 19.12% on COX2, 26.02% on DHFR, and 36.72% on BZR.
- Impact of TTL: Ablation studies confirmed that the Tensor Transformation Layer is crucial, with its removal leading to a 5.04% performance drop.
- Topological Advantage: Using topological similarity for local calibration proved more effective than global methods or simple embedding-based similarity.
Conclusion and Future Work
CF-T²NN demonstrates that combining topological features with tensor-based learning and local conformal prediction provides a robust solution for uncertainty quantification in graphs. While the method is effective, future work will address the computational overhead of persistent homology for massive graphs and explore extending the local exchangeability framework to node-level prediction tasks.
Summary updated