Abstract
As Graph Convolutional Networks (GCNs) become integral to sensitive domains such as healthcare and finance, the need for privacy-preserving inference has become paramount. Homomorphic Encryption (HE) provides a robust solution by allowing computation on encrypted data, yet it is often hindered by a significant "computational tax"—specifically the high latency associated with multiplicative depth and non-polynomial activations. This paper introduces LinGCN, a novel framework designed to accelerate private GCN inference. By employing a differentiable node-level linearization strategy and teacher-guided polynomial replacement, LinGCN achieves a 14.2× speedup over previous state-of-the-art methods while maintaining high accuracy across large-scale datasets.
Introduction
Deploying GCNs in cloud environments raises critical privacy concerns regarding the raw data processed by these models. Homomorphic Encryption (HE), particularly the CKKS scheme, allows servers to perform inference on encrypted inputs without ever accessing the underlying data. However, CKKS is highly sensitive to multiplicative depth. Every multiplication operation reduces the "level" of a ciphertext; once these levels are exhausted, a computationally expensive process called "bootstrapping" is required to continue.
Furthermore, standard deep learning activations like ReLU are non-polynomial and cannot be directly computed in HE. Approximating these functions with high-degree polynomials increases multiplicative depth and latency, leading to a trade-off between model performance and computational efficiency. LinGCN addresses these challenges by optimizing the network structure to minimize depth without sacrificing predictive power.
Methods
1. Differentiable Structural Linearization
Traditional methods often prune entire layers of non-linearities to save on multiplicative depth, which frequently results in significant accuracy loss. LinGCN introduces a more granular, node-level approach. It utilizes a trainable "indicator function" that determines which specific nodes in a graph should retain a non-linear activation and which should remain linear. To overcome the non-differentiable nature of this discrete selection, the framework is co-trained with model weights using a "Softplus" straight-through estimator.
2. Node-wise Polynomial Replacement
To maintain compatibility with HE, LinGCN replaces standard ReLU activations with second-order trainable polynomials ($ax^2 + bx + c$). Because training deep networks with polynomial activations is notoriously unstable, the authors implement a two-level distillation strategy. A pre-trained "teacher" model (using standard ReLUs) guides the "student" polynomial model. This transfer of "dark knowledge" occurs through both output probabilities and internal feature map distances, ensuring the student model converges to an accuracy near its ReLU-based counterpart.
3. Enhanced HE Operator Fusion
The framework includes a specialized HE solution that fuses multiple operations—including convolution, batch normalization, and polynomial activation—into fewer encrypted steps. This engineering optimization directly reduces the multiplicative depth of the circuit, allowing the system to use smaller cryptographic parameters and significantly accelerating execution time.
Experimental Evaluation
Datasets
The researchers evaluated LinGCN on two primary benchmarks:
- NTU-XVIEW: A large-scale 3D skeleton joint dataset for human action recognition, containing over 56,000 action clips across 60 classes.
- Flickr: A representative node classification dataset used to test the framework's generalizability to standard graph tasks.
Key Results
- Efficiency: LinGCN achieved a 14.2× latency speedup compared to CryptoGCN, the previous state-of-the-art. For a 3-layer model, private inference time was reduced to 742 seconds.
- Accuracy: On larger 6-layer models, LinGCN reached 85.78% accuracy on NTU-XVIEW, outperforming CryptoGCN by 10.47%.
- Scalability: Unlike prior methods that struggled with the depth of Spatial-Temporal GCNs (STGCNs), LinGCN successfully scaled to 6-layer architectures without prohibitive latency costs.
Discussion and Insights
The success of LinGCN highlights that in the context of HE, the primary cost of an operation is its impact on the "level budget" rather than its FLOP count. By saving even a single level of multiplicative depth, the entire system can utilize smaller cryptographic parameters, which speeds up every subsequent operation.
Furthermore, the results demonstrate that node-level granularity provides a superior Pareto frontier for the trade-off between speed and accuracy compared to layer-wise pruning. This allows the model to preserve essential non-linearities where they contribute most to feature extraction while linearizing less critical paths.
Limitations and Future Work
Despite these advancements, challenges remain for real-time deployment. A latency of several minutes is still too high for interactive applications like instant gesture recognition. Additionally, the current evaluation focuses on STGCNs and assumes the graph's adjacency list is public. Future research will explore expanding the LinGCN framework to other domains, such as medical imaging CNNs, and developing methods to protect the sensitivity of the graph structure itself.
Summary updated