Practical Homomorphic Aggregation for Byzantine ML

Antoine Choffrut, Rachid Guerraoui, Rafael Pinot, Renaud Sirdey, John Stephan, Martin Zuber · DOI

Abstract

Distributed machine learning (DML) faces a dual threat: Byzantine participants who can poison model updates and curious central servers that can compromise data privacy. While Homomorphic Encryption (HE) offers a path to privacy, its computational cost—particularly for the non-linear operations required for robust aggregation—has historically rendered it impractical. This paper presents SABLE (Secure And Byzantine robust LEarning), a framework that enables practical, private, and robust aggregation. By introducing a novel Homomorphic Trimmed Sum (HTS) operator and an optimized plaintext encoding scheme, SABLE achieves high accuracy and security with manageable overhead on models with nearly a million parameters.

Introduction

In distributed machine learning, multiple participants (nodes) collaborate to train a global model by sharing local gradients with a central aggregator. This architecture is susceptible to two primary security risks. First, Byzantine nodes may intentionally or accidentally send malicious updates to degrade model performance or introduce backdoors. Second, curious servers can analyze individual gradient updates to reconstruct sensitive training data from the participating nodes.

Protecting against both threats simultaneously is difficult. Robust aggregation methods, such as the trimmed mean or median, are effective against Byzantine updates but require sorting and comparison operations. These operations are notoriously inefficient when performed on encrypted data using Homomorphic Encryption (HE). SABLE addresses this gap by optimizing the underlying cryptographic operations and the aggregation logic to make private, robust learning feasible for real-world datasets.

The SABLE Framework

SABLE introduces several key innovations to bridge the gap between privacy-preserving encryption and robust statistical aggregation.

Homomorphic Trimmed Sum (HTS)

The core of SABLE is the Homomorphic Trimmed Sum (HTS) operator. HTS implements a coordinate-wise trimmed mean in the encrypted domain. It functions by sorting encrypted values and summing only the middle portion of the distribution, effectively discarding outliers that likely represent Byzantine updates. By focusing on the logic required for a trimmed mean—where only the rank range of a value matters—the authors were able to streamline the sorting process.

Optimized Plaintext Encoding

Standard HE sorting algorithms often suffer from high multiplicative depth, which increases computational complexity and memory usage. SABLE utilizes a novel plaintext encoding scheme that decouples the base of the integer decomposition from the plaintext modulus. This optimization reduces the depth of the circuits required for comparison, resulting in faster execution and smaller ciphertext sizes.

Node Subsampling and Quantization

To further enhance performance, SABLE employs two additional strategies:

  1. Node Subsampling: Rather than aggregating every node in every round, the server randomly samples a subset of $2f+1$ nodes (where $f$ is the number of Byzantine nodes). This maintains theoretical robustness guarantees while significantly reducing the number of homomorphic operations.
  2. Quantization: Nodes quantize their gradients to low bit-precisions (e.g., 2-4 bits) before encryption. This reduces the data volume and, crucially, acts as a secondary defense by limiting the variance of honest updates and the range in which an attacker can hide malicious gradients.

Experimental Evaluation

The researchers evaluated SABLE using three image classification benchmarks in a simulated "cross-silo" environment with non-IID data distributions:

  • MNIST: 79k parameters.
  • Fashion-MNIST: 431k parameters.
  • CIFAR-10: 712k parameters.

Performance and Accuracy

SABLE demonstrated that privacy does not have to come at the cost of model performance. In all tests, SABLE matched the accuracy of Robust-DSGD, its non-private counterpart. Under specific attacks, such as "Label Flipping," SABLE's quantized approach actually outperformed non-private full-precision models, as the quantization helped filter out malicious noise.

From a computational standpoint, SABLE proved remarkably efficient for an HE-based system. On a 16-core machine, robust aggregation for MNIST took approximately 1.24 minutes. For the larger CIFAR-10 model, a 64-core machine completed the task in 2.02 minutes. The node subsampling technique provided up to a 9x speedup without compromising the 128-bit security level.

Discussion and Insights

A significant finding of this work is the Robustness-Privacy Synergy. The constraints imposed by making HE practical—specifically low-bit quantization—actually complement Byzantine robustness. By "snapping" gradients to a discrete grid, the system reduces the "noise" of honest updates, making it harder for Byzantine nodes to inject subtle, poisoning updates without being detected as outliers.

Furthermore, SABLE's sorting method represents a significant advancement in HE utility, performing 1.2x to 1.5x faster than previous state-of-the-art homomorphic sorting algorithms while reducing ciphertext size by 1.5x.

Limitations and Future Work

While SABLE marks a major step toward practical private DML, challenges remain:

  • Hardware Intensity: Achieving minute-scale aggregation for models like CIFAR-10 still requires high-end server hardware (32-64 CPU cores).
  • Communication Costs: HE ciphertexts remain significantly larger than cleartext data, leading to higher communication overhead.
  • Scalability to Large Models: While SABLE handles models with ~1M parameters, modern Large Language Models (LLMs) with billions of parameters remain out of reach for current HE implementations without further breakthroughs in hardware acceleration.

Future research may explore applying similar homomorphic optimizations to other robust aggregators, such as the Geometric Median, to further broaden the toolkit for secure distributed learning.

Summary updated

BibTeX
@misc{choffrut2023practical,
  author = {Antoine Choffrut and Rachid Guerraoui and Rafael Pinot and Renaud Sirdey and John Stephan and Martin Zuber},
  title = {{Practical Homomorphic Aggregation for Byzantine ML}},
  year = {2023},
  eprint = {2309.05395},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.05395},
}
Figure