Shared-Grid Voting: Byzantine-Robust Federated Learning from Replicable Rounding

In federated learning, many devices each train on their own data and send model updates to a central server, which combines them. If even one device is malicious (a "Byzantine" client, in the distributed-systems term), simple averaging breaks. The usual fixes replace the average with a robust statistic such as the median. These fixes fail against attackers who hide small, consistent nudges inside the natural spread of honest updates: the median shifts a little every round, and the shifts add up. We propose a different idea. Every client rounds its update to a randomly shifted grid whose offset all clients share, and the server takes a per-coordinate majority vote over the grid cells. When honest clients' values are closer together than one grid cell, they almost always land in the same cell, so the vote returns exactly what it would have returned with no attackers present. Because the shift is random, that output is an unbiased, noisy version of the honest update. The attacker's slow, persistent bias becomes zero-mean noise that the attacker cannot control. The noise is the price of replicability. We pay it down by having each client compute its update on a small importance-sampled subset of its data, weighted so that the subset closely matches the full-data loss. This narrows the honest spread and allows a finer grid at fixed local compute.

The rounding device is the core of algorithmic replicability: two runs on independent datasets should produce identical outputs when they share a random seed (Reproducibility in Learning). That literature uses rounding to make one learner agree with a hypothetical rerun of itself. We use it to make many honest clients agree with each other at the same moment, so that disagreement itself flags the attacker. The cost of replicability, roughly quadratic in the target failure probability (Stability is Stable), becomes a measurable tradeoff between accuracy and local compute. Sensitivity sampling is the tool that shifts that tradeoff.

Core Claim

Fix a round and a coordinate $j$. Let honest client $i$ hold the value $g_{ij}$. The server broadcasts a cell width $w_j$ and a shared offset $u_j$ drawn uniformly from $[0, w_j)$. Each client sends only the integer cell index $c_{ij} = \lfloor (g_{ij} - u_j)/w_j \rfloor$. The server returns

$$\hat g_j = u_j + w_j\left(\mathrm{mode}_i\, c_{ij} + \tfrac12\right),$$

where the mode is the most frequent cell index across all clients, honest or not.

Suppose two conditions hold: the honest values on coordinate $j$ span less than $s_j < w_j$, and Byzantine clients are a minority. Then the honest values occupy at most two adjacent cells, and they share one cell with probability at least $1 - s_j/w_j$; this comes from the uniform offset, as in shifted rounding. Whenever all honest clients share a cell, $\hat g_j$ does not depend on anything the attacker sends. Over the random offset, it is the honest value plus noise that is uniform on $[-w_j/2, w_j/2]$. That noise has mean zero and variance $w_j^2/12$.

Standard robust aggregators behave differently under the "hiding in the variance" attack (A Little Is Enough). That attack places malicious values a fixed fraction of a standard deviation away from the honest mean. Coordinate-wise median and trimmed mean then carry a bias of the same sign every round. Our claim is that the shared-grid vote removes this bias whenever the honest values agree. The remaining question is whether the noise $w_j^2/12$ is small enough for training to proceed. That depends on $s_j$, which is exactly what local importance sampling shrinks.

Two side benefits come with the same construction. Uplink messages become small integers, and the server needs no clean validation set and no estimate of how many clients are Byzantine.

Research Program

The work has three parts.

Theory. The first part proves the guarantee above in full. This covers the case where honest values split across two adjacent cells, where we bound the bias of choosing the mode. It also derives the convergence rate of stochastic gradient descent when each step's error is the sum of attacker-independent zero-mean grid noise and a small, rare bias from split coordinates. The expected form follows from standard stochastic gradient analysis with a variance term of order $w^2$. The optimization reproducibility results of Reproducibility in Optimization constrain the design. That paper shows accelerated methods amplify early errors and non-smooth losses need far more iterations to stabilize, so we restrict the theory to plain gradient steps on smooth losses and treat deep networks empirically.

Sensitivity-sampled local updates. The second part builds the local estimator. Each client constructs a one-shot weighted coreset of its local data, meaning a small weighted subset whose loss approximates the full local loss for every model in a neighborhood. Points are chosen by sensitivity, a bound on how much any single point can contribute to the total loss, and weighted by inverse probability. This is the construction of Efficient Coreset Constructions via Sensitivity Sampling, whose coreset size grows near-linearly in total sensitivity. Sensitivity bounds come from a rough local first pass, as in One-shot Coresets: The Case of k-Clustering. The coreset is refreshed every few rounds, similar to the periodic reselection in Gradient Coreset for Federated Learning.

One design choice is deliberate. Sensitivities are computed only from each client's own data, never from a global summary. This sidesteps a weakness of distributed coreset schemes such as Distributed Algorithms for Euclidean Clustering, where a lying site can corrupt other sites' sampling probabilities.

We also depart from FedCS in purpose. FedCS selects boundary samples to cope with heterogeneity and prunes outliers. Our coreset's only job is to cut the variance of the client's estimate of its full-data gradient at a given compute budget, so high-sensitivity points are kept rather than pruned.

Setting the cell width. The third part decides how the server chooses $w_j$ without trusting clients. We compare a fixed schedule tuned on clean runs with an adaptive rule. The adaptive rule widens $w_j$ when the previous round's vote on coordinate $j$ was split, and narrows it otherwise. We check whether attackers can manipulate this rule by deliberately voting to manufacture splits.

The honest limitation is data heterogeneity. Honest clients with different data distributions disagree for reasons that sampling cannot fix. This forces $w_j$ wider and the noise larger. We map where the method breaks as heterogeneity increases rather than claiming it does not.

Baselines

The naive reference is federated averaging (FedAvg) on full local data. It shows clean accuracy and how fully it collapses under attack.

The classical robust aggregators are coordinate-wise median, trimmed mean, Krum, and Bulyan. They are the closest relatives because, like our method, they act coordinate-by-coordinate or by distance without side information. The file reports concrete numbers for them. Local Model Poisoning Attacks reports that on an MNIST deep network, median error rose from 0.06 to 0.28, trimmed mean from 0.06 to 0.14, and Krum from 0.11 to 0.75. A Little Is Enough reports that with 12 of 51 workers malicious on CIFAR-10, Krum accuracy fell from about 60% to 20.3% and Bulyan to 28.1%.

The strongest detection-based competitor is FedCut. It builds a similarity graph of client updates over rounds and cuts it spectrally to find colluders. It reports worst-case improvements of 17.6% to 69.5% over Krum, Bulyan, and a method called DnC, and near-100% colluder detection on MNIST. Its cost is quadratic in the number of clients, and it needs full update vectors.

The strongest method with side information is Bant. It scores clients by loss decrease on a small clean server dataset and survives Byzantine majorities. It gets that clean set in our runs, which deliberately advantages it. For Bant, no reported result was found on Lacuna for CIFAR-10 accuracy under the attack suite.

Fairness rules. All methods see the same client partitions, the same model, the same number of rounds, and the same local compute per client. For baselines, local compute means a uniform minibatch of matching size. Every method gets the same hyperparameter search budget on clean runs only. Attacks are then applied without retuning.

Ablations. Three ablations isolate the ingredients:

  • Shared-grid voting with uniform local subsampling instead of coresets, which isolates sensitivity sampling.
  • Voting on a fixed, unshifted grid, which isolates the random offset.
  • Median and trimmed mean computed on our coreset-based local updates, which tests whether coresets alone explain any gain.

What counts as winning. Two conditions must both hold. Clean accuracy must be within one point of FedAvg's. Under the hiding-in-the-variance attack and the directed attack, accuracy must exceed the best of median, trimmed mean, and FedCut by a margin larger than seed-to-seed variation. Matching Bant without its validation set also counts.

Why not just…?

Why not just run median or trimmed mean on better local updates? This is the most serious alternative. Coresets narrow the honest spread, and the hiding-in-the-variance attack's displacement scales with that spread. So coresets alone might shrink median bias enough to suffice. The difference is structural: median bias keeps the same sign every round and accumulates, while grid noise has zero mean. The third ablation settles the question directly. If median-on-coresets matches shared-grid voting under attack, the voting idea adds nothing and we would report that.

Why not just quantize updates and take a majority vote without a random shift? With a fixed grid, honest values that sit near a cell boundary split the same way every round. The attacker can learn which coordinates those are and tip them consistently. Rounding to a fixed grid is also biased, so its error accumulates like the median's. The random shared offset is what turns both failures into zero-mean noise, as in the shifted-rounding construction of Reproducibility in Learning. The unshifted-grid ablation measures how much this matters.

Why not just subsample uniformly; isn't sensitivity sampling overhead for nothing? For deep networks, sensitivity bounds can be loose, and the advantage reported over uniform sampling on the Human Activity Recognition dataset (Efficient Coreset Constructions) may not carry over. We treat this as an open risk. We measure the honest per-coordinate spread at a fixed sample budget under both samplers. If uniform sampling gives the same spread, we drop the coreset and keep the simpler method.

Why not just filter clients with a clean server dataset, as Bant does? When such data exists and is representative, Bant may simply be better, including against Byzantine majorities. Our method cannot match it there, because a plurality vote needs the honest clients to be the largest group. The case for our method is deployments without trustworthy server data, where Bant itself reports that its automatic variant breaks down with small trial sets. We report both regimes and shrink Bant's trial set to show where each method wins.

Proposed Experiments

Convex track. This track tests the theory. We run federated logistic regression on the Breast Cancer Wisconsin and Human Activity Recognition data, and federated k-means on DIGITS. We measure four things: the fraction of coordinates where honest votes split, the empirical noise variance against the predicted $w^2/12$, the final loss gap from the clean result, and invariance to attack. Invariance means the model trajectory should be bitwise identical with and without attackers in a large fraction of rounds.

Deep track. We use MNIST, Fashion-MNIST, and CIFAR-10 with 51 clients. We reproduce the 12-attacker hiding-in-the-variance setup and add the directed local-poisoning attack, sign flipping, inner-product manipulation, and label flipping. FEMNIST provides natural heterogeneity, and Dirichlet partitions with concentration from 100 down to 0.1 provide controlled heterogeneity.

Adaptive attacker. We also design an attacker aimed at this method. It knows the offset in advance, targets coordinates likely to split, and manipulates the adaptive cell-width rule.

Replicability check. We run two independent federations, each drawn from the same client population with the same seed. We count how often their global models agree exactly, and compare against FedCut's spectral partitions, which are not replicable.

Decisive check. The method is falsified if either of two things happens on CIFAR-10. At matched clean accuracy, it fails to beat trimmed mean under the hiding-in-the-variance attack. Or the adaptive attacker pushes accuracy below that of median. A second decisive output is the heterogeneity level at which the required cell width erases clean accuracy, which marks the method's honest operating range.