Neighbors See the First Rounds: Stage-Aware Noise for Gossip Learning

In decentralized ("gossip") learning, there is no central server. Each device trains on its own data and exchanges model updates only with a few neighbors. Repeated averaging gradually blends everyone's updates together. A line of theory shows this blending acts as free privacy protection: a device several hops away sees your update only after it has been diluted by many others. That protection is weakest exactly where and when it matters most. The device next to you receives your update directly, before any blending. Separately, a large body of attack work shows that updates from the first few training rounds, taken near random initialization, are the easiest to turn back into the original images and labels. This proposal measures that "first-hop, first-rounds" exposure directly. It then builds a privacy mechanism for gossip learning whose noise changes over training time, with the total budget tracked by a per-pair privacy accounting that already understands graph distance.

The opportunity is practical. Current decentralized privacy accounting spends its budget uniformly across rounds with a fixed noise level. Centralized work has shown that a time-varying noise schedule gives both better accuracy and lower attack success than a fixed one. Nobody has put the two together, and nobody has checked with real reconstruction attacks whether decentralization alone protects a node from its neighbor in round one.

Core Claim

We claim two things. First, in gossip learning on deep networks, an honest-but-curious immediate neighbor can reconstruct a node's training images and labels from early-round messages with near-centralized fidelity. Decentralization's reported advantage over central aggregation is therefore concentrated in later rounds and at larger graph distances. Second, under a fixed formal budget, choosing the per-round noise to match measured, stage-dependent reconstruction risk achieves a better privacy-utility curve than either fixed noise or a generic decaying schedule. The accounting is pairwise network differential privacy, where privacy loss is computed separately for each pair of nodes as a function of graph distance.

The first claim is a falsifiable measurement. The second is a mechanism whose key ingredient, the risk-matched schedule, is isolated by ablation.

Prior Work and Positioning

Three papers motivate the gap by establishing early-stage vulnerability in centralized settings.

All three assume an attacker who sees an isolated per-client update at a server. Our attacker is a neighbor in a graph, and what it sees is partly mixed.

Inverting Gradients and Do Gradient Inversion Attacks Make Federated Learning Unsafe? seem to contradict the "early is worst" story. They find trained models can yield semantically cleaner reconstructions because trained features act as a prior. We do not assume the early-peak story. Our risk curve is measured with both untrained and trained checkpoints, and the schedule follows whatever the curve says. If late-stage risk turns out to be non-negligible under cosine-similarity attacks, the schedule will not decay noise to zero.

Four papers supply the decentralized accounting we build on.

We extend this accounting to heterogeneous per-round noise and clipping, and we evaluate against attacks.

Two papers supply the scheduling idea, which we transplant rather than invent.

Both are centralized. Both also use hand-designed decay rules rather than ones fitted to measured risk. Their adaptive clipping uses batch maximum norms, which is data-dependent; we replace it with a privately released norm quantile so the formal guarantee holds.

Two papers constrain the design.

We take that as a warning. Any amplification claim must be reported for both well-mixed and hub-heavy topologies, and for colluding neighbors.

Research Program

Stage 1: measure leakage by round and by hop. We run decentralized SGD with gossip averaging on ring, 2D torus, hypercube, Poisson random graphs and power-law graphs, with 16–64 nodes. We train small CNNs and ResNet-20 on non-IID splits of MNIST, Fashion-MNIST, CIFAR-10 and CIFAR-100.

At each round $t$, an observer at graph distance $d$ from a target node attacks the messages it has received. It uses three attacks:

  • Inverting Gradients, with cosine similarity and a total-variation prior;
  • DLG;
  • LLG for labels.

Where the mixing weights are known, the observer also uses a disaggregating variant. This variant subtracts the observer's own contribution and the known neighbor contributions, much as gradient disaggregation does with participation patterns (code at gdisag/gradient_disaggregation).

The output is a risk surface $R(t,d)$: reconstruction PSNR and SSIM, plus label recovery accuracy, as functions of round and distance. We also record it with and without collusion of $k$ neighbors. We estimate the same surface under centralized FedSGD, with and without secure aggregation, as reference points.

Stage 2: accounting with time-varying noise. Each node clips its update to norm $C_t$ and adds Gaussian noise $\sigma_t$ before gossiping. We use Gaussian differential privacy, a member of the $f$-DP family. In this family each round's direct release to a neighbor is $\mu_t$-GDP with $\mu_t = C_t/\sigma_t$. Rounds compose so that the total privacy loss of node $u$ against observer $v$ is

$$\mu_{u\to v} = \sqrt{\sum_{t=1}^{T} \big(a_{uv}(t)\,\mu_t\big)^2},$$

where $a_{uv}(t)\le 1$ is the amplification factor from gossip mixing between $u$ and $v$. For an immediate neighbor's direct observation, $a_{uv}(t)=1$; for distant observers, it is derived from the hitting-time analysis of the $f$-DP paper above. The square-root form is the standard composition rule for Gaussian mechanisms.

This makes the formal cost of any schedule explicit. It also shows the bound is dominated by immediate neighbors, which is why the schedule must be designed against them.

Stage 3: the risk-matched schedule. The formal guarantee depends only on $C_t/\sigma_t$. An attacker's practical power at round $t$ also depends on how informative the true update is. Late-round gradients usually have norms below $C_t$, and their weights are more specialized. We fit a predictor $\hat R_t(\sigma)$ of neighbor reconstruction success from Stage 1, as a function of noise level and training progress, on public proxy data. We then choose $\{\sigma_t, C_t\}$ to maximize a utility proxy subject to two constraints: the total neighbor budget $\mu_{u\to v}\le \mu^\star$, and a per-round cap $\hat R_t(\sigma_t)\le r^\star$.

The per-round cap is the new ingredient. It forces noise to be high precisely when inversion is easy, rather than following a fixed exponential decay. Clipping thresholds come from a privately released quantile of update norms, which costs a small, accounted share of the budget.

Baselines

The naive reference is non-private gossip SGD on the same graphs. It gives the utility ceiling and the risk surface with no defense. If decentralization alone already drives early-round neighbor PSNR to the level of a secure-aggregation server, the proposal's motivation fails, and we will report that.

The strongest decentralized DP baseline is fixed-noise gossip with pairwise network $f$-DP accounting, following Muffliato and the f-DP decentralized paper. That paper reports 89.1% MNIST test accuracy at $\epsilon=10$, against 86.7% with Rényi-DP accounting. We reproduce this baseline on their ring, torus and hypercube topologies before comparing.

The correlated-noise protocol that paper also analyzes is a separate baseline. Its noise cancels during aggregation, so it costs little accuracy, but it protects only against non-colluding observers. We run it under the same collusion settings as our method.

The strongest scheduling baseline is DP-dyn and Fed-$\alpha$CDP transplanted node-by-node into gossip, using their published decay rules. Fed-$\alpha$CDP reports 97.9% MNIST accuracy at $\epsilon=0.285$, against 92.8% for fixed-noise DP at $\epsilon=0.854$ (Securing Distributed SGD). DP-dyn reports 0% attack success against up to 25% for static DP (Gradient Leakage Attack Resilient Deep Learning). These are centralized numbers and not directly comparable, so we re-run both in our gossip setting.

The centralized reference is FedAvg with secure aggregation and central DP at matched $\epsilon$.

The key ablation replaces our risk-matched schedule with a decaying schedule that has the same total $\mu$. This isolates whether fitting the schedule to measured risk matters.

Fairness. All methods use the same:

  • data partitions and graphs;
  • model and number of rounds;
  • per-node compute;
  • total neighbor budget $\mu^\star$, converted to $(\epsilon,\delta)$ identically;
  • hyperparameter search budget, with equal trials per method on a held-out validation split.

What counts as winning. Beating the baselines means two things at matched immediate-neighbor $\epsilon$. First, higher test accuracy than the fixed-noise network-DP baseline. Second, lower worst-round neighbor reconstruction (peak PSNR over $t$) than the transplanted decaying schedule, without lower accuracy.

Why not just…?

Why not just trust decentralization, as the provable-advantages paper suggests? Provable Privacy Advantages reports lower reconstruction similarity averaged over training, and it uses no formal noise. It does not resolve leakage by round or by hop. No reported result was found on Lacuna for its per-round or per-hop SSIM. The topology-dependent bound shows near-perfect reconstruction when the honest component is a single node. Stage 1 settles this directly. If early-round neighbor PSNR in gossip stays well below the centralized no-aggregation level on every topology, this alternative wins and the mechanism is unnecessary.

Why not just run DP-dyn at every node? This is the real threat. If a hand-designed decaying schedule with our accounting matches the risk-matched schedule, our contribution shrinks to the accounting extension plus the measurement study. The ablation in the Baselines section exists to test exactly this, and we will report the outcome either way. Two reasons to expect a gap are untested. One is that published decay rules were tuned for centralized aggregates, where per-round risk differs from a neighbor's direct view. The other is that their batch-maximum clipping is data-dependent and needs replacing to keep the guarantee.

Why not just use secure aggregation with a central server? Secure aggregation hides individual updates within a round. Multi-round disaggregation can still recover individual updates from sums plus participation patterns (gradient disaggregation). It also leaves a single trusted coordinator, which is the assumption decentralized deployments are trying to drop. We include it as a reference so readers can see where gossip with stage-aware noise falls relative to it in accuracy and in neighbor-versus-server reconstruction risk.

Why not just prune gradients or use correlated canceling noise? Pruning was bypassed by the Bayes-optimal attacker in Bayesian Framework for Gradient Leakage. We still run a pruning arm under LLG, because LLG found pruning breaks label recovery. Correlated canceling noise is a genuine competitor in the non-colluding case, since it costs almost no accuracy. The collusion sweep will show where it fails relative to independent noise.

Proposed Experiments

Measurement check. The risk surface $R(t,d)$ must show early-round, one-hop neighbor reconstruction at or near the centralized per-client level. It must also show a decline with distance that is steeper on Poisson graphs than on power-law graphs. If the early peak does not appear, which is possible given the trained-model results of Inverting Gradients, the schedule is refit to the measured curve and the claim is restated.

Mechanism check. We plot accuracy against immediate-neighbor $\epsilon$ on MNIST and CIFAR-10 for all methods across ring, torus, hypercube and power-law graphs. Alongside it, we plot worst-round PSNR and label recovery against $\epsilon$. Success requires both an accuracy gain over fixed-noise network DP, starting from the 89.1% MNIST reference at $\epsilon=10$, and a lower peak reconstruction than the decaying-schedule ablation.

Robustness check. We repeat the mechanism check under one to three colluding neighbors and on CIFAR-100. This tests whether the gains survive when honest components shrink.