SCAFFOLD under Hessian Similarity: Sharp Convergence Rates
Authors: Zhirayr Tovmasyan, Slavomír Hanzely, Egor Shulgin, Peter Richtárik, Sebastian U. Stich
Organizations: King Abdullah University of Science and Technology (KAUST) · CISPA Helmholtz Center for Information Security · Mohamed bin Zayed University of Artificial Intelligence (MBZUAI)
One of the main challenges of federated learning is heterogeneous data split among the clients, leading to biased local updates called client drift. The SCAFFOLD algorithm (Karimireddy et al., 2020) corrects client drift with control variates, but its relation to the similarity of client data is not yet fully understood: the original similarity-based guarantees cover only quadratics with a stronger second-order similarity assumption, and a follow-up weakly convex analysis (Luo et al., 2025) obtains a Lδ dependence for L-smooth losses with averaged Hessian similarity δ. We analyze SCAFFOLD with minibatch-based control variates and establish linear dependence on Hessian similarity beyond quadratics, for both convex and nonconvex objectives. In particular, for convex objectives with exact gradients, R SCAFFOLD rounds with K local steps lead to an objective gap of order (L/K+δ)D02/R, where D0 is the initial distance to a minimizer. When K=Θ(L/δ), it improves the minibatch SGD rate by a factor Θ(L/δ). For nonconvex objectives, we prove an analogous stationarity guarantee under uniform Hessian similarity for a client-selection variant. In both settings, we extend these guarantees to stochastic gradients and prove matching lower bounds for the analyzed methods with constant local stepsizes. We also show that, under partial participation, even identical clients need not obtain the full communication benefit of additional local steps.
Figures & tables
Method
Communication rounds
Stochastic gradient evaluations a
Exact gradient evaluations b
Minibatch SGD ( Woodworth et al., 2020a, )
εLD02
εLD02+Nε2σ2D02
0
SCAFFOLD, Option II ( Karimireddy et al.,, 2020 , Theorem III)
εLD02
εLD02+Nε2σ2D02
0
FedRed-SGD ( Jiang et al., 2024a, , Theorem 9)
εδD02
εLD02+ε2σ2D02
εδD02
S-DANE with SGD ( Jiang et al., 2024b, , Corollary 21)
εδD02
εLD02+δε2Lσ2D02
εδD02
This work ( B=K )
εδD02
εLD02+ε2σ2D02
0
Table 1: Comparison of communication and computation complexities of stochastic federated learning methods under full participation for achieving E[f(x)]−f⋆≤ε , where 0<ε≤δD02 . We assume that the local objectives are convex and L -Lipschitz smooth ( Assumption 1 ), and satisfy δ -averaged Hessian similarity ( Assumption 3 ), 0<δ≤L . We report upper bounds for the non-accelerated implementations with appropriately chosen number of local steps and minibatch sizes (see Appendix A.11 for details). Computation is measured by the number of stochastic gradient evaluations per client across all communication rounds, including initialization. Constants and logarithmic factors are suppressed. Our analysis improves SCAFFOLD’s communication complexity from order LD02/ε to δD02/ε , matching that of regularized methods without requiring exact-gradient evaluations.
Figure 1: Number of communication rounds deterministic SCAFFOLD needs to reach f(xˉR)−f⋆≤10−5 . Dashed curves use theoretical stepsizes, and solid curves use tuned stepsizes. Our theory predicts that increasing the number of local steps reduces communication until client similarity limits further gains.
Figure 2: Server test accuracies on CIFAR-10 with K=40 for the IID (left) and Dirichlet (right) partitions, reporting means ± standard deviations over three runs. Both SCAFFOLD variants outperform minibatch SGD on the IID partition, but this advantage disappears on the heterogeneous partition.
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
Method / assumptions
Optimization term
Stochastic terms
Minibatch SGD ( Luo et al.,, 2025 , Lemma 1) No similarity assumption; stochastic
RLF0
σNKRLF0
SCAFFOLD a ( Karimireddy et al.,, 2020 ) No similarity assumption; stochastic
RLF0
σNKRLF0
SCAFFOLD b ( Luo et al.,, 2025 ) Averaged similarity; stochastic
(KL+Lδ+ρ)RF0
σNKRLF0+(KR2L2F02σ2)1/3
FedRed-SGD c ( Jiang et al., 2024a, ) Uniform similarity; exact controls
RδˉF0
σRδˉF0
CE-LSGD d ( Patel et al.,, 2022 ) Uniform similarity; two-point oracle
(KLˉ+δˉ)RF0
NKRσ2+(NKRσLˉF0)2/3
This work ( B=K ) Uniform similarity; stochastic
(KL+δˉ)RF0
σKRLF0
Appendix
Table 2: Nonconvex convergence guarantees under full participation. The sum of the last two columns bounds E∥∇f(x)∥2 at the specified output, up to universal constants. Here L=Lloc , F0=f(x0)−finf , and σ2 bounds within-client gradient variance. The parameters δ and δˉ denote averaged and uniform Hessian similarity, respectively. For minibatch SGD, K is the per-client batch size; otherwise it describes local work, subject to the notes below.
Figure 3: Effective stepsizes α=Kηℓ for the quadratic experiment in Figure 1 . Dashed curves use the theoretical rule; solid curves show the tuned choices.
Partition
Method
K
Stepsize
Test accuracy (%)
IID
SCAFFOLD averaging
10
0.1
71.68±1.65
SCAFFOLD selection
10
0.01
53.14±3.18
Minibatch SGD
10
0.01
37.25±3.74
SCAFFOLD averaging
40
0.2
88.54±0.62
SCAFFOLD selection
40
0.01
78.73±0.51
Minibatch SGD
40
0.01
35.88±2.25
Appendix
Table 3: Selected constant stepsizes and test accuracy at round 400 . Accuracies are percentages, reported as mean ± sample standard deviation over three runs.
Figure 4: Additional CIFAR-10 results for K=10 : server test accuracy versus communication rounds (left) and gradient-sample evaluations, including controls (right). Curves show means and bands show sample standard deviations over three runs. Figure 2 and Figure 6 give the corresponding K=40 results.
Figure 5: Server training loss for K=10 (left) and K=40 (right), evaluated without augmentation on the fixed 5,000 -image training subset. Curves show means and bands show sample standard deviations over three runs.
Figure 6: CIFAR-10 with K=40 : server test accuracy versus gradient-sample evaluations, including controls, for IID (left) and Dirichlet (right) partitions. Curves show means and bands show sample standard deviations over three runs.
Figure 7: Averaged and uniform gradient disagreement along the K=40 trajectories, using 256 examples per client and relative radius 10−2 . Curves show means of the three-direction maxima; bands show sample standard deviations over three runs. Vertical axes are logarithmic.
Partition
Method
δavg
δmax
Lloc
Lg
IID
Averaging
0.049±0.003
0.057±0.003
0.061±0.003
0.017±0.001
Selection
0.338±0.017
0.363±0.019
0.406±0.029
0.164±0.026
Minibatch SGD
0.860±0.036
0.884±0.036
1.013±0.018
0.461±0.045
Dirichlet 0.1
Averaging
3.322±0.551
5.642±0.893
7.715±2.328
2.583±1.314
Selection
2.745±0.156
4.519±0.274
5.567±0.687
1.688±0.610
Minibatch SGD
1.434±0.021
2.680±0.168
2.947±0.261
0.513±0.053
Appendix
Table 4: Gradient-difference measurements at round 400 , with relative radius 10−2 and 256 examples per client. Values are means ± sample standard deviations over three runs.
Figure 8: Similarity and global sensitivity relative to local sensitivity at round 400 , using relative radius 10−2 and 256 examples per client. Bars show mean per-seed ratios and error bars show sample standard deviations over three runs. The dashed line represents Lloc/Lloc=1 .
In federated learning, it is well known that heterogeneous data can (in theory) slow down optimization, and much effort has been directed at designing optimization algorithms that are unaffected by data heterogeneity, such as the SCAFFOLD algorithm. Yet, despite strong theoretical guarantees, SCAFFOLD does not usually outperform the much simpler FedAvg in practice. In this work, we propose that this gap is due to the presence of Edge of Stability (EoS) and progressive sharpening in federated optimization, supported by extensive empirical probing. First, we find that EoS-like dynamics occur with both FedAvg and SCAFFOLD under a variety of architectures and hyperparameters. We observe that the equilibrium value of the sharpness is inversely proportional to the learning rate (as in GD), and interestingly, the degree of data heterogeneity (but not the number of local steps) also affects the equilibrium value. Most importantly, we observe that SCAFFOLD's ability to estimate the gradient of the global objective is severely degraded at the EoS, as measured by the correlation between sharpness and SCAFFOLD's error in estimating the global gradient along the optimization trajectory. This suggests a mechanism for SCAFFOLD's lackluster performance in deep learning: with high sharpness at the EoS, SCAFFOLD cannot reliably estimate the global gradient.
Anant Khandelwal, Michael Crawshaw, Mingrui Liu
Georgia Institute of Technology, College of Computing · George Mason University, Department of Computer Science · Flatiron Institute, Center for Computational Mathematics
Federated learning increasingly operates in a large-model regime where communication, memory, and computation are all scarce. Typically, non-IID client data induce drift that degrades the stability and performance of local training. Existing remedies such as SCAFFOLD introduce heterogeneity-correction mechanisms to address this challenge, but they incur substantial extra communication and memory overhead. This paper proposes a subspace optimization method for federated learning (SSF), which performs heterogeneity-corrected optimization in a low-dimensional subspace using only projected quantities, while preserving full-dimensional control information through a backfill-style update that retains residual components whenever the active subspace changes. Under standard smoothness and bounded-variance assumptions, SSF attains a non-asymptotic rate of order O(1/T+1/NKT). Experiments show favorable accuracy--efficiency trade-offs under heterogeneous data.
Local SGD, also known as Federated Averaging, is a widely used distributed optimization algorithm. Although Local SGD often outperforms alternatives such as Mini-batch SGD in practice, theory still only partially explains when and why local updates help under realistic data heterogeneity. Recent work by [Patel et al., 2025] shows that a bounded second-order heterogeneity assumption captures the efficiency of Local SGD for strongly convex objectives, and conjectures that the same principle extends to the general convex setting. In this paper, we prove this conjecture by establishing an improved convergence guarantee for Local SGD on general convex objectives under bounded second-order heterogeneity. We also improve the best-known lower bounds for Local SGD in this setting, showing that our upper bounds are nearly tight. Together, these results provide a sharper, more fine-grained convergence theory for Local SGD. As a further application of our techniques, we provide a lower bound for serial SGD with replacement, showing how second-order heterogeneity captures the impact of rare high-curvature clients.
Kumar Kshitij Patel, Rustem Islamov, Sebastian U Stich +3
Department of Mathematics and Computer Science University of Basel Basel, Switzerland 4001 · Simons Institute for the Theory of Computing, Berkeley · Department of Data Science New Jersey Institute of Technology Newark, NJ, USA 07102