Robust Federated Learning

Machine Learning
Introduced by
Blanchard, P.; El Mhamdi, E. M.; Guerraoui, R.
Year
2017
Type
Distributed learning with Byzantine-tolerant aggregation
Family
Machine learning

What does it do?

Robust Federated Learning extends standard federated learning with Byzantine-tolerant aggregation rules, so that the global model is less affected by malicious, corrupted, or unreliable clients.

Instead of averaging client updates, it uses rules such as coordinate-wise median or Krum, which are designed to limit how far a minority of adversarial participants can move the global update.

The intuition behind the method

In standard federated learning, a central server averages gradient updates sent by many clients. If even a few clients send poisoned or erroneous updates, the average can be pulled far off course. Robust Federated Learning treats this as a Byzantine fault problem: it replaces the arithmetic mean with aggregation rules that are designed to resist a bounded fraction of adversarial clients. The server works only with the uploaded updates and never sees raw client data. That keeps raw data local, but it does not by itself make the protocol private, so privacy has to be addressed separately.

History

The Byzantine fault-tolerance problem comes from distributed computing. Its application to gradient aggregation in machine learning was formalized by Blanchard et al. (2017, NeurIPS), who introduced the Krum aggregation rule. Yin et al. (2018, ICML) analysed statistical rates for coordinate-wise median and trimmed mean. Robust aggregation became a research priority alongside federated learning, as concern grew about data poisoning and adversarial participation in cross-device and cross-silo systems.

When to use it

Use Robust Federated Learning when data cannot leave client devices or institutions because of privacy, regulatory, or bandwidth constraints, and when the client population may include unreliable, compromised, or adversarial participants. Typical cases are cross-device mobile applications, hospital consortia, and IoT deployments. It is appropriate when the threat model includes data poisoning or Byzantine faults affecting a limited fraction of clients. Do not use it when all clients are trusted and data can be pooled centrally, since centralized training is simpler, faster, and easier to validate. Avoid it when the fraction of Byzantine clients is unknown or may exceed what the chosen aggregation rule tolerates. The tolerance is specific to each rule and is stated as a condition in that rule's originating publication, so the expected number of adversarial clients must be checked against the chosen rule before deployment.

Limitations and considerations

  • Robust rules discard or down-weight part of the information in honest updates, which can slow convergence relative to standard FedAvg.
  • Robustness holds only up to a threshold fraction of Byzantine clients. If adversaries exceed this fraction for the chosen rule, the global model can still be corrupted.
  • Non-IID data distributions degrade accuracy even without attacks, and robust aggregation does not resolve this heterogeneity.
  • Communication overhead per round is high. Compression or sparsification can interact poorly with the robustness properties of the aggregation rule.
  • Model quality is hard to evaluate, because no single centralized validation set reflects the true data distribution across all clients. A server-side held-out set is only a proxy, so per-client evaluation is also needed.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Limits how much a bounded minority of Byzantine clients can shift the global update, which plain averaging cannot do.
  • Raw client data is not uploaded; only gradient or model updates are sent. This reduces direct exposure of records, although updates can still leak information.
  • Compatible with gradient clipping and noise addition from differential privacy, which can be layered on for formal privacy guarantees.
  • The aggregation rule is a separate component, so it can be replaced (median, trimmed mean, Krum, Bulyan) to match the assumed threat model.
  • The protocol can run when client data distributions differ, although heterogeneity still reduces accuracy (see limitations).

Applications

  • Privacy-preserving model training across hospitals or research institutions without sharing patient records.
  • Cross-device federated learning on smartphones, where some devices may be compromised or run corrupted software.
  • IoT sensor networks, where edge devices may malfunction or be physically tampered with.

How it works

How it works

1

Each participating client trains a local model on its private data for one or more rounds, computing a gradient or weight update. Clients may differ in data distribution (non-IID), data size, and reliability, so the protocol must not assume all updates are trustworthy.

2

Clients upload their local gradient updates (or model deltas) to the central server. To reduce privacy risk, updates may be clipped, noised (differential privacy), or compressed before transmission. Byzantine clients may upload arbitrary or adversarially crafted values at this step.

3

The server applies a robust aggregation rule instead of a plain mean. Coordinate-wise median takes the median of the client values separately for each parameter coordinate. Trimmed mean removes a set fraction of the largest and smallest values for each coordinate and averages the remaining values; the trimming fraction is a parameter chosen by the user. Krum scores each update by the sum of its squared distances to its nearest neighbours among the submitted updates and selects the update with the lowest score. Bulyan selects updates with Krum and then trims the selected set. Each rule tolerates a different fraction of Byzantine clients and comes with different statistical guarantees, which are stated in the originating publications.

4

The aggregated gradient is used to update the global model parameters, typically via SGD or Adam. The updated global model is then broadcast back to the participating clients for the next round.

5

Training repeats for a set number of communication rounds or until a validation metric on a server-side held-out dataset converges. This dataset is only a proxy for the client population. It may not reflect the distribution of every client, so convergence on it does not guarantee good performance on all clients. Convergence is usually slower than centralized training, because of communication cost and because gradients from non-IID clients point in different directions.

Common pitfalls

  • Choosing a robust aggregation rule without checking that its Byzantine-fraction assumption matches the real deployment.
  • Neglecting non-IID heterogeneity. Robust aggregation addresses adversarial clients, not statistical heterogeneity, so accuracy can still suffer.
  • Assuming that differential privacy and Byzantine robustness together are sufficient without auditing the combined privacy-utility trade-off.
  • Ignoring the communication round budget. Many rounds may be needed for convergence, which can be impractical on high-latency or real-time client networks.
  • Evaluating only on a pooled IID test set rather than on held-out data for each client, which can hide per-client performance disparities.

Frequently asked questions

What fraction of Byzantine clients can Robust FL tolerate?

Each aggregation rule has its own condition on the fraction of Byzantine clients it can tolerate. The exact condition is stated in the rule's originating publication: Blanchard et al. (2017) for Krum, and Yin et al. (2018) for coordinate-wise median and trimmed mean. Check that condition against your expected number of adversarial clients before choosing a rule. Bulyan has its own condition, which must be checked separately. If adversaries exceed the tolerance of the chosen rule, robustness guarantees no longer hold.

Does Robust FL protect privacy as well as Byzantine clients?

Byzantine robustness and privacy are separate properties. Robust aggregation defends against corrupted gradient updates but does not prevent an honest-but-curious server from inferring private information from the updates. Differential privacy (gradient clipping and noise) must be added separately to achieve privacy guarantees.

How does it differ from standard FedAvg?

Standard FedAvg uses a weighted average of client model updates, which a single malicious client can arbitrarily distort. Robust FL replaces the average with a Byzantine-tolerant aggregation rule (e.g., coordinate-wise median or Krum) that limits the influence any one client can have on the global model, at some cost to convergence speed.

What is the main convergence challenge?

Non-IID client data is the main convergence challenge even without Byzantine clients. When clients have very different local distributions, their gradients point in different directions and global convergence slows. Robust aggregation rules are designed for Byzantine tolerance, not for resolving statistical heterogeneity, so the two problems need separate mitigation strategies.

Which aggregation rule should I choose?

Coordinate-wise median is simple to apply per coordinate, and Yin et al. (2018) analyse its statistical rates. Krum requires pairwise distances between all submitted updates in each round, so its computational cost grows with the number of clients. Trimmed mean depends on a trimming fraction that must be chosen, typically in relation to the expected share of adversarial clients. Bulyan combines Krum selection with trimmed aggregation; its client-count requirement differs from the other rules and must be checked before use. The choice should match your threat model and the proportion of clients you expect to be malicious. Exact per-round costs and minimum client counts depend on the rule and the number of clients, so consult each rule's original publication for its stated requirements.

Related methods

Sources

  1. Blanchard, P., El Mhamdi, E. M., Guerraoui, R., & Stainer, J. (2017). Machine Learning with Adversaries: Byzantine Tolerant Gradient Descent. Advances in Neural Information Processing Systems, 30.

    Open publication reference
  2. Yin, D., Chen, Y., Kannan, R., & Bartlett, P. (2018). Byzantine-Robust Distributed Learning: Towards Optimal Statistical Rates. Proceedings of the 35th International Conference on Machine Learning (ICML), PMLR 80:5650–5659.

    Open publication reference