betaFeedback

WorksMathematics

Beyond Gaussian Calibration: Local Inference in Decentralized SGD

Abstract

Decentralized SGD minimizes a common objective by local gradient steps and neighbor averaging. Its statistical theory mostly concerns network averages, yet clients act on their own iterates, and one-sided decisions such as alarms use one tail of the local error. We show that a client's constant-step endpoint can have nearly nominal Gaussian coverage while both tails are badly miscalibrated. An exact noise-filter representation explains why: a quantity computable from the graph and stepsize decides whether the endpoint is asymptotically Gaussian, and when the number of clients outgrows the inverse stepsize on networks with summable return probabilities, such as lazy tori of dimension at least three and expanders, a few recent noise terms at nearby clients keep a fixed share of local variance. On these tori the limit is a non-Gaussian local field plus an independent Gaussian consensus term, and no reference distribution built from finitely many noise moments, including Edgeworth and Cornish–Fisher corrections, is calibrated at all levels uniformly over noise laws. We propose a hybrid reference that resamples the influential noise terms from their empirical law and replaces the rest by a Gaussian; its non-asymptotic coverage bound allows noise laws and curvature estimated from fresh gradients or the client's trajectory, and extends to nonlinear vector objectives. In full-network simulations it restores tail balance at essentially unchanged interval length, also under rare large shocks that break Cornish–Fisher intervals; gains vanish, as predicted, when consensus dominates.

Introduction

Decentralized stochastic gradient descent (DSGD) alternates local gradient steps with averaging among neighbors [41, 31] (Tsitsiklis et al. 1986). It underlies estimation over sensor networks and serverless federated learning [36] (Rabbat and Nowak 2004; Kar et al. 2012; Kairouz et al. 2021), and its theory explains how the spectral gap and client heterogeneity slow optimization [22] (Duchi et al. 2012; Shi et al. 2015; Yuan et al. 2016). Its statistical theory mostly describes network-level behavior: with decreasing stepsizes, distributed stochastic approximation satisfies a central limit theorem whose covariance, under doubly stochastic weights, matches that of centralized SGD [5, 38], and the mean-square error of DSGD becomes asymptotically independent of the network (Pu et al., 2020, 2022). Inference likewise targets time-averaged, client-averaged or aggregated statistics and one-step corrections [30, 6, 28] (Gu and Chen 2024). Yet in many deployments each device acts on its own current iterate, for example a sensor that raises an alarm when its estimate crosses a threshold. Such one-sided decisions depend on one tail of the local error distribution, and a central interval with nearly nominal coverage can place most of its errors in one tail.

We study the constant-step endpoint θ^i\hat{\theta}_i of one client ii and construct confidence intervals for θ∗\theta^* from it. An exact representation writes its error as a linear filter of past gradient innovations, with weights set by the communication matrix. On a fixed network the consensus component dominates as the stepsize decreases, and the endpoint becomes Gaussian. On growing networks with mη→∞m\eta\to\infty, the consensus variance, of order η/m\eta/m, becomes negligible against the local variance, of order η2\eta^2. If the random walk of the network also has summable return probabilities, as on lazy tori of dimension at least three and on expanders, a few recent innovations at nearby clients keep a fixed share of the local variance; on the three-dimensional lattice the client’s own most recent innovation carries 29% of it. Figure 1(a) shows the consequence for skewed noise on a 12312^3 torus: a 10% chance of a large shock in the client’s own last gradient creates a component of the endpoint law near the Gaussian 2.5% quantile, and the Gaussian interval misses 4.3% below and 0.6% above. Network independence, which holds on fixed networks, fails here.

Figure 1. A local endpoint under skew noise on the lazy 12312^3 torus with η=.005\eta=.005 (4,000 full-network trajectories). (a) Standardized endpoint errors with the exact local law (characteristic-function inversion) and N(0,1)\mathcal{N}(0,1). The shaded component is the 10% event that the client’s own last innovation equals +3+3; its weight .58.58 places it near the Gaussian 2.5% quantile. (b) Empirical minus nominal one-sided error probabilities of the fitted references (filled: lower, open: upper tails); Cornish–Fisher is CF3\mathrm{CF}_3 of § 6.

Two simple remedies do not resolve this. A one-step estimate from MM fresh gradients discards information: in the same example the endpoint is as precise as about 27,000 gradients and eight times more accurate than the one-step estimate with M=400M=400. Edgeworth and Cornish–Fisher corrections (Cornish and Fisher, 1938; Hall, 1992) expand around a small parameter that is absent here, and Figure 1(b) shows that a Cornish–Fisher interval repairs the 2.5% level but not other levels. We therefore calibrate the endpoint with a reference that keeps the influential innovations exactly, resampled from their empirical law, and replaces the remaining sum by a Gaussian.

Contributions.

  • Local Gaussian boundary and limit law. The endpoint is asymptotically Gaussian exactly when its largest standardized filter weight Λi\Lambda_i vanishes, and Λi\Lambda_i is computable before data are observed. On lazy tori with d≥3d\geq3 and mη→ϱm\eta\to\varrho, the limit is a harness-type local field plus an independent Gaussian consensus component (Theorem 2).

  • A moment-based impossibility result. In this local regime, no reference that depends on the noise law only through finitely many moments is calibrated at all levels uniformly over noise laws (Proposition 3); a moment correction can repair one level, but calibration across levels needs the law itself.

  • Feasible hybrid calibration. We bound the coverage, one-sided and probability-integral-transform errors of the hybrid reference with an estimated noise law and curvature, including estimates computed from the endpoint trajectory (Theorem 4).

  • Nonlinear vector objectives. Under samplewise contraction, fixed contrasts of nonlinear vector objectives inherit the linear analysis on the local scale, without commutation of the Hessian and noise covariance (Theorem 6).

In experiments the hybrid reference reduces the 12312^3 tail errors from 4.33%/0.58% to 2.70%/2.35% at the same length, repairs rare large shocks that break Cornish–Fisher intervals given 1,600 trajectory residuals, and matches the Gaussian reference when the Gaussian is adequate.

Scope and related work. We assume homogeneous objectives, independent inputs and a known communication matrix. Constant-step analyses of single-agent SGD give stationary bias, small-stepsize limits, high-probability bounds and Gaussian approximation (Dieuleveut et al., 2020; Chen et al., 2022; Mandt et al., 2017; Yu et al., 2021; Durmus et al., 2021; Wei et al., 2025); adaptive-network studies give each agent’s steady-state mean-square error (Chen and Sayed, 2015; Sayed, 2014), and Versini et al. (2026) expand local bias and covariance for heterogeneous clients. We add the distributional shape of the local marginal. endpoint. Inference for SGD uses averaged iterates, plug-in or random-scaling covariances, online bootstrap and Gaussian approximation ([12, 26, 1, 39] (Polyak and Juditsky 1992; Toulis and Airoldi 2017; Fang et al. 2018; Zhu et al. 2023; Su and Zhu 2023; Sheshukova et al. 2026)), and distributed inference aggregates estimates or bootstrap replicates across machines (Kleiner et al., 2014; Jordan et al., 2019). Multiplicative noise (Gürbüzbalaban et al., 2021; Hodgkinson and Mahoney, 2021; Gürbüzbalaban et al., 2025) and flat minima (Zhang et al., 2026) cause other non-Gaussian behavior; ours arises with positive curvature and bounded noise. The reference combines residual bootstrap ([8, 23] (Efron 1979)) with large-component retention ([2]); Appendix § 21 compares in detail.

Problem setting and local innovation filters

We consider a model consisting of mm clients that communicate over an undirected network without a central server. The general decentralized optimization problem is

θ⋆∈arg⁡min⁡x∈Rpf(x),f(x)=1m∑j=1mfj(x),\theta^\star\in\mathop{\arg\min}_{x\in\mathbb{R}^p} f(x), \qquad f(x)=\frac{1}{m}\sum_{j=1}^{m}f_j(x),

where fj(x)=E[ℓj(x;Zj)]f_j(x)=\mathbb{E}[\ell_j(x;Z_j)] is client jj’s population objective and ℓj\ell_j is its sample loss. Client jj maintains an iterate θj,t∈Rp\theta_{j,t}\in\mathbb{R}^p and observes a stochastic gradient gj(θj,t,Zj,t+1)=∇θℓj(θj,t,Zj,t+1)g_j(\theta_{j,t},Z_{j,t+1})=\nabla_\theta\ell_j(\theta_{j,t},Z_{j,t+1}) from its local data. In the adapt-then-combine (ATC) form of DSGD, each round consists of a local gradient step followed by neighbor averaging:

θ~j,t+1=θj,t−ηgj(θj,t,Zj,t+1),\widetilde{\theta}_{j,t+1}=\theta_{j,t}-\eta g_j(\theta_{j,t},Z_{j,t+1}),
θi,t+1=∑j=1mWijθ~j,t+1.\theta_{i,t+1}=\sum_{j=1}^{m}W_{ij}\widetilde{\theta}_{j,t+1}.

with constant stepsize η>0\eta>0. The fixed matrix WW specifies the mixing weights: Wij=0W_{ij}=0 for distinct clients that cannot communicate directly, and WiiW_{ii} is the weight on the client’s own update. The analysis starts from the scalar common objective fj(x)=h(x−θ⋆)2/2f_j(x)=h(x-\theta^\star)^2/2, h>0h>0, with gradients h(θj,t−θ⋆)+εj,t+1h(\theta_{j,t}-\theta^\star)+\varepsilon_{j,t+1}. This model isolates how gradient noise propagates, separately from heterogeneity and nonlinear drift; § 5 returns to nonlinear objectives.

Assumption 1 (Network and innovations). (i) The communication matrix W∈Rm×mW\in\mathbb{R}^{m\times m} is known, symmetric, entrywise nonnegative and doubly stochastic: W1=1W\mathbf{1}=\mathbf{1} and 1⊤W=1⊤\mathbf{1}^{\top}W=\mathbf{1}^{\top}. (ii) The innovations εj,t\varepsilon_{j,t} are i.i.d. over clients jj and times tt, with law FεF_\varepsilon, mean zero, variance σ2>0\sigma^2>0 and β3=E∣εj,t∣3/σ3<∞\beta_3=\mathbb{E}|\varepsilon_{j,t}|^3/\sigma^3<\infty.

With the stacked errors et=θt−θ⋆1∈Rme_t=\theta_t-\theta^\star\mathbf{1}\in\mathbb{R}^m and W1=1W\mathbf{1}=\mathbf{1}, the update becomes

et+1=W{(1−ηh)et−ηεt+1},et=θt−θ⋆1.(1)e_{t+1}=W\{(1-\eta h)e_t-\eta\varepsilon_{t+1}\}, \qquad e_t=\theta_t-\theta^\star\mathbf{1}. \tag*{(1)}

Assume 0<ηh≤10<\eta h\le1 and write a=1−ηh∈[0,1)a=1-\eta h\in[0,1), with a0=1a^0=1 also when a=0a=0. For ATC rounds we allow q≥0q\ge0 communication-only rounds, so the endpoint is θ^i=(WqθT)i\widehat{\theta}_i=(W^{q}\theta_T)_i, and q=0q=0 gives the usual endpoint θi,T\theta_{i,T}. The innovation εj,T−k\varepsilon_{j,T-k}, generated at client jj in round T−kT-k (k=0k=0 is the latest), enters with factor −η-\eta, is mixed once in its own round, and then passes through kk rounds of aWaW and qq gossip rounds. Its contribution to θ^i−θ⋆\widehat{\theta}_i-\theta^\star is therefore −ηckjεj,T−k-\eta c_{kj}\varepsilon_{j,T-k}, with propagation weights and power sums

ckj=ak(Wk+q+1)ij,0≤k<T,Sr=∑k,j∣ckj∣r.(2)c_{kj}=a^k(W^{k+q+1})_{ij}, \qquad0\le k<T, \qquad S_r=\sum_{k,j}|c_{kj}|^r. \tag*{(2)}

Summing all contributions gives the exact filter representation

(WqeT)iη=aT(WT+qe0)iη−∑k,jckjεj,T−k.(3)\frac{(W^q e_T)_i}{\eta}=\frac{a^T(W^{T+q}e_0)_i}{\eta}-\sum_{k,j}c_{kj}\varepsilon_{j,T-k}. \tag*{(3)}

The sums run over 0≤k<T0\le k<T and 1≤j≤m1\le j\le m; all weights and their sums refer to the chosen client ii. We write T=∞T=\infty for the stationary filter, whose sum extends over all past innovations without an initialization term. Independence of the innovations gives variance η2σ2S2\eta^2\sigma^2S_2 for their contribution to the endpoint error. We write si=ησS2s_i=\eta\sigma\sqrt{S_2} for this local standard deviation and bkj=ckj/S2b_{kj}=c_{kj}/\sqrt{S_2}, so that ∑k,jbkj2=1\sum_{k,j}b_{kj}^2=1 and bkj2b_{kj}^2 is the share of local variance due to εj,T−k\varepsilon_{j,T-k}.

A one-step estimate xˉ/hˉ\bar{x}/\bar{h} from nn independent gradients at a point xx has variance σ2/(h2n)\sigma^2/(h^2n), so the endpoint is as precise as neff=1/(h2η2S2)n_{\mathrm{eff}}=1/(h^2\eta^2S_2) gradients; in the local regimes below S2S_2 is bounded and neff≲(ηh)−2n_{\mathrm{eff}}\lesssim(\eta h)^{-2} far exceeds the calibration samples of § 4. Calibration uses local observations but global inputs: the known W,η,T,qW,\eta,T,q and client ii’s rows of graph powers, which require O(Tm)O(Tm) storage shared across replications.

When local fluctuations are Gaussian

We now ask when the local fluctuations described by the filter representation (3) admit a Gaussian approximation. Separating the initialization contribution, we consider the standardized innovation sum

Y=−1σ∑k,jbkjεj,T−k,EY=0,Var⁡(Y)=1.Y=-\frac{1}{\sigma}\sum_{k,j}b_{kj}\varepsilon_{j,T-k}, \qquad\mathbb{E}Y=0,\qquad\operatorname{Var}(Y)=1.

To quantify whether any single innovation contributes a substantial share of this variance, define the standardized largest influence

Λi=max⁡k,j∣bkj∣,(4)\Lambda_i=\max_{k,j}|b_{kj}|, \tag*{(4)}

References

  1. [1]Andreas Anastasiou, Krishnakumar Balasubramanian, and Murat A. Erdogdu. Normal approximation for stochastic gradient descent via non-asymptotic rates of martingale CLT. In Proceedings of COLT, volume 99 of Proceedings of Machine Learning Research, pages 115–137, 2019. URL https://proceedings.mlr.press/v99/anastasiou19a.html.arxiv.org/abs/1904.02130
  2. [2]Søren Asmussen and Jan Rosiński. Approximations of small jumps of Lévy processes with a view towards simulation. Journal of Applied Probability, 38(2):482–493, 2001. doi: 10.1239/jap/996986757.DOI
  3. [3]Mahmoud Assran, Nicolas Loizou, Nicolas Ballas, and Michael Rabbat. Stochastic gradient push for distributed deep learning. In Proceedings of ICML, volume 97 of Proceedings of Machine Learning Research, 2019.arxiv.org/abs/1811.10792
  4. [4]Rabi N. Bhattacharya and R. Ranga Rao. Normal Approximation and Asymptotic Expansions. Wiley, New York, 1976.
  5. [5]Pascal Bianchi, Gersende Fort, and Walid Hachem. Performance of a distributed stochastic approximation algorithm. IEEE Transactions on Information Theory, 59(11):7405–7418, 2013.arxiv.org/abs/1203.1505
  6. [6]Soham Bonnerjee, Sayar Karmakar, and Wei Biao Wu. Sharp Gaussian approximations for decentralized federated learning. In Advances in Neural Information Processing Systems, 2025. URL https://arxiv.org/abs/2505.08125. Updated preprint, arXiv:2505.08125v4, 2026.
  7. [7]Stephen Boyd, Arpita Ghosh, Balaji Prabhakar, and Devavrat Shah. Randomized gossip algorithms. IEEE Transactions on Information Theory, 52(6):2508–2530, 2006. URL https://web.stanford.edu/~boyd/papers/gossip.html.DOI
  8. [8]Peter Bühlmann. Sieve bootstrap for time series. Bernoulli, 3(2):123–148, 1997. doi: 10.2307/3318584.DOI
  9. [9]George Casella and Christian P. Robert. Rao–Blackwellisation of sampling schemes. Biometrika, 83(1):81–94, 1996.DOI
  10. [10]Sourav Chatterjee. A generalization of the Lindeberg principle. The Annals of Probability, 34(6):2061–2076, 2006. doi: 10.1214/009117906000000575.DOI
  11. [11]Jianshu Chen and Ali H. Sayed. On the learning behavior of adaptive networks—Part II: Performance analysis. IEEE Transactions on Information Theory, 61(6), 2015.arxiv.org/abs/1312.7580
  12. [12]Xi Chen, Jason D. Lee, Xin T. Tong, and Yichen Zhang. Statistical inference for model parameters in stochastic gradient descent. The Annals of Statistics, 48(1):251–273, 2020. doi: 10.1214/18-AOS1801.
  13. [14]C. J. Clopper and E. S. Pearson. The use of confidence or fiducial limits illustrated in the case of the binomial. Biometrika, 26(4):404–413, 1934.DOI
  14. [15]E. A. Cornish and R. A. Fisher. Moments and cumulants in the specification of distributions. Revue de l’Institut International de Statistique, 5(4):307–320, 1938.DOI
  15. [16]Harald Cramér. Über eine Eigenschaft der normalen Verteilungsfunktion. Mathematische Zeitschrift, 41:405–414, 1936. doi: 10.1007/BF01180430.DOI
  16. [17]A. Philip Dawid. Present position and potential developments: Some personal views. statistical theory: The prequential approach. Journal of the Royal Statistical Society: Series A, 147(2):278–292, 1984.DOI
  17. [18]Persi Diaconis and David Freedman. Iterated random functions. SIAM Review, 41(1):45–76, 1999. doi: 10.1137/S0036144598338446.DOI
  18. [19]Francis X. Diebold, Todd A. Gunther, and Anthony S. Tay. Evaluating density forecasts with applications to financial risk management. International Economic Review, 39(4):863–883, 1998.DOI
  19. [22]Anastasia Koloskova, Nicolas Loizou, Sadra Boreiri, Martin Jaggi, and Sebastian U. Stich. A unified theory of decentralized SGD with changing topology and local updates. In Proceedings of ICML, volume 119 of Proceedings of Machine Learning Research, pages 5381–5393, 2020. URL https://proceedings.mlr.press/v119/koloskova20a.html.
  20. [23]Jens-Peter Kreiss, Efstathios Paparoditis, and Dimitris N. Politis. On the range of validity of the autoregressive sieve bootstrap. The Annals of Statistics, 39(4):2103–2130, 2011. doi: 10.1214/11-AOS900.DOI
  21. [24]Hans R. Künsch. The jackknife and the bootstrap for general stationary observations. The Annals of Statistics, 17(3):1217–1241, 1989. doi: 10.1214/aos/1176347265.DOI
  22. [25]Gregory F. Lawler and Vlada Limic. Random Walk: A Modern Introduction. Cambridge University Press, 2010. URL https://www.math.uchicago.edu/~lawler/srwbook.pdf.DOI
  23. [26]Sokbae Lee, Yuan Liao, Myung Hwan Seo, and Youngki Shin. Fast and robust online inference with stochastic gradient descent via random scaling. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, 2022.
  24. [27]David A. Levin and Yuval Peres. Markov Chains and Mixing Times. American Mathematical Society, Providence, RI, second edition, 2017.
  25. [28]Ilya Levin, Maksim Shuklin, Eric Moulines, Paul Mangold, and Sergey Samsonov. Gaussian approximation and multiplier bootstrap for federated linear stochastic approximation. In Proceedings of UAI, volume 337 of Proceedings of Machine Learning Research, pages 3487–3545, 2026. URL https://proceedings.mlr.press/v337/levin26a.html.arxiv.org/abs/2605.19629
  26. [29]Paul Lévy. Sur les séries dont les termes sont des variables éventuelles indépendantes. Studia Mathematica, 3:119–155, 1931.DOI
  27. [30]Xiang Li, Jiadong Liang, Xiangyu Chang, and Zhihua Zhang. Statistical estimation and online inference via local SGD. In Proceedings of Thirty Fifth Conference on Learning Theory, volume 178 of Proceedings of Machine Learning Research, pages 1613–1661, 2022. URL https://proceedings.mlr.press/v178/1122b.html.arxiv.org/abs/2109.01326
  28. [31]Xiangru Lian, Ce Zhang, Huan Zhang, Cho-Jui Hsieh, Wei Zhang, and Ji Liu. Can decentralized algorithms outperform centralized algorithms? a case study for decentralized parallel stochastic gradient descent. In Advances in Neural Information Processing Systems, 2017. URL https://proceedings.neurips.cc/paper/2017/hash/f75526659f31040afeb61cb7133e4e6d-Abstract.html.arxiv.org/abs/1705.09056
  29. [32]Cassio G. Lopes and Ali H. Sayed. Diffusion least-mean squares over adaptive networks: Formulation and performance analysis. IEEE Transactions on Signal Processing, 56(7):3122–3136, 2008.DOI
  30. [34]Pascal Massart. The tight constant in the Dvoretzky–Kiefer–Wolfowitz inequality. The Annals of Probability, 18(3):1269–1283, 1990. doi: 10.1214/aop/1176990746.DOI
  31. [35]Vincenzo Matta, Paolo Braca, Stefano Marano, and Ali H. Sayed. Diffusion-based adaptive distributed detection: Steady-state performance in the slow adaptation regime. IEEE Transactions on Information Theory, 62(8):4710–4732, 2016. doi: 10.1109/TIT.2016.2580665.DOI
  32. [36]Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Agüera y Arcas. Communication-efficient learning of deep networks from decentralized data. In Proceedings of AISTATS, volume 54 of Proceedings of Machine Learning Research, pages 1273–1282, 2017.arxiv.org/abs/1602.05629
  33. [37]Quinn McNemar. Note on the sampling error of the difference between correlated proportions or percentages. Psychometrika, 12(2):153–157, 1947.pubmed.ncbi.nlm.nih.gov/20254758
  34. [38]Gemma Morral, Pascal Bianchi, and Gersende Fort. Success and failure of adaptation-diffusion algorithms with decaying step size in multiagent networks. IEEE Transactions on Signal Processing, 65(11):2798–2813, 2017.DOI
  35. [39]Wenlong Mou, Chris Junchi Li, Martin J. Wainwright, Peter L. Bartlett, and Michael I. Jordan. On linear stochastic approximation: Fine-grained Polyak–Ruppert and non-asymptotic concentration. In Proceedings of Thirty Third Conference on Learning Theory, volume 125 of Proceedings of Machine Learning Research, pages 2947–2997, 2020. URL https://proceedings.mlr.press/v125/mou20a.html.arxiv.org/abs/2004.04719
  36. [40]Angelia Nedić and Alex Olshevsky. Distributed optimization over time-varying directed graphs. IEEE Transactions on Automatic Control, 60(3):601–615, 2015.
  37. [41]Angelia Nedić and Asuman Ozdaglar. Distributed subgradient methods for multi-agent optimization. IEEE Transactions on Automatic Control, 54(1):48–61, 2009. doi: 10.1109/TAC.2008.2009515.DOI
  38. [42]Valentin V. Petrov. Limit Theorems of Probability Theory: Sequences of Independent Random Variables. Oxford University Press, 1995. doi: 10.1093/oso/9780198534990.001.0001.

Paper details

vlnc:W_tbr6bvbn
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

generative AI tools

View statement
Looking for related papers…
Contents