Skip to main content
QUICK REVIEW

[Paper Review] Privacy-Preserving XGBoost Inference

Xianrui Meng, Joan Feigenbaum|arXiv (Cornell University)|Nov 9, 2020
Privacy-Preserving Technologies in DataComputer Science36 references10 citations
TL;DR

This paper proposes PPXGBoost, a privacy-preserving inference protocol for XGBoost models that enables clients to submit encrypted queries to a remote ML service and receive encrypted predictions, while preserving data privacy. The method uses additive homomorphic encryption and order-preserving encryption to securely evaluate tree-based predictions, achieving practical efficiency with experimental results showing viability in real-world production environments like AWS SageMaker.

ABSTRACT

Although machine learning (ML) is widely used for predictive tasks, there are important scenarios in which ML cannot be used or at least cannot achieve its full potential. A major barrier to adoption is the sensitive nature of predictive queries. Individual users may lack sufficiently rich datasets to train accurate models locally but also be unwilling to send sensitive queries to commercial services that vend such models. One central goal of privacy-preserving machine learning (PPML) is to enable users to submit encrypted queries to a remote ML service, receive encrypted results, and decrypt them locally. We aim at developing practical solutions for real-world privacy-preserving ML inference problems. In this paper, we propose a privacy-preserving XGBoost prediction algorithm, which we have implemented and evaluated empirically on AWS SageMaker. Experimental results indicate that our algorithm is efficient enough to be used in real ML production environments.

Motivation & Objective

  • To address the challenge of deploying privacy-preserving machine learning in real-world systems where sensitive data and models must be protected.
  • To enable secure, encrypted inference on XGBoost models without exposing input queries, model parameters, or prediction results to the service provider.
  • To design a practical solution that balances strong privacy guarantees with computational efficiency suitable for production environments.
  • To formalize and prove security properties of the protocol under a defined leakage model, ensuring only minimal information is exposed.

Proposed method

  • The protocol uses an additive homomorphic encryption (SHE) scheme to securely evaluate the sum of scores from individual decision trees in an XGBoost model.
  • Order-preserving encryption (OPE) is used to compare feature values against split thresholds in encrypted form, enabling secure tree traversal without decryption.
  • The model is pre-processed during setup to encrypt all tree nodes and split thresholds, with only structural metadata (e.g., tree depth, node ordering) leaked.
  • During inference, the client encrypts input features and sends them to the server, which evaluates the encrypted tree paths and returns encrypted predictions.
  • A simulator is constructed to prove security by showing that the only leaked information is the number of trees, tree depths, node ordering, and query patterns.
  • The protocol ensures that plaintext queries, results, and model values remain confidential throughout the computation.

Experimental results

Research questions

  • RQ1Can a privacy-preserving inference protocol be built for XGBoost that supports efficient, secure evaluation of tree-based models?
  • RQ2What minimal information leakage is unavoidable in such a protocol, and can it be formally characterized?
  • RQ3Can the protocol be implemented efficiently enough to be viable in real-world production systems like AWS SageMaker?
  • RQ4How do the security guarantees of the underlying homomorphic and order-preserving encryption schemes contribute to the overall privacy of the inference process?

Key findings

  • The PPXGBoost protocol successfully enables secure, encrypted inference on XGBoost models with only structural metadata and query patterns leaked.
  • The protocol achieves practical performance, with experimental evaluation demonstrating feasibility in real-world deployment environments such as AWS SageMaker.
  • Security is formally proven under a leakage-resilient model, showing that no additional information—such as query values, model parameters, or prediction outputs—is exposed.
  • The use of additive homomorphic encryption and order-preserving encryption allows secure tree traversal and score aggregation without revealing sensitive data.
  • The protocol supports both classification and regression tasks using standard XGBoost inference patterns, with minimal performance overhead.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.