Skip to main content
QUICK REVIEW

[论文解读] LinGCN: Structural Linearized Graph Convolutional Network for Homomorphically Encrypted Inference

Hongwu Peng, Ran Ran|arXiv (Cornell University)|Sep 25, 2023
Privacy-Preserving Technologies in DataComputer Science被引用 10
一句话总结

LinGCN 提出了一种结构化、逐节点线性化以及教师引导的多项式替换,以减少 CKKS 基于的加密 GCN 推理中的乘法深度,在与 CryptoGCN 相当的准确度下实现显著的延迟加速。

ABSTRACT

The growth of Graph Convolution Network (GCN) model sizes has revolutionized numerous applications, surpassing human performance in areas such as personal healthcare and financial systems. The deployment of GCNs in the cloud raises privacy concerns due to potential adversarial attacks on client data. To address security concerns, Privacy-Preserving Machine Learning (PPML) using Homomorphic Encryption (HE) secures sensitive client data. However, it introduces substantial computational overhead in practical applications. To tackle those challenges, we present LinGCN, a framework designed to reduce multiplication depth and optimize the performance of HE based GCN inference. LinGCN is structured around three key elements: (1) A differentiable structural linearization algorithm, complemented by a parameterized discrete indicator function, co-trained with model weights to meet the optimization goal. This strategy promotes fine-grained node-level non-linear location selection, resulting in a model with minimized multiplication depth. (2) A compact node-wise polynomial replacement policy with a second-order trainable activation function, steered towards superior convergence by a two-level distillation approach from an all-ReLU based teacher model. (3) an enhanced HE solution that enables finer-grained operator fusion for node-wise activation functions, further reducing multiplication level consumption in HE-based inference. Our experiments on the NTU-XVIEW skeleton joint dataset reveal that LinGCN excels in latency, accuracy, and scalability for homomorphically encrypted inference, outperforming solutions such as CryptoGCN. Remarkably, LinGCN achieves a 14.2x latency speedup relative to CryptoGCN, while preserving an inference accuracy of 75% and notably reducing multiplication depth.

研究动机与目标

  • 在基于云的 GCN 推理中使用同态加密(HE)来解决隐私问题。
  • 在基于 STGCN 的模型中降低乘法深度和 HE 延迟,同时尽量减少精度损失。
  • 引入一种可微的结构线性化方法,用于逐节点非线性位置选择。
  • 开发一个教师引导的逐节点多项式替换,用以替代 ReLU 激活函数。
  • 提供一个优化的 HE 工作流,结合算子融合,以进一步降低 HE 计算深度。

提出的方法

  • 带有辅助参数 h_w 的可微结构线性化以及用于强制同步、逐节点非线性降低的结构极化算法(Algorithm 1)。
  • 学习目标将准确性损失与对剩余非线性算子执行的 L0 惩罚相结合,并通过直通估计(STE)对梯度进行优化(Eq. 3)。
  • 逐节点可训练多项式激活 σ_n(x)=c·w2·x^2 + w1·x + b,结合来自 ReLU 教师模型的两阶段蒸馏(Eq. 4, Eq. 5)。
  • 使用教师 ReLU 模型进行两级蒸馏,以引导多项式学生,在损失中包含 KL 散度和特征图对齐项(Eq. 5)。
  • Algorithm 2 描述 LinGCN 的工作流程:预训练 ReLU 教师,迭代学习结构线性化,固定指示器,用多项式替换 ReLU,并以多项式训练迭代结束。
  • 增强的 HE 工作流,通过将明文多项式权重融合到卷积层中实现更细粒度的算子融合,以节省乘法深度(AMA 打包与融合流程)。
  • 在基于 CKKS 的加密 STGCN 上展示端到端可行性,使用 NTU-XView 数据,包括对更深模型的可扩展性测试。

实验结果

研究问题

  • RQ1结构化的逐节点线性化是否能够在 CKKS 基于的 STGCN 中降低乘法深度,而不造成显著的精度损失?
  • RQ2教师引导的逐节点多项式替换是否优于分层多项式策略在私有 GCN 推理中的表现?
  • RQ3在骨架基动作识别数据上,保持可接受的准确性时,相对于 CryptoGCN 可以实现多少延迟提升?
  • RQ4在 HE 限制下,LinGCN 对更深的 STGCN 架构有多大可扩展性?

主要发现

  • LinGCN 在可比精度(约 75%)下,相比 CryptoGCN 的延迟提速高达 14.2x。
  • 结构化线性化的逐节点、同步非线性降低在降低 HE 级别消耗的同时保持了准确性。
  • 教师引导的逐节点多项式替换结合蒸馏可提升收敛性,并在精度上保持或优于相比分层多项式策略。
  • LinGCN 在 NTU-XView 的 STGCN-3-128、STGCN-3-256、STGCN-6-256 配置中显示出具有竞争力的准确性和显著的延迟下降,包括在更深模型上达到 85.78% 的准确性和 6371.39s 的延迟。
  • 该方法在非线性层减少下保持准确性,在延迟区间内相对于 CryptoGCN 显示出有利的帕累托前沿。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。