HDET Turns Data-Parallel GPUs Into a Learning-Rate Search
LinkedIn researchers give each GPU replica a slightly different learning rate and average the weights every 1,000 steps. On one production model, training stayed stable at a rate that crashed DDP.
TL;DR
- LinkedIn researchers propose HDET, which gives each data-parallel GPU replica a slightly different learning rate and periodically averages their weights [^1].
- On a production news-feed model, it trained stably at a learning rate that crashed standard training, and reached a slightly lower loss [^1].
Background
Large models are usually trained data-parallel: every GPU holds an identical copy of the model, processes its own mini-batch and takes the same step under the same learning rate [^1]. The learning rate schedule has to be chosen before training starts, so teams rely on expensive grid searches or heuristics from smaller proxy models [^1]. The four authors, all from LinkedIn, argue that the extra GPUs add no diversity to the optimization, only a larger batch [^1].
What happened
Hyperparameter-Divergent Ensemble Training (HDET) alternates two phases. In the fan-out phase, each of the N replicas trains with its own multiplier on the learning rate, spread symmetrically between 1−α and 1+α around a shared base schedule. All replicas still use the same averaged gradient, but they take steps of different sizes, so their parameters drift apart. In the converge phase, every T steps, the parameters are averaged across all replicas, and the multipliers are reshuffled before the next cycle [^1]. With a spread of zero, the method is plain distributed data-parallel training (DDP). The authors put the extra communication at about 0.1 percent of wall-clock time on 8 H100 GPUs with T set to 1,000 [^1].
On top of this sits an optional controller. At each sync point it compares the training loss of each replica; if the replicas with higher learning rates did better, it nudges the base schedule up, otherwise down, smoothed with momentum and without any extra gradient computation [^1]. A second option, warm noisy initialization, starts every replica from a pre-trained checkpoint with a little Gaussian noise added [^1]. HDET is built as a drop-in replacement for PyTorch's OneCycleLR scheduler, and the code is public [^1].
The test was a production-scale news-feed dataset from a major social network: one year of interaction logs, three engagement tasks, one epoch, about 30 hours per run on 8 H100s [^1]. A conservative baseline at a learning rate of 0.0001 reached a training loss of 3.294. At 0.0009, nine times higher, standard training crashed after about 18K steps, and warm initialization alone held out to about 185K steps before it diverged too. Full HDET at the same 0.0009 trained stably to 3.277; without the controller it reached 3.280, without warm initialization 3.281 [^1].
Why it matters
The ablation points to the averaging step as the source of stability. Warm initialization without averaging diverged even worse than the plain high-rate run, 4.674 against 4.169 [^1]. The authors' explanation is that the spread always keeps some replicas conservative, so the averaged model stays in a stable region where a single aggressive learning rate does not [^1]. In other words, the GPUs a team already pays for do some hyperparameter search on the side, without extra sweeps or training budget, as the authors put it [^1].
The size of the claim needs care. The quality gain over the conservative baseline is small, and the authors say the controller's share is modest because the starting schedule was already near-optimal [^1]. The evidence comes from one recommendation model on 8 GPUs, though repeated over 10+ models with consistent gains on offline AUC and NE, and that model now runs in production ranking [^1]. The method's own settings, the spread, the sync interval and the controller's temperature, were fixed without tuning, and the authors list their interaction, other hyperparameters such as dropout, and LLM pretraining as open work [^1].
Practical example
Say Ines trains the recommendation model for a mid-size streaming service on 8 GPUs, using PyTorch DDP with OneCycleLR. A higher learning rate would speed things up, but when Ines raised it, the loss grew without bound and the run crashed, much like the high-rate baseline in the paper [^1].
With HDET, Ines swaps the scheduler and leaves model, optimizer and data pipeline as they are [^1]. Each of the 8 replicas now runs at a slightly different rate around the base schedule; with the paper's spread of 1/9 and a base of 0.0009, that is 0.0008 to 0.001 [^1]. Between sync points the replicas drift apart. Every 1,000 steps their weights are averaged back into one model, and because some replicas always run cautiously, that average pulls the aggressive ones back before they blow up [^1]. If the faster replicas keep posting lower losses, the controller raises the base schedule a little; if not, it lowers it [^1].
What Ines should not expect is a large jump in quality. In the paper, the payoff was stable training at the higher rate and a loss of 3.277 instead of 3.294 [^1]. So Ines keeps the old run as a baseline and compares both on held-out data before shipping.
Related gear
We recommend this book because it explains stochastic gradient descent, learning rates and hyperparameter selection, the groundwork HDET builds on.