Abstract
In distributed machine learning, the presence of malicious or "Byzantine" workers can significantly degrade model performance. Traditional defenses often rely on synchronous updates and central parameter servers, creating bottlenecks and single points of failure. This paper presents two novel asynchronous, fully decentralized Stochastic Gradient Descent (SGD) algorithms. By leveraging local models as trusted anchors and employing distance-based filtering and gradient alignment checks, these algorithms maintain robustness even when a vast majority of workers are compromised. Empirical evaluations on the MNIST dataset demonstrate that the proposed methods achieve near-optimal accuracy across various attack scenarios without the need for a central authority.
Introduction
Distributed training is essential for large-scale machine learning, yet it is highly vulnerable to Byzantine attacks where compromised nodes share falsified gradients to derail the optimization process. Existing Byzantine-tolerant SGD solutions typically face three major hurdles: the inefficiency of synchronous updates (where fast workers wait for the slowest), the vulnerability of central parameter servers (single points of failure), and limited tolerance for high fractions of malicious actors (often breaking down if more than 33% or 50% of workers are malicious).
This work addresses these challenges by proposing a decentralized, asynchronous framework where each worker maintains its own local model and independently filters updates from peers.
Proposed Methodology
The core innovation is for each worker to treat its own local model, trained on its own data, as a trusted "ground truth" baseline. This allows workers to filter out malicious updates without a central overseer. Two algorithms are introduced based on the level of prior knowledge about the network:
- Algorithm 1 (Known $p$): When the maximum number of attackers $p$ is known, workers fetch models from all peers and accept only the $N - p - 1$ closest updates to their local model, averaging them for the next step.
- Algorithm 2 (Unknown $p$): When the number of attackers is unknown, a two-stage filter is employed. First, a time-decaying distance threshold $\delta$ limits the range of accepted updates. Second, a gradient alignment check ensures that the inner product of the shared model's gradient and the local update direction is positive, guaranteeing that accepted models move the optimization in a loss-reducing direction.
Experimental Evaluation
The algorithms were evaluated using the MNIST dataset distributed across 50 workers. The simulation tested robustness against three types of Byzantine attacks: "Add noise," "Random" (sharing random vectors), and "Inverse" (sharing the opposite of the true model).
As shown in Figure 1, both proposed algorithms demonstrate exceptional robustness. Algorithm 1 achieves accuracy nearly identical to the "All honest" ideal scenario when $p$ is accurately estimated. Algorithm 2, despite requiring no prior knowledge of the attacker count, performs within approximately 2% of the ideal scenario, proving its practical viability.
Key Insights and Robustness
A critical finding of this study is the failure of existing baselines like "Krum" under specific attack conditions. While Krum selects a single "best" gradient, it often discards too much useful information from honest workers. In more severe attack scenarios, Krum's performance can drop to near-random levels, performing worse than a non-collaborative setup.
In contrast, the proposed averaging of filtered models (Figure 2) ensures that the system retains the benefits of collaboration while effectively neutralizing attackers, even when up to 90% of the network (45 out of 50 workers) is compromised.
Conclusion
The decentralized, asynchronous approach presented here effectively mitigates Byzantine threats without the need for central bottlenecks or synchronous waiting periods. By anchoring trust in local models and utilizing gradient alignment, the system achieves high accuracy and extreme fault tolerance. Future work will explore incorporating historical peer reliability data to build reputation systems, further hardening the network against sophisticated, time-varying attacks.
Summary updated