Trade-off in Estimating the Number of Byzantine Clients in Federated Learning

Ziyi Chen, Su Zhang, Heng Huang · Submission to ICLR 2026 · Rejected

TL;DR

In Byzantine-robust federated learning, practitioners configure aggregators using an estimate $\hat{f}$ of the maximum number of malicious clients. This paper proves a fundamental trade-off: underestimating the attacker count ($\hat{f} < f$) risks catastrophic divergence, while overestimating it ($\hat{f} \ge f$) inflates aggregation error and convergence gaps at a rate proportional to $\frac{\hat{f}}{n - f - \hat{f}} G^2$.

What Problem Does This Paper Address?

Federated learning (FL) coordinates training across distributed devices, but malicious or faulty (Byzantine) clients can upload poisonous model updates to derail the global model. To resist attacks, servers use robust aggregators parameterized by a tolerance threshold $\hat{f}$ (the estimated upper bound on malicious clients).

Prior theoretical analyses almost exclusively studied two edge cases:

  1. Exact estimation: $\hat{f} = f$ (the server guesses the exact number of attackers).
  2. No attacks: $f = 0$ (analyzing harmless drop in efficiency when assuming worst-case attacks).

In practice, the true number of attackers $f$ is unknown and dynamic. This paper provides the first systematic theoretical and empirical study of the mismatch between the configured tolerance $\hat{f}$ and the true attack level $f$.

Methods

The authors analyze the standard Federated Robust Averaging (FedRo) framework (and its stochastic counterpart StocFedRo) across two regimes:

  • Underestimation Analysis ($\hat{f} < f$): The authors construct counterexamples showing that standard aggregators—such as coordinate-wise trimmed mean (CWTM)—fail to satisfy $(f, \kappa)$-robustness when $\hat{f} < f$, causing the global model iterates to diverge to infinity, even under Polyak-Łojasiewicz (PŁ) objectives.
  • Non-underestimation Analysis ($\hat{f} \ge f$):
  • Lower Bounds: They establish theoretical lower bounds on both the aggregator's robust coefficient $\kappa \ge \frac{\hat{f}}{n - f - \hat{f}}$ and the optimization convergence error ($\Omega(\frac{\hat{f} G^2}{n - f - \hat{f}})$ for gradients and $\Omega(\frac{\hat{f} G^2}{\mu(n - f - \hat{f})})$ for objective values, where $G^2$ measures cross-client data heterogeneity).
  • Upper Bounds & Matching Aggregator: Standard aggregators (e.g., Krum, Geometric Median, CWTM) have sub-optimal bounds. To establish tight upper bounds, the authors combine $\hat{f}$-Krum with Nearest Neighbor Mixing ($\hat{f}$-NNM) booster, proving it achieves an order-matching upper bound of $\mathcal{O}(\frac{\hat{f}}{n - f - \hat{f}})$.
  • Stochastic Extension: The proofs are extended to mini-batch stochastic gradient settings (StocFedRo), incorporating client sampling variance $\sigma^2 / B$.

Datasets

  • CIFAR-10: 50,000 training images distributed across $n = 16$ clients.
  • Non-IID Partitioning: Client data distributions are synthesized via a symmetric Dirichlet distribution $\text{Dir}_{10}(\alpha)$ over class labels, tested across varying degrees of heterogeneity: $\alpha \in \{0.1, 1.0, 10.0\}$ (smaller $\alpha$ means higher statistical heterogeneity $G^2$).
  • Benchmark Note: No new dataset was introduced; standard CIFAR-10 partitioned via established Dirichlet label-imbalance protocols was used.

Key Insights and Ideas

  • Asymmetric Risk Profile: Underestimating $f$ is catastrophic (potential $\infty$ divergence), whereas overestimating $f$ merely incurs an asymptotic performance penalty. Thus, safety requires $\hat{f} \ge f$.
  • The "Price of Caution": The penalty for overestimation is not constant—it scales tightly as $\mathcal{O}\left(\frac{\hat{f}}{n - f - \hat{f}}\right)$. As $\hat{f}$ increases beyond $f$, benign updates are aggressively pruned or distorted, throwing away valuable client signals.
  • Heterogeneity Amplification: The performance degradation due to overestimation is directly scaled by client heterogeneity $G^2$. In perfectly IID settings ($G^2 = 0$), overestimation does not induce an asymptotic error floor; however, under realistic heterogeneous settings ($G^2 > 0$), overestimating $\hat{f}$ creates a non-vanishing error floor that prevents exact convergence.

Key Results

Experiments with ResNet-20 (using Group Normalization) on CIFAR-10 confirmed the theory across Gaussian, label-flip, and sign-flip attacks:

  • Underestimation ($\hat{f} < f = 4$): Under Gaussian attacks, accuracy collapsed to random guessing ($\approx 10\%$) for all $\hat{f} \in \{0, 1, 2, 3\}$.
  • Exact Estimation vs. Overestimation ($f = 0$):
  • At severe heterogeneity ($\alpha = 0.1$), increasing $\hat{f}$ from $0$ to $7$ degraded top-1 accuracy by 22.23% (from $65.61\%$ down to $43.38\%$).
  • At mild heterogeneity ($\alpha = 10.0$), the penalty was muted, dropping by only 2.37% (from $80.24\%$ to $77.87\%$), confirming the theoretical dependence on $G^2$.
  • Attacker Setting ($f = 4$): The peak performance occurred exactly at $\hat{f} = f = 4$ ($54.58\%$ for $\alpha = 0.1$); increasing $\hat{f}$ to $7$ dropped accuracy down to $43.69\%$ (a $10.89\%$ drop).

Limitations and Future Work

  • Bounded Adversary Fraction: The theoretical derivations require $f < n/2$, which is standard since Byzantine fault-tolerance is theoretically intractable when adversaries form a majority without trusted root data.
  • Static Parameterization: The paper considers fixed values of $\hat{f}$. In real deployments, attacker presence may fluctuate over rounds; developing adaptive algorithms that dynamically estimate $f$ online to minimize $\hat{f} - f \ge 0$ remains an open and promising direction.

Summary updated

BibTeX
@misc{chen2025trade,
  author = {Ziyi Chen and Su Zhang and Heng Huang},
  title = {{Trade-off in Estimating the Number of Byzantine Clients in Federated Learning}},
  year = {2025},
  eprint = {2510.04432},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.04432},
}
Figure