When many devices learn together by repeatedly averaging their estimates with their neighbors, the noise in each device's data partly cancels. In a fixed environment the result is well known: the error falls in proportion to $1/N$ for $N$ cooperating agents, as if all the data had been pooled on one server. Many deployed networks, such as weather stations, power-grid monitors and sensor swarms, instead track a quantity that keeps drifting. In that setting agents must use a constant step size, meaning a learning rate that never decays, so they stay responsive to change. That choice leaves them oscillating in a band of error whose width depends on the step size. This note asks what happens to the $1/N$ benefit in that regime. Our claim is that the benefit does not survive intact. Once the step size is retuned for the larger network, the gain is at best $1/\sqrt{N}$. Beyond a network size set by how well connected the graph is, adding agents stops helping and eventually hurts.
The reason is that cooperation reduces noise, and a less noisy network can afford a larger step size and therefore track faster. A larger step size, however, makes neighbors disagree more, and on poorly connected graphs that disagreement decays slowly. The proposal turns this tension into an explicit, testable scaling law. It then builds a step-size rule that each agent can apply using only quantities it can measure locally, and it tests both the law and the rule on drift benchmarks already used in this literature.
Core Claim
Consider diffusion learning, in which each agent takes a gradient step on its own streaming data and then averages with its neighbors (the Adapt-Then-Combine form, ATC). Let $\mu$ be the shared constant step size, $\sigma^2$ the per-agent gradient noise, $q$ the per-step variance of a random-walk drift in the target, and $\lambda$ the second-largest eigenvalue magnitude of the averaging matrix, so that $1-\lambda$ is the spectral gap. Schematically, with constants omitted, the steady-state mean-square deviation (MSD, the average squared distance to the moving target) behaves as
$$ \mathrm{MSD}(\mu) \;\approx\; \frac{\mu\sigma^2}{N} \;+\; \frac{q}{\mu} \;+\; \frac{\mu^2\sigma^2}{1-\lambda}. $$
The first term is the familiar cooperative noise floor. It is the $O(\mu)$ neighborhood that Distributed learning via Diffusion adaptation with application to ensemble learning describes, divided by $N$ through the linear gain of Networked Signal and Information Processing: Learning by multiagent systems. The second term is tracking lag, the price of a small step chasing a moving target; it is the same trade-off behind the dynamic-regret bounds in Tracking Slowly Moving Clairvoyant. The third term is disagreement among agents. It is higher order in $\mu$, which is why analyses of a static target can ignore it, but it is amplified on graphs with a small spectral gap.
Ignoring the third term, the best step size is $\mu^\star \propto \sqrt{qN}/\sigma$, and the resulting error is $\propto \sqrt{q\sigma^2/N}$. That is the $1/\sqrt{N}$ gain. At $\mu^\star$ the disagreement term scales like $qN/(1-\lambda)$. On a ring or grid, where $1-\lambda$ shrinks polynomially in $N$, this term overtakes the others at a finite critical size $N_c$. On expander-like graphs $N_c$ grows much faster. The prediction is therefore a three-regime picture: a $1/\sqrt{N}$ gain under drift, saturation near $N_c$, and degradation beyond it. The location of $N_c$ should be predictable from $q/\sigma^2$ and the spectral gap. This would give a concrete mechanism for the "performance collapse" that Which mode is better for federated learning? Centralized or Decentralized reports when networks grow without denser connections. It would also show that the asymptotic network independence established for static problems (Network independent rates in distributed learning) fails under persistent drift.
Relation to Prior Work
Two bodies of work motivate the proposal. The first establishes cooperative gains for static targets: the linear gain in Networked Signal and Information Processing, the linear speedup in excess risk in Excess-Risk of Distributed Stochastic Learners, and the $1/N$ variance in $\mathcal{CIRFE}$. None of these lets the target move. The second shows that constant-step diffusion works under drift. On distributed online classification in the midst of concept drifts proves that ATC beats Combine-Then-Adapt (CTA), which beats non-cooperative learning under random-walk and abrupt drift. Distributed Adaptive Learning Under Communication Constraints bounds the MSD at $O(\mu)$ with compressed links, but only for a static target. These papers treat $\mu$ as fixed and give no account of how the best $\mu$ or the achievable error should change with $N$ and topology. That missing account is what we supply.
The distributed online optimization papers constrain the design. Online gradient tracking (A Distributed Online Convex Optimization Algorithm with Improved Dynamic Regret) and its predictive variant (Distributed Online Convex Optimization with Improved Dynamic Regret) give dynamic-regret bounds that do not grow with the time horizon. Both assume exact gradients, so the noise term that drives our scaling is absent, and the step-size theory in the second requires global spectral quantities that agents do not know. Our step-size rule is aimed squarely at that second limitation. Doubly Adaptive Social Learning explicitly leaves the joint tuning of its two adaptation rates without an automatic schedule. Our rule addresses the analogous problem for the single step size of continuous-parameter diffusion; we do not extend it to the discrete-hypothesis setting.
We should be candid about a limitation of the evidence. Classical diffusion-adaptation theory may already contain tracking-MSD expressions under random-walk drift, but the research file shows none that make the dependence on $N$ and the spectral gap explicit. The novelty claimed here is that dependence, together with the critical size $N_c$ and the local rule, not the existence of a tracking MSD formula.
Research Program
The theoretical work proceeds in three steps. The first is a rigorous version of the display equation for ATC with linear-regression and strongly convex logistic losses under random-walk drift, building on the energy-style analyses in the papers above. It would give exact leading constants for the first two terms and an upper bound with explicit spectral-gap dependence for the third. The second step derives $\mu^\star(N,\lambda)$ and $N_c$, and identifies which graph families (ring, 2-D grid, random geometric, expander) cross into degradation at realistic sizes. The third step extends the result to drift that differs across agents, where part of the network sees a change before the rest. We expect the disagreement term then to depend on the drift itself and not only on the noise, so the topology penalty should be sharper.
The algorithmic work is a local step-size rule. Each agent estimates three quantities online. The first is its gradient noise level $\hat\sigma^2$, taken from the variance of recent gradients. The second is the drift rate $\hat q$, taken from the gap between short-window and long-window running means of its gradients. The third is its disagreement with its neighbors, measured as the squared distance between its own pre-averaging estimate and its neighbors' estimates, which it already receives. The agent sets $\mu_i$ near $\sqrt{\hat q N}/\hat\sigma$, using a gossip-counted estimate of $N$, and shrinks it when measured disagreement exceeds the cooperative noise floor. Disagreement acts as a measurable stand-in for the unknown spectral gap. A secondary question is whether, beyond $N_c$, agents should deliberately limit cooperation to a local neighborhood, which echoes the proximity relaxation of Proximity Without Consensus in Online Multiagent Optimization.
Baselines
The naive reference point is non-cooperative constant-step SGD, each agent learning alone with its step size tuned on held-out drift. It anchors the gain: on the US weather benchmark, Networked Signal and Information Processing reports a prediction error of about 0.31 for non-cooperative agents against about 0.22 for diffusion. We include diminishing step sizes only as a sanity check, since On distributed online classification in the midst of concept drifts already reports that they drop to chance accuracy on STAGGER.
The strongest competitor is ATC diffusion as in On distributed online classification in the midst of concept drifts, with a fixed $\mu$ grid-searched separately for every combination of $N$, topology and drift rate. This oracle has access to information that no deployed agent has, so matching it is the bar for our rule. That paper reports ATC recovering to "near 90%" accuracy after each abrupt STAGGER shift. We will reproduce that number before comparing. Beating this baseline means reaching within 10% of the oracle's steady-state MSD with no grid search, and outperforming it outright when the drift rate changes partway through a run, because a single tuned $\mu$ cannot then be correct throughout.
The second strong competitor is online gradient tracking (A Distributed Online Convex Optimization Algorithm with Improved Dynamic Regret) run with noisy gradients. That paper reports stability at $\alpha_i = 1/(2L_g)$ where plain distributed gradient descent diverges, but gives no numerical regret. No reported result was found on Lacuna for its regret or MSD on stochastic drift benchmarks. To keep the comparison fair, it receives the same per-configuration grid search and is charged for its doubled communication.
A centralized fusion-center learner, using the same data and the best tuned $\mu$, serves as the ideal $1/\sqrt{N}$ curve against which saturation is measured. Every method gets the same data streams, the same random seeds and the same tuning budget, counted in grid points.
Two ablations isolate the key ingredient. The first applies pure $\sqrt{N}$ scaling without the disagreement correction, which tests whether the topology term matters in practice. The second uses the disagreement correction with $\mu$ held fixed across $N$, which tests whether the $\sqrt{N}$ scaling matters.
Why not just…?
Why not just grid-search $\mu$ for each deployment? If the drift rate never changes, this is a real threat. It will match our rule on stationary random-walk drift, and we expect it to. Its weaknesses are twofold. It requires an offline replay of the deployment's drift, which a live network does not have. It also fails when the drift rate changes. The experiment that settles this switches $q$ midway through a run (slow, then fast, then slow). If the tuned constant matches our rule there as well, the algorithmic contribution shrinks to the scaling law alone, and we would report it that way.
Why not just use gradient tracking? Gradient tracking removes the bias caused by agents having differently distributed data. It does not remove disagreement caused by gradient noise, and it doubles traffic, as noted in Networked Signal and Information Processing. In addition, Kun Yuan et al. find that its error can degrade quadratically in the spectral gap on sparse graphs. We therefore predict that it shows the same saturation at an equal or smaller $N_c$. If instead it shows no saturation on rings, our third term is wrong.
Why not just give each agent its own adaptive optimizer? Per-agent adaptive optimization, which Implicit Maximum a Posteriori Filtering via Adaptive Optimization shows can act as an implicit filter, tunes step sizes against local noise. It cannot see that averaging has already reduced the effective noise by a factor of $N$, so it should settle near the single-agent step size and forgo the faster tracking that cooperation makes affordable. We test this directly by running ATC with per-agent adaptive steps as an additional baseline.
Why not just centralize? A fusion center avoids disagreement altogether, but it adds latency and a single point of failure, which Networked Signal and Information Processing discusses. In this study it serves as the reference curve, not as a competitor.
Proposed Experiments
The core test is synthetic streaming linear regression with random-walk drift, run with $N$ from 4 to 1024 on rings, 2-D grids, random geometric graphs and expanders, and with $q/\sigma^2$ swept over three orders of magnitude. Three checks are decisive. The first is whether the oracle-tuned $\mu^\star$ grows like $\sqrt{N}$, read as a slope near 0.5 on a log-log plot. The second is whether the error at the tuned step size falls like $1/\sqrt{N}$ and not like $1/N$. The third is whether the observed saturation size $N_c$ falls within a factor of two of the predicted value across topologies. A $1/N$ slope under drift, or saturation insensitive to the spectral gap, would refute the core claim.
The rule and the baselines are then evaluated on the drift testbeds already in the literature. These are STAGGER and Rotating Hyperplane from On distributed online classification in the midst of concept drifts; the expert-flip task at iteration 3000, with the reported $\mu=0.01$ and $\mu=0.005$ settings, from Distributed learning via Diffusion adaptation with application to ensemble learning; the sinusoidal multi-target sensor network from A Distributed Online Convex Optimization Algorithm with Improved Dynamic Regret, with gradient noise added; and the US weather data from Networked Signal and Information Processing. The metrics are steady-state MSD or excess risk, recovery time after abrupt shifts, dynamic regret, and bits communicated. A final test uses drift that originates in one region of a grid. It checks the extension to agent-specific drift and whether restricting cooperation to a local neighborhood beyond $N_c$ recovers performance.
References
- Distributed learning via Diffusion adaptation with application to ensemble learning
- Networked Signal and Information Processing: Learning by multiagent systems
- Tracking Slowly Moving Clairvoyant: Optimal Dynamic Regret of Online Learning with True and Noisy Gradient
- Which mode is better for federated learning? Centralized or Decentralized
- Network independent rates in distributed learning
- Excess-Risk of Distributed Stochastic Learners
- $\mathcal {CIRFE}$: A Distributed Random Fields Estimator
- On distributed online classification in the midst of concept drifts
- Distributed Adaptive Learning Under Communication Constraints
- A Distributed Online Convex Optimization Algorithm with Improved Dynamic Regret
- Distributed Online Convex Optimization with Improved Dynamic Regret
- Doubly Adaptive Social Learning
- Proximity Without Consensus in Online Multi-Agent Optimization
- Implicit Maximum a Posteriori Filtering via Adaptive Optimization