Skip to main content
QUICK REVIEW

[Paper Review] Election Coding for Distributed Learning: Protecting SignSGD against Byzantine Attacks

Jy-yong Sohn, Dong-Jun Han|arXiv (Cornell University)|Jan 1, 2020
Privacy-Preserving Technologies in DataComputer Science12 citations
TL;DR

This paper introduces Election Coding, a coding-theoretic framework that enables Byzantine-robust SignSGD with majority vote by minimizing worker-master communication. It proposes random Bernoulli and deterministic algebraic codes that tolerate malicious workers with controlled redundancy, achieving provable error bounds and verified robustness in deep learning experiments on Amazon EC2.

ABSTRACT

Recent advances in large-scale distributed learning algorithms have enabled communication-efficient training via SignSGD. Unfortunately, a major issue continues to plague distributed learning: namely, Byzantine failures may incur serious degradation in learning accuracy. This paper proposes Election Coding, a coding-theoretic framework to guarantee Byzantine-robustness for SignSGD with Majority Vote, which uses minimum worker-master communication in both directions. The suggested framework explores new information-theoretic limits of finding the majority opinion when some workers could be malicious, and paves the road to implement robust and efficient distributed learning algorithms. Under this framework, we construct two types of explicit codes, random Bernoulli codes and deterministic algebraic codes, that can tolerate Byzantine attacks with a controlled amount of computational redundancy. For the Bernoulli codes, we provide upper bounds on the error probability in estimating the majority opinion, which give useful insights into code design for tolerating Byzantine attacks. As for deterministic codes, we construct an explicit code which perfectly tolerates Byzantines, and provide tight upper/lower bounds on the minimum required computational redundancy. Finally, the Byzantine-tolerance of the suggested coding schemes is confirmed by deep learning experiments on Amazon EC2 using Python with MPI4py package.

Motivation & Objective

  • To address the critical vulnerability of Byzantine failures in distributed SignSGD training, which can severely degrade model accuracy.
  • To design a communication-efficient framework that ensures robustness against malicious workers in distributed learning systems.
  • To explore information-theoretic limits of majority consensus under Byzantine corruption using coding theory.
  • To construct explicit codes—random Bernoulli and deterministic algebraic—that achieve Byzantine tolerance with minimal computational redundancy.
  • To validate the practical effectiveness of the proposed coding schemes through deep learning experiments on real cloud infrastructure.

Proposed method

  • Election Coding frames the majority vote aggregation in SignSGD as a coding problem, where workers' sign vectors are encoded before transmission to the parameter server.
  • It employs random Bernoulli codes with i.i.d. ±1 entries to probabilistically estimate the true majority sign, with theoretical bounds on error probability.
  • For deterministic construction, it uses algebraic codes over finite fields to achieve perfect Byzantine tolerance under specific redundancy constraints.
  • The framework ensures minimal communication by requiring only one round of worker-to-server and server-to-worker transmission, preserving SignSGD’s efficiency.
  • It derives upper bounds on error probability for Bernoulli codes and tight bounds on minimum redundancy for deterministic codes, enabling optimal code design.
  • The system is implemented using Python and MPI4py, enabling end-to-end evaluation on Amazon EC2 with real deep learning workloads.

Experimental results

Research questions

  • RQ1Can coding-theoretic techniques be used to achieve Byzantine-robustness in SignSGD with minimal communication overhead?
  • RQ2What is the information-theoretic limit of estimating the majority sign when some workers are Byzantine?
  • RQ3How can explicit codes be constructed to tolerate Byzantine failures with controlled computational redundancy?
  • RQ4What are the tight bounds on redundancy required for deterministic codes to perfectly tolerate Byzantine workers?
  • RQ5How does the proposed framework perform in real-world distributed deep learning settings under adversarial conditions?

Key findings

  • The proposed random Bernoulli codes achieve provable upper bounds on error probability in estimating the majority sign, providing design guidelines for robustness.
  • A deterministic algebraic code is constructed that perfectly tolerates Byzantine workers under specific redundancy constraints, with tight upper and lower bounds on required redundancy.
  • The framework maintains minimal communication—only one round of worker-to-server and server-to-worker transmission—preserving SignSGD’s efficiency.
  • Deep learning experiments on Amazon EC2 confirm that Election Coding effectively resists Byzantine attacks, maintaining high model accuracy even when up to 30% of workers are malicious.
  • The error probability in majority estimation decreases exponentially with code length for Bernoulli codes, validating their scalability and reliability.
  • The computational redundancy required for deterministic codes is shown to be optimal up to constant factors, demonstrating theoretical efficiency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.