Introduction
In the era of big data, the ability to train machine learning models on sensitive information from multiple sources remains a significant challenge due to privacy regulations and security concerns. Homomorphic Encryption (HE) presents a potential solution by allowing computations to be performed directly on encrypted data. However, the computational overhead and noise accumulation associated with HE have historically limited its application to small-scale tasks or simple inference. This paper introduces a scalable framework for training logistic regression models on massive datasets using an approximate HE scheme.
System Model and Problem Statement
The proposed system enables multiple users to upload encrypted data to a cloud service. The cloud performs model training on the aggregated ciphertexts without ever decrypting them. Once training is complete, the encrypted model can be decrypted collectively by the users or a trusted authority. The primary technical hurdle is managing the "noise" that accumulates during HE operations, which can eventually render the data unreadable if not properly handled through techniques like bootstrapping.
Methodology
The authors achieve scalability through three primary innovations:
- HEAAN Scheme: By utilizing the HEAAN scheme, which supports fixed-point arithmetic, the system can handle approximation noise more efficiently than traditional exact HE schemes. This approach aligns well with machine learning, where absolute precision is often unnecessary for convergence.
- HE-Friendly Algorithmic Design: Standard logistic regression components are replaced with HE-compatible alternatives. The Nesterov Accelerated Gradient (NAG) method is used for optimization to avoid costly division operations. Furthermore, the non-linear sigmoid activation function is replaced with a low-degree polynomial approximation derived via least squares fitting.
- Computational Optimizations: To reduce latency, the system employs SIMD (Single Instruction, Multiple Data) vectorization to process multiple data points in parallel. Additionally, a parallelized bootstrapping technique is implemented to refresh ciphertext noise levels efficiently.
Experimental Results
The framework was evaluated on two significant datasets: a large-scale financial dataset from the Korea Credit Bureau (KCB) and the MNIST handwritten digit dataset.
As shown in the performance summary, the system successfully trained a model on over 422,000 financial records in approximately 17 hours. This represents a significant milestone, as prior HE training research typically focused on much smaller datasets. The resulting model achieved an 80% accuracy, matching the performance of models trained on plaintext data. For the MNIST dataset, the system achieved 96.4% accuracy in roughly 2 hours.
Discussion and Conclusion
The results demonstrate that the performance gap between plaintext and encrypted training is narrowing, with the proposed HE approach being only 2 to 3 orders of magnitude slower than plaintext training. This trade-off is increasingly acceptable for applications requiring high levels of data privacy.
While the current implementation requires a fixed number of iterations and is specific to logistic regression, it lays the groundwork for future extensions to more complex architectures like Deep Neural Networks. Future work will also explore automated stopping criteria and further optimizations to reduce the computational overhead of bootstrapping.
Summary updated