Which Coordinates Leak? Sparsification Rules That Account for Privacy

Federated learning trains one model across many devices that never share raw data. Each device sends back only a weight update. Two facts about these updates now pull against each other. To save bandwidth, devices send only a tiny fraction of the update, often 1% or less. Recent work shows the smartest way to choose that fraction is to keep the entries that most change the model's outputs on local data, not simply the largest entries. Separately, a curious server can often recover a device's private images by searching for inputs whose update matches the one it received, which is called gradient inversion. This proposal asks whether the output-aware selection rules that make compression work also hand the server the most invertible part of the update. It then asks whether a selection rule can keep the utility gains while sending a less revealing subset, and whether that ranking holds across the local-training settings practitioners actually use.

The idea in two sentences: an update entry is dangerous when a single training example dominates it, because inversion succeeds where per-example contributions are not mixed together. We propose to choose which entries to transmit by combining their effect on outputs with how evenly that effect is shared across examples. We will test whether this rule beats both magnitude-based and output-aware compression on the privacy–accuracy–bandwidth trade-off, across a grid of local steps, batch sizes, learning rates, and data skew, rather than at one hand-picked setting.

Core Claim

Two lines of work set up the question and do not answer it. Evaluating Gradient Inversion Attacks and Defenses in Federated Learning tested magnitude-based gradient pruning as a defense. It found pruning had to exceed 99% to stop inversion on its own, at a cost of roughly 10 points of accuracy. This motivates us: sparsity alone is a weak shield. Enhancing Communication Compression via Discrepancy-aware Calibration for Federated Learning showed that magnitude is a poor proxy for importance after many local steps. It selected entries by the output change they cause on 32–64 local calibration samples, reaching 29.62% versus 21.03% for Top-k on CIFAR-10 with ViT-tiny at a 0.01 ratio. We reuse this method. Its privacy profile was never measured. Our first claim is empirical and falsifiable: at a fixed communication budget, the selection rule changes leakage substantially, and output-aware rules leak more than magnitude rules because they preferentially send entries tied to high-activation, input-specific paths.

The second claim is constructive. Concealing Sensitive Samples against Gradient Leakage in Federated Learning found that reconstruction relies on low entanglement between examples within an aggregated batch. We turn that observation into a per-entry score the client can compute itself. For a linear layer, each example's contribution to a weight entry is the product of that example's input activation and backpropagated error. Let $s_j$ be the output-discrepancy importance of entry $j$ from the calibration pass. Let $d_j = \max_i |g_{ij}| / \sum_i |g_{ij}|$ be the share of entry $j$'s calibration-batch update held by the single most dominant example $i$, where $g_{ij}$ is example $i$'s contribution. We rank entries by

$$r_j = s_j \,(1 - d_j),$$

which keeps entries that matter for outputs and are spread across many examples. The score adds no tunable weight. That matters because the hyperparameter-sensitivity literature, for example A Practical Recipe for Federated Learning Under Statistical Heterogeneity Experimental Design, documents how each new knob interacts with local epochs, sampling rate, and Dirichlet skew. A defense that needs per-deployment tuning would reintroduce the problem it is meant to avoid.

Research Program

Threat model. The attacker is a passive, honest-but-curious server that sees the sparse values and the transmitted mask. The mask matters because it is itself data-dependent, so we also run a mask-only attack that uses selected positions without values. Active architecture poisoning, as in Gradient Inversion Attacks on Parameter-Efficient Fine-Tuning, is explicitly out of scope. That attack beats pruning and quantization by design, so no client-side selection rule should be expected to stop it. We say this plainly rather than claim coverage.

Attacks. We use two attacks:

  • the cosine-matching inversion evaluated by Huang et al., run without batch-norm statistics and without labels, as they recommend for realism;
  • the update-matching attack of Gradient Inversion Attacks Beyond SGD, which recovers labels from the final layer's zero-sum property and remains partially effective up to 8 local steps.

Both are adapted to sparse updates by restricting the matching loss to transmitted entries.

Hyperparameter grid. The evaluation covers local steps in {1, 4, 8}, batch size in {8, 32}, three learning rates, and Dirichlet skew $\alpha$ in {0.1, 0.3, 1.0}. The reason is that attack success is known to fall with more local steps and larger batches. A rule that looks private at one setting may simply be benefiting from that setting. We report worst-case leakage over the grid, and the fraction of grid cells where each rule is Pareto-optimal on accuracy versus leakage at matched bits.

Error feedback. When compression uses error feedback, the untransmitted residual is carried into later rounds. We therefore also measure multi-round leakage. Beyond Inferring Class Representatives: User-Level Privacy Leakage From Federated Learning shows that repeated observation of the same client compounds exposure, and deferred entries may eventually be sent anyway.

Baselines

Uncompressed FedAvg. This is the do-nothing reference for both accuracy and leakage. Huang et al. report an undefended reconstruction LPIPS of 0.45 with 93.37% clean CIFAR-10 accuracy. We rerun it in our own pipeline rather than borrowing the number, since their setup differs.

Magnitude Top-k (GradPrune). This is the conventional compressor and the pruning defense Huang et al. studied.

Random-k at the same ratio. It carries no data-dependent selection. Beating it on leakage is hard; beating it on accuracy should be easy.

Discrepancy-aware selection. This is the strongest utility competitor at extreme compression, at 29.62% on ViT-tiny/CIFAR-10 at 0.01 as reported by Enhancing Communication Compression via Discrepancy-aware Calibration. It is the method whose leakage we suspect.

Hybrid Gradient Compression. Practical Hybrid Gradient Compression for Federated Learning Systems reports 90.26% on CIFAR-10 with ResNet-18 at 15,286× uplink compression, against 90.52% for uncompressed FedAvg. It is the strongest bandwidth competitor. Its shared masks and predictive residuals give the attacker extra structure, so we attack it too.

Pruning plus input mixing. The strongest privacy defense in the file is 90% pruning plus Intra-InstaHide with k=4. Huang et al. report 86.10% accuracy with LPIPS 0.73 at batch 32.

DP-FedAvg. It is tuned to match our method's accuracy, and we compare leakage at that point.

Fairness and ablations. All methods share the same data splits, models, round budget, bits per round, and an equal hyperparameter search budget per method on the grid. Two ablations isolate the key ingredient: ranking by $(1-d_j)$ alone, and discrepancy ranking with $d_j$ computed on shuffled examples.

What counts as beating the baselines. The proposal succeeds if its reconstruction LPIPS is at or above the 0.73 of the pruning-plus-InstaHide combination. Its accuracy must stay within two points of discrepancy-aware selection at matched ratio. Both must hold in the worst case over the grid, not just the best cell.

Why not just…?

Why not just use random-k, which is data-independent? This is the most serious threat. Random-k may well match our leakage. The file gives no reported number for random-k under inversion, and we found no reported result on Lacuna for it on these attacks. Its accuracy cost at a 0.01 ratio is the open question. If random-k reaches comparable accuracy to discrepancy-aware selection with error feedback, the constructive half of this proposal collapses. We would then report the measurement study alone. The matched-bit comparison on ViT-tiny and ResNet-18 settles this directly.

Why not just add differential privacy noise? Differential privacy gives formal guarantees that our score does not. Its costs in this regime are documented in the file. ERIS motivates noise-free defenses by the utility loss of noise. Accelerating Differentially Private Federated Learning via Adaptive Extrapolation notes that tuning under differential privacy is hard and that the tuning itself spends privacy budget. We treat DP-FedAvg as a baseline at matched accuracy. The two are also complementary: our selection rule can sit before noise addition, and we test that combination.

Why not just run more local steps or larger batches, since passive attacks already weaken there? Wan et al. find their attack partially effective up to 8 local steps. Communication-efficient training does push toward many local steps. Our grid measures exactly whether leakage differences between selection rules vanish at large step counts. If they vanish across all $\alpha$ and learning rates, the practical concern is moot at those settings. That is a publishable negative result that tells practitioners when the selection rule does not matter. It does not settle multi-round leakage under error feedback, which we measure separately.

Decisive Experiments

The main experiment runs the full hyperparameter grid:

  • on CIFAR-10 with ViT-tiny at ratios 0.01 and 0.001, with ResNet-18 in the Hybrid Gradient Compression setting;
  • on CIFAR-100 with 100 clients from the FedZoo-Bench partitions.

A 224-pixel ImageNet subset tests whether the ranking survives higher resolution. Metrics are test accuracy, bits sent per round, and reconstruction LPIPS, PSNR, and SSIM under both attacks, all with and without the mask-only variant.

Three results decide the proposal:

  1. Whether discrepancy-aware selection leaks measurably more than Top-k at matched bits, as the core claim predicts. If not, that claim is refuted.
  2. Whether the dominance-weighted rule reaches the success criterion above: worst-case LPIPS near the pruning-plus-InstaHide 0.73, and accuracy within two points of discrepancy-aware selection.
  3. Whether the method ordering stays fixed across local steps, batch size, learning rate, and $\alpha$. If the ordering flips, any single-setting comparison in this area is unreliable, including the ones cited here.

A final check examines calibration-set bias. The dominance share $d_j$ is estimated on 32–64 samples that may not represent the client's data under strong skew. We compare it against per-example contributions on the full local batch to see how far the estimate drifts at $\alpha = 0.1$.