[Paper Review] Glyph: Fast and Accurately Training Deep Neural Networks on Encrypted Data
Glyph switches between TFHE for activations and BGV for MACs to train DNNs on encrypted data, using transfer learning to improve accuracy and reduce latency, achieving state-of-the-art results with substantial speedups over prior FHE-based methods.
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.
Motivation & Objective
- Motivate privacy-preserving DNN training when users cannot share plaintext data with untrusted servers.
- Develop a fast, accurate FHE-based training pipeline by leveraging complementary cryptosystems (TFHE for activations, BGV for MACs).
- Enable non-interactive training via cryptosystem switching and improve performance with transfer learning.
- Demonstrate improved accuracy and significantly reduced training latency over prior FHE-based approaches on benchmark datasets.
Proposed method
- Use TFHE to implement nonlinear activations (ReLU, softmax) with low latency.
- Use BGV to perform vectorial arithmetic (multiply-accumulate) for forward/backward passes.
- Introduce a cryptosystem switching mechanism between TFHE and BGV to optimize overall training time.
- Apply transfer learning to fix convolutional layers and train only later fully-connected layers, reducing encrypted computations.
- Train CNN architectures with transfer learning on encrypted data to improve accuracy and efficiency.
Experimental results
Research questions
- RQ1Can a hybrid TFHE-BGV approach speed up fully homomorphic training of DNNs on encrypted data without sacrificing accuracy?
- RQ2What is the impact of cryptosystem switching on end-to-end training latency compared to single-system approaches?
- RQ3Does transfer learning reduce the number of encrypted convolutions and improve accuracy in private CNN training?
- RQ4How do TFHE-based activations compare to BGV-based activations in terms of latency and accuracy for private training?
- RQ5What are the achievable accuracy and latency gains on MNIST and Skin-Cancer-MNIST with Glyph?
Key findings
- Glyph reduces mini-batch training latency by a large margin compared to prior FHE-based methods while achieving state-of-the-art accuracy.
- TFHE-based activations cut activation latency from hundreds of seconds to around 0.1 seconds per forward/backward pass, greatly accelerating training.
- Cryptosystem switching between TFHE and BGV incurs only modest overhead, enabling practical end-to-end private training.
- Transfer learning further improves test accuracy by reusing features from public datasets and reduces encrypted computation in convolutional layers.
- On MNIST, Glyph-based CNN with transfer learning reaches 98.6% test accuracy, with substantial reductions in total training time compared to Chimera-based approaches.
- On Skin-Cancer-MNIST, transfer learning yields a test accuracy of 73.2%, with reduced training latency compared to non-transfer-learning setups.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.