Abstract
This paper presents a practically feasible implementation of logistic regression training on large-scale, fully homomorphically encrypted (FHE) data. By leveraging the HEAAN approximate homomorphic encryption scheme and novel optimization techniques—including parallelized bootstrapping, Nesterov Accelerated Gradient (NAG), and least-squares polynomial approximation of the sigmoid function—the authors demonstrate a significant leap in performance. Training on a financial dataset of over 400,000 records was completed in approximately 17 hours, showing that FHE is now viable for realistic machine learning tasks.
Introduction
Data privacy is a major hurdle in collaborative machine learning. For instance, multiple financial institutions may wish to build a joint credit scoring model without exposing sensitive raw data. Homomorphic Encryption (HE) provides a solution by allowing mathematical operations on encrypted data. However, HE has historically been too slow for the iterative training phase of machine learning. This work bridges that gap, moving beyond "toy" datasets to real-world scales.
Methods
The authors utilize several key techniques to achieve high-performance encrypted training:
- Approximate HE (HEAAN): Unlike exact integer-based schemes, HEAAN supports fixed-point arithmetic and "rescaling," which manages noise growth during computation.
- Approximate Bootstrapping: The authors parallelize the bootstrapping process (refreshing encrypted messages) by splitting ciphertexts into smaller chunks, mitigating a major computational bottleneck.
- HE-Friendly Optimization: The Nesterov Accelerated Gradient (NAG) optimizer is used because it avoids division, an operation that is extremely difficult to perform under HE.
- Polynomial Approximation: The sigmoid function is replaced with a degree-3 least-squares fitting polynomial. This approach is more stable and accurate over a wide range (e.g., [-8, 8]) compared to standard Taylor expansions.
- SIMD Vectorization: Multiple data points are packed into single ciphertexts to perform Single Instruction Multiple Data (SIMD) operations, maximizing throughput.
System Architecture
The proposed framework supports two primary operational modes: single data owner and multiple data owners. In the single-owner scenario, a user encrypts their data and outsources the training to a cloud service. In the multi-owner scenario, several parties contribute encrypted data to a shared cloud service, and the resulting model is decrypted via a group protocol.
Experimental Evaluation
The algorithm was evaluated on two datasets:
- Real Financial Dataset: A private dataset from a credit reporting agency containing 422,108 samples and 200 features. The system trained a high-quality model (Kolmogorov-Smirnov statistic of 50.84) in approximately 17 hours.
- MNIST: Using a subset for binary classification (digits 3 vs 8), the model reached 96.4% accuracy in about 2 hours.
Key Insights
A critical finding was that the approximation noise from HEAAN and bootstrapping does not significantly degrade model convergence or final accuracy. Furthermore, the use of least-squares fitting for the sigmoid function proved essential for model stability. The resulting performance gap—encrypted training being only 2 to 3 orders of magnitude slower than plaintext—is exceptionally narrow for FHE.
Conclusion
This work demonstrates that large-scale logistic regression on encrypted data is practically feasible. The techniques developed, such as parallel bootstrapping and depth-optimized circuits, provide a foundation for extending FHE to more complex models like neural networks. While Multi-Party Computation (MPC) remains faster, HE offers advantages in communication efficiency and the ability for participants to remain offline during training.
Summary updated