Introduction
Distributed machine learning (ML) has become essential for processing large-scale datasets, yet it introduces significant privacy risks when offloaded to untrusted cloud environments. Organizations such as hospitals and financial institutions require robust privacy guarantees to prevent data leakage to curious or malicious cloud workers. While existing solutions like Homomorphic Encryption (HE) and Multi-Party Computation (MPC) offer privacy, they often suffer from prohibitive computational or communication overheads.
CodedPrivateML addresses these challenges by integrating coding theory with stochastic quantization. This framework provides information-theoretic privacy—ensuring data security even against adversaries with infinite computing power—while achieving substantial speedups over traditional cryptographic methods.
System Model and Methodology
The CodedPrivateML framework operates on a distributed system consisting of a master node and $N$ worker nodes. The master node aims to train an ML model on a dataset $\mathbf{X}$ while keeping the data private from any subset of up to $T$ colluding workers.
The framework employs a four-stage pipeline:
- Stochastic Quantization: Real-valued data is converted into integers over finite fields. A stochastic rounding technique ensures the quantized gradient remains an unbiased estimator of the true gradient, preserving model convergence.
- Lagrange Coding: The dataset is partitioned into $K$ blocks and embedded into a high-degree polynomial with random noise matrices. This dual-purpose step provides privacy through masking and enables parallelization by requiring each worker to process only $1/K$ of the data.
- Polynomial Approximation: To handle non-linear operations in logistic regression, such as the sigmoid function, the framework utilizes low-degree polynomial approximations during training.
- Fast Decoding: The master node updates the model once it receives results from a "recovery threshold" of the fastest workers, effectively mitigating the impact of "stragglers" (slow workers).
Experimental Evaluation
The performance of CodedPrivateML was evaluated using the CIFAR-10 and GISETTE datasets. The framework was compared against the BH08 MPC protocol on Amazon EC2 with up to 50 workers.
Key Results
- Speed and Scalability: CodedPrivateML achieved a 5.2x speedup over the MPC baseline on the GISETTE dataset and a 4.4x speedup on CIFAR-10. Unlike traditional MPC, where communication overhead often increases with the number of workers, CodedPrivateML demonstrates consistent scalability, with training times decreasing as more workers are added.
- Accuracy: Despite the use of quantization and polynomial approximations, the framework maintains high accuracy, achieving results nearly identical to conventional logistic regression (~81% on CIFAR-10 and ~97.5% on GISETTE).
- Privacy-Parallelism Trade-off: The system allows for a flexible trade-off between the privacy threshold ($T$) and the parallelization factor ($K$). As the total number of workers ($N$) increases, both privacy and speed can be enhanced linearly.
Conclusion
CodedPrivateML represents a significant step forward in secure distributed computing. By leveraging Lagrange coding, it overcomes the communication bottlenecks of MPC and the computational costs of HE. While currently optimized for linear and logistic regression, future work aims to extend this framework to deep neural networks and explore analog coded computing to further refine accuracy and efficiency.
Summary updated