Abstract
Kangaroo is a novel privacy-preserving framework designed to evaluate large-scale decision trees and random forests efficiently, even over high-latency Wide Area Networks (WAN). By leveraging Packed Homomorphic Encryption (PHE) and SIMD-style processing, it amortizes computation and communication costs, achieving up to a 59× speedup over existing state-of-the-art protocols.
Introduction
In the current "Model-as-a-Service" (MaaS) era, two critical privacy needs often conflict: clients must keep their input data private, while service providers must protect their proprietary models as intellectual property. Private Decision Tree Evaluation (PDTE) aims to resolve this tension. However, existing solutions frequently hit a "scalability wall."
Traditional PDTE schemes suffer from two primary bottlenecks. First, many require communication rounds proportional to the tree depth, making inference painfully slow over high-latency WANs. Second, their costs tend to scale linearly with the number of trees or nodes, rendering them impractical for the massive random forests used in modern production environments. Kangaroo addresses these challenges by introducing a framework that enables fast, private inference for complex models under real-world network conditions.
Methodology
The core innovation of Kangaroo is the transition from processing individual values to amortized processing using Packed Homomorphic Encryption (specifically the BFV cryptosystem). This approach treats the ciphertext not as a container for a single value, but as a vector of nodes, aligning the tree structure with the algebraic structure of the PHE scheme.
The "Pack" Protocol Trio
Kangaroo utilizes three specialized protocols to handle packed data:
- PackFeatureSel: A non-interactive method to select features across multiple nodes and trees simultaneously.
- PackObliviousCom: A constant-round protocol for secure comparison that operates directly on packed data.
- PackPathEva: An efficient path evaluation protocol that avoids the exponential explosion typically associated with full binary tree expansion.
Efficient Model Hiding and Encoding
Rather than the expensive standard approach of padding every tree into a complete binary tree, Kangaroo uses a combination of dummy nodes and random "coin-flip" node swapping to obfuscate model structure with minimal overhead. The framework also employs adaptive encoding, dynamically adjusting data packing based on specific tree structures to ensure every ciphertext slot is utilized effectively.
Experimental Evaluation
The authors evaluated Kangaroo using standard benchmarks from the UCI Machine Learning Repository, including the Digits (47 features), Diabetes (10 features), and Boston Housing (13 features) datasets. To test scalability, they constructed massive random forests reaching up to 969 trees and over 411,000 total nodes.
Key Results and Comparative Analysis
Kangaroo's performance gains are most dramatic in constrained network environments and large-scale deployments. By maintaining a fixed 4 rounds of communication, the framework is nearly immune to the high latency that cripples depth-dependent schemes.
As shown in the comparative analysis, Kangaroo is the only protocol that achieves $O(1)$ comparison complexity and full amortization while supporting sparse models. Key performance highlights include:
- Significant Speedups: Kangaroo achieves 14× to 59× better performance than state-of-the-art one-round interactive schemes (like Sortinghat or Levelup) on standard datasets. On massive models, it outperforms existing schemes by 3× to 44×.
- WAN Performance: In cross-cloud tests (JD Cloud and Alibaba Cloud), Kangaroo evaluated a random forest with 411,825 nodes in approximately 60 ms per tree (amortized).
- Communication Efficiency: It achieves the lowest amortized online time for oblivious comparison compared to established protocols like DGK, ABY, and Cheetah.
Conclusion and Future Work
Kangaroo demonstrates that strategic amortization and structure hiding can overcome the scalability limitations of traditional PDTE. While highly efficient for large models, it does face overhead challenges for very small models in low-latency LAN environments where the benefits of PHE packing are less pronounced.
Future research will focus on extending these packing and amortization techniques to other architectures, such as Deep Neural Networks (DNNs), and evolving the security model from a semi-honest adversary assumption to a more robust malicious adversary model.
Summary updated