Skip to main content
Efficient encrypted inference on ensembles of decision trees
  • Kanthi Kiran Sarpatwar, IBM Research AI
  • Karthik Nandakumar, Mohamed Bin Zayed University Of Artificial Intelligence
  • Nalini K. Ratha, University at Buffalo
  • James T. Rayfield, IBM Research AI
  • Karthikeyan Shanmugam, IBM Research AI
  • Roman Vaculin, IBM Research AI
  • Sharath U. Pankanti, Microsoft Research
Document Type

Data privacy concerns often prevent the use of cloud-based machine learning services for sensitive personal data. While homomorphic encryption (HE) offers a potential solution by enabling computations on encrypted data, the challenge is to obtain accurate machine learning models that work within the multiplicative depth constraints of a leveled HE scheme. Existing approaches for encrypted inference either make ad-hoc simplifications to a pre-trained model (e.g., replace hard comparisons in a decision tree with soft comparators) at the cost of accuracy or directly train a new depth-constrained model using the original training set. In this work, we propose a framework to transfer knowledge extracted by complex decision tree ensembles to shallow neural networks (referred to as DTNets) that are highly conducive to encrypted inference. Our approach minimizes the accuracy loss by searching for the best DTNet architecture that operates within the given depth constraints and training this DTNet using only synthetic data sampled from the training data distribution. Extensive experiments on real-world datasets demonstrate that these characteristics are critical in ensuring that DTNet accuracy approaches that of the original tree ensemble. Our system is highly scalable and can perform efficient inference on batched encrypted (134 bits of security) data with amortized time in milliseconds. This is approximately three orders of magnitude faster than the standard approach of applying soft comparison at the internal nodes of the ensemble trees. Copyright © 2021, The Authors. All rights reserved.

Publication Date
  • Artificial Intelligence (cs.AI); Cryptography and Security (cs.CR); Machine Learning (cs.LG)

Preprint: arXiv

Citation Information
K.K. Sarpatwar, et. al., "Efficient encrypted inference on ensembles of decision trees", 2021, arXiv:2103.03411