Abstract
OnePath is a novel framework for secure decision tree inference that significantly boosts efficiency by traversing only the nodes on the actual prediction path rather than the entire tree. By combining functional encryption with a dual-server architecture, it protects model and data privacy while allowing both users and model providers to remain offline during the inference phase.
Introduction
Outsourcing machine learning to the cloud offers massive scalability but introduces severe privacy risks: model providers fear intellectual property theft, and users worry about exposing sensitive data (like medical or financial records).
Existing Privacy-Preserving Decision Tree (PPDT) methods generally fall into two categories, both with major drawbacks:
- Full-tree traversal: To hide which path is taken, these methods evaluate every single node in the tree. This is computationally expensive and scales poorly with tree depth.
- Path-only traversal: These are faster but often leak the prediction path to the cloud or require the user to stay online for multiple rounds of interaction to guide the traversal.
The authors aim to create a "best of both worlds" solution: a system that is as fast as path-only traversal, as private as full-tree traversal, and supports offline users—meaning the user sends a query and can disconnect until the result is ready.
Methodology
OnePath utilizes a dual-server model where two non-colluding cloud servers collaborate to perform the computation. The core technical pillars include:
- Functional Encryption (FE): The framework is the first to use inner-product FE to evaluate decision tree nodes. It transforms the standard boolean comparison ($x > \theta$) into a linear equation that can be computed securely.
- Secure Model Preparation: The model provider uses a Fisher-Yates shuffle to randomize node indices and Pseudo-Random Functions (PRFs) to mask feature indices. This ensures the cloud servers don't know which features are being tested at which nodes.
- Alternating Traversal Protocol: To hide the prediction path, the servers alternate responsibilities. For example, Server 1 might determine the direction for the current node but doesn't know where the next node leads, while Server 2 handles the next layer. This "blindfolded" hand-off prevents either server from reconstructing the full path.
- Additive Secret Sharing: User data is split into random "shares" sent to the two servers. No single server can see the original input.
Experimental Evaluation
The authors evaluated OnePath using five standard datasets from the UCI Machine Learning Repository, ranging from shallow trees to deeper, feature-rich models:
- Heart-disease (13 features, depth 3)
- Credit-screening (15 features, depth 4)
- Breast-cancer (9 features, depth 8)
- Housing (13 features, depth 13)
- Spambase (57 features, depth 17)
Key Insights
- Linearizing the Boolean: The critical innovation is converting a non-linear threshold comparison into a linear function ($y = a + bx$) passing through a specific point ($ \theta, 0.5$). By checking if the result is $>0.5$, the system determines the branch direction using efficient inner-product FE.
- Path Hiding via Alternation: Instead of complex cryptographic "oblivious" structures, the dual-server architecture creates a relay where each server only sees a disconnected fragment of the path.
- True Asynchronicity: Most secure protocols require the user to participate in every step of the tree traversal. OnePath moves this complexity to the cloud servers, allowing the user to submit a query once and receive the result later.
Results
- Speed: OnePath processes queries in microseconds to low milliseconds. For a tree with depth 13, the server computation takes only ~13ms.
- Efficiency vs. State-of-the-Art: Compared to SortingHat (a prominent 2022 framework), OnePath is 7.4x to 68.1x faster on the server side.
- Communication: The communication cost for the user is sublinear, scaling with $O(d)$ (the depth of the tree) rather than the total number of nodes.
- User Experience: Online inference for practical tree sizes was achieved in less than 50 milliseconds, making the privacy overhead almost imperceptible to the end-user.
Limitations and Future Work
- Trusted Third Party: The current design relies on a Key Generation Center (KGC) to distribute keys. A decentralized version without a KGC would be more robust.
- Semi-Honest Model: The security proof assumes servers follow the protocol (semi-honest). Future work could extend this to "malicious" environments using zero-knowledge proofs.
- Single-Cloud Potential: The authors suggest exploring a single-cloud architecture using "Functional Hiding Inner Product Encryption" (FHIPE) to remove the requirement for two non-colluding providers.
Summary updated