Abstract
CodedPrivateML is a novel framework for distributed machine learning designed to provide "perfect" (information-theoretic) privacy for both training data and model parameters. By replacing heavy cryptographic protocols with Lagrange coding and stochastic quantization, it achieves significant speedups over traditional Multi-Party Computing (MPC) methods while maintaining high model accuracy. This paper details the architecture, the underlying coding theory, and experimental results demonstrating its scalability in large-scale cloud environments.
Introduction
As machine learning models grow in complexity, outsourcing training to cloud providers has become standard. However, sensitive data—such as medical records or financial transactions—poses a significant privacy risk. Even "semi-honest" cloud providers can leak information if a single host machine is compromised. Existing solutions like Multi-Party Computing (MPC) suffer from massive communication overhead, while Homomorphic Encryption (HE) is computationally prohibitive. Differential Privacy (DP) often sacrifices model accuracy and does not fully hide the dataset during training. CodedPrivateML addresses these challenges by enabling secure offloading of training tasks while ensuring that even a group of colluding workers learns nothing about the underlying dataset.
System Architecture and Methods
CodedPrivateML utilizes a three-pronged approach to ensure privacy and efficiency:
- Stochastic Quantization: To bridge the gap between real-valued data and the finite fields required by coding theory, a specific rounding technique maps data into a finite domain, ensuring model convergence despite the lossy conversion.
- Lagrange Coding: This core component hides the dataset and model weights within a high-degree polynomial masked with random noise. Each worker receives a unique "piece" of this polynomial. Due to the properties of Lagrange interpolation, any $T$ colluding workers observe only random noise, yet the master node can reconstruct the final gradient from a subset of worker results.
- Polynomial Approximation: To maintain compatibility with Lagrange coding, non-polynomial functions like the sigmoid in logistic regression are replaced with low-degree polynomial approximations (e.g., degree 1 or 2).
Key Results and Scaling
The framework was evaluated on Amazon EC2 with up to 50 worker nodes using the CIFAR-10 and GISETTE datasets. CodedPrivateML demonstrated a 4.4x to 5.2x speedup over state-of-the-art MPC baselines. Crucially, while MPC communication costs often scale quadratically with the number of workers, CodedPrivateML’s overhead scales linearly, making it highly suitable for large-scale deployments.
In terms of accuracy, the model achieved approximately 81% on CIFAR-10 and 97.5% on GISETTE, matching the performance of conventional, non-private logistic regression despite the use of quantization and polynomial approximations. The breakdown of runtime shows that the framework significantly reduces the time spent on both dataset encoding and inter-node communication.
Conclusion
CodedPrivateML represents a significant advancement in privacy-preserving machine learning, offering information-theoretic security with linear scaling. While currently optimized for linear and logistic regression, future work aims to extend this framework to deeper neural networks and explore "analog" coding to eliminate the need for quantization entirely.
Summary updated