Skip to main content
QUICK REVIEW

[论文解读] Glyph: Fast and Accurately Training Deep Neural Networks on Encrypted Data

Qian Lou, Bo Feng|arXiv (Cornell University)|Nov 16, 2019
Cryptography and Data SecurityComputer Science被引用 35
一句话总结

Glyph 在对加密数据训练 DNN 时,在激活函数采用 TFHE、MACs 使用 BGV 之间切换,利用迁移学习提高准确性并降低延迟,相对于之前基于 FHE 的方法实现了显著加速并达到最先进的结果。

ABSTRACT

Big data is one of the cornerstones to enabling and training deep neural networks (DNNs). Because of the lack of expertise, to gain benefits from their data, average users have to rely on and upload their private data to big data companies they may not trust. Due to the compliance, legal, or privacy constraints, most users are willing to contribute only their encrypted data, and lack interests or resources to join the training of DNNs in cloud. To train a DNN on encrypted data in a completely non-interactive way, a recent work proposes a fully homomorphic encryption (FHE)-based technique implementing all activations in the neural network by \ extit{Brakerski-Gentry-Vaikuntanathan (BGV)}-based lookup tables. However, such inefficient lookup-table-based activations significantly prolong the training latency of privacy-preserving DNNs. In this paper, we propose, Glyph, a FHE-based scheme to fast and accurately train DNNs on encrypted data by switching between TFHE (Fast Fully Homomorphic Encryption over the Torus) and BGV cryptosystems. Glyph uses logic-operation-friendly TFHE to implement nonlinear activations, while adopts vectorial-arithmetic-friendly BGV to perform multiply-accumulation (MAC) operations. Glyph further applies transfer learning on the training of DNNs to improve the test accuracy and reduce the number of MAC operations between ciphertext and ciphertext in convolutional layers. Our experimental results show Glyph obtains the state-of-the-art test accuracy, but reduces the training latency by $99\\%$ over the prior FHE-based technique on various encrypted datasets.

研究动机与目标

  • 在用户无法与不可信服务器共享明文数据时,推动隐私保护的 DNN 训练。
  • 利用互补的密码系统(对激活使用 TFHE、对 MACs 使用 BGV)开发一个快速、准确的同态加密训练流水线。
  • 通过密码系统切换实现非交互式训练,并通过迁移学习提升性能。
  • 在基准数据集上展示相较于以往基于 FHE 的方法,精度更高、训练延迟显著降低。

提出的方法

  • 使用 TFHE 实现低延迟的非线性激活(ReLU、softmax)。
  • 使用 BGV 执行向量算术(乘累加)用于前向/反向传播。
  • 引入在 TFHE 与 BGV 之间的密码系统切换机制,以优化整体训练时间。
  • 应用迁移学习固定卷积层,只训练后面的全连接层,降低加密计算量。
  • 在加密数据上使用迁移学习训练卷积神经网络架构,以提高准确性和效率。

实验结果

研究问题

  • RQ1混合 TFHE-BGV 方法是否能在不牺牲准确性的前提下,加速对加密数据的完全同态训练?
  • RQ2与单一系统方法相比,密码系统切换对端到端训练延迟的影响是多少?
  • RQ3迁移学习是否减少加密卷积运算数量并在私有 CNN 训练中提高准确性?
  • RQ4在私有训练中,基于 TFHE 的激活与基于 BGV 的激活在延迟和准确性方面有何比较?
  • RQ5在 MNIST 和 Skin-Cancer-MNIST 上,Glyph 可实现的准确性与延迟提升是多少?

主要发现

  • 与之前的基于 FHE 的方法相比,Glyph 将小批量训练延迟显著降低,同时达到最先进的准确性。
  • 基于 TFHE 的激活将激活延迟从数百秒降低到每次前向/反向传播大约 0.1 秒,大幅加速训练。
  • 在 TFHE 与 BGV 之间进行密码系统切换只带来适度的开销,使端到端的私有训练成为现实。
  • 迁移学习通过复用公开数据集的特征进一步提升测试准确性,并减少卷积层中的加密计算。
  • 在 MNIST 上,基于 Glyph 的 CNN 结合迁移学习达到 98.6% 的测试准确性,相较于 Chimera 基于方法在总训练时间上有显著减少。
  • 在 Skin-Cancer-MNIST 上,迁移学习带来 73.2% 的测试准确性,并且训练延迟相较于非迁移学习设置有所降低。

阅读本论文

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

在 Nubint 中阅读本论文

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