Aegis: A Lightning Fast Privacy-preserving Machine Learning Platform against Malicious Adversaries

Taipei Lu, Bingsheng Zhang, Lichun Li, Kui RenIACR ePrint 2023

Abstract

Privacy-preserving machine learning (PPML) relies heavily on secure multi-party computation (MPC), where non-linear operations like secure comparison often form the primary performance bottleneck. This paper introduces Aegis, a highly efficient 3-party computation (3PC) protocol that addresses this challenge through a novel "uniquely zero term" identification technique. By optimizing for both semi-honest and malicious settings, Aegis achieves up to a 20x speedup for ReLU operations compared to previous state-of-the-art methods while significantly reducing communication overhead. Our results demonstrate that Aegis effectively breaks the traditional trade-off between round complexity and communication efficiency in high-latency network environments.

Introduction

In the domain of Privacy-Preserving Machine Learning (PPML), data is typically distributed among multiple parties using Secure Multi-Party Computation (MPC). While linear operations such as addition are computationally inexpensive in MPC, non-linear operations—specifically comparisons required for activation functions like ReLU ($max(0, x)$) and MaxPool—are notoriously resource-intensive.

Existing comparison protocols generally face a binary trade-off:

  1. Constant-round protocols: Efficient in high-latency networks but characterized by massive communication complexity.
  2. Logarithmic/Linear-round protocols: Lower data transfer requirements but high round complexity, leading to poor performance in real-world wide-area networks (WAN).
Figure 1: Comparison of Aegis (Ours) against existing protocols in terms of communication complexity and round count. Aegis achieves a constant-round complexity with significantly lower communication overhead than prior constant-round methods.

Aegis aims to bridge this gap by providing a protocol that is both constant-round and extremely communication-efficient, maintaining robust performance even when defending against malicious adversaries.

Methodology

The core innovation of Aegis is a new protocol for sign-bit extraction, which is mathematically equivalent to comparison. The methodology centers on several key optimizations:

The "Uniquely Zero" Trick

To compare two secret-shared numbers $a$ and $b$, the parties compute a bitwise XOR. The first position where they differ determines the comparison result. Aegis utilizes a clever prefix-sum transformation to convert this bit-string into a new vector where exactly one element is zero—the "uniquely zero term."

Figure 4: The prefix-sum transformation process used to identify the "uniquely zero term," simplifying the comparison task into a single zero-detection operation.

Asymmetric 3PC and Malicious Security

Aegis leverages a 3-party setup by utilizing one party ($P_0$) as an auxiliary server. Parties $P_1$ and $P_2$ send comparison materials to $P_0$, who can then locally detect the comparison result without gaining access to the underlying private data.

To ensure security against malicious actors, Aegis employs Information-Theoretic Message Authentication Codes (IT-MACs) to prevent data tampering. Furthermore, it utilizes "Dual Execution"—running the protocol twice with parties swapping roles—to cross-check results without the high computational overhead associated with zero-knowledge proofs. Finally, for ReLU operations, Aegis embeds the multiplication step directly into the comparison rounds, resulting in a protocol that requires only 2 online rounds.

Experimental Evaluation

The authors evaluated Aegis using synthetic benchmarks simulating real-world PPML workloads across various network environments: LAN (1ms latency), MAN (100ms latency), and WAN (200ms latency). Benchmarks were performed on batches of ReLU operations ranging from $2^4$ to $2^{18}$.

Key Results

  • Semi-Honest Setting: Aegis is 6x faster than Bicoptor for ReLU evaluations, with communication costs reduced to just 12.5% of the previous state-of-the-art.
  • Malicious Setting: Aegis outperforms BLAZE by 20x in ReLU speed. Communication complexity is reduced to approximately 25% of BLAZE's requirements.
  • WAN Performance: In high-latency environments, the low round count of Aegis allows it to maintain high throughput where logarithmic-round protocols (like Falcon) experience significant performance degradation as batch sizes increase.

Conclusion and Future Work

Aegis demonstrates that malicious security in PPML does not necessitate a massive performance penalty. By mathematically simplifying the comparison problem into a "find the zero" task, Aegis slashes communication overhead by approximately 88% compared to prior efficient protocols.

While currently optimized for the 3-party, honest-majority setting, future research could explore extending these "uniquely zero" optimizations to $N$-party configurations. Additionally, the authors plan to integrate these primitives into end-to-end deep learning frameworks to measure the impact on total training and inference time for large-scale models such as ResNet or Transformer-based architectures.

Summary updated

BibTeX
@article{lu2023aegis,
  author = {Taipei Lu and Bingsheng Zhang and Lichun Li and Kui Ren},
  title = {{Aegis: A Lightning Fast Privacy-preserving Machine Learning Platform against Malicious Adversaries}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2023},
}
Figure