When clients in federated learning train a forecaster on their own smooth signals, such as household electricity load, air-quality series, or mobility trajectories, the server sees only their gradients. Those gradients can still be inverted back into the raw curves. The standard defense adds the same amount of Gaussian noise in every gradient direction. A more refined idea puts extra noise along directions where small changes in the gradient cause large changes in the reconstructed input. Both defenses ignore something any serious attacker will use: real curves are smooth and strongly correlated over time. This prior knowledge lets an attacker "denoise" exactly the components that such noise corrupts. We propose to shape the gradient noise using the same smoothness prior the attacker would use. We also propose to give each client a certificate: a lower bound on the reconstruction error that any attacker holding that prior must suffer, whatever inversion algorithm it runs.
The two-sentence version is this. For functional data, the inversion error that matters is error on the smooth, identifying part of a person's curve. Noise should therefore be placed where the gradient reveals high-variance components under a Gaussian-process prior, not where the input-gradient map is merely ill-conditioned. A Bayesian Cramér–Rao inequality (the Van Trees inequality) turns this into a computable, resolution-independent lower bound on any attacker's error. The bound sits alongside, and does not replace, the formal differential privacy guarantee.
Core Claim
Model a client's input as a curve $x$ drawn from a Gaussian-process prior with covariance $C$, for example a Matérn kernel fitted on public data. The client shares $g(x) + \eta$, where $g$ is the per-sample clipped gradient and $\eta \sim \mathcal{N}(0, \Sigma)$ is noise whose covariance $\Sigma$ the defender chooses. Let $J(x) = \nabla_x \nabla_W \mathcal{L}$ be the Jacobian of the shared gradient with respect to the input. For any reconstruction $\hat{x}$ and any weighting $P$ that selects the components of the curve an attacker cares about (for instance the leading Karhunen–Loève modes, which carry trend and seasonality), the Van Trees inequality gives
$$ \mathbb{E}\,\|P(\hat{x} - x)\|^2 \;\ge\; \mathrm{tr}\!\Big(P\,\big(\mathbb{E}_{x\sim\mathcal{GP}(0,C)}[J(x)^\top \Sigma^{-1} J(x)] + C^{-1}\big)^{-1} P^\top\Big). $$
The inequality needs no linearization. It holds for every estimator, including DLG, TS-Inverse, and generative or kernel-prior attacks, because the observation noise is additive Gaussian. Its only real assumption is that the attacker's prior is no more informative than $C$.
The claim is that maximizing this bound over $\Sigma$, at a fixed differential privacy budget and fixed training utility, produces noise that differs sharply from both isotropic noise and noise aimed at the small singular directions of $J$. The same bound also serves as a per-round certificate the client can compute before sending an update.
The second half of the claim is the tension. Understanding Deep Gradient Leakage via Inversion Influence Functions shows that, for pixel-space error without a prior, noise along the smaller singular values of $J$ disrupts reconstruction most. Under a smooth prior, however, the input directions those singular vectors map to are typically rough, low-prior-variance directions that $C^{-1}$ already pins down. The attacker's prior removes that error for free. Prior-aware shaping should therefore win specifically against prior-using attackers. If it does not, the proposal fails cleanly.
Relation to Prior Work
Several papers motivate the gap. TS-Inverse inverts federated time-series forecasters using periodicity, trend, and quantile priors. It reports that image-style total variation priors fail, and it tests only point-wise Gaussian noise as a defense. ST-GIA inverts mobility trajectories using spatiotemporal initialization and road-network snapping. It then defends with finite-dimensional geo-indistinguishability that ignores curve regularity.
Both papers show that attackers on continuous data win through structural priors. Neither asks what a defense tuned to those priors would look like. We read TS-Inverse's total-variation failure as evidence that the right prior is a covariance kernel, not a finite-difference penalty. That reading is why our strongest attacker uses a kernel prior.
Other papers supply the method. The functional differential privacy line uses Gaussian-process noise and function-space sensitivity to keep privatized outputs smooth and valid at every resolution: Differential Privacy for Functions and Functional Data and Formal Privacy for Functional Data with Gaussian Perturbations. Optimal estimation in private distributed functional data analysis shows that noise scaled to the spectral decay of the functional basis gives error rates that do not grow with the number of basis functions. We reuse the idea of spectrally shaped Gaussian noise. We apply it to parameter-space gradients rather than to functional estimates, and we evaluate it against inversion rather than by minimax estimation error, which that paper never audits.
We also reuse the Jacobian-vector-product machinery of the inversion influence function paper and its code to compute $\mathbb{E}[J^\top\Sigma^{-1}J]$ without forming $J$.
One paper constrains the design. From Mean to Extreme derives closed-form reconstruction bounds under differential privacy for discrete inputs with no data prior. It also shows that an active server can reshape the model to shrink sensitivity and weaken the guarantee in practice. Our bound differs in two ways. It is prior-aware, and the client computes it at the model the server actually dispatched. A manipulated architecture therefore shows up as a low certificate, and the client can refuse to send the update rather than silently being exposed.
Research Program
The work has four parts.
A strong kernel-prior attacker. We first build the strongest honest-but-curious attacker we can for functional data. It optimizes over the leading Karhunen–Loève coefficients of a Gaussian-process prior fitted on public auxiliary data, with an RKHS-norm penalty and $\ell_1$ gradient matching, following TS-Inverse's observation that gradient magnitude tracks absolute values in regression. Without this attacker, every defense comparison would be against a weak adversary.
The noise-shaping objective. We maximize the weighted Van Trees bound over $\Sigma$ under two constraints. The first is a matched differential privacy level: per-sample gradients are clipped in the $\Sigma^{-1/2}$ norm, so the standard Gaussian-mechanism accounting applies unchanged. The second is a cap on the expected descent slowdown, measured as noise variance along a public-data estimate of the gradient direction. $\Sigma$ is computed only from public data and the current weights, so the shaping itself leaks nothing. We will parameterize $\Sigma$ as a low-rank term plus an isotropic floor, built from the pull-back $J C J^\top$ estimated with Jacobian-vector products, so that the cost stays at a few Jacobian-vector products per round.
Resolution independence. We will show the certificate is resolution-independent. For resolution-agnostic forecasters (convolutional models and neural-operator-style layers), we compute the bound as the input grid is refined. A kernel prior should make it converge. A pixel-space influence bound should drift with grid size. This is where the infinite-dimensional view does real work rather than decoration.
Subgroup reconstruction risk. We will measure whether shaped noise equalizes reconstruction risk across clusters of curves. The influence-function paper found uneven per-class vulnerability under uniform noise, which is a reason to expect uneven risk here too.
Baselines
The naive reference point is no defense at all. It fixes the attacker's ceiling, and TS-Inverse reports that its attack improves on DLG and InvG by 2x to 10x in sMAPE on Electricity 370, London Smartmeter, and KDDCup 2018. No absolute defended-reconstruction number for these datasets was found in the file ("no reported result found on Lacuna for defended time-series inversion").
The first real baseline is DP-SGD with isotropic Gaussian noise at matched $\varepsilon$ and clipping budget. It is the deployed default and carries the same formal guarantee as ours, so it is the most important fair comparison.
The second baseline is noise concentrated on the small-singular-value directions of $J$, as suggested by the inversion influence function analysis. It uses the identical clipping rule and $\varepsilon$ accounting, so the only difference from our method is the shaping rule. This baseline doubles as the key ablation. Swapping our prior-weighted objective for the unweighted one isolates the contribution of the prior.
The third baseline is CENSOR. It samples gradients orthogonal to the true one and reports about 86% CIFAR-10 accuracy with negligible overhead. We treat it as the strongest heuristic competitor on reconstruction error, while noting it carries no formal guarantee.
The fourth baseline is Soteria, applied to the forecaster's output head. It reports reconstruction MSE above 0.8 with no accuracy loss on MNIST and CIFAR-10.
All methods share the same data splits, model architectures, and number of federated rounds. They also get an equal hyperparameter search of 20 configurations each, tuned for forecasting error on held-out clients.
Beating the baselines means two things at matched $\varepsilon$ and forecasting error within 2% of each other. Against isotropic DP-SGD and the small-singular-value baseline, our method must give higher reconstruction error on the leading Karhunen–Loève components under the kernel-prior attacker and under TS-Inverse. Against CENSOR, it must reach comparable reconstruction error, with the added formal guarantee and certificate.
Why not just…?
Why not just use DP-SGD and report $\varepsilon$? The guarantee targets membership, not reconstruction quality. From Mean to Extreme shows that $(\varepsilon,\delta)$ does not translate directly into reconstruction protection. Privacy-Preserving Q-Learning with Functional Noise reports that point-wise DP-SGD learned nothing useful at strict budgets on continuous problems. Our isotropic baseline, at the same $\varepsilon$, tests directly whether shaping buys reconstruction error for free. If it does not, we report that honestly.
Why not just shape noise along the small singular values, as the influence-function analysis suggests? That analysis measures error in raw input space against an attacker without a prior. Our hypothesis is that a kernel-prior attacker recovers precisely the rough components that noise corrupts. The ablation with identical budget and a different shaping rule settles this. If small-singular-value noise holds up equally well against the kernel-prior attacker, the prior-weighting is unnecessary and we will say so.
Why not just privatize each client's curve with Gaussian-process noise before training? This is the most serious alternative. It is local functional differential privacy in the sense of Differential Privacy for Functions and Functional Data, and it makes inversion return only noisy curves. The expected cost is utility: every client pays per-curve sensitivity, rather than the aggregated, clipped gradient sensitivity. We will include input-level Gaussian-process noise as an extra baseline at matched reconstruction certificate. The question is simply which approach yields lower forecasting error.
Why not just use CENSOR? Its own authors flag adaptive attackers who model the sampling process as open, and it offers neither a differential privacy bound nor an error certificate. We run an adaptive variant of our attacker that knows the sampling temperature. If CENSOR still matches us, its practical advantage is real, and our contribution reduces to the certificate.
Proposed Experiments
We will train federated forecasters (a temporal convolutional network and a GRU, since TS-Inverse finds GRUs naturally more resistant) on Electricity 370, London Smartmeter, and KDDCup 2018. We will also use simulated Matérn functional data, where the true prior is known, following the simulation design of the distributed functional data paper. Mobility trajectories from NYCB serve as a check that the method transfers beyond univariate series; there ST-GIA reports an attack success rate of 0.652 against 0.434 for DLG.
Batch sizes range from 1 to 64. Metrics are:
- reconstruction sMAPE;
- reconstruction error restricted to the leading Karhunen–Loève modes;
- attack success rate on trajectories;
- forecasting error on held-out clients;
- the per-round certificate.
There are four decisive checks.
Validity. No attack in our suite, including the kernel-prior attacker given the true prior on simulated data, ever achieves weighted error below the certificate. A violation would indicate a bug or a broken assumption.
Tightness. On simulated data, the best attack's error should come within a small factor of the certificate. A loose bound is useless for deciding when to refuse an update.
The central comparison. At matched $\varepsilon$ and forecasting error, prior-aware shaping should beat small-singular-value shaping against prior-using attackers. The gap should narrow against DLG, which uses no prior. That pattern is the signature of the mechanism we claim.
Prior mismatch. We will give the attacker a prior fitted on ten times more auxiliary data than the defender's. We will report how far the certificate degrades, since the guarantee formally covers only attackers whose prior is no stronger than the defender's.
A final small experiment lets the server scale the first layer, in the spirit of the "attacker as architect" construction. It checks whether the client-side certificate drops sharply enough to trigger refusal.
References
- Understanding Deep Gradient Leakage via Inversion Influence Functions
- TS-Inverse: A Gradient Inversion Attack Tailored for Federated Time Series Forecasting Models
- Enhancing Privacy of Spatiotemporal Federated Learning Against Gradient Inversion Attacks
- Differential privacy for functions and functional data
- Formal Privacy for Functional Data with Gaussian Perturbations
- Optimal estimation in private distributed functional data analysis
- Bounding Reconstruction Attack Success of Adversaries Without Data Priors
- CENSOR: Defense Against Gradient Inversion via Orthogonal Subspace Bayesian Sampling
- Soteria: Provable Defense Against Privacy Leakage in Federated Learning From Representation Perspective
- Privacy-Preserving Q-Learning with Functional Noise in Continuous Spaces