Privacy-preserving collaborative prediction based on random forestsPrivacy-Preserving Collaborative Prediction using Random Forests
The authors propose a locally learn then merge privacy-preserving collaborative prediction system for random forests, which returns predictions in an average of 105.37–125.94 seconds on EHR data.
t mutually distrusting providers each hold a random forest trained on local data; an untrusted server stores the encrypted models and computes predictions with the user; all parties are honest-but-curious and non-colluding; the user obtains only the final prediction y, and the server and providers obtain no information about the input x.
- In privacy-sensitive scenarios (such as cross-clinic EHR data), sharing data to improve model effectiveness conflicts with protecting privacy; existing cryptographic schemes require two systems—privacy-preserving training and privacy-preserving scoring—which is costly.
- Proposes locally learn then merge: each provider trains a random forest locally, encrypts it and uploads it to an untrusted server, after which it can go offline; the server and the user use linearly homomorphic encryption, a secure comparison protocol, and OT to compute online the mean of all tree predictions.
- On the three EHR tasks, the AUC of LLM is close to the merged-training baseline (e.g., Influenza 0.7640 vs. 0.8011); on the five UCI datasets, effectiveness varies with dataset and number of providers; under HTCondor, a single prediction returns within about 2 minutes on average.
- The authors note that currently only honest-but-curious security is guaranteed, and extending to the malicious model is future work; online overhead grows with the number of features n, and eliminating the dependence on n remains to be studied; the effect of LLM is dataset dependent, and characterizing this dependence is also future work.
- Evaluated models
- random forest
- Benchmarks
- EHR data (Marshfield Clinic): Influenza, Acute Myocardial Infarction, Lung CancerUCI datasets: Australian, Breast cancer, Spambase, Colon cancer, LeukemiaUCI datasets (附录): Nursery, Heart Disease, Diabetes, Housing
- Metrics
- AUCPrediction Timerunning timecommunication/bandwidth
The study proposes a privacy-preserving collaborative prediction scheme for ensemble methods, focusing on random forests. Each participant trains a model using only local data; when a client requests a prediction for a new sample, the results of all local models are aggregated without leaking additional information. On real datasets including actual EHR data, experiments show that the scheme is efficient and may yield accuracy gains.
Paper analysis
What problem does this paper attempt to solve?
The authors propose locally learn then merge, using a single system to accomplish privacy-preserving collaborative prediction with random forests.
Core problem: multiple data holders want to collaborate to improve random forest prediction performance, but privacy regulations prohibit directly sharing data, and existing cryptographic schemes require two separate systems for training and scoring, with high overhead.
- Scenario and motivation: The authors take training a clinical prediction model on cross-clinic EHR data as an example; pooling data can improve performance, but regulations such as HIPAA and GDPR and patient privacy requirements hinder sharing; de-identification is considered unsafe, and syntactic methods such as k-anonymity rely on assumptions about the attacker's background knowledge.
- Shortcomings of existing methods: The authors state that existing privacy-preserving training (such as homomorphic encryption and MPC) has high communication and computation overhead, and protecting both training and scoring requires deploying two systems.
- Core observation: The predictions of ensemble methods are inherently a mixture of the predictions of the base models, so each provider can train locally and merge predictions only at the scoring stage, with no data sharing and no extra overhead during training.
- Paper's approach: Instantiate locally learn then merge under the cloud model for random forests: providers upload encrypted forests to an untrusted server and then go offline, and the server and user complete prediction online; experiments evaluate effectiveness and efficiency.
- Threat model:
- Goal: The user obtains only the final prediction y and no other information about the local models M_i; the provider and server obtain no information about the user's input x.
- Knowledge/capability: All parties are honest-but-curious and non-colluding; the server is untrusted and sees only the encrypted models.
- Victim system: A prediction system consisting of the local random forests of t providers, an untrusted server, and a user holding a private input x.
What related research exists?
Related work is divided into three groups: privacy-preserving training, privacy-preserving scoring, and differentially private decision trees; the authors distinguish this paper by training without interaction.
Privacy-preserving training (decision tree)
- Lindell and Pinkas (2000)—proposed a system in which two parties collaboratively run ID3 on their respective private databases, using oblivious polynomial evaluation and Yao's protocol.
- Xiao et al. (2005), Samet and Miri (2008)—used threshold homomorphic encryption to handle horizontally partitioned data with more than two parties; Vaidya et al. (2008) and others handle vertically partitioned data.
- de Hoogh et al. (2014)—the authors call it the most efficient privacy-preserving decision tree training protocol they know of, based on Shamir secret sharing, requiring n≥3 and an honest majority, and targeting categorical attributes.
Privacy-preserving random trees/forests
- Vaidya et al. (2014)—privacy-preservingly learn and score random trees; the paper notes that its training phase also requires interactive collaboration among parties, whereas in this paper each party's learning is fully independent and training is faster; the authors also note that the advantage of Vaidya et al. is that it can handle vertically partitioned data.
Privacy-preserving scoring
- Ishai and Paskin (2007) first considered the scenario where the provider holds the decision tree and the user holds the instance; Brickell et al. (2007) evaluated binary branching programs, and Barni et al. (2009) improved and extended this to linear branching programs.
- Bost et al. (2015)—scored decision trees using Yao's protocol and levelled homomorphic encryption, and also considered Naive Bayes and hyperplane classification; Backes et al. (2017) improved and extended the algorithm of Brickell et al. to random forests.
- Wu et al. (2016), Tai et al. (2017)—further improved efficiency; Tai et al. use only linearly-homomorphic encryption, which is especially efficient for deep and sparse trees; Joye and Salehi (2018) reduced the load on the provider and server; De Cock et al. (2017) used secret-sharing to score decision trees, SVM, and logistic regression.
Differentially private decision trees
- Jagannathan et al. (2012), Rana et al. (2015)—constructed differentially private decision tree/random forest classifiers; the authors state that this paper's threat model is different and that the two are orthogonal.
Baselines and benchmarks: the baselines for the effectiveness comparison are merge then learn (merge data to train a single forest) and zero sharing (train independently); the datasets are 3 EHR tasks and 5 UCI datasets; the appendix compares the scoring results of ΠPPS with Tai et al. (2017) in terms of runtime and bandwidth. The authors position this paper as: an alternative in which training is fully local and a single system covers both training and prediction.
How does the paper address this problem?
Train random forests locally, encrypt and upload to the server, and online use LHE, secure comparison and OT to evaluate each tree and then merge.
The overall idea is locally learn then merge: each provider independently trains a random forest on its local data, hands the encrypted forest to an untrusted server, and then goes offline; for each prediction, the server and the user run the tree evaluation protocol online, and the user obtains the mean of all tree predictions.
Problem setting and merge function
- There are t providers; the k-th holds RF_k (m_k trees, maximum depth d_k, both public, tree structure confidential); the user's secret input is x ∈ R^n.
- The user's output is y = 1/m∑k=1t∑j=1mk Tjk(x), where m = m_1+…+m_t, i.e., the merge function Φ takes the arithmetic mean of all trees.
- Assume one party (which may be the user or the providers) runs Gen(κ) to generate an LHE key pair, pk is public, and the user obtains sk through authentication; there is also a public PRF F.
Offline phase: model encryption
- Each provider samples a PRF seed s_k and completes each tree into a full binary tree.
- For each split node, compute e'_i = e_{j_i} + F(s_k,(j,i)) to hide the feature index, and encrypt the threshold t'_i = Enc_pk(−t_i); for each leaf, encrypt ℓ'_i = Enc_pk(ℓ_i) (Figure 4).
- The encrypted forest [T_j^k] is sent to the server, and the encryption of the seed s'_k = Enc_sk(s_k) is made public; this phase is executed only once.
Online phase and tree evaluation protocol ΠTE
- The user submits the encrypted input x'[i] = Enc_pk(x[i]); ΠTE is run for each tree (Figure 7), yielding additive shares T_j^k(x) = s_j^k + r_j^k; finally the server sends the sum of its shares r, and the user computes y = (s+r)/m (Figure 5).
- Key designs of ΠTE: 1) the server uses homomorphic properties to compute the ciphertext of each N_i(x); 2) the server randomizes the tree (each node samples γ_i ∈ {−1,+1} to decide whether to swap the left and right subtrees), hiding the path to the leaf from the user; 3) both parties run the secure comparison protocol Π_SC to obtain multiplicative shares of n_i = sign(N_i(x)); 4) the user uses the algebraic properties of the polynomial representation to compute the reached leaf index i* locally; 5) both parties run 1-out-of-2^d OT, and the user obtains an additive share of ℓ_{i*} without revealing i* to the server.
- Security argument (Section 3.2): for an honest-but-curious server, security comes from the encryption scheme and the PRF; for the user, security comes from tree randomization and OT, which the authors state can be obtained via the composition theorem.
Complexity and hyperparameter control
- Offline: the provider's model encryption cost is Θ(m_k·2^{d_k}); online complexity is proportional to n·m·2^d (d = max d_k), and ΠTE can be parallelized.
- Because the overhead is proportional to m·2^d, the authors propose a tuning method: fix s and maximize AUC within the constraint set Q_s = {(m,d) | m·2^d ≤ s}, rather than an unconstrained grid search.
Appendix variants
- Appendix A.1 gives a simplified protocol Π_PPS: two-party privacy-preserving scoring where the provider holds the forest in plaintext and the client holds the input, with complexity Θ(n + m·2^d) and communication of n + 2^{d+1} ciphertexts.
What experiments did the paper conduct?
AUC and overhead were measured on 3 EHR tasks and 5 UCI datasets; LLM performance varies by dataset.
Experimental setup
- Subject under test: the paper does not evaluate the machine learning model itself, but evaluates the proposed system; three approaches are compared—merge then learn (merge data for training), zero sharing (train independently and average), and locally learn then merge (LLM).
- EHR data: 3 disease prediction tasks from Marshfield Clinic (1 month in advance): Influenza 10,000 samples, Acute MI 9,284 samples, Lung Cancer 10,000 samples; features are reduced to 1,000 dimensions via 1% frequency filtering and PCA; the baseline is 500 trees, depth 8, considering 10% of features per split, 90% training/10% testing; LLM is two simulated providers each holding 45% of the data and each training 250 trees (Table 1).
- UCI data: 5 in total—Australian, Breast cancer, Spambase, Colon cancer, Leukemia (Table 2); randomly split into t ∈ {2,3,4,5,6} parts to simulate providers, each with 70% training/30% testing; each provider trains 50 trees of depth 8, repeated 50 times to produce confidence intervals (Figure 9).
- Metrics: AUC (the probability that a random positive example ranks before a random negative example in binary classification); efficiency metrics are runtime and communication volume.
- Implementation: Python 3.5.2, LHE using the Joye-Libert scheme (M = Z_2^64, 100-bit security), OT using emp-toolkit, PRF using AES128; inputs quantized by ×10^3 into 21-bit values.
- Machine: commodity machine (60GB memory, 48-core Intel Xeon E5-2680 v3), timings averaged over 5 repetitions; EHR experiments parallelized by tree using HTCondor.
Main results
Swipe horizontally to read the table
Task Samples Base AUC (merge then learn) LLM AUC Prediction Time (s) Influenza 10,000 0.8011 0.7640 105.37±14.70 Acute MI 9,284 0.6797 0.6658 121.75±9.43 Lung Cancer 10,000 0.6313 0.5786 125.94±8.19 According to Table 1, all are settings with two simulated providers and forest depth 8.
- The authors state that on the three tasks the AUC of LLM is comparable to the baseline.
- The authors state that the HTCondor parallel version returns predictions within 2 minutes on average, which they consider sufficient to support a doctor's query workflow for a single patient.
- On all three tasks the LLM AUC is lower than the corresponding baseline, with the largest difference on Lung Cancer.
Effect of the number of providers on UCI
- What was measured: on the 5 UCI datasets, the AUC of the three approaches as t varies from 2 to 6 (Figure 9).
- Results: the authors state that the effect of LLM relative to merge then learn is neither strictly positive nor strictly negative, but dataset dependent; subfigure A of Figure 9 gives the AUC difference between the two (positive values indicate LLM is better), and subfigures B–F plot the three curves per dataset.
- Authors' interpretation: providers should assess for themselves the effect of merging on prediction quality before merging models.
Trade-off between depth and number of trees
- What was measured: on the Colon cancer dataset, combinations of d ∈ {1,…,28,30} and 25 values of m (1 to 2000), with 30 repetitions per pair, 70/30 split, plotted as an AUC heatmap (Figure 8).
- Results: Figure 8 marks the best combination AUC=0.823 (gold star), and the best AUC under the constraint m·2^d ≤ 2^15 is 0.809 (silver diamond); the authors state that on this task depth 6 with 300 trees is already competitive with larger depths.
- Authors' interpretation: the accuracy loss from limiting depth can be compensated by increasing the number of trees, thereby controlling overhead at the same time.
Efficiency
- Offline phase (Table 2): model encryption ranges from 0.84 s/7.96 MB for Australian to 41.7 s/733.69 MB for Leukemia (n=7129); the authors state that even the high-dimensional case is under 1 minute and less than 1 GB.
- Online phase (Figure 10): ΠTE runtime grows with the number of providers and varies by dataset; communication volume is independent of n and grows linearly with the number of trees, with bandwidth always less than 60 MB at 300 trees; encrypted input submission takes 0.17 s at n=7129, and the final summation step takes less than 8 ms for 300 trees.
- Appendix ΠPPS (Table 3, m=1 single tree): Nursery (d=4) 29.56 ms/10.74 kB, Housing (d=13) 1194.01 ms/4200.9 kB; the authors state that compared with Tai et al. (2017), on Housing it is 1.2 s/4.3 MB versus 2 s/0.85 MB, and on Nursery the runtime is about 1/5 and the bandwidth about 1/10 of theirs.
Other ablations and analyses
- There are no other independent ablation experiments; for hyperparameter effects see "Trade-off between depth and number of trees" above.
What are some points that can be further explored?
The authors list three directions: malicious-model security, removing the dependence on the number of features n, and characterizing the dataset dependence of effectiveness.
Limitations and future directions noted by the authors
- Security model: the system is proven secure only under the honest-but-curious model; the authors state that extending to the malicious model (especially when the server is corrupted) is an interesting future direction (Conclusions).
- Effectiveness depends on the dataset: experiments show that the effectiveness of LLM is dataset dependent; the authors state that future work could characterize the relationship of this dependence to dataset parameters and distribution (Conclusions).
- Dependence on the number of features n: online efficiency is affected by the forest hyperparameters (controllable) and the number of features n (determined by the application); the authors state that eliminating the dependence on n is another future direction, which may lead to a more efficient implementation (Conclusions).
- Vertical partitioning: Related Works notes that Vaidya et al. (2014) can handle vertically partitioned data, whereas under this paper's approach learning is fully independent, implying that this paper does not cover that scenario (Section 6).
Scope of experiments
- The EHR experiments cover 3 disease tasks, 2 simulated providers, forest depth 8, and 250 trees per provider (Table 1).
- The UCI effectiveness experiments cover 5 datasets, number of providers t ∈ {2,3,4,5,6}, 50 trees of depth 8 per provider, repeated 50 times (Figure 9).
- The depth–number-of-trees trade-off is done only on the single dataset Colon cancer, with d up to 30, m up to 2000, and 30 repetitions per combination (Figure 8).
- The efficiency experiments are run on a single commodity machine (48 cores) and on HTCondor, with timings averaged over 5 repetitions; ΠPPS is measured on a single tree on 6 UCI datasets (Table 3).
- The paper does not report formal specification details of security (only the argument sketch in Section 3.2), nor does it report end-to-end overhead comparison experiments with privacy-preserving training schemes (such as de Hoogh et al.).
Summarize the main content of the paper
Local random forest training with encrypted merged prediction: one system addresses both privacy and efficiency, with performance varying by dataset.
A privacy-preserving machine learning (PPML) paper that proposes the locally learn then merge paradigm for ensemble methods and implements it on random forests.
- Problem: sharing data across institutions (such as clinics) can improve model effectiveness, but privacy regulations prohibit direct sharing; the authors state that existing cryptographic schemes require two systems—privacy-preserving training plus privacy-preserving scoring—which is costly.
- Method: each provider trains a random forest locally, encrypts the model using linearly homomorphic encryption and a PRF, uploads it to an untrusted server, and goes offline; for each prediction, the server and the user run a tree evaluation protocol (secure comparison, tree randomization, OT), and the user obtains only the mean of all tree predictions; security is argued under the honest-but-curious, non-colluding model.
- Effectiveness: on the three EHR tasks, the AUC of LLM is 0.7640 (Influenza), 0.6658 (Acute MI), 0.5786 (Lung Cancer), and the corresponding merged-training baselines are 0.8011, 0.6797, 0.6313 (Table 1); on the five UCI datasets, the effect of LLM relative to the baseline varies with dataset and number of providers, with no consistent positive or negative direction (Figure 9).
- Hyperparameters: on Colon cancer, under the constraint m·2^d ≤ 2^15 the best AUC is 0.809, and the unconstrained best is 0.823 (Figure 8); the authors state that the accuracy loss from limiting depth can be compensated by increasing the number of trees.
- Efficiency: under HTCondor parallelism, a single prediction averages 105.37–125.94 seconds (Table 1); online bandwidth for 300 trees is less than 60 MB; offline encryption takes under 1 minute and less than 1 GB even at 7,129 dimensions.
- Authors' conclusion: this paradigm is an effective alternative for privacy-preserving collaborative ML; future directions include extending to the malicious security model, characterizing the dataset dependence of effectiveness, and eliminating the dependence of online overhead on the number of features n.