Noise-Tolerant Gradient Inversion Without a Generative Prior

When a hospital or phone trains a model privately, federated learning sends only the gradient of the loss on local data to a central server — never the data itself. But that gradient is a deterministic, differentiable function of the raw inputs, and a long line of attacks reconstructs the private data from it: the attacker picks a dummy image, computes its gradient, and adjusts the dummy until the two gradients match. Defenses fight back by injecting randomness into what the server observes — Gaussian noise added to clipped gradients (differential privacy), or random dropout masks that zero hidden activations. This randomness does something subtle: it turns the attacker's inversion problem into a noisy objective function, where every evaluation of the attack's loss is corrupted by an unknown random perturbation. That is precisely the regime the stochastic-optimization literature has spent a decade building machinery for — probabilistic line searches, momentum restarts, inexact-oracle bounds — and none of that machinery has ever been run inside a gradient inversion attack.

The existing work at this intersection escapes the noise rather than taming it. The closest prior effort, Auditing Privacy Defenses in Federated Learning via Generative Gradient Leakage, abandons first-order optimization entirely and runs derivative-free search (CMA-ES, Bayesian optimization) inside the latent space of a pre-trained GAN — which caps it at low dimensions and requires an aligned generative prior that simply does not exist for most non-image data. Dropout Is NOT All You Need to Prevent Gradient Leakage instead reshapes the problem, relaxing the discrete dropout masks into continuous "fuzzy" masks optimized jointly with the image, at the cost of a badly non-convex landscape. And the Bayesian Framework for Gradient Leakage shows the right objective — marginalize the defense's randomness into the likelihood — but optimizes it with generic MCMC and explicitly leaves open the stability of the resulting noisy optimization. My proposal is to close that gap from the optimization side.

Core Claim

Two claims, one empirical and one theoretical. First, a first-order inversion attack that embraces the stochastic oracle — Monte Carlo marginalization over the defense's randomness, a tolerance-based stochastic line search, and signal-to-noise-triggered momentum restarts — can recover images directly in pixel space under differential-privacy noise and dropout defenses, where fixed-step Adam stalls and where prior success required a generative prior. Second, the noise that defends a client displaces the minimizer of any inversion objective by an amount that grows linearly in the noise scale, which yields a calibrated noise floor: the minimum noise a defender must add so that no first-order attacker, however well optimized, can reconstruct below a chosen distortion threshold.

Research Program

The attack, which I will call marginalized noise-tolerant inversion, optimizes the dummy image $x$ against a stochastic objective. When the client's defense is random — a dropout mask $\Psi$ drawn per transmission, or fresh Gaussian noise $\xi$ each communication round — the attacker does not know which realization it observed, so the Bayes-appropriate objective integrates over the defense's distribution:

$$\min_x \; \hat{L}_S(x) \;=\; \frac{1}{S}\sum_{s=1}^{S} \mathcal{D}\!\left(\nabla W_{\Psi_s}(x),\, \hat{g}\right), \qquad \Psi_s \sim p(\Psi),$$

where $\hat{g}$ is the observed (defended) update, $\nabla W_{\Psi_s}(x)$ is the dummy gradient computed under the $s$-th sampled defense realization, and $\mathcal{D}$ is the cosine distance of Inverting Gradients, which is the right metric because, as Geiping et al. showed, gradient direction carries the image geometry while magnitude only tracks training residual. Each mini-batch of $S$ realizations makes $\hat{L}_S$ a genuinely noisy oracle, exactly the setting ALOE was built for. This is the key difference from Dropout Is NOT All You Need: they commit to a mask estimate and optimize it jointly, inheriting spurious minima; I keep the randomness latent and average over it, so the expected objective stays smooth while its evaluations are noisy.

Three mechanisms follow. The step-size rule adapts ALOE's relaxed Armijo condition from High Probability Complexity Bounds for Line Search Based on Stochastic Oracles: accept a trial step only if the sampled loss decreases by the expected margin plus a tolerance $2\epsilon_f$ covering evaluation noise, and re-sample the oracle upon rejection. ALOE's own authors, and Bergou et al. on subsampled line searches, prove this prevents the two failure modes — accepting noise-flattered uphill steps and collapsing step sizes after noise-sabotaged rejections — and ALOE beat stochastic line search on 62 of 64 PMLB datasets, so the mechanism is well validated; the open question is whether it survives a non-convex, high-dimensional inversion landscape. Second, momentum is handled with restarts in the spirit of AGD+ from On Acceleration with Noise-Corrupted Gradients: monitor the accumulated (weighted) gradient signal and flush momentum when its norm falls to the estimated noise level. AGD+ requires a prior noise-variance estimate — flagged as an open problem by its authors — and I address that here by estimating $\epsilon_f$ online from the plateaued residual of the loss itself, which under this construction equals the defense-noise floor. Third, I do not assume acceleration is safe: Mohammadi et al. proved acceleration amplifies iterate variance from $O(\kappa)$ to $O(\kappa^{3/2})$ for condition number $\kappa$, so the restart schedule is tested against plain gradient descent across the spectrum of trained networks, settling empirically whether the attacker's momentum helps or hurts under noise.

The theory workstream gives defenders the payoff. Linearizing the first-order optimality condition of the (population) matching loss around the true input gives, with $J$ the input-to-gradient Jacobian and $H$ the local Hessian,

$$\| \hat{x} - x_{\text{true}} \| \;\approx\; \| H^{-1} J^{\!\top} \xi \| \;\gtrsim\; \frac{\sigma\,\|J\|}{\lambda_{\min}(H)},$$

so the best achievable reconstruction degrades linearly in the defense noise scale $\sigma$. Combining this floor with the inexact-oracle transfer machinery of A Universal Transfer Theorem for Convex Optimization Algorithms Using Inexact First-order Oracles — which bounds the damage any first-order algorithm suffers from oracle error $\eta$ at roughly $O(\eta T)$ over $T$ queries — produces a defensible statement of the form: for noise scale $\sigma$ above a computable threshold, every first-order attack's expected distortion exceeds a chosen bound, regardless of step-size schedule. That is exactly the audit number a practitioner deploying differential privacy currently lacks.

Baselines

The naive reference point is the standard attack run unchanged on defended clients: Inverting Gradients, i.e. Adam with signed gradients and total-variation regularization minimizing cosine distance Inverting Gradients, which reports roughly 14 dB PSNR on an undefended trained ResNet-20 on CIFAR — that number is the ceiling the defense is supposed to destroy, and its collapse under noise is the phenomenon being explained, not a real competitor. It will be run at matched compute including a many-restart variant, since "Adam plus restarts" is the cheapest thing a skeptic would try.

The strongest existing competitor is the generative-prior auditor of Auditing Privacy Defenses in Federated Learning via Generative Gradient Leakage, which reports PSNR above 5.7 dB on ImageNet across all tested defense scenarios using CMA-ES and Bayesian optimization over a GAN latent space with on-the-fly estimation of the client's defense parameters. It will be run on identical defended clients, with the same total budget of client-update evaluations (the dominant cost), the same tuning grid, and the same hardware; I will additionally run its derivative-free search in pixel space without the GAN, since that prior-free variant is the honest version of "derivative-free solves it." Beating it means higher PSNR and SSIM at matched evaluation budget on ImageNet and CIFAR, and remaining functional where it cannot run at all — any domain without an aligned generative prior. For the dropout setting specifically, the strongest competitor is the Dropout Inversion Attack of Dropout Is NOT All You Need to Prevent Gradient Leakage, which reports SSIM 0.72 on ImageNet under ViT-B/16 at dropout rate 0.1; it will be run under the same protocol, and the decisive comparison is the dropout-plus-DP-noise combination that its own authors leave open.

The ablation that isolates the proposal's ingredient is the same marginalized objective optimized by fixed-step Adam with no tolerance margin and no restarts — same initialization, same $S$, same budget. If the noise-tolerant machinery is doing real work, it should win by a clear margin across the noise grid, and the gap should shrink to zero as $\sigma \to 0$. A second ablation hands the attack the true noise scale instead of the online estimate, isolating the estimator's contribution.

Why not just…?

Why not just add more differential-privacy noise? Because the dose required by the naive argument destroys the model. Deep Leakage from Gradients found that noise injection only reliably blocks recovery when variance exceeds about $10^{-2}$, which wrecks downstream utility, and the generative-prior auditor still extracted recognizable faces (PSNR above 5.7 dB) at noise levels where standard optimizers fail. Worse, defenders currently have no principled way to know how much noise is enough against a well-optimized attacker; the linear noise floor derived here is precisely that calibration, so this proposal makes the "just add noise" answer quantitative rather than dismissible.

Why not just run Adam with many random restarts? The evidence says restarts do not fix a biased, noise-dominated landscape, only bad initialization. On Acceleration with Noise-Corrupted Gradients shows fixed-parameter methods diverge or stall under persistent noise regardless of iteration count, and Dropout Is NOT All You Need to Prevent Gradient Leakage reports that restarts of standard Inverting Gradients on dropout-protected models produced only unrecognizable noise. Still, this is a real threat to the proposal's weakest regime — very low noise, where the landscape is nearly deterministic and restarts may suffice — so the matched-compute restart baseline is run across the entire noise grid, and the claim is scoped to the region where the ablation gap is demonstrated, not asserted everywhere.

Why not just use the generative-prior attack? If the target domain is natural images and a good pre-trained GAN exists, that attack is genuinely strong, and I will say so plainly: on ImageNet with a well-matched prior it may win. But it is structurally confined — its own authors evaluate only latent spaces of 100–512 dimensions, it cannot optimize pixel-space inputs where derivative-free sample complexity explodes, and it collapses entirely for scientific, medical, or tabular data with no aligned prior, which is exactly where federated learning is most used (see the rare-cancer and finance applications motivating Federated learning enables big data for rare cancer boundary detection). The matched-budget head-to-head settles how much of the generative attack's advantage is the prior versus the optimizer.

Proposed Experiments

All experiments use the benchmarks established in the leakage literature: CIFAR-10/100 on ResNet architectures following Inverting Gradients and Evaluating Gradient Inversion Attacks and Defenses in Federated Learning, ImageNet at 224×224 on ResNet-152 and ViT-B/16 following Dropout Is NOT All You Need to Prevent Gradient Leakage and Gradient Inversion Attacks Beyond SGD, with MNIST and SVHN as sanity checks per Deep Leakage from Gradients. Defenses are swept on a grid: Gaussian DP noise from $10^{-4}$ to the $10^{-2}$ regime where naive injection defeats DLG, dropout rates from 0.1 to 0.75, their combination (open in the DIA paper), and multi-round fresh-noise settings. Metrics are PSNR, SSIM, MSE, and LPIPS for reconstruction, plus downstream task accuracy to report each defense's utility cost. No reported result found on Lacuna for reconstruction quality across a full DP-noise sweep at fixed batch size, so the noise-grid itself is a contribution.

Four checks are decisive. First, the matched-compute comparison against restart-Adam, the generative-prior auditor, and the dropout inversion attack across the entire noise and dropout grid — the proposal lives or dies on this table, and I will report the regions where the prior-based attack wins rather than hide them. Second, the calibration curve: measured reconstruction error versus $\sigma$ against the linear floor prediction, which either validates the defender-side threshold or shows the floor is loose in a characterizable way. Third, the online noise estimate versus the true $\sigma$, testing the parameter-free restart trigger. Fourth, an honest negative control: the discontinuous GradPrune-0.9-plus-InstaHide landscape, which Evaluating Gradient Inversion Attacks and Defenses shows blocks gradient matching (LPIPS 0.73 versus 0.45 undefended at batch 32, downstream accuracy 86.10% versus 93.37% undefended, and an estimated 493 GPU years to invert on ImageNet). A first-order method cannot cross non-differentiable barriers, so the question there is only whether randomized smoothing in the spirit of the Universal Transfer Theorem buys partial progress, and a null result will be reported as the boundary of the approach.