Adaptive Verifiable Coded Computing: Towards Fast, Secure and Private Distributed Machine Learning

Tingting Tang, Ramy E. Ali, Hanieh Hashemi, Tynan Gangwani, Salman Avestimehr, Murali Annavaram

TL;DR

Distributed machine learning in the cloud is often bottlenecked by slow "straggler" nodes, malicious "Byzantine" workers, and data privacy concerns. This paper introduces Adaptive Verifiable Coded Computing (AVCC), a framework that decouples Byzantine detection from straggler mitigation by combining coded computing with verifiable computing. AVCC significantly reduces the computational overhead of tolerating malicious nodes, achieving up to a 4.2× speedup over state-of-the-art methods while maintaining high accuracy and information-theoretic privacy.

Introduction: The Distributed Learning Bottleneck

When offloading machine learning workloads to a distributed cloud environment, users face three major hurdles that can compromise efficiency, reliability, and security:

  1. Stragglers: Heterogeneous hardware or network hiccups cause some compute nodes to run significantly slower than others, delaying the entire training process as the system waits for the slowest worker.
  2. Byzantine Workers: Compromised or faulty nodes might return incorrect computations, which can completely derail model convergence and lead to incorrect results.
  3. Data Privacy: Curious or hacked nodes might collude to extract sensitive information from the training data they are processing.

Prior state-of-the-art solutions, like Lagrange Coded Computing (LCC), attempt to tackle all three problems simultaneously by encoding the dataset into polynomials. However, LCC tightly couples its protection mechanisms. To tolerate $M$ Byzantine nodes, LCC requires $2M$ redundant workers. This high redundancy overhead makes Byzantine fault tolerance incredibly resource-intensive, forcing practitioners to provision massive clusters just to stay secure.

The AVCC Framework

The authors propose Adaptive Verifiable Coded Computing (AVCC), which uniquely decouples the Byzantine detection problem from straggler mitigation and privacy. This separation allows for much more efficient resource utilization.

The AVCC framework architecture, illustrating the flow from the main server to distributed nodes and the subsequent verification process.

Coded Computing for Stragglers & Privacy

AVCC uses Maximum Distance Separable (MDS) or Lagrange coding to mask data and inject redundancy. This ensures privacy against colluding nodes and allows the master server to recover the final result without waiting for stragglers. By encoding the input data $X$ into $\tilde{X}$, the system can reconstruct the desired output even if several nodes fail to respond in time.

A conceptual example of coded computing: the result from a slow 'straggler' node can be recovered using redundant computations from other nodes.

Verifiable Computing for Byzantine Detection

To catch malicious nodes without the heavy overhead of polynomial decoding, AVCC employs Freivalds' algorithm. The master server generates a lightweight, private verification key (VK). When a worker returns a matrix-vector multiplication result, the master can verify its integrity in $O(m+d)$ time—drastically faster than the $O(md)$ time required to actually compute the result. If a worker fails the verification check, its result is instantly discarded.

Furthermore, AVCC introduces Dynamic Coding: if the system detects a persistent shift in the number of stragglers or Byzantine nodes, the master server can dynamically re-encode the data on the fly, trading off straggler tolerance for higher Byzantine protection (or vice versa) based on real-time cluster conditions.

Key Insights

  • Decoupling saves massive overhead: By using verifiable computing to check results before decoding them, AVCC drops the Byzantine redundancy requirement from $2M$ (in LCC) to just $M$. This means significantly fewer worker nodes are needed to achieve the same level of security.
  • Independent, parallel verification is a game-changer: Unlike LCC, which must wait for a large batch of worker results to arrive before it can decode and identify malicious actors, AVCC verifies each worker's result independently the moment it is received. This prevents fast-but-malicious nodes from bottlenecking the system.
  • Static coding is brittle; dynamic coding is robust: In real-world clouds, the ratio of slow nodes to compromised nodes fluctuates. AVCC's ability to dynamically adjust its coding dimensions allows it to survive scenarios where static methods would fail or stall indefinitely.

Experimental Results

The framework was evaluated by training a distributed logistic regression model for binary image classification on the GISETTE dataset using a 13-node cluster (1 master, 12 workers).

  • Speedup: Under a constant Byzantine attack, AVCC achieved up to a 4.2× speedup over LCC and a 7.6× speedup over a standard uncoded baseline.
  • Accuracy: Because AVCC effectively filters out malicious gradients without stalling, it improved test accuracy by up to 5.1% over LCC and 12.1% over the uncoded baseline in heavy attack scenarios.
  • Overhead: The computational cost of generating verification keys and checking results (Freivalds' algorithm) is practically negligible compared to the massive latency saved by ignoring stragglers and instantly dropping malicious computations.

Limitations and Future Directions

While AVCC provides a robust solution for linear operations, it faces challenges in two main areas:

  1. Centralized Trust: AVCC relies on a trusted central master server. Future work could offload these sensitive master tasks to hardware-assisted Trusted Execution Environments (TEEs) like Intel SGX to remove this single point of failure.
  2. Handling Non-linearities: AVCC is highly optimized for polynomial computations (like matrix multiplications). Deep neural networks rely heavily on non-linear activation functions (like ReLU), which are difficult to compute over encoded data. Approximating these non-linearities with polynomials or rational functions is a necessary next step to extend AVCC to deep learning architectures.

Summary updated

BibTeX
@inproceedings{tang2022adaptive,
  author = {Tingting Tang and Ramy E. Ali and Hanieh Hashemi and Tynan Gangwani and Salman Avestimehr and Murali Annavaram},
  title = {{Adaptive Verifiable Coded Computing: Towards Fast, Secure and Private Distributed Machine Learning}},
  booktitle = {IPDPS},
  year = {2022},
  doi = {10.1109/ipdps53621.2022.00067},
}
Figure