Abstract
Recently cloud-based graph convolutional network (GCN) has demonstrated great success and potential in many privacy-sensitive applications such as personal healthcare and financial systems. Despite its high inference accuracy and performance on cloud, maintaining data privacy in GCN inference, which is of paramount importance to these practical applications, remains largely unexplored. In this paper, we take an initial attempt towards this and develop CryptoGCN—a homomorphic encryption (HE) based GCN inference framework. A key to the success of our approach is to reduce the tremendous computational overhead for HE operations, which can be orders of magnitude higher than its counterparts in the plaintext space. To this end, we develop an approach that can effectively take advantage of the sparsity of matrix operations in GCN inference to significantly reduce the computational overhead. Specifically, we propose a novel AMA data formatting method and associated spatial convolution methods, which can exploit the complex graph structure and perform efficient matrix-matrix multiplication in HE computation and thus greatly reduce the HE operations. We also develop a co-optimization framework that can explore the trade-offs among the accuracy, security level, and computational overhead by judicious pruning and polynomial approximation of activation module in GCNs. Based on the NTU-XVIEW skeleton joint dataset, our experimental results demonstrate that CryptoGCN achieves as much as a 3.10× speedup on latency and reduces the total Homomorphic Operation Count by 77.4% with a small accuracy loss of 1-1.5%.
Introduction
Deploying Graph Convolutional Networks (GCNs) in the cloud offers powerful capabilities for sensitive fields like healthcare and finance, but it creates a massive privacy risk: the cloud provider sees the raw data. Homomorphic Encryption (HE) is a cryptographic solution that allows a server to perform math on encrypted data without ever seeing the underlying values. However, HE is notoriously slow—often orders of magnitude slower than plaintext computation. GCNs present a unique challenge because they require multiplying feature matrices by an adjacency matrix representing the graph's connections. In standard HE frameworks, this operation triggers a cascade of expensive "ciphertext rotations" and multiplications that make deep GCNs computationally prohibitive.
Adjacency Matrix-Aware (AMA) Data Formatting
The core innovation of CryptoGCN is the Adjacency Matrix-Aware (AMA) data formatting. Standard HE methods use "row-major" formatting, which is efficient for some operations but forces the system to perform many rotations (shifting data within an encrypted vector) during GCN matrix multiplication. AMA instead packs data into "big vector containers" specifically aligned with the graph's structure.
By decomposing the sparse adjacency matrix into sub-matrices with specific patterns, CryptoGCN can perform matrix-matrix multiplication using only simple additions and multiplications, completely bypassing the costly rotation operations. This approach turns graph sparsity into a cryptographic advantage: the sparser the graph, the fewer sub-matrices AMA needs to create, leading to a direct linear reduction in encrypted operations.
Activation Pruning and Co-optimization
HE cannot natively compute non-linear functions like ReLU. Researchers typically replace ReLU with polynomial approximations (e.g., $ax^2 + bx + c$). However, every multiplication reduces the "level" of the ciphertext, eventually requiring a very slow process called "bootstrapping."
CryptoGCN introduces an Activation Pruning (AP) framework that identifies which ReLU layers are least critical to accuracy and prunes them entirely. This reduces the "multiplicative depth" of the network, allowing the use of faster encryption parameters. By pruning activations, the authors enabled the use of a smaller "polynomial degree" (e.g., ring size $2^{14}$ vs $2^{15}$), which provides a massive global speedup for every single operation in the network.
Experimental Results
The researchers evaluated CryptoGCN on the NTU-XVIEW dataset, which contains 3D skeleton joint annotations for human action recognition. This is the largest dataset ever evaluated in a homomorphic inference context, featuring 25 joints and 60 action classes.
Key results include:
- Latency Speedup: CryptoGCN achieved up to a 3.10× speedup in inference latency compared to standard row-major HE implementations.
- Efficiency: The total Homomorphic Operation Count (HOC) was reduced by 77.4%.
- Accuracy: These gains came at a very low cost, with only a 1% to 1.5% drop in classification accuracy.
Conclusion and Future Work
CryptoGCN demonstrates that HE-based privacy is becoming viable for complex, real-world spatial-temporal data. By redesigning data formatting to exploit graph sparsity and selectively pruning activation layers, the framework significantly reduces the "rotation tax" and multiplicative depth associated with HE.
Future directions include exploring the encryption of the adjacency matrix itself (currently assumed to be public) and further optimizing polynomial approximations to bridge the remaining accuracy gap. Additionally, the authors suggest that multi-threading could further reduce latency beyond the current single-threaded benchmarks.
Summary updated