---
title: "Local SGD Converges Fast and Communicates Little — Stich 2018"
description: "How local SGD reduces communication while retaining fast convergence, with its proof, practical tradeoffs, experiments, and limits."
canonical: "https://research.elamur.ai/free/en/papers/stich-2018-local-sgd-converges-fast-communicates/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/stich-2018-local-sgd-converges-fast-communicates/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2018](https://md.research.elamur.ai/free/en/papers/2018/) / Local SGD Converges Fast and Communicates Little

# Local SGD Converges Fast and Communicates Little

Paper · 2018 · Sebastian U. Stich

**Authors:** Sebastian U. Stich · **Year:** 2018 · **Venue:** arXiv (Cornell University) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**191** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2803867449) · arXiv (Cornell University) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [arXiv 1805.09767](https://arxiv.org/abs/1805.09767)
- [OpenAlex](https://openalex.org/W2803867449)

## Deep dive: Local SGD Converges Fast and Communicates Little

How local SGD reduces communication while retaining fast convergence, with its proof, practical tradeoffs, experiments, and limits. · about 35 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

Distributed training can waste much of its time keeping workers in agreement. Each worker may compute a useful update quickly, then wait while information travels across the network. Local stochastic gradient descent, or local SGD, changes that arrangement: workers take several independent optimization steps before combining their parameter vectors. The paper asks when this reduction in communication preserves the computational advantage of parallel training.

Its main finding is a convergence guarantee for smooth, strongly convex objectives. Smoothness limits how quickly gradients can change, while strong convexity gives the objective a controlled curvature around its minimum. Under these assumptions, with bounded gradient variability and suitable learning rates, local SGD can achieve the same leading convergence rate as parallel mini-batch SGD. Increasing the number of workers or the local mini-batch size improves that leading rate linearly, provided workers synchronize often enough. The result concerns optimization error as a function of gradient computations; translating it into elapsed time requires assumptions about communication costs.

The central tradeoff is expressed through the maximum interval between synchronizations. A longer interval saves communication but lets the workers’ parameter vectors move apart. The proof shows that averaging still reduces stochastic noise even when gradients are evaluated at different local positions. It then bounds the additional error caused by those different positions. When the synchronization interval stays within the derived limit, this extra error does not spoil the leading convergence rate. For suitable settings, communication rounds can therefore be reduced by a factor growing with the square root of the training horizon.

The paper also extends the analysis to asynchronous local SGD, where workers need not exchange information together. Here, both local computation intervals and delays in receiving other workers’ updates contribute to the error bound. Numerical illustrations use regularized logistic regression on w8a and examine the interaction between worker count, local mini-batch size, target accuracy, and synchronization interval. Their timing comparisons assume a communication cost rather than measuring performance across a physical cluster.

The scope matters. The strongest theorem applies to a weighted average of the optimization trajectory, under strongly convex assumptions. It does not establish a corresponding guarantee for non-convex objectives, unrestricted communication delays, arbitrary distributions of data across workers, or averaging only after independent runs have finished. Its contribution is a clear explanation of when intermittent agreement can retain the statistical benefit of parallel SGD while requiring substantially fewer exchanges.

### Ideas worth borrowing

Separate useful computation from coordination. The paper treats communication frequency as a design choice that can be adjusted independently of the local mini-batch size. Both choices increase the work performed between exchanges, but they do so differently: a larger mini-batch improves a gradient estimate at a fixed position, whereas local steps move the worker through parameter space. This distinction is useful whenever a distributed algorithm spends substantial time coordinating. Before increasing the size of each computational unit, it is worth asking whether several useful state changes can occur between coordination events.

Analyze an invisible reference trajectory. The proof introduces the mean of all local parameter vectors, including at times when the algorithm never actually computes that mean. This virtual trajectory makes a complicated distributed process easier to understand. Its evolution resembles ordinary SGD, with an additional term accounting for disagreement among workers. The same reasoning pattern can help analyze algorithms with delayed, partial, or decentralized information: define a clean reference process, then measure the distance between the implemented process and that reference.

Keep random noise separate from positional disagreement. Local SGD has two different difficulties. Stochastic gradients fluctuate around their expected values, and workers evaluate those gradients at different positions. The paper handles these effects with separate bounds. Independent sampling gives variance reduction, while a bound on local movement controls disagreement. This separation is reusable because it identifies which assumption supports which conclusion. Better sampling addresses noise; more frequent coordination addresses divergence. Treating both effects as one undifferentiated error would hide these distinct engineering choices.

Read the lower-order terms before choosing a schedule. The asymptotic result favors parallelism, but the full bound contains penalties involving the communication interval and the number of iterations. Those penalties can matter when training stops early. This is a useful habit beyond distributed optimization: an asymptotically favorable method may require a long enough run before its leading term becomes decisive. A practical schedule should reflect the intended accuracy and available horizon, rather than only the eventual rate.

Distinguish algorithmic speedup from elapsed-time speedup. The paper first studies how many gradient evaluations are needed, then adds an explicit communication-cost assumption. This keeps the optimization result separate from the systems prediction. The distinction applies to [GPU and parallel computing](https://md.research.elamur.ai/free/en/topics/gpu-parallel-computing/) more broadly: a method may use parallel work efficiently while still losing time to data movement or coordination. Reporting both the computational argument and the timing assumptions makes a performance claim easier to assess and transfer.

Treat logical sequences as movable work. In the asynchronous discussion, a local optimization sequence does not have to remain attached to one physical worker. A faster worker can help advance a sequence that is falling behind. This suggests a general approach to heterogeneous execution: preserve the identity and bookkeeping of the algorithmic state while allowing the machine performing its next update to change. The paper presents this as an implementation principle and a simple load-balancing illustration, rather than as a measured systems result.

### How Mova uses it

For Mova, the small transparent language system written in Rust, this paper offers a possible training design and a way to reason about its costs. It does not establish that Mova already implements local SGD. The concrete connection is conditional: if Mova trains differentiable components through stochastic gradient updates on several workers, those workers could perform local updates before periodically combining their parameter vectors.

A transparent implementation could expose the quantities that the paper makes central: the number of local sequences, the local mini-batch size, the synchronization interval, the learning-rate schedule, and the rule used to produce the final parameters. These choices have different mathematical roles. Keeping them visible would make it possible to explain whether a change saves communication, reduces gradient noise, or changes the amount of disagreement tolerated between workers.

The strongest direct application would be to a training objective satisfying the theorem’s assumptions. If a Mova component had a smooth, strongly convex loss and the required bounds on stochastic gradients, the analysis could guide a synchronization schedule. The guarantee would still depend on matching the sampling procedure, learning rates, and output averaging rule. Rust implementation alone would neither supply those assumptions nor make the theorem applicable.

For a component with a non-convex objective, local SGD would remain an experimental option. The paper motivates that direction but does not prove its main convergence result there. A useful Mova investigation could compare frequent synchronization with longer local runs while recording optimization progress and communication activity separately. Such a comparison would test whether reduced coordination compensates for any extra optimization work in Mova’s actual setting.

The distinction between logical sequences and physical workers is also relevant as a design idea. If execution resources differ in speed, a scheduler could allow an available worker to advance another sequence while preserving that sequence’s state and update history. The paper’s asynchronous analysis indicates why bookkeeping about missing updates and delays would matter. It does not justify arbitrary rescheduling without those controls.

The paper also supports a restrained implementation strategy. A distributed optimizer needs more than a synchronization interval: it needs a defined aggregation operation, a consistent account of which updates have been incorporated, and a clear output rule. For Mova, these are inspectable mechanisms that could be documented alongside measurements. They are proposed applications of the paper’s reasoning, not claims about features already built or performance already achieved.

Finally, the paper gives Mova a useful reporting discipline. A reduction in synchronization count would be evidence about communication frequency. A reduction in gradient evaluations would be evidence about optimization efficiency. A reduction in elapsed time would require a timing measurement or an explicit cost assumption. Keeping those statements distinct would fit a system whose behavior is intended to remain understandable.

### The problem and its context

#### Why parallel SGD can spend time waiting

Stochastic gradient descent is a basic method for [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/) optimization. It updates a parameter vector using a gradient estimate derived from a sampled part of the objective. Computing such estimates independently on several workers is straightforward. Combining them can reduce randomness and improve progress per parallel iteration.

The difficulty is that ordinary parallel SGD requires the workers to agree on the next parameter vector after every iteration. A worker’s gradient contributes to a shared update, and the resulting parameters must be available before the next synchronized computation begins. Communication therefore sits directly in the optimization loop. If moving information takes much longer than calculating a gradient, additional workers may provide far less elapsed-time benefit than the gradient-count analysis suggests.

The paper describes communication as an important obstacle in distributed training and places its contribution among methods intended to reduce that obstacle. Its starting point is not that parallel SGD lacks a convergence theory. The missing piece is whether a less tightly synchronized alternative can retain the same useful dependence on the number of workers.

Mini-batching provides a familiar way to perform more computation between exchanges. Each worker evaluates several stochastic gradients and combines them before communication. This increases the amount of local work associated with an exchange. The introduction describes mini-batch parallel SGD as a standard approach in distributed training frameworks.

However, the paper also reports that earlier studies found limits to simply increasing batch size. Larger batches do not always translate into proportionate practical improvements, and performance can deteriorate when batches become too large. These observations motivate a separate control: allow parameters to change locally between exchanges, instead of keeping the parameters fixed while computing a larger gradient estimate.

#### What intermittent averaging changes

Local SGD gives every worker its own parameter vector. After a synchronization, those vectors agree. Each worker then follows its own sequence of stochastic updates until another averaging event resets them to a common value.

This changes the optimization process in a consequential way. Ordinary mini-batch SGD combines gradients evaluated at the same parameter vector. Local SGD eventually combines parameter vectors produced by gradients evaluated along different paths. The latter process is not automatically equivalent to taking a larger batch at a shared point.

The paper emphasizes a subtle theoretical gap. Convexity ensures that averaging candidate points cannot make the objective worse than their average objective value. But that observation alone does not prove a parallel speedup. If each independent run has an error bound that does not improve with worker count, applying convexity to their average preserves that bound without creating the desired dependence on the number of workers.

The authors therefore need a stronger argument than “averages are beneficial on convex objectives.” They must show that intermittent interaction allows the process to preserve variance reduction while preventing local paths from separating enough to dominate the error.

This is why the frequency of communication is the central question. Synchronizing at every step recovers an already understood algorithm. Synchronizing only at the end gives a very different extreme. The interesting regime lies between them: enough independence to save communication, enough agreement to retain computational efficiency.

#### Earlier forms of averaging

The introduction describes one-shot SGD as an extreme case in which workers exchange their results only after their local runs are complete. It cites earlier statistical convergence analyses but explains that some of those analyses restrict attention to at most a single pass through the data. The paper regards that restriction as insufficient for a general account of reducing training error.

It also places local SGD alongside iterative parameter mixing for perceptron training, periodic averaging in neural-network training, and related practices in federated learning. These connections establish that intermittent averaging was already used in practice. The contribution is a concise convergence analysis explaining a nontrivial range in which it achieves linear computational speedup.

Elastic averaging is distinguished from the mechanism studied here. In elastic averaging, an average guides local trajectories without necessarily replacing them outright. Local SGD instead performs a hard synchronization: at an averaging event, the participating trajectories are reset to the aggregate. That reset is important to the disagreement analysis because it supplies a recent point at which the local states coincide.

The paper also discusses work suggesting that communication should be more frequent early in optimization. That practical observation fits its theoretical concern with finite horizons. A communication interval that is harmless late in a long run may impose a substantial error penalty when only a limited number of iterations are available.

#### Other ways to reduce communication costs

The related-work discussion separates local SGD from compression. Compression reduces the amount of information transmitted in an exchange, for instance through limited precision, quantization, or sparsification. Local SGD reduces how often exchanges happen. These approaches address different parts of the communication burden.

The paper also distinguishes its method from conventional asynchronous SGD. In the latter, gradients are associated with a largely shared parameter sequence and may be applied after a delay. Local SGD maintains separate evolving sequences. A worker’s gradient is computed from its own current state, which may differ from the states used by other workers.

That distinction matters to the proof. A theory designed for delayed access to one common trajectory does not automatically analyze independent local trajectories. The paper’s virtual-average construction supplies a way to represent the latter process without pretending that all workers use the same parameters.

Finally, the authors situate their guarantee among contemporary analyses of non-convex local SGD. They describe work establishing convergence or speedup under more restrictive synchronization conditions. Their own principal result concerns strongly convex optimization. The relationship is one of related questions under different assumptions, rather than a universal claim covering every training objective.

### The method, step by step

#### Begin with the optimization objective

The paper studies an objective formed by averaging component losses:

```
f(x) = (1/n) ∑ᵢ₌₁ⁿ fᵢ(x)
```

Here, x is the parameter vector, n is the number of component functions, fᵢ is the component indexed by i, and f is the complete objective. In a learning problem, a component can correspond to the loss associated with a sampled training example. The parameter vector belongs to a space with dimension d.

The optimization target is written as:

```
x⋆ = argminₓ∈ℝᵈ f(x)
```

The symbol x⋆ denotes a minimizing parameter vector, argmin selects a minimizer, and ℝᵈ is the space of real-valued vectors with dimension d. The value attained there is:

```
f⋆ = f(x⋆)
```

The scalar f⋆ is the reference optimum used to define optimization error. The paper’s guarantees concern the expected gap between the objective at an output point and this optimum.

The assumptions on f are central. Smoothness is expressed by:

```
f(y) ≤ f(x) + ⟨∇f(x), y − x⟩ + (L/2) ‖y − x‖²
```

The vectors x and y are candidate parameter settings. The symbol ∇f(x) is the full gradient at x, angle brackets denote an inner product, and ‖·‖ denotes the Euclidean norm. The constant L controls the quadratic upper bound on how much the objective can rise relative to its local linear approximation.

Strong convexity supplies the corresponding lower bound:

```
f(y) ≥ f(x) + ⟨∇f(x), y − x⟩ + (μ/2) ‖y − x‖²
```

The positive constant μ measures the curvature required by the theorem. Unlike smoothness, which limits rapid variation, this condition ensures a sufficiently curved objective around its optimum. Both assumptions are used in establishing the principal convergence guarantee.

The ratio of these constants is:

```
κ = L/μ
```

The symbol κ is the condition number used in the learning-rate restrictions and error bounds. It summarizes the relationship between the upper and lower curvature controls.

#### Understand the underlying stochastic update

An ordinary SGD step has the form:

```
xₜ₊₁ = xₜ − ηₜgₜ
```

The subscript t identifies an iteration. The vectors xₜ and xₜ₊₁ are the parameters before and after the update, ηₜ is the positive learning rate, and gₜ is a stochastic gradient estimate.

The estimate is unbiased in the following sense:

```
E[gₜ] = ∇f(xₜ)
```

The expectation E is over the random sampling used to construct the gradient. This equality says that the sampling noise averages out around the full gradient at the current parameters. It does not say that an individual sampled gradient equals the full gradient.

In the finite-sum setting, the algorithm samples a component index uniformly and evaluates that component’s gradient. With several workers, each worker performs its own sampled update. Their independent sampling is what later supports the variance-reduction argument.

The paper initially describes the algorithm with a local mini-batch size of b = 1. It then explains how a larger b changes the variance term. Keeping that distinction clear is useful: the worker count and the local mini-batch size both reduce stochastic variability, while the synchronization interval controls how long parameter trajectories evolve separately.

#### Create local trajectories and synchronize selectively

Let K denote the number of parallel sequences. Worker k maintains a vector xₜᵏ, where k identifies the sequence and t its local iteration. All sequences begin from the same initial point.

The procedure can be viewed as a local proposal followed, at selected times, by averaging:

Local updates with intermittent agreement The steps in order.

Between exchanges, a worker applies:

```
xₜ₊₁ᵏ = xₜᵏ − ηₜ∇fᵢₜᵏ(xₜᵏ)
```

Here, xₜᵏ is worker k’s parameter vector, ηₜ is the learning rate at iteration t, and iₜᵏ is its randomly sampled component index. The expression ∇fᵢₜᵏ(xₜᵏ) is the gradient of that sampled component evaluated at the worker’s own parameters.

At a synchronization step, each worker receives the same averaged update:

```
xₜ₊₁ᵏ = (1/K) ∑ₕ₌₁ᴷ [xₜʰ − ηₜ∇fᵢₜʰ(xₜʰ)]
```

The summation index h runs over the local sequences. The bracketed term is the parameter vector each sequence would have after its current SGD step. Averaging those proposals makes all synchronized sequences identical again.

A set of synchronization indices specifies when this replacement happens. The final iteration belongs to that set, ensuring an exchange at termination. The paper measures the schedule through its largest interval between consecutive synchronization points, bounded by H.

This formulation allows schedules that are not perfectly periodic. What matters to the theorem is an upper bound on the gap, rather than an obligation to exchange information after exactly the same number of steps every time.

When H = 1, synchronization occurs at each iteration, and the procedure becomes ordinary parallel mini-batch SGD. At the other extreme, setting H = T corresponds to averaging only at the end of a run with T iterations. The algorithmic definition includes that extreme, but the paper’s main bound does not provide a useful convergence account for it.

For the initial presentation with a single sampled gradient per worker and iteration, total gradient evaluations are TK. When a worker evaluates a local mini-batch, b describes the number of sampled gradients contributing to its update. The paper’s asymptotic discussion explicitly includes that local batch size.

#### State the stochastic assumptions separately

The analysis distinguishes gradient variance from gradient magnitude. Its variance assumption is:

```
Eᵢ ‖∇fᵢ(xₜᵏ) − ∇f(xₜᵏ)‖² ≤ σ²
```

The expectation Eᵢ is over the sampled component index. The quantity inside the norm is the difference between a component gradient and the full gradient at the same local position. The constant σ² bounds the expected squared size of that sampling noise.

The second-moment assumption is:

```
Eᵢ ‖∇fᵢ(xₜᵏ)‖² ≤ G²
```

The constant G² bounds the expected squared magnitude of the stochastic gradient itself. This is different from σ² because a gradient can have a substantial mean as well as random variation around that mean.

The variance bound supports the benefit of averaging independent gradient noise. The second-moment bound controls how far a worker can move during several local updates. This division of labor is the reason both quantities appear in the theorem.

A larger local mini-batch reduces the variance bound used by the analysis:

```
σ² → σ²/b
```

The symbol b is the local mini-batch size. The substitution describes how the theorem is extended from a single sampled gradient to an average of independently sampled gradients within each worker’s update. It does not eliminate the separate disagreement term involving G² and H.

#### Choose a decaying learning rate

The theorem uses the schedule:

```
ηₜ = 4/[μ(a + t)]
```

The learning rate ηₜ decreases with iteration t. The positive shift a controls its initial size, and μ is the strong-convexity constant.

The theorem requires:

```
a > max{16κ, H}
```

The maximum selects the larger of the curvature-dependent requirement and the synchronization-gap requirement. The condition involving κ keeps the steps sufficiently small for the smoothness argument. The condition involving H ensures the learning rate does not change too sharply over a local interval.

These restrictions explain why the proof does not treat communication frequency independently of optimization dynamics. A long local interval must remain compatible with the steps taken during that interval. If workers move too far before averaging, disagreement can dominate the benefit of independent sampling.

The numerical experiments later consider a broader search over learning rates. Their best reported settings therefore illustrate practical behavior instead of serving as a direct implementation of this exact theoretical schedule in every configuration.

#### Define the output that the theorem guarantees

The theorem concerns a weighted average over workers and iterations:

```
x̂_T = (1/[K S_T]) ∑ₖ₌₁ᴷ ∑ₜ₌₀ᵀ⁻¹ wₜxₜᵏ
```

The vector x̂_T is the guaranteed output after T iterations. The weights wₜ determine the contribution of each timestep, and S_T normalizes their sum. The factor K also averages across local sequences.

The weights increase quadratically:

```
wₜ = (a + t)²
```

The same shift a used in the learning-rate schedule appears here. Later iterates receive more weight, reflecting the averaging construction used to obtain the convergence bound.

The normalization is:

```
S_T = ∑ₜ₌₀ᵀ⁻¹ wₜ ≥ T³/3
```

The scalar S_T is the total temporal weight. Its cubic growth is important when reading the terms in the theorem: numerators that grow at different rates in T become error contributions with different decay rates after division by S_T.

This output rule is more demanding than simply returning the last synchronized parameters. The authors explicitly distinguish the theorem from a guarantee for the individual local sequences. They also explain that a running weighted average can be maintained recursively, so the rule does not require storing every intermediate vector.

#### Read the full convergence statement

Under the stated assumptions, the synchronous theorem gives:

```
E[f(x̂_T)] − f⋆ ≤ [μa³/(2S_T)] ‖x₀ − x⋆‖² + [4T(T + 2a)/(μKS_T)] σ² + [256T/(μ²S_T)] G²H²L
```

The left side is expected optimization error. The vector x₀ is the common initialization, x⋆ is an optimum, and f⋆ is the optimal objective value. All remaining symbols have been introduced: μ and L describe curvature, a controls the schedule, S_T normalizes the output average, K is the number of sequences, σ² bounds gradient noise, G² bounds stochastic-gradient magnitude, and H limits the synchronization gap.

The first term carries the effect of initialization. It depends on the squared distance from the starting point to an optimum. The second term is the stochastic-variance contribution, with its explicit improvement as K grows. The final term is the additional cost of allowing workers to move independently.

The H² factor is the central warning in that last term. Communication savings do not come without an optimization penalty. The theorem succeeds by showing that this penalty decays quickly enough with the training horizon when H is chosen appropriately.

The authors do not claim to have optimized the numerical constants or every lower-order contribution. Their asymptotic corollary makes the important dependencies easier to inspect:

```
E[f(x̂_T)] − f⋆ = O(1/(μKT) + (κ + H)/(μKT²)) σ² + O(κH²/(μT²) + (κ³ + H³)/(μT³)) G²
```

The notation O suppresses fixed multiplicative constants. The displayed terms retain the dependence on the worker count K, horizon T, curvature quantities μ and κ, synchronization interval H, gradient variance σ², and second-moment bound G².

With local mini-batches, the substitution involving b reduces the variance contribution. For a sufficiently long run and non-zero stochastic variance, the leading dependence becomes:

```
E[f(x̂_T)] − f⋆ = O(1/(KTb))
```

Here, K counts workers, T counts local iterations, and b is the local mini-batch size. The expression suppresses the objective-dependent quantities discussed above. It states the computational scaling of the leading error term, rather than a complete finite-time timing prediction.

To preserve that scaling, the synchronization interval must satisfy:

```
H = O(√(T/(Kb)))
```

This condition permits H to grow with the horizon but restricts it as the number of workers or local batch size grows. The resulting communication reduction is relative to a method that exchanges information every iteration. It is a sufficient condition derived from this analysis, not a demonstrated sharp boundary for every objective.

#### Understand why the proof works

The proof begins with a virtual average:

```
x̄ₜ = (1/K) ∑ₖ₌₁ᴷ xₜᵏ
```

The vector x̄ₜ is the mean of all local states at time t. It need not be physically computed between communication events. At a synchronization, it coincides with each local vector.

The average sampled gradient is:

```
gₜ = (1/K) ∑ₖ₌₁ᴷ ∇fᵢₜᵏ(xₜᵏ)
```

The vector gₜ combines the sampled gradients computed along the separate local trajectories. It differs from an ordinary mini-batch gradient evaluated at a shared point because its component gradients may use different parameters.

Its corresponding average full gradient is:

```
ḡₜ = (1/K) ∑ₖ₌₁ᴷ ∇f(xₜᵏ)
```

The vector ḡₜ removes sampling noise while retaining the different local evaluation points. Conditional on those points, the sampled average has this full-gradient average as its expectation.

The virtual sequence evolves according to:

```
x̄ₜ₊₁ = x̄ₜ − ηₜgₜ
```

The symbols describe the same update structure as SGD, now applied to the virtual average. This identity holds whether the current iteration ends in an explicit synchronization or in separate local updates.

Independent sampling yields:

```
E ‖gₜ − ḡₜ‖² ≤ σ²/K
```

The difference gₜ − ḡₜ is the averaged stochastic noise. The variance reduction survives even though workers evaluate gradients at different local parameters. This is a key point: equality of the parameters is not required for independent zero-mean noise contributions to average down.

However, ḡₜ need not equal the full gradient at x̄ₜ. The proof must therefore account for the workers’ distances from that average. The synchronous disagreement bound is:

```
(1/K) ∑ₖ₌₁ᴷ E ‖x̄ₜ − xₜᵏ‖² ≤ 4ηₜ²G²H²
```

The left side measures mean squared disagreement across local sequences. The right side depends on the current learning rate, the stochastic-gradient second-moment bound, and the maximum number of steps since synchronization.

The reasoning starts from the latest common point. Each worker has taken at most H updates since then. The bounded gradient magnitude limits how far those updates can carry it, while the learning-rate condition relates earlier steps in the interval to the current step size.

Smoothness then converts positional disagreement into an objective-related penalty. Strong convexity supplies contraction towards the optimum. The resulting one-step inequality contains a beneficial optimization term, a variance term, and a disagreement term.

Finally, quadratic temporal weighting combines these inequalities across the run. Convexity allows the objective at the weighted output to be bounded by the corresponding weighted objective values along the virtual sequence. The full theorem is the result of bringing those ingredients together.

#### Extend the construction to asynchronous execution

In the asynchronous version, workers have separate exchange schedules. They report updates to an aggregate and may read different aggregate states at different times. The notation records which updates from each sequence are already visible when a worker performs a read.

The extra control is a delay parameter τ. The bounded-delay condition requires sufficiently old updates to have become visible. This does not force every worker to read the same aggregate at the same moment, but it prevents information from remaining absent indefinitely.

The learning-rate shift now needs to accommodate both sources of separation:

```
a > max{16κ, H + τ}
```

The variable H still bounds the local synchronization interval, and τ bounds the missing-update delay. Their sum controls how far a local state can lag behind the virtual reference used in the proof.

The asynchronous disagreement lemma gives:

```
(1/K) ∑ₖ₌₁ᴷ E ‖x̄ₜ − xₜᵏ‖² ≤ 12ηₜ²G²(H + τ)²
```

The left side has the same interpretation as in the synchronous case. The larger coefficient and the combined interval reflect the more complicated separation between a worker’s current parameters, its last read of the aggregate, and the ideal reference trajectory.

The resulting asymptotic condition is:

```
H + τ = O(√(T/K))
```

The paper states this condition for the asynchronous presentation without the additional local mini-batch factor. For a sufficiently long run, it supports the same dependence on workers and iterations as the synchronous result.

This extension also motivates load balancing. A physical worker may advance a logical sequence that would otherwise lag behind. The important mathematical requirement remains bounded separation and bounded delay, instead of a permanent assignment of each sequence to one machine.

### Experiments and results

#### A numerical illustration with a convex objective

The experimental study uses regularized logistic regression on the w8a dataset. The dataset has n = 49,749 examples and d = 300 features. Its role is to provide a concrete optimization problem for examining the theoretical tradeoff between local computation and synchronization.

The objective is:

```
f(x) = (1/n) ∑ᵢ₌₁ⁿ log(1 + exp(−bᵢaᵢᵀx)) + (λ/2) ‖x‖²
```

The vector aᵢ contains the features of example i, bᵢ is its binary label, and x is the parameter vector. The transpose in aᵢᵀx forms the feature–parameter inner product. The coefficient λ controls quadratic regularization, while n is the number of examples.

The experiment sets λ = 1/n. The labels take values from {−1, +1}. Though b denotes local mini-batch size elsewhere in the paper, the subscripted bᵢ in this objective denotes a label. These roles are separate.

Every run starts with the parameter vector set to zero. The central measurement is how many iterations are needed to reach a specified objective gap. The study also tracks stochastic-gradient evaluations, allowing the authors to connect optimization progress to the work performed.

This is an optimization experiment. The paper does not report predictive accuracy on a held-out split as its central outcome. The target is closeness to a numerically determined optimum of the training objective.

#### What reaching the target means

The experiments use target gaps ε = 0.005 and ε = 0.0001. They compare the objective value of a candidate output with the numerical reference f⋆ = 0.126433176216545.

The stopping criterion is:

```
f(yₜ) − f⋆ ≤ ε
```

The vector yₜ is a candidate output at iteration t, f⋆ is the numerically determined reference optimum, and ε is the target optimization error. A smaller ε asks the optimizer to get closer to that reference value.

The paper evaluates several possible outputs: the current iterate, a uniform trajectory average, an average with linearly increasing weights, and an average with quadratically increasing weights. A configuration is counted as having reached the target when any of these choices satisfies the criterion.

That procedure matters when interpreting the results. The theorem singles out a particular weighted average. The experiment gives each setting several opportunities to meet the target. It therefore evaluates the practical performance of the training procedure together with output selection, instead of isolating the exact theorem-defined output.

The stricter target generally requires a longer optimization horizon. This makes the pair of targets useful for examining the paper’s central finite-time distinction: a synchronization interval can be costly during a short run yet become more favorable when considerably more optimization is required.

#### Which configurations are compared

The figures vary the number of workers K and the communication interval H. Local mini-batch sizes include b = 4 in the main numerical illustration, with additional results for b = 1 and b = 16.

The meaningful baseline within this family is H = 1, which synchronizes every iteration and therefore recovers parallel mini-batch SGD. A single-worker SGD run supplies the reference for the speedup calculation. Longer intervals test the proposed reduction in communication frequency.

These comparisons address separate questions. Varying K tests how increased parallelism interacts with local disagreement and communication overhead. Varying H tests how much independence the optimizer can tolerate before the extra iterations outweigh communication savings. Varying b changes gradient noise within each worker’s update.

The paper does not use a single fixed learning rate across all these settings. It searches for a favorable rate separately for each combination of worker count, synchronization interval, batch size, and target accuracy. This makes the comparison more informative about what a tuned setting can achieve, while also making it less representative of an untuned deployment.

#### Learning-rate selection

The search includes a decaying family:

```
ηₜ = min(32, cn/(t + 1))
```

Here, ηₜ is the learning rate at iteration t, n is the number of training examples, and c is a tunable positive scale. The minimum caps the initial learning rate at 32.

It also includes a constant family:

```
ηₜ = 32c
```

The scale c is selected from powers of 2. The paper uses a grid search and checks neighboring scales to determine whether a candidate is preferable in terms of iterations required to reach the target.

The reported setting is the best found across these learning-rate families and the candidate output averages. Accordingly, the experimental comparison is favorable to each configuration after tuning. It does not demonstrate that an arbitrary learning rate can be combined safely with an arbitrary synchronization interval.

This distinction also prevents a mistaken reading of the theorem. The theoretical schedule is chosen to make the convergence argument work under its assumptions. The experimental schedules are chosen to illustrate practical performance on the selected logistic-regression objective. Agreement between the broad trends supports the interpretation of the bound without validating every constant or schedule restriction.

#### How the timing comparison is constructed

The paper distinguishes optimization work from communication time. In an exchange, it counts 2(K−1) transmitted vectors. With a regular interval H over T iterations, the number of communication rounds is T/H.

The parameter ρ represents the cost of communicating a vector relative to computing a stochastic gradient. The numerical speedup illustrations assume ρ = 25. The text also discusses a practical range of 10–100, with potentially greater costs on slow networks.

The resulting theoretical speedup expression is:

```
S(K) = K / [(1/2 + (1/2)√(1 + ε(1 + H + H²K))) (1 + 2ρ(K − 1)/H)]
```

The quantity S(K) compares the estimated time on K machines with the single-machine SGD reference. The target error is ε, H is the synchronization interval, and ρ is the communication-to-gradient cost ratio.

The expression contains two separate penalties. The factor involving ε, H, and K reflects the iteration count estimated from the convergence bound. The factor involving ρ reflects communication overhead. Increasing H helps the communication factor while potentially worsening the optimization factor.

The timing calculation uses an approximation derived from the bound, instead of a universal law of runtime. Its purpose is to make the competing effects visible. The authors examine a limiting theoretical case with ε = 0 as well as positive target errors, using the former to represent the behavior of very long runs.

For empirical convergence, large worker counts can be simulated through virtual workers because synchronous averaging is deterministic once the sampled updates are specified. The paper explicitly reports using this approach. The resulting communication-adjusted speedups should therefore be understood as numerical illustrations with an assumed exchange cost, rather than measurements of an actual networked cluster.

#### What the results establish

The qualitative outcome agrees with the theory’s tradeoff. Longer local intervals can reduce the negative effect of communication on scaling. However, the interval giving the best outcome depends on worker count and the amount of optimization needed.

For long horizons, the theoretical restriction on H becomes less severe. The authors consequently favor larger intervals when training requires many passes through the data or uses a relatively small cluster. In shorter runs, the worker-dependent restriction becomes visible in the experiments: increasing parallelism makes an overly long local interval more costly.

The paper also reports that synchronizing every iteration is unfavorable in its theoretical illustration for small worker counts under the assumed communication cost. This is a statement about that calculation and its assumptions. It is not evidence that every application benefits from skipping synchronization.

The numerical results are presented as speedup plots rather than a table of explicit peak values. The text does not state a numerical maximum speedup for each configuration. The supported quantitative account is therefore the experimental setup, target gaps, local batch settings, assumed communication ratio, and the formulas used to construct the comparisons. Assigning exact speedup values to individual plotted curves would go beyond the stated measurements.

The main empirical contribution is thus an illustrated dependency: the communication interval should be chosen jointly with worker count and intended accuracy. The experiment supports that design principle on the selected convex problem. It does not establish a single interval that is optimal across objectives, hardware arrangements, or training budgets.

### What the ablations show

The paper offers controlled numerical comparisons and analytical decompositions rather than a conventional collection of component-removal ablations.

#### Synchronization frequency isolates the main tradeoff

Changing H while holding the other configuration choices fixed is the most direct test of the method’s central idea. A larger H reduces communication events but allows local trajectories to separate for longer. The experiments examine the combined effect through iterations to the target and communication-adjusted speedup.

The important result is not that more local work is always better. The finite-horizon comparisons show why a large interval can lose its advantage. If extra disagreement causes enough additional optimization work, saving exchanges is insufficient.

This interpretation follows the theorem’s decomposition. The variance contribution improves with parallelism, while the local-deviation contribution grows with the synchronization interval. The controlled comparison therefore tests the balance between two terms that the proof identifies separately.

#### Worker count changes the acceptable interval

Varying K shows that the communication schedule cannot be selected without regard to parallelism. The asymptotic condition allows less local separation as the worker count increases, holding the horizon and local batch size fixed.

This may seem counterintuitive if communication is considered alone. More workers increase the cost of coordination, making communication savings attractive. Yet they also reduce the leading stochastic error term, so the additional error caused by local movement must remain small relative to a stronger parallel baseline.

The paper’s analysis makes these pressures visible at the same time. The numerical illustration then shows that the preferred interval changes with worker count when the run is finite. A schedule that works well on a smaller deployment need not retain its advantage on a much larger one.

#### Target accuracy probes the finite-horizon effect

The target gaps ε = 0.005 and ε = 0.0001 create different stopping demands on the same logistic-regression problem. This is not a change of dataset or predictive task. It changes how close optimization must get to the same reference optimum.

That comparison is useful because the theorem’s favorable leading term emerges only after the initialization and disagreement contributions become sufficiently small. A demanding target can require the longer horizon in which intermittent communication becomes easier to accommodate.

The authors use this reasoning to motivate adapting the communication schedule when the total horizon is unknown. Earlier work described in the paper had found benefits from more communication near the beginning. The current analysis supplies a compatible explanation: short effective horizons justify tighter coordination.

#### Local batch size probes noise reduction

The additional experiments with b = 1 and b = 16 complement the main illustration with b = 4. They test how local SGD behaves when the amount of gradient averaging within a worker changes.

The theory assigns a specific role to that change. Increasing b reduces the variance contribution, while the local-deviation analysis remains a separate issue. This is why increasing batch size and increasing the communication interval should not be treated as interchangeable operations.

The experiments do not establish an unrestricted benefit from either choice. The paper’s broader message is that both controls face limits, and their useful ranges depend on the optimization horizon. The comparison helps make that interaction concrete without claiming a universal tuning rule.

#### The proof isolates the cost of asynchrony

The synchronous and asynchronous disagreement lemmas provide a controlled analytical comparison. After removing their common scale factors, the remaining numerical coefficients are:

Synchronous and asynchronous local SGD disagreement-bound coefficients The asynchronous analysis gives a looser bound and includes update delay in the interval term.

**The numbers**

| System or setting | coefficient after removing the stated scale factors |
| --- | --- |
| Synchronous local SGD (this paper) | 4 |
| Asynchronous local SGD | 12 |

These values are coefficients in upper bounds, not measured errors or runtime results. The synchronous bound multiplies its coefficient by ηₜ²G²H². The asynchronous bound instead uses ηₜ²G²(H+τ)², so the comparison involves both the coefficient and the addition of delay to the effective interval.

The chart therefore does not show that asynchronous execution is empirically worse. It shows that the proof must allow more deviation when workers read different aggregate states. An asynchronous implementation could still improve elapsed time by reducing waiting, provided its delays remain controlled.

This analytical comparison also identifies what the extension preserves. The variance-reduction argument continues to apply, while the disagreement bound changes. That is a useful explanation of where asynchrony enters the mathematics, instead of treating the asynchronous algorithm as an completely separate optimization method.

### Limitations

#### Author-stated limits of the guarantee

The authors explicitly restrict the main convergence result to smooth, strongly convex objectives. They discuss non-convex optimization as an important extension and point to related analyses, but they do not provide their own corresponding main theorem for that setting.

This restriction is substantial for applications. The proof uses strong convexity to obtain contraction and smoothness to relate gradient behavior to objective progress. The fact that one disagreement lemma does not require those assumptions is encouraging for reuse, but it does not make the entire convergence theorem independent of them.

The analysis also relies on a bound on the expected squared magnitude of stochastic gradients. The conclusion identifies relaxing that assumption as future work. Because the bound controls how far local trajectories can move, removing it would require a different account of disagreement or a replacement assumption.

The authors acknowledge that their constants and lower-order terms are not tightly optimized. They also say that extreme choices of parameters are not handled sharply. The asymptotic communication condition should therefore be read as a sufficient regime established by the proof, instead of a complete characterization of every successful local-SGD run.

A particularly important extreme is one-shot averaging. Although setting H = T gives that algorithm, the paper’s upper bounds become too loose to establish its convergence. The analysis can accommodate intervals growing more slowly than the horizon, with a weaker rate in broader regimes, but it does not close the separate theory of end-only averaging.

#### The output is a weighted trajectory average

The theorem guarantees a specially weighted output. It does not directly guarantee that every local parameter sequence, the final iterate, or an arbitrary averaging rule achieves the same bound.

The authors make this distinction explicit in their implementation discussion. They suggest that returning the last iterate may frequently be adequate in practice, while explaining how to maintain the theoretically supported weighted average without storing the whole trajectory.

A careful reader should preserve that separation when applying the result. An implementation that changes the output rule may work well, but its success is an empirical observation unless a corresponding argument is supplied. Matching the local update mechanism alone is insufficient to reproduce the complete theorem.

The experimental stopping rule broadens output selection even further by accepting several candidate averages. This is useful for illustrating attainable performance, but it does not isolate the contribution of quadratic weighting. The numerical study cannot by itself show that the theorem’s averaging rule is necessary, sufficient in every tested configuration, or consistently preferable to the alternatives.

#### Linear speedup requires a suitable regime

The leading rate describes a sufficiently long run with non-zero stochastic variance. Initialization and local-disagreement terms remain relevant before that regime is reached.

Consequently, linear dependence on worker count in the leading term does not imply linear elapsed-time improvement for every target accuracy. A short run may be dominated by other terms. Increasing K can also require a shorter local interval to preserve the comparison with mini-batch SGD.

The conclusion’s square-root communication saving likewise has conditions. It depends on the horizon, worker count, local batch size, learning rates, and objective assumptions. It is not a fixed reduction available independently of those quantities.

This is a limitation of scope rather than a contradiction. The paper’s achievement is to establish a useful regime in which communication can be reduced without losing the principal computational rate. It does not remove the need to choose the regime appropriately.

#### The empirical setting is narrow

The numerical illustration concerns regularized logistic regression on w8a. It is well aligned with the convex theory, but it does not establish performance across a broad range of tasks or objectives.

There is no reported experiment in this study that demonstrates the main theorem’s practical effect on a non-convex language-training objective. The introduction and conclusion motivate such applications, yet the numerical evidence remains attached to the selected logistic-regression problem.

The reported metric is objective gap, not a held-out predictive score. A method that reaches the training optimum efficiently has demonstrated an optimization property. That observation alone does not determine generalization, downstream utility, or the behavior of other learning objectives.

Per-configuration learning-rate searches and selection among output rules also limit how directly the reported comparison transfers to routine use. They show what was found after tuning. They do not show that a default schedule would preserve the same ordering of settings.

These are observations a careful reader can make from the setup. They should be distinguished from the authors’ explicit theorem restrictions, even though both matter when deciding how far to generalize the conclusions.

#### Communication-adjusted speedup is not a cluster benchmark

The empirical study measures optimization progress and then accounts for communication through an assumed relative cost. Virtual workers are used for large parallel configurations.

This procedure is useful because it isolates algorithmic behavior and makes communication assumptions explicit. It cannot establish the elapsed-time behavior of a particular deployment whose exchange costs differ from the assumed calculation.

The paper’s asynchronous discussion adds a plausible mechanism for heterogeneous execution, including the possibility that faster workers help advance lagging sequences. However, it does not present a comprehensive timing study of that scheduler. The load-balancing example illustrates feasibility under the stated delay reasoning instead of proving a measured deployment advantage.

A careful application should therefore treat the communication-cost parameter as an input to be justified. The optimizer’s gradient-count behavior and the system’s actual communication behavior are separate sources of evidence.

#### Arbitrary worker-specific data are not covered

The finite-sum algorithm samples component indices uniformly from the shared objective. Independent stochastic-gradient sampling underlies the variance argument.

This setup does not on its own establish the same result when every worker is permanently restricted to a different data distribution. In that case, a worker’s expected local gradient could differ from the full objective’s gradient in a way not represented by the stated unbiased-sampling assumption.

The paper mentions federated learning as a context in which related averaging schemes appear. That connection should not be expanded into a guarantee for unrestricted client heterogeneity, partial participation, or unbounded absence of updates.

This is another limit visible in the formal setup. The general idea of intermittent averaging travels more widely than the exact theorem. Transferring the guarantee requires checking the sampling and delay assumptions, not merely recognizing a similar communication pattern.

#### The asynchronous statements need careful reading

The asynchronous analysis is organized around the combined quantity H+τ, representing local separation and update delay. Its disagreement lemma and final asymptotic condition both use that combination.

However, the displayed asynchronous theorem contains H+σ in one error term, while the surrounding argument identifies τ as the delay quantity. That mismatch is a notation inconsistency in the mathematical presentation.

It does not justify substituting gradient variability for communication delay in an application. The coherent interpretation of the extension comes from the delay assumption, the asynchronous disagreement lemma, and the stated condition involving H+τ. A precise reproduction of every asynchronous constant would require resolving the inconsistent expressions rather than treating them as interchangeable.

The authors’ broader claim remains clear: bounded asynchronous delay can be accommodated without changing the leading dependence on workers and iterations in the specified regime. The notation issue limits how confidently a reader should reuse the displayed detailed bound without checking its derivation.

### What came after

[Advances and Open Problems in Federated Learning](https://md.research.elamur.ai/free/en/papers/kairouz-2020-advances-open-problems-federated-learning/) (2020) cites this paper. That citation connects the local-SGD convergence analysis with a later treatment of federated learning and its unresolved questions.

The connection is natural at the level of the optimization mechanism. Local SGD permits useful computation between exchanges, and the original paper already identifies federated learning as a setting where related averaging procedures appear. Its theoretical contribution supplies a disciplined way to discuss the resulting tradeoff: fewer exchanges allow more local movement, and that movement must be controlled if averaging is to retain the desired convergence behavior.

The citation alone does not establish which theorem the later work adopted, whether it improved the communication bound, or whether it supplied new experiments based on this algorithm. Those would be separate claims requiring an account of the later work’s technical content. The supported relationship is that the later federated-learning treatment includes this analysis among the research it cites.

What remains reusable is the distinction the paper makes precise. Communication frequency affects optimization through disagreement among evolving local trajectories. Independent gradient noise can still average down, but that benefit must be considered alongside the error introduced by different parameter positions. This gives later discussions of local training a concrete analytical starting point while leaving data heterogeneity, broader objective classes, and deployment behavior as questions that need their own evidence.

## Cite

Cite as Sebastian U. Stich. 2018. Local SGD Converges Fast and Communicates Little. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.1805.09767](https://doi.org/10.48550/arxiv.1805.09767) · [arXiv 1805.09767](https://arxiv.org/abs/1805.09767)

```bibtex
@misc{stich2018local,
  title = {{Local SGD Converges Fast and Communicates Little}},
  author = {Sebastian U. Stich},
  year = {2018},
  doi = {10.48550/arxiv.1805.09767},
  eprint = {1805.09767},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1805.09767}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
