Towards Efficient Privacy-Preserving Machine Learning: A Systematic Review from Protocol, Model, and System Perspectives

Wenxuan Zeng, Tianshi Xu, Yi Chen, Yifan Zhou, Mingzhe Zhang, Jin Tan, Cheng Hong, Meng LiarXiv 2025 · DOI

Introduction: The Privacy-Efficiency Paradox

Machine Learning as a Service (MLaaS) creates a fundamental tension: users require privacy for their sensitive data, while providers must safeguard proprietary model weights. Cryptographic primitives like Multi-Party Computation (MPC) and Fully Homomorphic Encryption (FHE) offer a path forward by enabling computation on encrypted data. However, these methods impose a massive "efficiency tax," often slowing down inference by orders of magnitude compared to plaintext processing.

Overview of 2PC inference workflows and the cross-level optimization paradigm.

A Full-Stack Taxonomy of PPML Optimization

To address the latency and communication bottlenecks, research has shifted toward a "full-stack" optimization approach. The authors categorize these efforts into three primary levels: protocol, model, and system.

Comprehensive taxonomy of Privacy-Preserving Machine Learning (PPML) optimization techniques across protocol, model, and system levels.

1. Protocol-Level Optimization

This layer focuses on the underlying cryptographic primitives. For Linear Layers, researchers utilize advanced encoding schemes in HE (SIMD, Coefficient, or Nested encoding) to improve throughput. For Non-linear Layers, which are notoriously expensive in encrypted space, optimizations involve Garbled Circuits, Oblivious Transfer, or high-order polynomial approximations to replace functions like ReLU.

2. Model-Level Optimization

Instead of forcing cryptography to fit existing models, this approach designs "PPML-friendly" architectures. Since operations like ReLU and Softmax are computationally expensive in MPC/FHE, techniques like Neural Architecture Search (NAS) are used to prune these layers or replace them with low-degree polynomials (e.g., $x^2$).

3. System-Level Optimization

This level addresses the software and hardware execution environment. HE-specific compilers (e.g., HALO, HECO) automate complex tasks like scale management and bootstrapping placement. Simultaneously, hardware acceleration using GPUs and specialized ASICs targets compute-intensive operations like Number Theoretic Transforms (NTT).

Key Insights and the Shift to LLMs

  • The ReLU Bottleneck: Models can often maintain high accuracy even with a significant reduction in non-linear layers, which are the primary source of communication overhead in MPC.
  • Encoding Strategies: The choice of tensor-to-polynomial mapping (e.g., SIMD vs. Coefficient encoding) is critical. Nested Encoding has emerged as a robust solution for complex pipelines.
  • Challenges of Scale: While early research focused on CNNs, the rise of Large Language Models (LLMs) introduces new complexities. Massive matrix multiplications and non-linearities like GeLU and Softmax require "training-free" optimizations, such as post-training quantization, because retraining LLMs is prohibitively expensive.

Performance and Results

The synthesis of these optimizations has led to dramatic improvements:

  • Latency: Early HE models took hundreds of seconds for MNIST. Modern GPU-accelerated frameworks can now perform GPT-2 decoding steps in approximately 69–105 seconds on high-end hardware.
  • Communication: Protocol-aware quantization and Winograd-based convolutions have significantly reduced the gigabytes of data transfer previously required for ImageNet-scale inference. The authors provide detailed comparisons showing how techniques like LoRA adaptation and structured pruning are making private LLM inference a reality.

Future Directions

Despite these gains, private LLM inference remains far from real-time. Future research must tackle the challenges of private training, which requires backpropagation through encrypted layers, and malicious security, which currently incurs a prohibitive performance penalty compared to semi-honest models. Furthermore, the development of custom hardware (ASICs) optimized for high-precision modular arithmetic is essential to bridge the remaining gap with plaintext performance.

Summary updated

BibTeX
@misc{zeng2025towards,
  author = {Wenxuan Zeng and Tianshi Xu and Yi Chen and Yifan Zhou and Mingzhe Zhang and Jin Tan and Cheng Hong and Meng Li},
  title = {{Towards Efficient Privacy-Preserving Machine Learning: A Systematic Review from Protocol, Model, and System Perspectives}},
  year = {2025},
  eprint = {2507.14519},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.14519},
}
Figure