Count-Gated Secure Aggregation Against Gradient-Isolating Servers

In federated learning, many devices train a shared model together without uploading their raw data. Each device sends only a model update. Secure aggregation is a cryptographic protocol that lets the server see the sum of these updates and nothing else. The comfort it offers is a "crowd" argument: one person's update is buried among many. That argument assumes a semi-honest server, meaning one that follows the protocol but reads everything it receives. A server that actively crafts the model it sends out can dissolve the crowd. It can pick parameters under which every client except a target produces a zero gradient. The secure sum then equals the target's own update, and gradient inversion, which reconstructs training images from a gradient, can run on it directly. Eluding Secure Aggregation via Model Inconsistency demonstrates exactly this, and its canary variant reaches about 99% membership-inference accuracy.

We propose a small change that removes this attack surface without adding client round trips. Alongside its masked update, each client submits a short masked vector of 0/1 flags, one per block of parameters. A flag says whether that client's clipped update in that block is non-trivial. The flags are summed by the same aggregation. A non-colluding helper server then releases the unmasking key only for blocks where at least $T$ clients actually contributed. Blocks the attacker emptied are never decrypted. The flag sum also tells the server how many clients contributed differentially private noise in that round, so faking dropouts to thin the noise becomes visible. The research question is whether this count gate, combined with a modest noise floor, blocks the known isolation attacks at noise levels where plain noisy aggregation is still broken.

Core Claim

Against an active server, the privacy of secure aggregation rests on two things. The first is crowd cover, meaning that other clients' gradients are present in the sum. The second is a noise floor, meaning that enough clients' noise is present. Existing defenses certify neither against a server that crafts a consistent malicious model.

Model-consistency checks are already built into Janus, which uses dual servers, commitments and client-side unmasking, and into RLSA-PFL, which uses message authentication codes. These checks stop the server from sending different models to different clients. They do not stop attacks that send one poisoned model to everyone:

Count gating certifies crowd cover directly on the gradients rather than on the model. It is therefore agnostic to how the server achieved the suppression.

Concretely, client $i$ clips each parameter block $b$ of its update to norm $C$. It sets a flag $a_{i,b}=1$ if the clipped block norm is at least $\tau$, otherwise $a_{i,b}=0$, and zeroes inactive blocks. Block $b$ of the aggregate is unmasked only if

$$\sum_i a_{i,b} \ge T,$$

where $T$ is the required crowd size and $\tau/C$ bounds how faint a "contribution" may be. The flags cost $d/B$ extra integers per client, where $d$ is the model dimension and $B$ is the block size. With $B=1024$ this is under 0.1% of the payload. The flag sum is unmasked one message before the update, so there is one extra server-to-server exchange and zero extra client rounds.

We expect gating to neutralize suppression-type isolation, which covers gradient suppression, canaries and PEFTLeak. It will not neutralize disaggregation-type attacks. LIA-SA engineers separable contributions instead of zeroing them out, and it can only be stopped by noise. A central deliverable is to measure this split honestly.

Research Program

Protocol. We build the protocol on the dual-server one-time-pad structure of Janus. The aggregation server receives masked updates and flags. The assistant server holds mask aggregates and enforces the gate. We inherit Janus's non-collusion assumption and its consistency verification, and we add only the gate. Clients are assumed honest about their own flags, since a client lying about its flags only hurts its own privacy. Sybil clients that inflate counts are out of scope and will be stated as such.

Cross-round schedule. Across rounds, we adopt the batch-partition schedule of Securing Secure Aggregation. That work showed an honest-but-curious server can isolate a client within $O(N)$ rounds of random partial participation, and it fixed this by always aggregating whole batches of size $T$. Its guarantee is explicitly semi-honest, and per-block gating is what extends it to active servers within a round.

Cross-round differencing. Gating opens a channel that we analyze rather than ignore. A server can make a target active in one round and inactive in the next while keeping everyone else's gradient identical. It then differences the two aggregates. Fresh per-round noise from each client, as in distributed differential privacy, is what defeats exact cancellation. We will characterize the noise multiplier needed to hold reconstruction quality below a fixed threshold under this attack. That noise multiplier is the noise floor the gate certifies.

Adaptive attacker. We study a "threshold-hugging" attacker that pushes non-target blocks to norm exactly $\tau$. We will report how reconstruction quality varies with $\tau/C$. The ratio $\tau/C$ bounds how much interference each forced contributor adds.

Baselines

Plain secure aggregation. The naive reference point is FedAvg with standard secure aggregation, under which every active attack succeeds. Reported numbers on that setup are about 99% canary membership accuracy (Eluding Secure Aggregation), 100% label recovery (LIA-SA), and 85.9% of patches reconstructed on CIFAR-100 at batch size 32 (MineGrad).

Distributed DP with secure aggregation. The strongest competitor on the privacy question is secure aggregation with distributed differential privacy, where each client adds a share of Gaussian noise. We use the configuration of Communication Efficient FL with SecAgg and DP, which reports up to 50x sketching compression within a 1 percentage-point accuracy drop on FEMNIST at noise multiplier 0.6. Its noise survives gradient suppression in principle, but its server is assumed honest. No reported result was found on Lacuna for distributed DP evaluated against gradient suppression, canary, PEFTLeak or LIA-SA attacks, so we run that ourselves.

Consistency-verifying aggregation. The strongest competitor on active-server defense is Janus, which reports 93.18% MNIST CNN accuracy versus 94.1% without secure aggregation (Janus). We also include RLSA-PFL, which reports 89.9% versus 96% for FedAvg (RLSA-PFL).

Ablations. Ablations isolate the two ingredients: gating with no noise, and noise with no gating. We also run the full method with the cross-round batch-partition schedule removed.

Fairness of comparison. All methods use the same datasets, client counts, participation schedule, local epochs, model architectures and round budget. Each defense gets the same sweep over noise multiplier and clipping threshold, about twenty configurations. Attacks are given full knowledge of the defense.

What counts as winning. The proposal beats distributed DP if, at matched final accuracy within 1 percentage point, it brings canary membership accuracy near chance and PEFTLeak patch recovery to near zero, while distributed DP alone does not. It beats Janus if it also stops the consistent-model attacks that Janus is not designed to catch.

Why not just…?

Why not just use distributed DP with secure aggregation, since its noise is added by honest clients and survives suppression? This is the most serious threat to the proposal. If utility-preserving noise already defeats isolation, gating adds nothing. The available evidence points the other way. LIA-SA stays effective against DP noise "as long as baseline task utility is preserved" (LIA-SA). Generative priors reconstruct images through heavy perturbation and up to 99% pruning (Gradient Inversion with Generative Image Prior). Distributed DP also trusts the server's dropout reports, and nothing certifies that report. Our noise-versus-attack-success sweep settles the question directly: if the two curves coincide, we drop gating.

Why not just verify model consistency, as Janus and RLSA-PFL do? Consistency checks catch only attacks that require different models per client. The canary attack, PEFTLeak and LIA-SA all work with one model sent to everyone. We will run all three against Janus-style verification to show the gap empirically.

Why not just have clients inspect the model for dead ReLUs or identity-mapped layers? Such heuristics target specific constructions, and an attacker can disguise them. Count gating instead tests the outcome, namely whether gradients were suppressed. We include a heuristic detector as an extra baseline and evaluate it against attacks it was not tuned for.

Why not just use augmentation, as OASIS does? OASIS drops ImageNet reconstruction PSNR from about 140 dB to 15–20 dB with at most a 1.5% CIFAR-100 accuracy drop. However, it depends on image transformations. It does not address cross-round linear isolation or label inference. Gating is domain-agnostic, and we will also test it combined with OASIS.

Proposed Experiments

Benchmarks and models. We use CIFAR-10, CIFAR-100 and FEMNIST with CNNs, and TinyImageNet with a vision transformer fine-tuned through adapters, following MineGrad. Clients are partitioned both IID and non-IID.

Attacks. - gradient suppression with inconsistent models; - canary membership inference with a consistent model; - PEFTLeak; - LIA-SA, run under FedSGD as originally specified; - our cross-round differencing attack; - the threshold-hugging adaptive attack.

Metrics. - Reconstruction PSNR, and the fraction of patches recovered for PEFTLeak. - Membership and label-recovery accuracy. - Final test accuracy and rounds to converge. - Fraction of blocks withheld in benign training. - Per-client bytes and wall-clock overhead.

Decisive checks.

  1. Under gating, gradient suppression and canary attacks should fall to chance-level success, with no extra client rounds.
  2. LIA-SA should be stopped only once the noise floor is present. Confirming this would validate the split between suppression-type and disaggregation-type attacks.
  3. Benign withholding must stay small enough that accuracy is within 1 point of distributed DP alone. A known risk is that final-layer rows for rare classes in non-IID data have few active clients. We will report the accuracy cost for those classes separately.

The proposal is falsified if plain distributed DP at the same accuracy is equally robust, or if the threshold-hugging attacker recovers images at $\tau/C$ settings that keep benign withholding low.