In federated learning, many clients train one shared model without sending their raw data. Each client sends only weight gradients, the update directions computed on its own examples. Those gradients can be inverted: an attacker who sees them can search for an input whose gradient matches and recover a recognizable copy of a client's image. Most defenses act on the gradient after it is computed, by adding noise, pruning entries or quantizing values. Yet there is scattered evidence that the network's architecture already determines how much a gradient gives away. Skip connections expose input detail (SoK: Gradient Leakage in Federated Learning), and attention blocks leak more than MLP blocks (GradViT). Multi-objective architecture search, meaning automated design that returns the full set of best trade-offs between accuracy, size and latency, has never treated leakage as one of those trade-offs.
This note proposes to test whether gradient leakage is a real, separate axis of the architecture design space. The alternative is that leakage is mostly a disguised version of model size. If it is a separate axis, the trade-off surface can be mapped cheaply and searched. The key requirement is a leakage score that can be computed at initialization from one or two batches, as zero-shot accuracy proxies are. Its value is measured only by how well it predicts full-strength, adaptive inversion attacks on partially trained models. The two-sentence version is this: we build a cheap score that predicts how invertible an architecture's gradients are, check that it carries information beyond parameter count, and add it as a fourth objective in standard multi-objective search. Then we test whether the resulting architectures resist inversion at matched accuracy and size better than plain architectures protected by quantization or pruning.
Core Claim
Among architectures with matched accuracy, parameter count and latency, vulnerability to gradient inversion varies enough to matter. A training-free score based on how well the gradient determines the input locally can rank that vulnerability. The parameter-count condition is the crux. The SoK paper notes that inversion becomes under-determined once batch size times input dimension exceeds what the parameters can encode. So a skeptic would expect small models to simply leak less. The multi-objective benchmark literature also warns that correlated objectives such as FLOPs and parameters collapse the trade-off surface into fewer dimensions (Lu et al., EvoXBench). If leakage collapses onto parameter count in the same way, this proposal should report that finding and stop. The interesting outcome is that it does not collapse.
Relation to Prior Work
Three papers motivate this work by showing that the attack-side and defense-side uses of architecture search are lopsided.
GI-NAS searches over the attacker's image generator. It selects one by initial gradient-matching loss, which it shows predicts final reconstruction quality. We borrow that insight, that early-iteration signals forecast inversion success, and turn it around to score victim architectures. GI-NAS also becomes our strongest adaptive attacker.
DPNAS searches for architectures that stay accurate under DP-SGD, meaning training with clipped and noised gradients that gives formal privacy guarantees. It optimizes a single objective and never measures resistance to inversion. Data Reconstruction Attacks and Defenses shows that formal DP and resistance to reconstruction are different properties, so "DP-friendly" architectures need not be inversion-resistant.
DP-FNAS and PP-NAS protect the search process with noise or cryptography. Neither asks whether the architecture they output leaks.
One paper constrains the design. Bayesian Framework for Gradient Leakage shows that heuristic defenses collapse once the attacker models the defense. In federated learning the architecture is public, so any resistance we find must survive an attacker who knows it exactly. Whatever we find must therefore reflect real non-identifiability of the input, not mere obfuscation.
Several papers supply methods. ZiCo supplies the zero-shot template and an utility proxy whose relation to leakage we measure. The SoK's input-gradient smoothness analysis suggests that clean gradient signal helps attackers, which predicts a tension with ZiCo that we test directly. EvoXBench, NAS-Bench-201 and HW-NAS-Bench provide the search spaces, accuracies and latencies.
Research Program
The central object is a local identifiability score. Write $g(x) = \nabla_W \mathcal{L}(f(x;W), y)$ for the gradient a client sends on batch $x$, which has $B$ images of dimension $D$. Write $J = \partial g / \partial x$ for how that gradient changes when the input is perturbed. Input directions that $J$ maps to nearly nothing cannot be recovered by any gradient-matching attacker, however good their optimizer. Cosine-based attacks ignore gradient scale (Inverting Gradients), so we first project out the component of $J\delta$ along $g$ itself, giving $\tilde J$. We then define
$$ S(\alpha) = \frac{1}{BD}\,\#\{\, i : \sigma_i(\tilde J) > \tau\, \sigma_{\max}(\tilde J) \,\}, $$
where $\alpha$ is the architecture, $\sigma_i$ are singular values, and $\tau$ is a small relative threshold. $S$ is the fraction of input directions the gradient pins down. We estimate the top of the spectrum with a few dozen Lanczos steps built from Jacobian-vector and vector-Jacobian products, which are double-backward passes. This costs seconds per architecture. We evaluate $S$ at initialization and, as a check, after a short warm-up of a few hundred steps, because leakage on trained models differs from leakage at initialization.
We compare $S$ against two alternative proxies. The first is GI-NAS-style initial matching loss after $K$ attack steps. The second is a truncated 50-step cosine attack.
The search then minimizes the objective vector
$$ \big[\, f^e(\alpha),\; S(\alpha),\; f^{\text{params}}(\alpha),\; f^{\text{lat}}(\alpha) \,\big] $$
with NSGA-II, using EvoXBench's precomputed errors and HW-NAS-Bench latencies. The program has three stages. The first calibrates the proxy against full attacks. The second maps the trade-off surface and asks whether the leakage axis is degenerate. The third validates the chosen architectures under realistic federated training and adaptive attackers. A side product of the second stage is the first direct measurement of whether ZiCo's utility score and $S$ trade off against each other.
Baselines
The naive reference point is no architectural change and no defense. Standard ResNet-20 and ViT-B/16 clients are attacked with Inverting Gradients and GradViT. For calibration we cite the reported attack strength: Inverting Gradients reaches about 14 dB PSNR on trained ResNet-20 (Inverting Gradients), and GradViT reaches 15.51 dB PSNR on ImageNet ViT-B/16 (GradViT). We rerun both in our own setup and do not rely on the reported figures.
The strongest existing defense is layer-wise mixed quantization (Mixed Quantization Enabled Federated Learning). It reports DLG reconstruction PSNR on CIFAR-10 dropping from 55.3 to 8.1 dB, with 96.67% accuracy retained on MNIST. We also run DCS², which reports 65.68% TinyImageNet accuracy against Soteria's 52.06%. Both defenses are applied to the naive architectures. The comparison is fair along four dimensions:
- the same client data splits;
- the same FedAvg schedule;
- the same attacker suite;
- an equal hyperparameter-tuning budget, with quantization bit-widths and DCS² settings swept to their best privacy-at-matched-accuracy point.
Beating quantization does not require a lower PSNR in absolute terms, since 8.1 dB already means failure. It means one of two things. Either a searched architecture with no gradient post-processing reaches comparable LPIPS under adaptive attack at higher accuracy. Or, the more plausible outcome, searched architecture plus quantization reaches the same privacy at a coarser setting with less accuracy loss than quantization alone.
The strongest architecture-side baseline is DPNASNet, which reports 68.33% CIFAR-10 accuracy under $(\epsilon=3,\delta=10^{-5})$ (DPNAS). We train it without DP and attack it, which tests whether DP-friendly design accidentally confers inversion resistance.
The ablation that isolates our key ingredient replaces $S$ in the objective vector with parameter count, or with a random-search control matched on parameter count. If the leakage-aware frontier does not dominate the size-only frontier in measured attack LPIPS at matched accuracy, the leakage axis adds nothing.
Why not just…?
Why not just use a smaller model? This is the most serious threat. The SoK's dimensionality argument predicts that compact models leak less on their own. Stage two settles it directly. We report the partial Kendall correlation between $S$ and full-attack LPIPS after controlling for parameter count and FLOPs. We also report the spread in attack LPIPS among architectures in the same parameter bucket on NAS-Bench-201. If that spread is small, or the partial correlation is near zero, the honest conclusion is that leakage reduces to size. The paper would then become a negative result that tells practitioners to choose small models.
Why not just quantize or prune gradients on a standard network? Quantization already drives DLG to failure (Mixed Quantization), and pruning was the strongest defense in Data Reconstruction Attacks and Defenses. Pruning, however, is bypassed by a Bayes-optimal attacker that reconstructs from the layers left unpruned (Bayesian Framework). GI-NAS also survives 90% pruning. Quantization has not been tested against such adaptive attackers in the material we have. We therefore treat these defenses as complements, not rivals. The decisive experiment crosses architecture with defense and asks whether the searched architecture shifts the privacy-accuracy curve of quantization or pruning. If it does not, the architecture contributes nothing.
Why not just rely on DP-SGD? DP-SGD gives formal guarantees, but it stops inversion only at noise levels that damage accuracy. In the comparison reported by the Mixed Quantization paper, DP baselines fell to roughly 78–85% on MNIST. DPNAS also shows that architecture choice largely determines whether DP training stays usable. We include DP-SGD at matched attack LPIPS and report the accuracy each method needs to pay.
Why not just run multiple local steps, as FedAvg already does? The SoK reports that several local steps make reconstructions unrecognizable (LPIPS > 0.1). Inverting Gradients still recovers images under multi-step FedAvg. We evaluate every method at 1, 5 and 20 local steps. If architectural differences vanish beyond a few steps, the contribution is confined to single-step or small-batch regimes, and we will say so.
Proposed Experiments
Calibration uses about 500 NAS-Bench-201 cells on CIFAR-10, each trained for a few epochs. For each cell we compute $S$, the two alternative proxies and ZiCo at initialization. We then run the full Inverting Gradients attack and a GI-NAS generator-search attack at batch sizes 1, 8 and 32, at three points in training. The metrics are PSNR, SSIM and LPIPS. The first decisive check is the Kendall $\tau$ between each proxy and attack LPIPS, together with the partial $\tau$ controlling for parameter count. No reported result was found on Lacuna for any zero-shot leakage proxy, so this is a new measurement. For comparison, ZiCo's τ with accuracy is 0.61 on NATSBench-TSS.
The search runs NSGA-II with four objectives on EvoXBench's C-10/MOP instances for the NAS-Bench-201 and DARTS spaces. Latencies come from HW-NAS-Bench. We compare hypervolume and attack-measured frontiers against size-only search.
Validation retrains three to five frontier architectures in a 10-client FedAvg simulation on CIFAR-10, CIFAR-100, TinyImageNet and CelebA, a face dataset where privacy matters most. Each is attacked with Inverting Gradients, GI-NAS, and a prior-aware Bayesian attacker that is given the architecture. Each is compared with the baselines above.
Two further checks probe transfer. The first extends to the ViT and MobileNetV3 spaces of IN-1K/MOP using GradViT as the attacker, which tests whether the finding that attention leaks more becomes something the search can exploit. The second reports the measured correlation between ZiCo and $S$ across all 500 calibration cells. A strong positive correlation would mean that the utility proxies already used in architecture search systematically select for leakier networks. That result would matter even if the full search did not.
References
- SoK: Gradient Leakage in Federated Learning
- GradViT: Gradient Inversion of Vision Transformers
- Neural Architecture Search as Multiobjective Optimization Benchmarks: Problem Formulation and Performance Assessment
- GI-NAS: Boosting Gradient Inversion Attacks Through Adaptive Neural Architecture Search
- DPNAS: Neural Architecture Search for Deep Learning with Differential Privacy
- Data Reconstruction Attacks and Defenses: A Systematic Evaluation
- Differentially-private Federated Neural Architecture Search
- Towards Privacy-Preserving Neural Architecture Search
- Bayesian Framework for Gradient Leakage
- ZiCo: Zero-shot NAS via inverse Coefficient of Variation on Gradients
- NAS-Bench-201: Extending the Scope of Reproducible Neural Architecture Search
- HW-NAS-Bench: Hardware-Aware Neural Architecture Search Benchmark
- Inverting Gradients - How easy is it to break privacy in federated learning?
- Mixed Quantization Enabled Federated Learning to Tackle Gradient Inversion Attacks
- Concealing Sensitive Samples against Gradient Leakage in Federated Learning