Non-interactive Private Decision Tree Evaluation

Anselme Tueno, Yordan Boev, Florian Kerschbaum

TL;DR

This paper introduces the first non-interactive protocol for Private Decision Tree Evaluation (PDTE), allowing a client to get a classification result from a server's private model without revealing their data or learning the model's structure. By leveraging Fully Homomorphic Encryption (FHE) and optimizing for logarithmic multiplicative depth, the authors achieve single-round evaluations of depth-10 trees in just a few seconds.

What Problem Does This Paper Address?

In the world of Machine Learning as a Service (MLaaS), we often face a privacy deadlock. A server (like a bank or hospital) has a proprietary decision tree model it wants to keep secret, while a client has sensitive personal data they want to classify without handing it over in plaintext.

Existing solutions for Private Decision Tree Evaluation (PDTE) typically rely on Secure Multi-party Computation (SMC) techniques like Garbled Circuits or Secret Sharing. While effective, these methods are "chatty"—they require multiple rounds of interaction between the client and server. This high latency makes them impractical for weak clients or unstable network conditions. The challenge is to create a non-interactive protocol: the client sends one encrypted message, the server does the heavy lifting, and the client receives one encrypted result.

Methods

The authors achieve non-interactivity by using Fully (or Somewhat) Homomorphic Encryption (FHE/SHE). Specifically, they implement their system using two different libraries: HElib (implementing the BGV scheme) and TFHE.

The core of their approach involves two novel instantiations:

  1. PDT-BIN (Binary): Attributes and thresholds are compared bit-by-bit. This is particularly efficient with TFHE’s fast gate-by-gate bootstrapping.
  2. PDT-INT (Arithmetic): Uses a modified version of the Lin-Tzeng comparison protocol to evaluate trees using arithmetic circuits.

The "Secret Sauce": Logarithmic Depth

The biggest enemy of FHE is "multiplicative depth"—the number of sequential multiplications performed on a ciphertext. In a standard decision tree, evaluating a path of depth $d$ usually requires $d$ sequential multiplications, which causes noise to grow exponentially.

The authors introduced a divide-and-conquer path evaluation (Algorithm 5). By using a pre-computed Dependency Graph (DAG), they reduced the multiplicative depth from linear ($d$) to logarithmic ($\log d$). This optimization is crucial because it allows the use of "leveled" FHE with much smaller parameters, significantly boosting speed and reducing ciphertext size.

Additionally, they utilized SIMD (Single Instruction, Multiple Data) techniques via ciphertext packing. This allows the server to evaluate multiple attribute vectors simultaneously or compare one attribute against multiple thresholds in a single homomorphic operation.

Datasets

The researchers evaluated their protocols using real-world datasets from the UCI Machine Learning Repository:

  • Heart-disease (HDI): Small scale ($n=13, d=3$).
  • Housing (HOU): Medium scale ($n=13, d=13$).
  • Spambase (SPA): Larger scale ($n=57, d=17$).
  • Artificial (ART): A synthetic dataset used to test the limits of the system ($m=500$ nodes, $d=10$).

Key Insights and Ideas

  • Non-Interactivity is the Goal: By moving the complexity to the server via FHE, the client’s role is reduced to simple encryption and decryption. This is ideal for mobile or IoT clients.
  • Structure Matters: The paper highlights that while generic FHE is slow, domain-specific optimizations (like the DAG-based path evaluation) can make it competitive with traditional interactive protocols.
  • Amortization vs. Latency: There is a trade-off between HElib and TFHE. HElib is superior for amortized time (processing many requests at once using SIMD), while TFHE is better for latency (getting a single result as fast as possible).

Key Results

  • One-Round Efficiency: The protocol successfully evaluates a complete tree of depth 10 within seconds, marking it as the first practical 1-round PDTE.
  • Performance Benchmarks: On the "Heart-disease" dataset, the amortized time per classification was as low as 50 milliseconds using HElib.
  • Scalability: Even for complex trees (depth 10, 64-bit inputs), TFHE could return a result in less than 80 seconds using a multi-threaded server (72 threads).
  • Zero Leakage: Unlike some previous specialized protocols, their binary instantiation (PDT-BIN) leaks absolutely nothing about the tree structure or the path taken, other than the final result.

Limitations and Future Work

  • Computational Overhead: While "seconds" is fast for FHE, it is still orders of magnitude slower than plaintext evaluation. The server requires significant CPU power (the testbed used a 36-core AWS instance).
  • Information Leakage in PDT-INT: The arithmetic version (PDT-INT) currently leaks the number of decision nodes in the tree, which might be a dealbreaker for some proprietary models.
  • Malicious Actors: The current proof focuses on "semi-honest" security (where parties follow the protocol but try to learn extra info). Extending this to "malicious" security (where parties might actively cheat) would likely double the computational cost.
  • Random Forests: The authors briefly sketch an extension to Random Forests in the appendix, but a full, optimized implementation remains for future work.

Summary updated

BibTeX
@inproceedings{tueno2020non,
  author = {Anselme Tueno and Yordan Boev and Florian Kerschbaum},
  title = {{Non-interactive Private Decision Tree Evaluation}},
  booktitle = {DBSec},
  year = {2020},
  doi = {10.1007/978-3-030-49669-2\_10},
}
Figure