AIMech AI

Post-Local Stochastic Gradient Descent

Algorithms AIMech:PostLocalSgdTwoPhaseDistributedOptimization DRAFT
Aliases: Post-Local SGD, Two-Phase Post-Local SGD, Hierarchical Post-Local SGD
A two-phase distributed stochastic gradient optimization algorithm across K parallel workers with local mini-batch size B_loc that sets the inter-worker model-averaging period H_{(t)} via a piecewise schedule around transition step t' (typically the first learning-rate decay): during Phase 1 (t <= t'), it sets H_{(t)} = 1 so workers synchronize after every step as standard large-batch mini-batch SGD (using standard linear scaling and warmup schedules), and during Phase 2 (t > t'), it switches to H_{(t)} = H > 1 sequential local SGD steps w_{(t)+h+1}^k = w_{(t)+h}^k - gamma_{(t)} g_{(t)+h}^k per worker before global model averaging w_{(t+1)} = (1 / K) sum_{k=1}^K w_{(t)+H}^k.
Identity Notes & Concept Scope Distinct from standard single-phase Local SGD / Parallel SGD (which uses constant H > 1 from initialization t = 0 and suffers early optimization degradation at large K and H), from gradual local-step warmup schedules, and from outer-momentum wrappers (SlowMo): Post-Local SGD specifically delays local multi-step updates until the trajectory enters the basin of a local minimum at the first learning-rate decay t', simultaneously preserving Phase-1 optimization stability and injecting K-fold amplified structured gradient noise in Phase 2 to escape sharp minima.

Claims & Grounded Evidence

4 Claims
Mechanism #c-r622-two-phase-schedule-and-phase1-equivalence
Post-Local SGD defines the worker synchronization interval as H_{(t)} = 1 for t <= t' and H_{(t)} = H > 1 for t > t' (Section 3 and Algorithm 2); during Phase 1 (t <= t'), the update is algebraically identical to synchronous mini-batch SGD with effective batch size K B_loc, allowing direct reuse of linear learning-rate scaling and gradual warmup without hyperparameter retuning while avoiding the early-epoch optimization degradation of cold-started Local SGD.
Mechanism #c-r622-sde-anisotropic-noise-amplification-and-flat-minima
Under the Euler-Maruyama stochastic differential equation approximation of SGD (Section 5, Eq. 3-4), each worker's local update with mini-batch size B_loc experiences anisotropic gradient noise covariance approximately K * Sigma(w) — K times larger than the globally averaged mini-batch SGD noise covariance Sigma(w) = (1 / (K B_loc) - 1 / N) K(w) — which acts as computation-free structured noise injection during Phase 2 and drives Post-Local SGD to flatter minima with significantly lower dominant Hessian eigenvalues.
Application #c-r622-large-batch-generalization-and-compression-compatibility
Post-Local SGD closes the large-batch generalization gap on CIFAR-10/100 (ResNet-20, DenseNet-40-12, WideResNet-28-10 at K B_loc up to 4096) and ImageNet (ResNet-50 at K B_loc up to 16384), improves upon LARS, and composes directly with gradient compression (signSGD and EF-signSGD, Algorithms 3-4) and hierarchical multi-rack synchronization (Hierarchical Local SGD, Algorithm 5, Eq. 5-6).
Limitation #c-r622-transition-timing-and-extreme-local-steps-limitation
Turning on local updates too early (e.g., at epoch 0 or via short linear/exponential local-step warmup before the trajectory stabilizes) degrades training loss and final accuracy when K and H are large, whereas delaying the switch until the second learning-rate decay sacrifices communication savings and risks trapping the model in a sharper minimum.

⚠️ Curated Limitations & Negative Results

Artificial Intelligence Ontology (AIO) Grounding

Mapped AIO Classes
AIO Target Class Mapping Relation Mapping Rationale
AIO:FederatedLearning
Federated Learning
related_match Post-Local SGD is a two-phase local-update distributed SGD algorithm closely related to federated averaging (Local SGD) that Periodic-averages worker models after H local steps in Phase 2.
AIO:ArtificialNeuralNetwork
Artificial Neural Network
related_match Post-Local SGD is designed to close the large-batch generalization gap in distributed training of deep neural networks.

Evidence Sources & Primary Literature

3 Sources
Source ID Publication / Document Type / Access Reference & Checksum
r622-primary-pdf
Tao Lin, Sebastian U. Stich, Kumar Kshitij Patel, Martin Jaggi
primary paper
full_text
ID: https://dblp.org/rec/conf/iclr/LinSPJ20
sha256:b520f48bd682…
r622-arxiv-abs
Tao Lin, Sebastian U. Stich, Kumar Kshitij Patel, Martin Jaggi
primary paper
abstract_only
ID: https://arxiv.org/abs/1808.07217
sha256:75ef433cfdb1…
r622-metadata-cr
Tao Lin, Sebastian U. Stich, Kumar Kshitij Patel, Martin Jaggi
primary paper
abstract_only
ID: https://dblp.org/rec/conf/iclr/LinSPJ20
sha256:0d4808ecd5bc…

Ontology & Grounding Topology

Open in interactive network graph →
CONCEPT KIND Algorithms AIMech:PostLocalSgdTwoPhaseDistributedOptimization Post-Local Stochastic... 4 claims · 3 sources AIO GROUNDING AIO:FederatedLearning (2)

Curation Provenance

Curator: Antigravity
Method: ai_assisted
Model: Gemini
Created: 2026-10-19T11:45:00Z
Updated: 2026-10-19T11:45:00Z
Source File: data/curated/PostLocalSgdTwoPhaseDistributedOptimization.yaml · Schema: curated_concept.yaml

Explore across X-Mech

Related computational & biological Mechs: Embedding Map Network Graph ProteinTraitsMech (ESM-2 pLM) DUFMech (Domain pLM) TraitMech CultureMech All 14 X-Mech Repositories