Optimizing Secure Decision Tree Inference Outsourcing

Yifeng Zheng, Cong Wang, Ruochen Wang, Huayi Duan, Surya NepalIEEE TDSC 2021 · DOI

TL;DR

This paper presents a new system for securely outsourcing decision tree inference to the cloud, addressing privacy concerns for both the model provider and the client. By optimizing secure feature selection and decision node evaluation, their system achieves significantly faster cloud-side inference and reduces the computational burden on the provider.

What Problem Does This Paper Address?

Machine learning inference services, particularly decision tree-based ones, are increasingly being outsourced to cloud providers. This offers benefits like scalability and accessibility. However, this raises critical privacy issues: the decision tree model itself is proprietary intellectual property, and the client's input data can be sensitive (e.g., medical or financial information). Existing secure outsourcing methods, while addressing privacy, suffer from performance bottlenecks, especially in real-world Wide Area Network (WAN) environments. Specifically, the provider's computational complexity can be high, and the communication rounds between cloud servers can be excessive, leading to slow inference times.

Methods

The authors propose a novel system that builds upon the additive secret sharing technique, similar to prior work, but with significant optimizations. Their approach involves four key phases:

  • Secure Input Preparation: Both the provider (encrypts the decision tree) and the client (encrypts the feature vector) prepare their data using additive secret sharing.
  • Secure Feature Selection: This is a key innovation. Instead of constructing a large binary matrix (as in previous work, leading to $O(JI)$ complexity), they devise a scheme that uses an index vector of size $O(J)$. This makes the provider's performance complexity independent of the feature vector dimension ($I$), significantly reducing their computational burden. This phase leverages an oblivious transfer (OT) protocol.
  • Secure Decision Node Evaluation: To overcome the linear communication round complexity of previous methods (due to ripple carry adders), they adopt a carry look-ahead adder approach. This allows for logarithmic communication complexity, making it much more suitable for WAN environments. They demonstrate a reduction from 125 rounds to just 7 for a 64-bit value representation.
  • Secure Inference Generation: This phase combines the results from the decision node evaluations to produce the final inference result. They utilize a polynomial-based approach, which is efficient for the client.

Datasets

Not discussed in the paper. The authors use synthetic decision trees with varying depths and dimensions for evaluation.

Key Insights and Ideas

  • Shifting the Burden: The core idea is to shift as much computational load as possible from the model provider to the cloud, improving the provider's local efficiency.
  • Feature Selection Optimization: Recognizing that secure feature selection can be framed as an oblivious array-entry read problem, they reformulate it to avoid matrix multiplication, drastically reducing the provider's complexity.
  • Carry Look-Ahead for Speed: Applying the carry look-ahead adder principle, known from digital circuit design, to secure comparison in the cloud significantly reduces communication rounds, a major bottleneck in WAN settings.
  • Trade-offs for Efficiency: The authors acknowledge that their optimizations for cloud-side performance (especially secure feature selection and inference generation) might slightly increase communication between cloud servers, but argue this is a worthwhile trade-off for the overall speedup and provider efficiency gains.

Key Results

The proposed system demonstrates significant improvements over the state-of-the-art (ZDWWN protocol):

  • Cloud-side Inference Latency: Up to 8x faster overall end-to-end online inference latency over realistic WAN environments.
  • Provider Performance:
    • Communication Savings: Up to 19x savings (average 7x).
  • Computation Savings: Up to 18x savings (average 5x).
  • Cloud Server Communication: While slightly higher on average (1.9x), this is a trade-off for substantial overall gains.
  • Secure Decision Node Evaluation: Reduced from linear $O(l)$ rounds to logarithmic $O(\log l)$ rounds.

Limitations and Future Work

  • Semi-Honest Adversary Model: The security analysis is based on a semi-honest adversary model, meaning adversaries follow the protocol but try to infer information. Future work could explore a malicious adversary model.
  • Non-Colluding Cloud Servers: The system assumes the two cloud servers are non-colluding.
  • Adversarial Machine Learning Attacks: The authors explicitly state that dealing with adversarial machine learning attacks is out of the scope of this work.
  • Future Work: The paper focuses on optimizing the online inference procedure. Further research could explore optimizing the offline phases or extending the system to other machine learning models.

Summary updated

BibTeX
@article{zheng2021optimizing,
  author = {Yifeng Zheng and Cong Wang and Ruochen Wang and Huayi Duan and Surya Nepal},
  title = {{Optimizing Secure Decision Tree Inference Outsourcing}},
  journal = {IEEE Trans. Dependable Secur. Comput.},
  year = {2021},
  doi = {10.1109/tdsc.2022.3194048},
}
Figure