Abstract
Most existing Secure Multi-Party Computation (MPC) protocols for privacy-preserving training of decision trees over distributed data assume that the features are categorical. In real-life applications, features are often numerical. The standard "in the clear" algorithm to grow decision trees on data with continuous values requires sorting of training examples for each feature in the quest for an optimal cut-point in the range of feature values in each node. Sorting is an expensive operation in MPC, hence finding secure protocols that avoid such an expensive step is a relevant problem in privacy-preserving machine learning. In this paper, we propose three efficient alternatives for secure training of decision tree based models on data with continuous features: (1) secure discretization of the data, followed by secure training of a decision tree; (2) secure discretization followed by secure training of a random forest; and (3) secure training of extremely randomized trees ("extra-trees") on the original data. We implemented these solutions in the semi-honest setting with additive secret sharing based MPC, achieving training times of just a few minutes for large datasets with accuracies at par with non-private models.
Introduction
Training machine learning models on sensitive, distributed data (like medical records or financial history) usually requires a trade-off between privacy and performance. Secure Multi-Party Computation (MPC) allows multiple parties to compute a function over their combined data without any party seeing the others' raw inputs.
The primary challenge for decision trees in MPC is handling continuous data. Standard algorithms find the best "split point" for a numerical feature by sorting all values. In the world of MPC, sorting is computationally prohibitive, often requiring complex "oblivious sorting" networks that make training on large datasets practically impossible. Consequently, most existing secure tree-training protocols are limited to categorical data.
System Architecture and Methods
The proposed system model involves multiple data owners who provide secret shares of their data to two computing parties, Alice and Bob, as illustrated in Figure 1. This setup allows for collaborative training without exposing raw data.
To bypass the sorting bottleneck, the authors propose three strategies:
- Secure Discretization ($\pi_{DISC}$): Instead of finding the perfect split point, the protocol performs secure "equal-width binning." It uses a novel protocol, $\pi_{minmax}$, to find the range of a feature without revealing the values, then divides that range into $p$ bins.
- Secure Random Forest ($\pi_{RF}$): This extends categorical tree protocols by adding secure feature and sample selection. A "Trusted Initializer" pre-distributes secret-shared selection matrices, allowing parties to "blindly" pick subsets of data.
- Secure Extremely Randomized Trees ($\pi_{XT}$): In "Extra-Trees," cut-points are chosen randomly rather than optimally. This completely removes the need to sort or discretize the data upfront, making it highly efficient for MPC.
Technical Building Blocks
A key component of the secure discretization process is the $\pi_{minmax}$ protocol, which efficiently finds the minimum and maximum values in a secret-shared dataset.
Additionally, the authors developed $\pi_{BTX}$, a protocol that extracts the most significant bit of a secret-shared value to perform comparisons much faster than standard bit-decomposition methods.
Experimental Results
The protocols were evaluated on four binary classification datasets: Breast Cancer (BC), ECG Heartbeat, Lower Back Pain (BACK), and iDASH 2019 Genome Analysis (IV-GSE).
- Efficiency: The methods are orders of magnitude faster than sorting-based approaches. Training on the ECG dataset (14,552 instances) took 43–80 seconds, compared to an estimated 28 hours for previous state-of-the-art methods.
- Accuracy: Secure training accuracy was remarkably close to non-private baselines (Scikit-learn). For instance, on the BC dataset, Extra-Trees achieved 96.5% accuracy, slightly outperforming the non-private baseline in that specific test.
- Scalability: The protocols handled the IV-GSE dataset, containing over 12,000 features, in just 12.6 seconds for the ensemble methods.
Conclusion
This work demonstrates that randomization is a powerful tool in MPC. By shifting from optimal split-finding to randomized approaches like Extra-Trees, the most computationally expensive parts of the training process are eliminated. While the current implementation assumes a semi-honest model and utilizes a Trusted Initializer for efficiency, it represents a significant step toward practical, large-scale privacy-preserving machine learning on continuous data.
Summary updated