Introduction
Graph Neural Networks (GNNs) have become indispensable for analyzing complex relational data in domains ranging from social network analysis to financial fraud detection and bioinformatics. However, the sensitive nature of the underlying data—such as personal connections or medical records—necessitates robust privacy protections. Fully Homomorphic Encryption (FHE) offers a promising solution by allowing computations to be performed directly on encrypted data. Despite its potential, FHE is notoriously computationally expensive, particularly for the non-linear activation functions common in GNNs, which must be approximated using high-degree polynomials.
Current research primarily focuses on optimizing the GNN model architecture to reduce this overhead. However, these methods often overlook the data itself, treating all nodes in a graph as equally significant. This leads to substantial computational waste on redundant or noisy information. DESIGN (EncrypteD GNN Inference via sErver-Side Input Graph pruNing) addresses this gap by introducing a data-centric optimization framework that prunes unimportant nodes and adaptively allocates resources in the encrypted domain.
Methodology: The DESIGN Framework
DESIGN employs a two-stage hierarchical optimization strategy executed entirely on the server side, ensuring that privacy is maintained throughout the process.
1. FHE-Compatible Scoring and Partitioning
To identify which parts of the graph are most critical without decrypting the data, DESIGN utilizes node degree as a proxy for importance. In the FHE domain, addition is significantly "cheaper" than multiplication. By calculating node degrees, the server can gauge importance with minimal computational overhead. The framework then uses approximate homomorphic comparison protocols to generate "importance masks," categorizing nodes into different priority levels.
2. Dual-Pruning Inference
Once nodes are categorized, DESIGN applies a dual-pruning approach:
- Graph Pruning: Nodes identified as low-importance are logically masked out. This reduces the total volume of data processed by the GNN, directly lowering latency.
- Adaptive Activation Allocation: Rather than applying a uniform, complex polynomial for all activation functions, DESIGN uses a tiered approach. High-importance nodes are processed with high-degree polynomials to maintain precision, while less critical nodes use lower-degree, faster polynomials. This strategy optimizes the "noise budget" inherent in FHE computations.
Experimental Evaluation
The authors evaluated DESIGN across five benchmark datasets: Cora, Citeseer, PubMed, Yelp, and ogbn-proteins. These datasets represent a wide variety of graph structures and homophily levels, providing a comprehensive testbed for the framework's generalizability.
Key Results and Discussion
Performance and Latency
DESIGN achieves significant performance gains over both foundational FHE libraries and specialized GNN-FHE frameworks. As shown in the latency results, DESIGN consistently provides the lowest execution times across all tested datasets.
The framework achieved speedups ranging from 1.67x to 2.39x compared to the standard SEAL baseline. For instance, on the Citeseer dataset, DESIGN reduced latency from over 4200 seconds to approximately 1760 seconds.
Accuracy Preservation
A critical challenge in pruning and approximation is maintaining model performance. DESIGN demonstrates that strategic data reduction does not necessarily lead to significant accuracy loss. In some cases, pruning noisy nodes even acts as a form of regularization, improving the model's robustness.
On the Cora dataset, DESIGN achieved 74.00% accuracy, outperforming optimized baselines like CryptoGCN (66.21%) and remaining competitive with the plaintext GNN baseline.
Insights and Future Directions
The success of DESIGN highlights several key takeaways for the future of encrypted computing:
- Exploiting Data Redundancy: Optimizing the data input is just as crucial as optimizing the model architecture in resource-constrained environments like FHE.
- Heuristic Proxies: Simple metrics like node degree can serve as effective, low-cost proxies for importance in the encrypted domain.
- Non-Uniform Resource Allocation: Moving away from "one-size-fits-all" computation allows for a more efficient balance between speed and precision.
While DESIGN offers a significant step forward, limitations remain. The homomorphic comparison step used for masking still carries a computational cost, and node degree may be an overly simplistic metric for certain specialized graph types. Future work will explore more sophisticated importance metrics and the application of these techniques to larger, more complex graph architectures.
Summary updated