Skip to content

DistP\mathtt{DistP}: Scaling Local-Update Training with Zero-Shot Hyperparameter Transfer

Andrej Jovanović, Alex Iacob, Philipp Wiesner, Christophe Roux, Max Zimmer, Lorenzo Sani, Sebastian Pokutta, Nicholas D. Lane

cs.LG

Abstract

Local-update methods offer a communication-efficient alternative to Distributed Data Parallelism (DDP\mathtt{DDP}), but introduce additional hyperparameters that require costly tuning. For DDP\mathtt{DDP}, zero-shot hyperparameter transfer reduces this cost by reusing settings tuned on smaller models, but its applicability to local-update training remains unclear. We propose DistP\mathtt{DistP}, a theoretical framework extending existing transfer rules from DDP\mathtt{DDP} to local-update training with varying worker counts, local steps, and outer optimizers. With averaging as the outer optimizer, DistP\mathtt{DistP} supports learning-rate transfer across width and depth while improving model quality. The tuned inner learning rate also directly transfers across synchronization intervals, but follows two regimes when increasing the global batch size: square-root learning-rate scaling for larger local batches and a fixed reference rate for additional workers. We then generalize width and depth transfer to other outer optimizers, enabling stable scaling with Adam\mathtt{Adam}. However, with momentum in the outer optimizer, changing batch size or local steps can require inner--outer learning-rate tuning, consistent with prior work. In language-modeling experiments at 823823M parameters, DistP\mathtt{DistP} reduces validation loss by 8.1%8.1\% and improves mean downstream accuracy by 10%10\% relative to baselines without retuning at the larger scale. Fitted scaling laws suggest that this advantage grows with the compute budget, reinforcing the benefits of DistP\mathtt{DistP} for communication-efficient training.

Create a lesson