Privacy Enhanced Decision Tree Inference

Kanthi K. Sarpatwar, Nalini K. Ratha, Karthik Nandakumar, Karthikeyan Shanmugam, James T. Rayfield, Sharath Pankanti, Roman Vaculín

Abstract

Performing complex machine learning inference on encrypted data remains a significant challenge in secure computing. This paper, presented at CVPR 2020 by IBM researchers, introduces a novel framework for executing decision tree inference using Fully Homomorphic Encryption (FHE). By approximating discrete logical branches with continuous "soft-membership" functions and leveraging the CKKS encryption scheme, the proposed system enables private Machine Learning as a Service (MLaaS) without sacrificing predictive accuracy.

Introduction: The Challenge of Private Inference

In a standard Machine Learning as a Service (MLaaS) model, a client provides raw data to a cloud-based service, which then returns a prediction. This paradigm presents significant privacy risks: the client must trust the provider with sensitive data, and the provider risks exposing proprietary model architectures.

High-level architecture of the private MLaaS system using Homomorphic Encryption.

Fully Homomorphic Encryption (FHE) offers a potential solution by allowing computations to be performed directly on encrypted ciphertexts. However, FHE is fundamentally designed for polynomial operations (addition and multiplication). Decision trees, which rely on conditional branching (e.g., "if age > 16"), present a unique hurdle because the server cannot observe the values required to make a discrete branching decision.

Methodology: From Logic to Polynomials

To bridge the gap between logical branching and encrypted arithmetic, the authors developed several key strategies:

Soft-Membership (SM) Functions

Instead of a binary "if-then" choice, the system uses a continuous mathematical approximation. The comparison is modeled as: $$EVAL(a \ge b; k) = \frac{a^k}{a^k + b^k}$$ As the parameter $k$ increases, this function approaches a step function. This allows the model to calculate the probability of a data point following a specific path through the tree.

Example of a decision tree structure illustrating the discrete logic gates that are converted into continuous functions.

CKKS Scheme and SIMD Packing

The researchers utilized the CKKS encryption scheme, which is optimized for approximate floating-point arithmetic. To improve efficiency, they employed Single Instruction Multiple Data (SIMD) techniques. By "packing" tree thresholds and input features into a single ciphertext, the system can evaluate all nodes in the tree simultaneously using vector rotations and multiplications, a process known as oblivious computation.

Experimental Evaluation

The approach was validated using two standard datasets from the scikit-learn library:

  1. Boston Housing Dataset: For regression tasks, the FHE-based model achieved an $R^2$ score of 0.98, indicating that the encrypted inference was nearly identical to its cleartext counterpart.
  2. Iris Dataset: For classification, the encrypted model produced class labels identical to those of the standard non-encrypted model.

The system successfully handled trees with up to 12 decision nodes, demonstrating the feasibility of the soft-membership approach for practical tree depths.

Conclusion and Future Directions

This research demonstrates that privacy-preserving decision tree inference is achievable with high accuracy. While current limitations include the need for data normalization and the simulation of bootstrapping due to library constraints, the work paves the way for interpretable, private machine learning in regulated sectors like healthcare and finance. Future research will focus on scaling these methods to larger datasets and integrating native bootstrapping for production-ready deployments.

Summary updated

BibTeX
@inproceedings{sarpatwar2020privacy,
  author = {Kanthi K. Sarpatwar and Nalini K. Ratha and Karthik Nandakumar and Karthikeyan Shanmugam and James T. Rayfield and Sharath Pankanti and Roman Vaculín},
  title = {{Privacy Enhanced Decision Tree Inference}},
  booktitle = {Workshops @ CVPR},
  year = {2020},
  doi = {10.1109/cvprw50498.2020.00025},
}
Figure