Error Feedback Remembers What Quantization Hides

Federated learning trains a shared model by having each device send model updates to a server instead of raw data. To save bandwidth, devices often quantize those updates, rounding them to a few bits or keeping only the largest entries. Aggressive quantization only trains well with error feedback: the device keeps a private buffer of whatever rounding threw away and adds it back into the next update. Separately, the privacy literature reports that quantization defends against gradient inversion, meaning attacks that rebuild a client's training images by searching for inputs whose gradient matches the intercepted update. Those defenses were measured one round at a time, on quantizers that simply discard their error.

This proposal argues that the two facts collide. Error feedback is guaranteed to eventually transmit every discarded bit, so its convergence guarantee is also a leakage guarantee. A server that sums a client's decoded messages over a window of rounds gets the sum of that client's true gradients, minus one bounded leftover. We will show this accumulated signal can be inverted almost as well as an uncompressed gradient. We will then map how much of quantization's apparent privacy can be bought back by deliberately letting the buffer "leak," and at what cost in accuracy.

Core Claim

Write $g_t$ for a client's true local gradient at round $t$, $\mathcal{C}$ for the compressor, $e_t$ for the error buffer with $e_0 = 0$, and $\Delta_t = \mathcal{C}(e_t + g_t)$ for the message the server decodes. The error-feedback rule $e_{t+1} = e_t + g_t - \Delta_t$ telescopes:

$$\sum_{t=0}^{W-1} \Delta_t \;=\; \sum_{t=0}^{W-1} g_t \;-\; e_W .$$

For contractive compressors, the analyses behind Fed-EF and QADAM keep $\|e_W\|$ bounded. The summed gradient, by contrast, grows roughly linearly in the window length $W$ while the client's data stays fixed. The relative distortion an attacker faces should therefore shrink roughly like $1/W$. Without error feedback, the per-round errors add up instead of cancelling, so the distortion does not shrink.

The server knows every model iterate $w_t$ it broadcast. It can therefore pose a multi-round inversion: search for dummy data $x$ whose summed gradients $\sum_t \nabla \ell(w_t; x)$ match the summed messages.

Two consequences follow, and both are new relative to the file. First, the attack never needs to simulate the client's private buffer. Gradient Inversion Attacks Beyond SGD identified hidden optimizer state as the open defense against its update-matching attack. Error feedback looks like exactly such hidden state, yet the telescoping identity removes it from the problem. Second, client-secret randomness inside the compressor does not help either, because the identity holds for any $\mathcal{C}$ the server can decode. This also covers the secret layer-wise bit-widths of Mixed Quantization, once error feedback is added to make that scheme train deep models. The only ways out are to break the identity, by discarding or decaying the buffer, or to add noise.

Research Program

The first component is the attack. We will implement windowed accumulated-update inversion with a cosine-distance matching objective in the style used across the inversion literature. The objective will be optionally strengthened with the generative prior of Gradient Inversion with Generative Image Prior, which handles the batch ambiguity that otherwise caps inversion at small batches.

The attack has to cope with two complications. One is that minibatches change across rounds. We handle this by matching against the client's whole local pool, so the dummy set is the union of the client's minibatches. The other is partial participation: a client's buffer persists while it is offline, which is the stale-error regime of Fed-EF. The telescoping identity still holds over the rounds in which the client did participate. We will vary the window $W$ to trade the shrinking leftover $e_W$ against model drift across iterates. We also extend the attack to adaptive variants. In server-side AMSGrad (Fed-EF-AMS), clients still send error-compensated gradients, so the identity applies directly. In 1-bit Adam, error feedback acts on a momentum that is linear in gradients once the variance estimate is frozen. That is the same frozen-preconditioner regime that removes the nonlinearity Gradient Inversion Attacks Beyond SGD had to solve around.

The second component is the defense frontier. We study leaky error feedback, $e_{t+1} = \beta(e_t + g_t - \Delta_t)$ with $\beta \in [0,1]$. With $\beta < 1$, the summed messages recover only a geometrically discounted share of past residuals, so leakage should fall as $\beta$ drops while compression bias rises. Setting $\beta = 0$ is plain quantization without error feedback, and periodic resetting is the error-restarting heuristic from Fed-EF. We will derive the recoverable-signal fraction as a function of $\beta$, the compressor's contraction factor, and $W$. We will check it against the bias term in the Fed-EF convergence analysis. Then we measure empirically whether the privacy-accuracy curve has a bend, meaning a $\beta$ that keeps most of error feedback's accuracy while sending inversion quality back toward the single-round quantized level. It is possible that no such bend exists and the trade-off is smooth. We will report that outcome as a result, not hide it.

The third component audits the private regime. Clip21 and Clip21-SGD2M combine error feedback with clipping and Gaussian noise. They bound sensitivity by clipping the residual difference, so formal differential privacy should survive accumulation. We will check empirically that the multi-round attack degrades as their privacy accounting predicts. This tests whether their error-feedback memory opens a practical gap the accounting misses. We do not claim it does.

Baselines

The do-nothing reference is the single-round attack on an uncompressed client update. This is the ceiling on what any attacker can extract, and the target our accumulated attack must approach. The file's cited reference point is the DLG attack on CIFAR-10 reaching PSNR 55.3, as reported in Mixed Quantization.

The strongest existing privacy claim we contest is that same paper's single-round, memoryless quantization defense. It reports DLG PSNR dropping from 55.3 to 8.1 on CIFAR-10 while keeping 96.67% MNIST accuracy, against 78–85% for differential-privacy baselines. We will rerun its quantizers, with identical clients, model, and attack iteration budget, in three configurations. The first is without error feedback, as published. The second adds error feedback under a single-round attack. The third adds error feedback under our accumulated attack. Beating it means the third configuration exceeds the first by a wide margin, at least half the gap to the uncompressed ceiling at practical window lengths. The second configuration must stay low; this shows the leak comes from accumulation, not from error feedback changing individual messages.

The strongest attack baseline is the update-matching attack of Gradient Inversion Attacks Beyond SGD. It reports up to 6.5 dB PSNR gain over prior attacks on Adam updates, effective up to batch 16 and 8 local steps. We give it the same image budget and restarts, and apply it per round to compressed error-feedback messages. Our attack must beat it there, since otherwise accumulation adds nothing.

The utility baseline is Fed-EF with TopK or Heavy-Sign. On MNIST and FMNIST it is reported to match full-precision accuracy with 100x fewer bits. Every defense setting is scored against this reported operating point under the same non-IID partitions and participation rate. For randomized quantization (RQM), no reported numeric accuracy was found on Lacuna, so we will run it ourselves with an equal tuning budget.

The key ablation sweeps $\beta$ and the window $W$ with everything else fixed. It isolates whether the telescoping memory, rather than the compressor, carries the leak.

Why not just…?

Why not just use differential privacy and skip this analysis? Formal differential privacy, done with clipped residuals as in Clip21-SGD2M, should indeed defeat the attack, and our third component checks this. The problem is that most bandwidth-motivated deployments run error-feedback quantization without noise, precisely because noise is costly. The 78–85% versus 96.67% MNIST gap reported in Mixed Quantization illustrates that cost. Those deployments currently assume quantization buys them privacy. The question is what that assumption is worth, and whether a cheaper intermediate exists.

Why not just use unbiased randomized quantization, which needs no error feedback? This is a real threat to the defense half of the proposal. Without error feedback there is no telescoping, and RQM even offers formal guarantees. At high compression, though, unbiased quantizers have large variance, and the 100x Fed-EF operating point was obtained with biased compressors plus error feedback. We will place RQM and stochastic rounding on the same accuracy, bits, and attack-PSNR axes. If RQM dominates leaky error feedback at equal bits, we will recommend it and present our contribution as the attack plus the measurement.

Why not just reset error buffers every round? Resetting is $\beta = 0$, or periodic restarting, and it does remove the leak by construction. The open question is how much accuracy it costs. The sweep over $\beta$ answers that directly. If full resetting costs little, that is a cheap practical fix with a privacy justification Fed-EF's heuristic lacked.

Why not just rely on secure aggregation? If the server only ever sees sums over many clients, single-client accumulation is blocked. However, encryption overheads on edge devices are noted in Mixed Quantization, and Panning for Gold shows targeted extraction survives large-scale aggregation. We treat secure aggregation as out of scope rather than refuted.

Proposed Experiments

Experiments use CIFAR-10 and CIFAR-100 with LeNet-5 and ResNet-18, plus MNIST and FMNIST in non-IID splits. Settings cover 10–100 clients, participation fractions from full down to 10%, local batch sizes 1–32, and 1–8 local steps. Compressors are TopK, Sign, Heavy-Sign, 8-bit and mixed-precision quantization, and the 1-bit Adam momentum compressor. We report PSNR, SSIM, and a perceptual distance for reconstructions, alongside test accuracy and transmitted bits.

The decisive check is the scaling of reconstruction PSNR with $W$. Under error feedback it should rise toward the uncompressed ceiling roughly as the leftover-to-signal ratio $1/W$ predicts. Without error feedback it should stay flat. If error-feedback PSNR does not rise with $W$, the core claim is wrong. A second check is that the curve holds under client-secret compressor randomness, confirming the attack needs no buffer simulation. A third maps accuracy against PSNR across $\beta$, compared with RQM and with Clip21-SGD2M at matched bits. A final stress test applies the diffusion denoiser of Mjölnir, reported at 18.25 PSNR under $\epsilon=1$ noise on CIFAR-100, to the leftover $e_W$. This asks whether leaky error feedback's residual distortion can be learned away the way additive noise can.