Encrypted statistical machine learning: new privacy preserving methods

Louis J. M. Aslett, Pedro M. Esperança, Chris C. HolmesarXiv 2015

Introduction

In the modern landscape of cloud-based data analysis, privacy remains a significant hurdle. While organizations frequently outsource data processing to the cloud, standard encryption protocols require data to be decrypted before any computation can occur. This creates a "decryption window" where sensitive information—such as medical records or financial transactions—is potentially exposed.

Fully Homomorphic Encryption (FHE) offers a theoretical solution by allowing mathematical operations to be performed directly on encrypted ciphertexts. However, FHE is computationally constrained, natively supporting only addition and multiplication. This limitation makes standard machine learning (ML) algorithms, which rely on division, exponentiation, and comparisons, difficult to implement. This paper presents redesigned ML models—Completely Random Forests (CRF) and Semi-parametric Naive Bayes (SNB)—that operate within these strict mathematical boundaries.

Methods

The authors propose two primary FHE-friendly adaptations that replace non-polynomial operations with encrypted-friendly approximations.

Completely Random Forests (CRF)

Standard Random Forests optimize split points by evaluating data distributions. In an encrypted environment, "looking" at the data to compare values is impossible. The CRF approach builds the tree structure "blindly," selecting variables and split points at random prior to data observation. Training then simplifies to counting encrypted observations in each leaf. To address the lack of division for voting, the authors introduce a cryptographic stochastic fraction estimate, using an encrypted Bernoulli process to simulate division.

Semi-parametric Naive Bayes (SNB)

Traditional Naive Bayes requires division and exponentiation for probability estimation. The authors replace these with a "one-step" approximation of Logistic Regression. Instead of iterating to convergence—which is impractical in FHE due to noise accumulation—they utilize the first step of the Iteratively Reweighted Least Squares (IRLS) algorithm. This transformation allows the model to be computed entirely through ciphertext additions and multiplications.

Data Representation and Quantization

To facilitate these algorithms, continuous data must be transformed. The authors employ "Quantization," where continuous variables are binned into categories (e.g., quintiles) and represented as binary indicator vectors. This allows comparisons to be executed as simple inner products.

Data transformation methods for FHE compatibility: Method 1 (one-hot encoding/binning) and Method 2 (alternative quantization).

Experimental Evaluation

The proposed methods were evaluated on 20 diverse datasets from the UCI Machine Learning Repository, spanning medical (e.g., Wisconsin Breast Cancer), financial (e.g., Bank Marketing), and technical (e.g., Spambase) domains. These models were compared against unencrypted benchmarks, including full Logistic Regression and standard Random Forests.

Key Results

  • Performance Parity: Across the 20 datasets, CRF and SNB models achieved accuracy levels competitive with their unencrypted counterparts. In several cases, such as the blood and haber datasets, the FHE-friendly models slightly outperformed standard benchmarks.
  • Scalability: A case study on the Wisconsin breast cancer dataset demonstrated cloud scalability. Using 1,152 CPU cores on AWS, the authors successfully fitted a 100-tree forest on fully encrypted data.
  • Cost-Efficiency: Despite the massive data inflation inherent in FHE (where 1MB of data can expand to 16GB of ciphertext), the total cloud training cost for the case study was under US$24.
  • Mathematical Robustness: Results from encrypted computations were in exact agreement with unencrypted runs of the same algorithms, validating the implementation's precision.

Discussion and Future Work

While promising, several challenges remain. The 1,600-fold increase in data size poses significant storage and bandwidth hurdles. Furthermore, FHE schemes accumulate "noise" with each multiplication, limiting the depth of models before expensive "bootstrapping" (noise-clearing) steps are required. Future research will explore the use of CPU vector instructions (SIMD) to accelerate polynomial arithmetic and improve the calibration of the models' raw probability outputs.

Summary updated

BibTeX
@misc{aslett2015encrypted,
  author = {Louis J. M. Aslett and Pedro M. Esperança and Chris C. Holmes},
  title = {{Encrypted statistical machine learning: new privacy preserving methods}},
  year = {2015},
  eprint = {1508.06845},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1508.06845},
}
Figure