Byzantine-Robust Federated Learning with Learnable Aggregation Weights

Javad Parsa, Amir Hossein Daghestani, André M. H. Teixeira, Mikael Johansson · DOI

Abstract

Federated Learning (FL) is often hindered by Byzantine faults and data heterogeneity. Traditional robust aggregation methods typically rely on filtering outliers and applying uniform weights to the remaining clients, which can be suboptimal in non-IID settings. We present FedLAW (Federated Learning with Learnable Aggregation Weights), a framework that treats aggregation as a joint optimization task. By constraining aggregation weights within a "sparse unit-capped simplex," FedLAW simultaneously neutralizes malicious actors and adaptively balances heterogeneous data from benign clients. Experimental results on MNIST and CIFAR-10 demonstrate that FedLAW achieves superior accuracy and resilience against sophisticated attacks compared to existing state-of-the-art defenses.

Introduction

Federated Learning (FL) enables collaborative model training across decentralized clients without sharing raw data. However, two primary challenges persist:

  1. Byzantine Faults: Malicious clients may submit poisoned updates to degrade model performance or introduce backdoors.
  2. Data Heterogeneity (Non-IID): Benign clients often possess diverse data distributions, making uniform aggregation ineffective.

Existing defenses, such as Krum or Coordinate-wise Median, focus on identifying and excluding outliers. Once outliers are removed, these methods typically assign uniform weights to the surviving clients. This approach is flawed in heterogeneous environments; excluding certain clients can exacerbate label imbalances, and uniform weighting fails to account for the varying representativeness of benign data. FedLAW addresses these issues by making aggregation weights learnable parameters.

Methodology: FedLAW

FedLAW optimizes aggregation weights ($w$) alongside model parameters ($\theta$). The core of the framework is the definition of a constrained weight space that naturally resists adversarial influence while adapting to benign variance.

The Sparse Unit-Capped Simplex Constraint

To ensure robustness and stability, FedLAW constrains the weights to a sparse unit-capped simplex. This constraint set incorporates three critical properties:

  • Sparsity ($\ell_0$ norm): Limits the number of active clients, effectively forcing the model to select a subset and zero out suspected Byzantine updates.
  • Unit-Cap ($t$): Sets a maximum threshold for any single client's weight, preventing a single "stealthy" attacker from dominating the global update.
  • Sum-to-one: Ensures the weights represent a valid weighted average, maintaining the standard properties of FL aggregation.

Alternating Minimization Algorithm

The server solves the joint optimization problem using an alternating minimization strategy. First, the server collects gradients from participating clients. Second, it performs a "look-ahead" step to evaluate how the global loss would change with different weight configurations. Weights are updated based on the alignment of each client's gradient with the overall descent direction. Finally, the global model parameters are updated using the newly optimized, robust weights.

Experimental Evaluation

FedLAW was evaluated on MNIST and CIFAR-10 benchmarks with 200 clients, simulating high data heterogeneity (concentration parameter $q=0.9$) and up to 40% malicious clients.

FedLAW performance and weight evolution under Inverse Gradient Attack. The left plot shows test accuracy over epochs, while the right plot illustrates how malicious client weights (dashed lines) are suppressed to zero while benign weights (orange lines) stabilize.

Key Results

  • Superior Accuracy: In high-heterogeneity scenarios with 40% malicious clients, FedLAW outperformed the next-best defense by 3.6% on MNIST. It also showed significant gains over RFA and CClip on CIFAR-10.
  • Resilience to Sophisticated Attacks: FedLAW maintained high performance under "Double Attacks" (combining inverse-gradient and global parameter attacks), where standard defenses like RFA experienced accuracy drops exceeding 31%.
  • Efficient Convergence: As shown in the weight evolution plots, weights typically stabilize within the first 20 communication rounds. This allows the server to potentially "freeze" weights early, reducing subsequent computational overhead.

Discussion and Conclusion

FedLAW shifts the paradigm of Byzantine defense from hard filtering to continuous optimization. By using alignment as a metric for weight optimization, the algorithm naturally favors gradients that are coherent with the majority, effectively down-weighting suspicious updates. Furthermore, the learnable nature of the weights allows the server to prioritize benign clients with rare or highly representative labels, improving fairness and accuracy in non-IID settings.

While FedLAW introduces a "look-ahead" step that increases per-epoch communication costs (requiring two rounds), the faster total convergence and significantly higher robustness justify this overhead. Future work may explore applying adaptive weighting to asynchronous FL or integrating differential privacy to further enhance security and privacy.

Summary updated

BibTeX
@inproceedings{parsa2026byzantine,
  author = {Javad Parsa and Amir Hossein Daghestani and André M. H. Teixeira and Mikael Johansson},
  title = {{Byzantine-Robust Federated Learning with Learnable Aggregation Weights}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=lXSrulux48},
}
Figure