NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Secure Distributed Training at Scale

Eduard Gorbunov, Alexander Borzunov, Michael Diskin, Max Ryabinin

Overview

Training state-of-the-art deep learning models, such as large Transformers, requires massive computational power that is often only available to elite research labs or large tech companies. One compelling alternative is decentralized training, where smaller groups or volunteers pool their idle GPUs.

However, this decentralized approach creates a massive security vulnerability known as Byzantine faults. A single participant—whether through a hardware error or malicious intent—can send "poisoned" gradient updates that completely derail the training process. Existing defenses usually rely on a trusted central server (creating a bottleneck) or redundant communication that scales poorly with model size. For a model with billions of parameters, sending extra copies of every update is simply too expensive.

To solve this, researchers have introduced BTARD (Byzantine-Tolerant All-Reduce), a novel decentralized training protocol that allows large-scale deep learning in the presence of malicious or faulty participants. By combining efficient communication patterns with randomized cryptographic validation, BTARD ensures training remains robust even when nearly half the network is attacking, all without the massive overhead typical of previous secure methods.

The BTARD Protocol

BTARD builds upon the standard, bandwidth-optimal "Butterfly All-Reduce" architecture but introduces several critical layers of security to handle Byzantine faults efficiently.

The BTARD protocol architecture, illustrating the integration of CenteredClip, Multi-party Random Number Generation (MPRNG), and randomized validation steps.
  • Robust Aggregation (CenteredClip): Instead of a simple average, which is easily skewed by a single outlier, BTARD uses a technique called CENTEREDCLIP. It iteratively pulls updates toward a central point, strictly limiting the influence any single peer can have on the global model.
  • Randomized Validation: This is the core innovation. Using a Multi-party Random Number Generator (MPRNG), the network randomly selects "validators" for each training step. These validators recalculate the gradients of their assigned peers to ensure they aren't falsifying data.
  • The "ACCUSE" Procedure: If a validator finds a discrepancy, they broadcast an accusation. Because all messages are signed with digital signatures, the network can verify the proof and permanently ban the offending peer.
  • Communication Efficiency: Crucially, the verification process uses random projections (inner products) to check the integrity of updates. This means the extra communication cost is a small number of scalars ($O(n^2)$), which is negligible compared to the millions or billions of parameters ($d$) in a modern neural network.
  • Sybil Resistance: To prevent an attacker from creating thousands of fake identities to take over the network, BTARD employs a reputation-based heuristic where new peers must "prove" their honesty over several iterations before their updates are accepted.

Key Theoretical Insights

The success of BTARD relies heavily on a deterrence effect. The network does not need to check every update from every peer to keep the system honest. The mere probability of being caught and permanently banned by a random validator is enough to limit the total damage an attacker can inflict over time.

Furthermore, the authors realized that the CENTEREDCLIP aggregation rule can be viewed as a fixed-point equation. This allows peers to verify that an aggregator did their job correctly by checking a simple sum of inner products, rather than re-doing the entire high-dimensional aggregation. Theoretically, as the desired accuracy becomes very small, the complexity of BTARD converges to that of standard, non-secure parallel SGD. In other words, the security becomes essentially "free" in the long run.

Experimental Results

The researchers evaluated BTARD using two primary setups: training a ResNet-18 model on CIFAR-10 for image classification, and pre-training an ALBERT-large Transformer model on WikiText-103 for language modeling. These were tested under various simulated attacks, including "Sign Flipping" and "ALIE" (A Little Is Enough), a sophisticated attack designed to bypass median-based defenses.

Test accuracy of BTARD compared to baselines under various Byzantine attacks. BTARD quickly recovers from attacks and maintains high accuracy compared to undefended or median-based methods.
  • Robustness to Massive Attacks: In experiments with 16 peers where 7 were malicious (nearly 44% of the network), BTARD successfully trained models to near-baseline accuracy.
  • Fast Recovery: When an attack begins, the training loss typically spikes. However, BTARD’s validation system identifies and bans the attackers within roughly 100–150 steps, after which the model quickly recovers to its pre-attack performance.
  • Scalability and Minimal Overhead: The authors successfully scaled the system to 64 machines (with 31 attackers), demonstrating that the protocol remains efficient as the network grows. For the ALBERT-large setup, the computational overhead of the security features was less than 3% of the total training time.

Limitations and Future Work

While BTARD represents a significant step forward for decentralized training, it does have limitations. The current validation method requires that validators have access to the same data as the peer they are checking. This makes BTARD highly suitable for "public data" scenarios (like training on Common Crawl) but less applicable to private Federated Learning where data cannot be shared.

Additionally, while communication is highly efficient, validation still requires some peers to re-calculate gradients, resulting in some compute redundancy. Finally, the theoretical proofs assume that data is distributed somewhat uniformly (IID). Future work will need to explore how to handle non-IID data, where different peers have vastly different datasets, making peer-to-peer validation much more complex.

Summary updated

BibTeX
@inproceedings{gorbunov2022secure,
  author = {Eduard Gorbunov and Alexander Borzunov and Michael Diskin and Max Ryabinin},
  title = {{Secure Distributed Training at Scale}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=6PahjGFjVG-},
}
Figure