Introduction
As Machine Learning as a Service (MLaaS) becomes a cornerstone of modern data analysis, a fundamental privacy conflict has emerged. Service providers hosting predictive models, such as medical diagnostic tools or financial risk assessors, seek to protect their proprietary model parameters and the sensitive training data they represent. Concurrently, clients querying these services—providing DNA profiles, financial records, or personal history—require strict guarantees that their input data remains private.
This paper addresses this conflict through the lens of Private Decision Tree Evaluation (PDTE). In this setting, a server holds a decision tree $T$ and a client holds an input vector $x$. The objective is to compute $T(x)$ such that the client learns only the final classification and the server learns nothing about $x$, and the client learns nothing about $T$ beyond the result.
Methodology
The authors introduce two high-performance protocols for PDTE: one secure against semi-honest adversaries (who follow the protocol but attempt to learn extra information) and a more robust version secure against malicious adversaries (who may deviate from the protocol to extract secrets).
Cryptographic Foundations
The protocols are built upon several key cryptographic primitives:
- Additive Homomorphic Encryption (AHE): The system utilizes an exponential variant of ElGamal encryption over Elliptic Curves. This allows the server to perform computations on the client's encrypted features without decryption.
- Comparison Protocol: A specialized protocol is used to evaluate the decision nodes. For a feature $x_i$ and a threshold $t_k$, the protocol determines if $x_i < t_k$. The result is produced as a secret share of the decision bit, ensuring neither party knows the outcome of individual node comparisons.
- Oblivious Transfer (OT): At the conclusion of the tree traversal, OT is employed to allow the client to retrieve the final classification result corresponding to the reached leaf node, without the server learning which leaf was accessed.
Tree Randomization and Path Blinding
To prevent the client from deducing the tree's structure by observing the evaluation path, the server performs a random permutation of the tree. This ensures that, from the client's perspective, the evaluation path appears as a random bit string.
For the malicious-secure protocol, the authors introduce a "path blinding" technique. The server associates a unique random key with every edge in the decision tree. The value at each leaf is then blinded (XORed) with the keys of all edges leading to that leaf. To unblind the final result, the client must successfully complete the comparison protocols for every node along that specific path. This "conditional OT" approach prevents a malicious client from combining results from different branches of the tree.
Malicious Security Extensions
To defend against malicious actors, the protocol incorporates Zero-Knowledge Proofs (ZKPs). The client must provide a proof that their inputs are valid bits. This ensures that a malicious client cannot manipulate the comparison protocol to leak information about the server's thresholds.
Random Forest Aggregation
The framework extends naturally to Random Forests. For ensembles that use averaging (affine aggregation), the server adds independent random noise to the output of each individual tree. The client computes the sum of these "noisy" results. Finally, the server provides the aggregate sum of the noise, allowing the client to derive the final average without ever seeing the intermediate output of any single tree in the forest.
Experimental Evaluation
The protocols were evaluated using a variety of real-world datasets from the UCI Machine Learning Repository, covering domains such as medical diagnosis (Breast-cancer, Heart-disease), finance (Credit-screening), and general classification (ECG, Nursery, Spambase).
Performance Benchmarks
The proposed semi-honest protocol achieves a significant performance leap over previous state-of-the-art methods:
- Efficiency: The protocol is 19x faster for the client and 5x faster for the server compared to prior benchmarks.
- Communication: It requires 25x less bandwidth.
- Security Standard: These gains were realized while increasing the security parameter from 80-bit to the modern 128-bit standard.
In practical scenarios, the protocol completes evaluations for most UCI datasets in under one second. Even the malicious-secure version is highly efficient, processing complex medical datasets in approximately 12 seconds. The system demonstrates excellent scalability, handling trees with over 10,000 nodes in roughly 30 seconds.
Discussion and Future Work
The primary driver of these performance gains is the specialization of the protocol to the structure of decision trees, avoiding the overhead associated with generic multi-party computation frameworks like Garbled Circuits.
However, some limitations remain. The current protocols require padding trees to be complete binary trees, leading to computation and communication costs that grow exponentially with tree depth ($2^d$). Future research will explore "subexponential" protocols where performance is decoupled from worst-case depth, as well as methods for efficient model updates that do not require a full protocol re-run.
Summary updated