Large-Batch Training Favors More Weight Decay Over Higher Learning Rates
Stanford computer science professor Tatsunori Hashimoto argues that optimization choices depend on how updates align and how batch size changes the training regime. In a CS312 quiz review, he uses held-out experiments to show why shared parameter blocks favor CompleteP’s depth scaling, why momentum matters far more at batch size 256 than at batch size 8, and why increasing weight decay—not continually raising the learning rate—worked better for the largest batch.

Shared weights change which depth scaling works
In the shared-block version of the depth experiment, the prescription that worked best after five updates was not the one that had looked strongest when the blocks were independent. Tatsunori Hashimoto explains the difference through alignment: independent random blocks contribute roughly with square-root scaling, while repeatedly applying the same block makes its contributions perfectly correlated. The latter case calls for scaling by the reciprocal of depth.
The first question compared standard µP, depth-µP and CompleteP when 1,000 independent blocks were replaced by one shared block applied 1,000 times. It asked for the ratio of the final residual-stream RMS in the shared model to that in the independent-block model, using the same prescription and seed. Hashimoto cautioned that the ratio, not the raw RMS, was the quantity to reason about.
Assignment experiments had made depth-µP look stable as depth increased, while standard µP’s residual RMS grew and CompleteP appeared to overcorrect. That might suggest depth-µP should win again. But the quiz’s initialization results asked a different question. For standard µP and depth-µP, the shared-to-independent RMS ratios fell in the same interval, [10, 100). For CompleteP, the ratio was in the smallest interval, (0, 10).
The explanation depends on what the scaling prescriptions multiply. Standard µP, depth-µP and CompleteP adjust the residual contribution by different depth-dependent factors. For contributions added to the residual stream, those factors largely cancel when taking the shared-to-independent ratio. CompleteP is different because its multiplier is so small that residual contributions start out small relative to the embeddings entering the stream at the bottom. The embeddings therefore account for more of the total RMS, disrupting the otherwise similar ratios.
The five-update comparison reversed the apparent ranking from the independent-block setting. In the shared-block model, CompleteP achieved the lowest validation loss among the prescriptions’ best results over the tested learning rates. Hashimoto’s reasoning was that the same block, copied 1,000 times, is a case of full alignment: correlated contributions add linearly, so the appropriate scaling is proportional to 1/L. CompleteP supplies that scaling. Depth-µP instead corrects for the square-root growth associated with random, independent weights. The useful distinction is not that one prescription is generally superior; it is that the alignment structure determines which scaling is appropriate.
The learning-rate–decay product predicts the cost of a miss
Across the learning-rate and weight-decay sweeps, Hashimoto points to a simple organizing quantity: their product. The lowest losses tend to lie along a diagonal where learning rate times weight decay is roughly constant. Move away from that diagonal and losses rise.
The quiz tested this pattern under cosine learning-rate decay to zero, with a 1% warmup, at 1.2288 billion tokens. The best grid point was a peak learning rate of .003 and weight decay of .2, giving a product of 6 × 10⁻⁴ and a loss of 2.8354. Six other configurations varied the two values around that reference. Reading their locations in the grid gave the measured loss order: B, A, F, E, D, then C. B and A were close to the low-loss region; F and E were also relatively close to each other; D and C were farther away.
Hashimoto’s numerical rule of thumb makes the geometry more useful. The penalty for being off the optimal product is approximately quadratic in the logarithm of the ratio between the chosen product and the reference product:
Take the log of how far off the product is, square it, and multiply by about 0.01.
The assignment data suggested coefficients on the order of 0.007 to 0.01 for this relationship. Applying the fitted rule to configuration C predicted an excess loss of about 0.03, placing it in the quiz’s highest interval. Hashimoto said he was surprised by how closely that estimate matched the measured result.
The product is a useful first-order map, not an exact formula for every grid: configurations on a similar product diagonal can have similar losses, while departures incur a penalty that grows roughly with the squared log-distance. That made both the ranking and the approximate size of the loss difference reasonable to infer from the assignment experiments.
Hyperball’s optimal learning rate can be extrapolated across budgets
A separate Hyperball question asked for the optimal peak learning rate at 2.4576 billion training tokens. Hashimoto’s suggested approach was to extend the trend in the assignment’s Hyperball results. In the data shown, the optimal peak learning rate followed an approximately straight line on log-log axes as the token budget changed. He contrasted this with AdamW, whose scaling became less regular farther out, and said the Hyperball trend could be extended without needing a more elaborate prediction.
The projected optimum was about .008 at 2.4576 billion tokens, putting it in the quiz’s highest interval. The fitted trend had a slope around −.34, and the slide showed estimates of .0076 and .0081 from two additional seeds. This was a scaling trend in the measured range, not a claim that every optimizer’s learning rate follows the same line.
Momentum matters more at the larger batch size
The momentum sweep produced sharply different shapes at batch size 8 and batch size 256. With the smaller batch, validation loss was relatively flat across momentum values. With the larger batch, the curve formed a pronounced cup: momentum mattered much more, and the best of the quiz’s three choices was β₁=.9.
For batch size 8, the quiz compared β₁ values of 0, .9 and .98. The measured ranking put .98 first, .9 second and no momentum last. The cost of removing momentum—comparing β₁=0 with β₁=.9—was 0.0276, about 0.03. Hashimoto described the small-batch curve as fairly insensitive to momentum; the distinction between .9 and .98 was modest, but the measured result favored .98.
At batch size 256, the ranking was .9, then .98, then 0. Here the higher-momentum end of the curve rose steeply after its minimum, making .9 the clearer choice. Removing momentum cost 0.2503 in validation loss. Hashimoto called the large-batch cost “truly catastrophic” and said the steep rise should have signaled that zero momentum would be a poor choice.
The contrast is more informative than a single default setting: in these experiments, small-batch performance was relatively tolerant of the choice, while the larger-batch curve was sharply sensitive. The quiz held the other stated settings fixed within each batch-size comparison, including β₂=.95, so the changing curve was specifically about varying β₁.
Almost-µP remains closer to µP than to the baseline
The “almost-µP” questions examined a model that combined µP’s embedding initialization and hidden-matrix learning rate with the course baseline’s readout initialization and multiplier. One question asked how its optimal learning rate changes with width; another asked how costly it is to transfer a learning rate rather than retune it.
The assignment pattern was that the course baseline’s optimal learning rate fell roughly in proportion to 1/width, while µP’s stayed approximately flat. Almost-µP landed between them, but closer to µP. At width 1,024, the fitted optimum was 0.869 times the width-512 optimum; the corresponding µP ratio was 0.955, while the course baseline ratio was 0.444. Hashimoto’s explanation was that the readout’s contribution was small relative to the rest of the network, so changing its prescription did not pull the overall behavior far from µP.
The transfer test at width 1,024 used a transferred peak learning rate of .003. The quiz’s selected interval for the penalty was [.01, .06); the displayed almost-µP seed penalties were 0.0076, 0.006704 and 0.011100. Hashimoto said the transferred run was not itself the exact minimizer, so the measured penalty included some suboptimality. The expected transfer cost was still small, consistent with the assignment result that µP’s learning rate could be transferred directly. In the displayed comparison, the fitted almost-µP penalty for seed 42 was smaller than the µP penalty of 0.0163 and much smaller than the baseline penalty of 0.1069.
Hyperball’s width scaling falls between Adam and µP
For Hyperball, the quiz asked how the optimal learning rate scales with width under the course-baseline parameterization. Hashimoto’s explanation starts from the update rule: Hyperball takes an Adam-direction step and projects each linear-layer weight matrix back to its initial Frobenius norm. The embeddings and normalization gains use Adam, and the quiz disabled weight decay for this width sweep.
The intuition is about the scale of the projected matrix update. If the update direction is normalized and then scaled to the Frobenius norm of the weight matrix, the resulting step size is roughly proportional to ηW/||W||F. For a matrix whose Frobenius norm grows with the square root of width, this normalization contributes an effective factor on the order of 1/√n. Hashimoto used that to place Hyperball between the reference behaviors in the width experiments: Adam needed roughly 1/n learning-rate scaling, while µP’s optimal learning rate was approximately constant.
The fitted Hyperball width exponent fell in the interval [−.75, −.25). Across seeded runs, Hashimoto reported estimates between about −.38 and −.55. The square-root argument is a way to predict the direction and rough scale, not an exact derivation of the fitted exponent. The measured values are consistent with a decline shallower than 1/n and steeper than a flat learning rate.
The same intermediate position shaped the transfer result. At width 1,024, using width 512’s best sampled learning rate incurred a penalty around 0.033, in the interval [.02, .08). Hashimoto described this as somewhat larger than the transfer penalty seen for µP, but still below the Adam case, which he cited as about 0.12. He also acknowledged that this was harder to predict than some of the other questions: the qualitative ordering was available from the assignment, but estimating the scale required familiarity with the measured penalties.
At large batch sizes, increasing weight decay beats continually raising the learning rate
The final optimization question increased batch size to 512, reducing the number of training updates by a factor of eight. It compared five recipes: keep the learning rate and weight decay unchanged; increase the learning rate by √8 or by 8; increase weight decay by 8; or increase both learning rate and weight decay by √8. The lowest-loss recipe kept the learning rate at .003 and raised weight decay from .2 to 1.6.
Hashimoto connects that result to two different scaling trends. As batch size rises, the optimal peak learning rate initially increases, but the trend bends and stops supporting unlimited increases. He said this is also what one should expect from the noisy quadratic model discussed in class. Optimal weight decay, by contrast, continued increasing across the tested batch sizes. That made increasing weight decay the more promising adjustment for the largest batch.
The comparison with the original settings is specifically between the B=64 pair and the B=512 run. Keeping the B=64 learning rate and weight decay unchanged leaves the learning-rate–weight-decay product 2³, or eight times, lower than the product for the recipe that scales weight decay by eight. Hashimoto estimated the penalty using the earlier approximate quadratic rule: an eightfold departure is three doublings, so squaring the log-base-two distance and multiplying by roughly 0.01 gives about 0.09. The measured cost of keeping the original pair fell in the interval [.05, .15), consistent with that estimate. By comparison, scaling the learning rate linearly with batch size was worse still, with a loss increase around 0.13.
The experiments point to a constraint on how to adjust the hyperparameters: the optimal learning rate does not keep rising with batch size, while optimal weight decay can rise further. In this setting, increasing weight decay preserved a better loss than trying to compensate for fewer updates by pushing the learning rate upward.
