Federated learning trains one model across many devices. The devices send model updates to a central server and keep their raw data at home. When each device's data looks different, which is the usual case, local training pulls each device's model toward its own data. Averaging these pulled-apart models then works badly, a problem called client drift. The standard fix, SCAFFOLD, has each device keep a "control variate": a running estimate of how its own gradient differs from the global one. The device subtracts this estimate during local training and sends updates to the estimate to the server. This proposal asks what that extra message reveals. A control variate is by design a clean, low-noise summary of how one client's data differs from everyone else's. That is what a privacy attacker wants, and it is exactly the signal that multi-step local training normally blurs.
We propose to measure this leakage channel with real reconstruction and inference attacks. We also test a simple redesign in which every piece of client state is computed only from updates that have already been released under differential privacy. Differential privacy (DP) is the formal guarantee obtained by clipping each client's update and adding Gaussian noise. Under the redesign, drift correction adds no new message, needs no extra privacy budget, and keeps client and server state in exact agreement. The open question is whether drift correction still works when its state is built from noisy releases. The answer decides whether private federated learning on heterogeneous data can keep SCAFFOLD's accuracy gains without paying for them in leakage.
Core Claim
Existing gradient inversion attacks target either single-step gradients or FedAvg's multi-step parameter differences. AGIC approximates a multi-step FedAvg update as one large-batch gradient and links reconstructions across epochs. RLU recovers batch labels from classifier-bias updates under FedAvg and FedProx. Neither studies drift-corrected algorithms. On the privacy side, DP-SCAFFOLD adds client-level DP to SCAFFOLD and proves that local steps are a "free lunch": more local steps speed up optimization at no extra privacy cost. It evaluates privacy only through the formal bound and never runs an attack.
Our claim has two parts. First, in drift-corrected federated learning the server can rebuild each client's full control variate exactly, because that variate is the sum of the deltas the client has sent. The server can then remove the correction term from the parameter update, leaving the raw data-dependent gradient sum. In the variant where the control variate is a fresh gradient taken at the server's current model, the client even hands over an unsmeared gradient at known weights. We therefore predict that non-private SCAFFOLD leaks strictly more than FedAvg under the same attacks. We also predict that at practical, loose privacy budgets, DP-SCAFFOLD leaks measurably more than DP-FedAvg at the same nominal $\epsilon$ whenever the control-variate message is released through its own channel.
Second, a "released-state" variant removes the extra channel at zero privacy cost. In it, client and server update the control variate only from the privatized parameter update, and the variate is smoothed across rounds. We predict this variant keeps most of DP-SCAFFOLD's accuracy advantage over DP-FedAvg.
Research Program
The mechanism is easiest to see in SCAFFOLD's derived control-variate rule. Write $x$ for the global model, $y_i$ for client $i$'s model after $K$ local steps with step size $\eta$, $c$ for the server's control variate and $c_i$ for the client's. The update is
$$c_i^{+} = c_i - c + \frac{1}{K\eta}(x - y_i).$$
Every quantity on the right is either already known to the server or equal to the released update $x - y_i$. So the server can reconstruct $c_i$ without it ever being sent. In the released-state variant, the client replaces $x - y_i$ with the clipped and noised release $\tilde{\Delta}_i$ that the server actually sees. By DP's post-processing property, the variate then costs no privacy, and both sides hold identical state. The price is that the noise in $\tilde{\Delta}_i$ enters $c_i$ scaled by $1/(K\eta)$. We therefore smooth the update with an exponential moving average over a client's participations, with weight $\beta \in [0,1)$:
$$c_i^{+} = \beta\, c_i + (1-\beta)\left(c_i - c + \frac{\tilde{\Delta}_i}{K\eta}\right).$$
The work has three pieces. The first is an attack suite adapted to drift-corrected messages. It includes RLU-style label recovery applied to the classifier-bias block of $c_i$ and of the correction-removed update, and optimization-based inversion. The inversion treats the variant that sends a fresh gradient as a single-step target, uses AGIC's one-batch approximation for the correction-removed sum, and uses the generative-prior inversion of Jeon et al. at larger batch sizes. The suite also includes a class-proportion inference attack that reads each client's label mixture from its accumulated $c_i$.
The second piece is a set of controlled comparisons across FedAvg, SCAFFOLD, DP-FedAvg, DP-SCAFFOLD as published, and the released-state variant. These vary the number of local steps $K$, the Dirichlet heterogeneity level and $\epsilon$. Varying $K$ tests the tension between DP-SCAFFOLD's free-lunch result and AGIC's finding that repeated passes over the same data help the attacker.
The third piece is a clipping analysis. Understanding Clipping for FL shows that clipping bias grows with how spread out client updates are, and that this spread depends on architecture: 0.10% accuracy drop for ResNet-18 versus 3.60% for AlexNet on non-IID EMNIST. Drift correction should make client updates more similar. We will measure whether that similarity reduces clipping bias, which is a second, previously unexamined reason drift correction might pay off under DP.
Baselines
The naive reference point is DP-FedAvg, meaning FedAvg with difference clipping and Gaussian noise under the same client-level accounting. It answers whether drift correction is worth anything once privacy is enforced.
The strongest existing competitor is DP-SCAFFOLD (Noble et al.). It is the only method in the file that combines drift correction with client-level DP. It reports a 10–20% average accuracy gain over DP-FedAvg on heterogeneous synthetic data and roughly a 10% gap on MNIST with a deep network. The file reports no DP-SCAFFOLD result on CIFAR-10 or CIFAR-100, so those numbers we produce ourselves. We run it with its warm-start budget allocation, using the same data partitions, rounds, clients per round, total $\epsilon$ and $\delta$, and the same grid over learning rate, clipping threshold and $K$ given to every method. To beat it, the released-state variant must match its accuracy within noise at equal $\epsilon$ while matching DP-FedAvg's attack success.
Two further baselines address the stateless alternative and the heuristic-defense alternative. The first is DP-FedAdam from Adaptive Federated Optimization, which keeps optimizer state only on the server. The second is the GradPrune plus Intra-InstaHide defense benchmarked by Huang et al.. On CIFAR-10 it held 86.10% accuracy against a 93.37% undefended baseline and raised reconstruction LPIPS from 0.45 to 0.73. That paper used single-step updates, so we rerun it in the multi-step, non-IID setting rather than import its numbers.
Two ablations isolate the key ingredient: the released-state variant with no smoothing ($\beta=0$), and SCAFFOLD with the control variate derived from noiseless local updates rather than from the release.
Why not just…?
Why not just rely on the DP guarantee, since post-processing covers everything? If the full SCAFFOLD transcript is accounted for, the formal $\epsilon$ does bound leakage. But the budget is split between two messages, and practical deployments use $\epsilon$ values at which empirical attacks still succeed. The question here is empirical leakage and accuracy at matched nominal $\epsilon$, which the formal bound does not answer. If DP-SCAFFOLD as published already builds its variates from released updates and shows no excess leakage, our first claim fails for the private setting. It would still stand for non-private SCAFFOLD, and we would report that plainly.
Why not just use the derived-variate rule and stop sending the extra message? This is the real threat, because it is most of our fix. Without DP it may suffice, and we expect it to close the extra channel. Under DP, however, the client must either use its noiseless update, which desynchronizes it from the server and silently breaks the accounting, or use the noisy release. The noisy release injects noise scaled by $1/(K\eta)$ into every correction. The $\beta=0$ ablation measures exactly how much accuracy this costs. If it costs nothing, the smoothing contribution disappears and the paper becomes an audit plus a one-line recommendation, which is still worth publishing.
Why not just use server-side adaptive optimization, which has no client state to leak? SCAFFOLD argues that server momentum cannot stop local models from drifting during many local steps. Its evidence is that SCAFFOLD reaches target accuracy on heterogeneous EMNIST while FedAvg does not converge within 1,000 rounds. That evidence is non-private. DP-FedAdam is therefore run head-to-head: if it matches the released-state variant at equal $\epsilon$, client-side drift correction is unnecessary under privacy, and we will say so.
Why not just use large batches or gradient pruning? RLU's label recovery stays above 90% on CIFAR-100 even after 10 local epochs. Generative priors recover images from multi-sample batches (Jeon et al.). GradPrune needs more than 99% pruning, at about a 10% accuracy cost, to defend on its own (Huang et al.). We include both as heuristic arms so their frontier sits on the same plot.
Proposed Experiments
We use EMNIST and FEMNIST with natural per-writer splits, and CIFAR-10 and CIFAR-100 with Dirichlet label skew at concentrations from mild to extreme (roughly 1.0 down to 0.05). The models are a ResNet-18 with BatchNorm statistics kept private, following Huang et al.'s finding that inversion depends on those statistics, and a small CNN. We sweep $K$ over 1, 5, 20 and 50, and $\epsilon$ over 1, 4, 8 and no DP.
Utility is measured as global test accuracy, worst-decile client accuracy, and rounds needed to reach a target accuracy. Leakage is measured as RLU label-recovery accuracy, reconstruction PSNR, SSIM and LPIPS, and the total-variation error of inferred client class proportions. All leakage metrics are reported against the same server-side attacker for every algorithm.
Three checks decide the outcome. The first tests the leakage claim: non-private SCAFFOLD should give higher label-recovery and class-proportion inference accuracy than FedAvg at equal $K$, with the gap growing as heterogeneity increases. If it does not, the leakage claim is false. The second tests the fix: at $\epsilon=8$, DP-SCAFFOLD with a separately released variate should leak more than DP-FedAvg, and the released-state variant should bring leakage back to the DP-FedAvg level. The third tests utility: the released-state variant with smoothing should retain at least half of DP-SCAFFOLD's accuracy gain over DP-FedAvg on Dirichlet 0.1 CIFAR-10, and should beat DP-FedAdam there. A further check tracks attack success as $K$ grows under a fixed $\epsilon$. If leakage rises with $K$, as AGIC's cross-epoch linking suggests, the free-lunch result holds only for the formal bound and not for measured leakage.
References
- AGIC: Approximate Gradient Inversion Attack on Federated Learning
- Recovering Labels from Local Updates in Federated Learning
- Differentially Private Federated Learning on Heterogeneous Data
- Gradient Inversion with Generative Image Prior
- Understanding Clipping for Federated Learning: Convergence and Client-Level Differential Privacy
- Adaptive Federated Optimization
- Evaluating Gradient Inversion Attacks and Defenses in Federated Learning
- SCAFFOLD: Stochastic Controlled Averaging for On-Device Federated Learning.