Introduction
As deep learning becomes ubiquitous in sensitive fields like healthcare and finance, data privacy has emerged as a critical bottleneck. While techniques like Multi-Party Computation (MPC) and Federated Learning (FL) offer solutions, they often require users to remain online and participate heavily in the computation. Fully Homomorphic Encryption (FHE) is considered the "holy grail" of privacy-preserving machine learning because it allows a server to train models on encrypted data without ever seeing the raw information, enabling a non-interactive workflow. However, FHE has historically been too slow for practical deep learning training.
The Bottleneck of Homomorphic Encryption
Previous attempts at FHE-based training, such as FHESGD, relied on a single encryption scheme like BGV. While BGV is efficient for vectorial arithmetic (addition and multiplication), it is extremely inefficient for the non-linear logic required for neural network activations like ReLU or Softmax. In these systems, calculating a single activation function can consume up to 98% of the total training time. As shown in Figure 1, increasing precision in these legacy systems leads to an exponential increase in training time, making high-accuracy training practically impossible.
The Glyph Framework
Glyph is a novel framework designed to break the FHE speed barrier through three primary innovations:
1. Cryptosystem Switching
Glyph employs a hybrid approach, using the "right tool for the job." It utilizes BGV for the heavy matrix multiplications in convolutional and fully-connected layers and switches to TFHE for logic-heavy operations like ReLU and Softmax. A TFHE-based ReLU takes approximately 0.1 seconds, compared to over 300 seconds for a BGV equivalent.
2. Homomorphic Switching Logic
The framework introduces a technical mechanism to switch ciphertexts between BGV and TFHE formats without decryption. This allows data to pass through layers seamlessly while maintaining end-to-end encryption. The overhead for this switching is minimal, adding only about 4.9% to the processing time of a layer.
3. Transfer Learning for FHE
Glyph is the first work to apply transfer learning to private training. By using pre-trained "feature extractor" layers from public datasets (like CIFAR-10), Glyph freezes the early layers of the network. This converts expensive ciphertext-times-ciphertext operations into much faster ciphertext-times-plaintext operations, as the weights for frozen layers are no longer encrypted variables requiring updates.
Key Results
The performance gains achieved by Glyph are transformative for the field of private machine learning:
- Massive Latency Reduction: On the MNIST dataset, training a 3-layer MLP that previously took 13.4 years using FHESGD was reduced to just 8 days with Glyph—a reduction of over 99%.
- Medical Data Efficiency: For the Skin-Cancer-MNIST (HAM10000) dataset, training time dropped from 1.1 years to 7 days.
- High Accuracy: Glyph achieved 98.6% accuracy on MNIST and 73.2% on the skin cancer dataset, outperforming previous privacy-preserving techniques while maintaining a non-interactive model.
Conclusion and Future Work
Glyph demonstrates that non-interactive, privacy-preserving deep learning is becoming practical. While training on encrypted data remains slower than plaintext training, the jump from years to days is a significant milestone. Future work focusing on hardware acceleration (FPGAs or ASICs) could further reduce training times from days to hours, potentially making FHE training competitive with standard cloud-based training for sensitive data applications.
Summary updated