Untuned Learning Rates Can Make New Optimizers Look Better
Stanford computer science professor Tatsunori Hashimoto argues that many apparent advances in deep learning are hard to interpret when baselines are not tuned and training runs are treated as deterministic. In a lecture on experimental practice, he makes learning rate the first setting to tune, shows why scaling-law predictions need testing at larger runs, and recommends debugging by comparing a failing model’s internal behavior with a known-good control.

A failed run identifies a bad setting—not which one
Tatsunori Hashimoto frames deep learning as an experimental science. A model’s behavior depends on a bundle of choices—architecture, optimizer, learning rate, batch size, data, and more—while the experiment usually returns a small number of outcomes, such as loss or benchmark score. If training blows up, the result tells you that at least one choice was wrong. It does not tell you which one.
That attribution problem is why hyperparameter tuning is more than housekeeping. If a proposed method differs from its baseline but the baseline was poorly tuned, the comparison cannot cleanly establish what the new method did. A reliable experiment needs settings that are good enough to make the comparison meaningful, and ideally only one substantive difference between the systems being compared.
Hashimoto’s practical priority is the learning rate. If there is time to tune only one setting, he says, tune that. There is no theoretical reason it must be the most sensitive parameter; experience says it often is. Other settings, such as Adam’s momentum parameters, can look consequential but usually matter less. Model size and training steps matter too, but changing them can change the compute budget. Hashimoto describes learning rate as a setting researchers often vary while keeping compute fixed; he does not make the same general claim about batch size.
When an experiment “fails,” the only thing we know is that at least one of these settings was a very bad thing to do.
The consequences of leaving settings untuned show up in three examples. In work on privacy-preserving language modeling, the initial impression was that the straightforward differentially private SGD approach performed poorly. With typical settings—Hashimoto gives a batch size of 32 and a learning rate around 1e-3 as examples—the benchmark scores were in the tens, far below the roughly 50s or 60s he describes as good. The apparent conclusion was that the algorithm did not work and more sophisticated methods were needed.
A student proposed sweeping the hyperparameters. Hashimoto says the useful region turned out to be far from the typical choices: the learning rate and batch size needed to be much larger, by orders of magnitude in the relevant settings. Once the search reached that region, the method worked well. He says the finding helped open up a line of privacy-preserving language-model fine-tuning work. The point is not that every bad result can be rescued by tuning, but that a failed default configuration is weak evidence against a method.
A second example concerns repeating data. Under a standard language-model training recipe, repeatedly cycling through a limited dataset appeared to yield diminishing returns; increasing the model size did not seem to fix the problem. That suggested a ceiling on how much information could be extracted after a handful of passes. In work by Suhas Kotha, as Hashimoto describes it, tuning the regularization changed the picture. Increasing weight decay produced a different performance trend from the naive repeated-data recipe. The curves did not merely shift a little; they implied qualitatively different conclusions about what could be gained from more training.
Optimizer comparisons can be confounded in the same way. Hashimoto discusses claims that alternatives such as MARS or Lion outperform AdamW. In the comparisons he presents, MARS initially looked better than AdamW at default settings, but retuning AdamW’s learning rate brought its performance to about the same level. For Lion, a high weight decay made it look better; with weight decay tuned optimally, Hashimoto says, AdamW did better. Different optimizers may need different settings, so a comparison at one shared or poorly chosen configuration can favor the wrong method.
These cases are not presented as grounds for dismissing optimizer or method papers. Hashimoto says the choices were reasonable at the time; the confounding often becomes visible only after tuning. A reported gain can reflect a better configuration rather than a better underlying method.
Hyperparameters are settings chosen by hand rather than learned directly from the data. The assignment’s list includes learning rate, batch size, schedule, warmup, weight decay, gradient clipping, and architectural choices, among others. They are difficult to search because there are many of them and some interact. If performance were an arbitrary function of all those settings, finding a good configuration in a high-dimensional space would be impractical.
Tuning is possible, Hashimoto argues, partly because researchers have accumulated defaults that work reasonably well, and partly because many settings can be varied without changing everything else. Learning rate and batch size interact, for example, but that does not mean every hyperparameter must be searched jointly. The task is to know which variables are likely to matter in the experiment at hand, search them at useful scales, and test the failure modes that could overturn the conclusion. There is no universal procedure that replaces that judgment.
Step Law turns tuning into a scaling problem
The StepFun study Hashimoto uses as an example asks how to set learning rate and batch size for language-model pretraining, and how those settings change as models and datasets grow. Its value here is as a concrete investigation: instead of assuming one configuration works everywhere, the researchers measure performance across a grid of settings.
At a fixed batch size, terminal loss as a function of learning rate has a roughly quadratic shape when learning rate is plotted on a logarithmic scale. There is a clear minimum, and moving away from it raises loss. The surface is not perfectly symmetric, but it is structured enough to search. This shape supports trying learning rates at multiplicative intervals rather than taking tiny, equally spaced steps in the raw values.
The joint loss surface shown in the StepFun study makes the interaction between learning rate and batch size visible. Its contours are roughly quadratic but not circular: the optimum moves with batch size. To remain near the optimum, the two settings need to move together.
The study also reports that optimal settings shift with dataset size and model size. Hashimoto cautions against over-reading the exact functional forms in the plots; the central result is that the optima change. In the StepFun experiments, optimal batch size varies with data size, while optimal learning rate varies with both data and model size. The specific dependencies may differ across systems, but treating one setting as universally optimal is risky.
That creates a costly problem at large scale. If every new model requires a fresh search, tuning itself may require several runs at a scale where each run is expensive. The answer is to tune efficiently at smaller scales, then use evidence about how settings change with scale to transfer the result upward. When that transfer works, it can save substantial compute.
One implementation trick helps with large searches on small models. Small models can use hardware inefficiently because they launch many small operations. In JAX, vmap can batch runs with the same tensor shapes—for example, several runs that differ only in learning rate—so the GPU can perform corresponding operations together. This is much like batching examples to improve hardware use. Hashimoto notes that the idea is also available in PyTorch.
The broader strategy is to build a ladder of experiments. Train small models to explore settings and detect patterns; increase scale to test whether those patterns persist. Hashimoto compares this with biology, where researchers use model systems rather than immediately testing a hypothesis in people. Machine learning has an advantage, he says: model complexity can often be varied continuously, by changing width, depth, or other dimensions, rather than jumping between biologically different organisms.
Scaling laws formalize part of this approach. They relate performance to quantities such as data, model size, or compute, allowing researchers to use cheaper runs to predict more expensive ones. Hashimoto traces the idea back at least to a 1993 Bell Labs paper on learning curves, which proposed predicting how classifiers would perform on larger datasets from smaller ones. Later work in machine translation tested different curve families, including power laws. Hestness and colleagues in 2017 helped make the larger implication explicit: if performance improves predictably with more data and larger models, perhaps models should keep growing.
A useful mental picture has three regions. With very little data, performance is near a guessing regime. As data grows, error falls in a predictable region; at still larger scales, gains eventually flatten as the model approaches the limits of its capacity. On logarithmic axes, parts of this pattern can look like a power law. Hashimoto says such relationships are especially clean in pretraining, though scaling relationships can also be useful in areas such as vision and post-training.
Scaling laws also help answer how to divide compute between data and model size. Joint fits describe loss as a function of both, and have been used to reason about whether to train a larger model or give a model more data. Hashimoto points to Chinchilla as part of this family of compute-tradeoff questions.
But a clean fit is not a guarantee that the largest run will behave as predicted. In the Marin example shown in the lecture, a series of smaller runs appeared to fit a scaling curve well. A somewhat larger run still looked plausible; then the largest authorized run diverged. The Marin team conducted post-mortems, changed aspects of the approach, and later obtained a more reliable scaling result. The example demonstrates that scaling laws are engineered through repeated work, not simply read off a few points.
Several choices can break an extrapolation. Optimal learning rates and batch sizes change with scale, and estimates of those changes can be noisy. The accounting matters too: what counts as a parameter, and whether an embedding lookup should count as a FLOP in the same way as a matrix multiplication, affect the fit. Hashimoto notes that disagreements between Kaplan- and Chinchilla-style conclusions partly reflect choices such as whether to count embedding parameters. Different papers also propose different rules for scaling learning rate and batch size; their prescriptions do not always agree.
The practical point is to use small-scale experiments to reduce the search, not to treat extrapolation as certainty. Scaling is central to experimental efficiency because large models and more data generally improve performance, but the route back up from a proxy must itself be tested.
Training is stochastic—even when the code is deterministic
When two methods produce similar loss curves or final scores, the gap may be real or may be noise. The basic experimental question is how much run-to-run variation there is, and what produces it.
The obvious source is stochastic gradient training. Rather than compute each update from every example, common methods such as SGD and Adam use minibatches, so the order and selection of examples affect the trajectory. Neural networks are also randomly initialized, in part to break symmetry; starting every parameter at zero would leave the network unable to learn in the way Hashimoto describes. Data augmentation and dropout add further randomness in settings where they are used.
Hashimoto discusses a study of CIFAR-10 training by Keller Jordan that compares these sources of variation. In the results he presents, varying initialization, data order, or augmentation individually produced similar levels of final variation. Turning all three on added comparatively little. In longer training, varying any one source could produce as much variance as varying all three together. His interpretation is that even randomness introduced once, at initialization, can be amplified until it has a similar effect on the final outcome as other sources.
This is better understood, Hashimoto argues, as training with chaotic dynamics than as gradient descent plus a little noise. In a simple Brownian-motion picture, a small perturbation would leave two trajectories roughly close. In a chaotic system, small differences can grow until the trajectories become substantially different. Weather and a double pendulum are familiar analogies: two systems that begin nearly identically can diverge after a tiny perturbation.
Neural-network training can show a similar pattern. Two runs that differ only slightly may remain close initially, then diverge over time until their separation resembles that between fresh random runs. Fixing a random seed does not rule out the effects of tiny perturbations: hardware or numerical differences may be amplified by training dynamics.
Full-batch gradient descent experiments offer a striking example. Because the update uses the entire dataset, there is no randomness from selecting minibatches. At a low learning rate, loss falls smoothly. At higher learning rates, training develops irregular spikes that look stochastic. Hashimoto associates this with the “Edge of Stability” work: increasing the learning rate can push the system into dynamics where perturbations and oscillations amplify, rather than simply making training proceed faster.
This does not mean every small difference requires many repeated runs. It does mean researchers need to know the scale of run-to-run variation in their setting before interpreting a small gap. The lecture’s examples from Transformer architecture research show why. Hashimoto points to results on gated linear units and other Transformer modifications where the reported losses are close. Those papers include standard errors or replicates, making it possible to see whether small differences are consistent. Some changes that look like noise in a single run can be stable across runs.
He also cautions against a common way of reading error bars. Suppose two methods are evaluated on the same test examples. The scores may vary widely across examples because some problems are harder than others. If that difficulty affects both methods, comparing their independent error bars can exaggerate uncertainty about the difference. A paired comparison asks how the methods differ on the same examples; shared variation cancels out, leaving a clearer estimate of the method-to-method gap. This is particularly relevant to downstream evaluations, where problem difficulty can contribute substantially to score variation.
The advice is to treat deep learning as semi-stochastic, measure the rough run-to-run variation, and understand whether training dynamics amplify or damp small perturbations. But formal significance tests are not always worth the compute. Often, knowing the approximate scale of the noise is enough to judge whether a result is materially larger than it.
Debug by comparing internal behavior with a working control
Debugging is the hardest experimental skill to formalize, Hashimoto says. Researchers he consulted often described an informal process: inspect a few things, notice something that looks wrong, and try a fix. His attempt to make that advice more usable starts with what to observe.
Loss curves and model predictions are external measures: they show what the model does. Internal measures include activations, gradients, parameters, and optimizer state. Activations reveal intermediate computations in the forward pass. Gradients and the signals propagated backward help show what is happening during learning. Parameters and optimizer state carry information about how the training process is evolving over time.
Those measurements answer different questions. A snapshot of activations or gradients can help locate an anomalous layer or signal path. Parameters and loss curves help show how the system changes across training. The aim is not to collect every possible metric, but to know what normal behavior looks like and recognize departures early.
Loss curves are often the first diagnostic. In pretraining, they tend to be low-noise and comparatively easy to interpret. A sudden divergence or an unexpected plateau can stand out. Reinforcement-learning reward curves are less straightforward: they may rise and fall substantially even when the training run is working well. A curve that looks unhealthy in one domain may be normal in another.
Learning-rate schedules leave recognizable marks on loss curves. When the learning rate is annealed aggressively, loss often falls more sharply; a slower decay tends to produce a slower change. A schedule that holds the rate high and then drops it can create a late loss decline. Cyclical schedules can produce corresponding dips and rises in loss. Before diagnosing a curve as a failure, check what the schedule is designed to do.
Internal statistics can help distinguish causes. In work on initialization, Xavier Glorot and Yoshua Bengio examined activation values and back-propagated signals across layers. If activations collapse toward zero with depth, or backward signals change dramatically across layers, the network may be poorly conditioned for learning. An initialization that keeps these quantities at roughly stable scales can help signal propagate through the network.
Gradient statistics have also helped researchers reason about architecture. Hashimoto describes analyses comparing post-norm and pre-norm Transformers. In the post-norm configuration, gradient expectations grew across layers at initialization. Moving normalization in front of the modules produced gradients that were more even across layers. This illustrates a broader design goal: behavior should not grow or shrink uncontrollably as networks become deeper or wider.
The QK-norm example shows how several diagnostics can work together. QK norm applies normalization to the queries and keys in attention. In the large vision-transformer training example shown in the lecture, the run without QK norm trained for a while and then diverged. The gradient norm did not provide much early warning; it rose sharply around the failure. Parameter norms and maximum logits were increasing, but those trends were not conclusive by themselves. The maximum attention values, however, grew rapidly before the loss revealed the failure. With QK norm, training was stable and those maxima stayed bounded.
That comparison depends on knowing what a healthy run looks like. A “known good control”—perhaps a smaller model that has trained successfully—gives researchers something to compare against. A signal that looks concerning in isolation may be ordinary at that scale or in that architecture; the control helps establish whether it is anomalous.
Understanding invariances matters too. Layer normalization can make some changes in parameter magnitude less consequential than they appear. If weights grow but normalization keeps the signals controlled, large parameter norms alone may not imply that training is failing. Researchers need to know which metrics reflect behavior and which can change without changing the model’s effective computation.
A Marin debugging example illustrates this judgment. A large run with gated attention showed rapidly growing norms in the attention-gating parameters, unlike smaller runs that served as working controls. Inspecting the internals showed that early layers contributed very little to the residual stream, with contributions increasing sharply in later layers. The team considered whether this was immediately fatal. Layer norms and the MLPs could partly compensate, so the anomaly did not have an obvious immediate effect on training; still, continued growth raised concern about overflow. The response was light weight decay to bring the norms toward a more manageable range, rather than an aggressive architectural overhaul.
The example combines several habits: spot the anomaly, compare against a known working system, inspect the relevant internal quantities, and decide whether the deviation changes model behavior or is contained by an invariance. A plot can identify where to investigate, but it does not by itself establish the cause.
Two general rules follow. Change one thing at a time, so the result of an intervention remains attributable. And when a new configuration fails, interpolate between it and a known good one: move gradually from the working model toward the new design until behavior changes, or reverse the process until the broken model works again. That makes the boundary of failure easier to locate.


