Introduction
Federated Learning (FL) enables collaborative model training across decentralized "workers" without requiring the exchange of raw data. While this paradigm offers privacy benefits, it introduces significant vulnerabilities to Byzantine workers—malicious or faulty nodes that transmit "poisoned" gradients to a central server. These adversarial updates can easily derail the learning process, leading to model divergence or poor generalization.
The Challenge of Byzantine Workers
To mitigate these threats, researchers have developed "robust aggregators" such as the Geometric Median or Trimmed Mean. However, these methods often struggle in practical settings, particularly when data is highly non-identical (heterogeneous) across workers. To improve performance, practitioners frequently employ static gradient clipping, where gradient norms are capped at a fixed threshold $C$.
Static clipping is notoriously difficult to tune. A threshold that is too small discards valuable information from honest workers, while a threshold that is too large allows attackers to inject significant noise. Furthermore, the optimal threshold varies based on the specific attack type (e.g., sign-flipping vs. label-flipping) and the degree of data heterogeneity, making it nearly impossible to set a single effective value in advance.
Adaptive Robust Clipping (ARC)
The authors propose Adaptive Robust Clipping (ARC), a dynamic pre-aggregation step that eliminates the need for manual tuning. ARC calculates a new clipping threshold for every training step based on the distribution of received gradients:
- Norm Calculation: The server computes the Euclidean norms of all $n$ incoming gradients.
- Threshold Selection: Given an expected number of adversarial workers $f$, the server identifies the $(k+1)$-th largest gradient norm (where $k$ is a predefined fraction).
- Dynamic Clipping: This $(k+1)$-th norm serves as the adaptive threshold $C$. The largest $k$ gradients are scaled down to this length, while smaller gradients remain untouched.
- Robust Aggregation: The clipped gradients are then processed by a standard robust aggregator.
This approach ensures that no single worker can provide an update significantly larger than those of the honest majority, effectively bounding the influence of outliers.
Theoretical and Empirical Insights
ARC provides a "Bounded Output" property, guaranteeing that the aggregated output norm is constrained by the norm of honest gradients—a guarantee standard robust aggregators lack. Furthermore, the authors demonstrate that ARC can circumvent known theoretical lower bounds on accuracy in heterogeneous settings, provided the model is reasonably well-initialized.
Robustness to Attackers and Initialization
Experimental results on MNIST, Fashion-MNIST, and CIFAR-10 benchmarks highlight ARC's effectiveness. As shown in Figure 1, ARC-enhanced algorithms maintain high test accuracy even as the number of adversarial workers increases. In contrast, standard robust methods (like Robust-DSGD) fail rapidly in heterogeneous environments. Additionally, ARC is uniquely capable of exploiting good model initializations, maintaining near-perfect accuracy where plain methods struggle.
Comparison with Static Clipping
ARC consistently matches or outperforms the "best-case" static threshold across varying levels of data heterogeneity. In extreme non-IID scenarios where standard methods stagnate at ~15% accuracy, ARC allows these same algorithms to reach over 85% accuracy.
Conclusion
Adaptive Robust Clipping (ARC) offers a simple, principled solution to the brittleness of static clipping in federated learning. By dynamically adjusting to the gradient landscape, ARC provides superior protection against diverse Byzantine attacks while handling data heterogeneity more effectively than existing methods. Future work may explore the intersection of ARC with Differential Privacy, as both rely on gradient clipping to manage information flow and robustness.
Summary updated