## Introduction: The Alchemy of Training
Norris: Welcome back to Mechanical Dreams, the podcast where we dream of electric sheep and then argue about the learning rate required to count them. I’m Professor Norris. Linda: And I’m Linda! And Professor, you’re sounding a little weary today. Did another training run diverge over the weekend? Norris: Linda, training large language models these days feels less like computer science and more like medieval alchemy. You throw in a learning rate, sprinkle some weight decay, chant a few incantations about 'cosine schedules', and hope the loss curve goes down instead of exploding into NaNs. Linda: It is a bit of a dark art, isn't it? Just guessing numbers and hoping for the best. But what if I told you there’s a way to turn that alchemy into actual, rigorous chemistry? Norris: I would say you’ve been reading too many papers from the future. Or you're about to try to sell me a bridge. Linda: No bridges today, just a paper from Apple that dropped late in 2025. It’s titled "Completed Hyperparameter Transfer across Modules, Width, Depth, Batch & Duration". The lead author is Bruno Mlodozeniec. Norris: That is quite a mouthful of a title. But I hear the magic word: "Transfer". They're claiming they can solve the tuning problem on a toy model and just... copy-paste it to a big one? Linda: Exactly! They propose a method to tune hyperparameters on a tiny model—something you could run on a single GPU in an afternoon—and mathematically guarantee that those settings will work on a massive, cluster-scale model. Norris: We've seen attempts at this before, Linda. The Tensor Programs work, muP... it’s brilliant theory, but it usually falls apart when you change something practical, like the batch size or the number of tokens. Linda: And that’s exactly why this paper is special. It’s not just width anymore. They’re handling depth, batch size, training duration... and get this: they’re tuning parameters differently for every single module in the network. Norris: Per-module tuning? That sounds like a nightmare. That’s not a recipe; that’s a thousand different recipes cooking at once. Linda: It sounds chaotic, but they claim it leads to massive speed-ups. Like, getting the same performance in half the time. Norris: Half the time? Alright, put away the cauldron, Linda. I’m listening.
## Beyond Width: The Limits of muP
Norris: So, Linda, before we get into the new magic, let's ground this. In the old days—and by old days, I mean three years ago—if I wanted to scale up a model, I’d just take my best guesses for the learning rate, maybe divide by the square root of the hidden dimension, cross my fingers, and hit 'run'. Usually, it diverged. Linda: Right, that's what we call Standard Parameterization, or SP. And mathematically, we know why it fails now. As the model gets wider, the activations eventually blow up, or the updates become so small the model stops learning features. It’s a mess. Norris: Which brings us to the hero of 2022: the Maximal Update Parametrization, or muP. I must admit, even I liked that one. The idea that you can tune your hyperparameters on a tiny toy model and—if you set up your scaling rules correctly—those same numbers work on a giant model? That is elegant. Linda: It is! Greg Yang and his colleagues really changed the game with that. Basically, muP ensures that as you scale the width—the number of neurons or heads—the training dynamics stay stable. It keeps the feature learning consistent so you don't have to re-tune everything from scratch. Norris: But... and I sense a 'but' coming from the way you're looking at your notes... Linda: The 'but' is that width isn't everything, Professor. muP is derived strictly for the infinite-width limit. But look at modern LLMs. We aren't just making them wider. We're making them deeper—stacking way more layers. We're training them on trillions of tokens. And we're using massive batch sizes to parallelize the compute. Norris: And I assume muP has nothing to say about those other dimensions? Linda: Exactly. If you take your muP settings and just double the depth, or change the batch size significantly, the transfer breaks. You're back to guessing. For example, the paper points out that standard muP doesn't account for how learning rates should decay when you train for longer durations, or how weight decay interacts with batch size. Norris: I see. So we have a map that only works if we drive purely East, but we’re trying to drive North, South, and Up at the same time. And I suppose simply tuning these things by trial and error on a 7-billion parameter model is... Linda: Prohibitively expensive. You’d burn through our entire semester's compute budget before lunch. We need a way to predict the optimal settings for depth, batch size, and token count without actually running the big job first. Norris: So, we need to complicate the math to save the budget. Typical. But I am skeptical, Linda. Adding more rules often just adds more points of failure. Are they claiming to have solved the scaling laws for *everything* at once? Linda: Pretty much! That's why they call it 'Complete' Parameterization. They're trying to close the loop on all the missing axes that muP left out.
## Enter Complete(d)P: A Unified Theory
Norris: So, we have had standard Parameterization, then we had muP, then Depth-muP, and now... Complete-d-P? With the 'd' in parentheses? It looks like a typo in a sophomore's C++ code, Linda. Are they unsure if they actually finished it? Linda: It’s a bit of a pun, Professor! It stands for 'Complete Parameterization', but the parenthetical 'd' signals that they have 'Completed' the work started by Dey et al. earlier this year. They essentially argue that the previous attempts were, well, incomplete. Norris: Incomplete how? Did they forget to carry a one? Linda: Close! They found some subtle but critical issues when applying the theory to modern architectures. Specifically, Query-Key Normalization, or QK Norms. Norris: Ah, yes. The safety rails of the Transformer. Keeps the attention logits from growing too large and saturating the softmax. I assume they cause trouble for scaling because they tamper with the signal variance? Linda: Exactly. In most modern Transformers, QK norm parameters are shared across all the attention heads. Standard scaling rules assume that when you scale up width, you’re just adding more independent heads. But because these weights are shared, the gradients accumulate differently than standard layers. Norris: I see. If you simply widen the model without accounting for that sharing, the signal strength for those specific parameters would blow up. It breaks the infinite-width limit assumption. Linda: Precisely. So, `Complete(d)P` introduces a fix for these shared weights to ensure the math holds up. But honestly, fixing the width scaling is just the appetizer. The main course—and what I think you'll love—is how they handle Batch Size and Training Duration. Norris: Now that is the holy grail. Scaling width is structural, but batch size is procedural. Usually, people just wave their hands, say 'Linear Scaling Rule', and hope the model converges. I’ve seen that fail more times than I’ve had hot dinners. Linda: They didn't use a heuristic this time. They went back to first principles using Stochastic Differential Equations. Norris: SDEs! Now you are speaking my language. Treating the optimizer's trajectory as a discretization of a continuous stochastic process. It is elegant. It assumes the noise in your gradients—which comes from the mini-batching—is part of the diffusion term in the equation. Linda: Spot on. They extend this SDE view specifically for AdamW. Most people forget that AdamW isn't just SGD with momentum; the adaptive learning rate makes the dynamics tricky. The paper proves that to keep the SDE dynamics invariant when you change batch size, you need a square-root scaling rule. Norris: Square root? Not linear? The folklore has always been 'double the batch size, double the learning rate'. Linda: That works for SGD, mostly. But for AdamW, because of the variance normalization, they derive that you must scale both the learning rate and the weight decay by the square root of the batch size multiplier. Norris: Wait, they scale the weight decay too? Usually, people treat weight decay as this separate knob you just twiddle until the loss goes down. Linda: That’s a huge contribution here. They show that if you don't scale the weight decay along with the learning rate according to this SDE rule, the transfer fails. They call it maintaining the 'effective step size'. It keeps the signal-to-noise ratio in the optimization process constant. Norris: I suppose that makes sense. If you take fewer steps because your batches are larger, the regularization penalty per step needs to be stronger, but the adaptive magnitude complicates it. So the square root balances the adaptive term's scaling? Linda: Exactly. And they apply this same SDE logic to the training duration—the 'Token Horizon'. They call it the 'SDE iso-horizon scaling rule'. basically, if you want to train on 10 times more tokens, you adjust the hyperparameters so that the SDE's integration horizon covers that longer distance without distorting the signal dynamics. Norris: So, if I want to train a model for a trillion tokens, I can simulate the dynamics on a billion tokens, find the optimal hyperparameters, and then use this SDE scaling to mathematically project them out to the full run? Linda: Yes! It aligns the signal-to-noise ratio so that the optimization path on the short run effectively mimics the path of the long run. Norris: It’s a Grand Unified Theory of hyperparameter scaling. Width, depth, batch size, time... It turns what is usually alchemy into a physics simulation. I admit, Linda, I am finding it very hard to stay skeptical about this one.
## The Per-Module Revolution
Norris: Alright, Linda, I’m following you so far. We have this grand unified theory, Complete-d-P, which sounds like a very aggressive dental procedure, by the way. It handles width, depth, batch size, time... the whole physics simulation of the model. Linda: It really does! But here is where they pull the rug out from under us, Professor. Normally, when we train a model, what do we do? We pick a global learning rate, maybe a global weight decay, and we apply it to everything. Norris: Naturally. One learning rate to rule them all. Simple, elegant, and it prevents me from having to manage a spreadsheet with a thousand columns. Linda: Well, the authors argue that treating every parameter the same is actually leaving performance on the table. Think about it—should the embedding layer really learn at the exact same speed as the attention heads deep in the network? Should the normalization layers have the same weight decay as the MLPs? Norris: I mean, intuitively, probably not. But practically? Linda, if I start tuning a separate learning rate for every single component, I’m not doing machine learning anymore, I’m doing combinatorial torture. The search space would be infinite. Linda: It is huge! They identified 79 different hyperparameters to tune. Not just learning rates, but Adam betas, epsilon, initialization scales—specifically optimized for each module type and even varying by depth. Norris: Seventy-nine? You want me to tune seventy-nine knobs simultaneously? That’s not a hyperparameter search; that’s a cockpit for a space shuttle. How do you even optimize that without burning through a century of GPU time? Linda: That is exactly the problem. They looked at the loss landscape for these per-module parameters, and it is nasty. It’s not a nice smooth bowl where you can just roll a marble down to the bottom. Norris: Let me guess. It’s full of local minima? Linda: Actually, it’s remarkably close to being 'invex'—meaning the stationary points are global minima—but the danger is the boundaries. The landscape is full of cliffs. Norris: Cliffs? Linda: Sharp drop-offs where the training just diverges. NaNs everywhere. One minute your loss is improving, you step slightly too far with the Attention Key learning rate, and boom—model collapse. Because of these sharp cliffs, standard Bayesian Optimization struggled because Gaussian Processes generally assume the world is somewhat smooth. Norris: So if Bayesian Optimization is out, and Grid Search is impossible... did they just use a dartboard? Linda: Close! They used something called Trust Region Random Search. It’s actually quite clever in its simplicity. You start with a best guess. Then you define a 'trust region'—a box around that guess. Norris: Like a safety zone. Linda: Exactly. You sample random configurations only from inside that box. If you find a new best point, you move the center of your box to that point. If you don't find anything better for a while, you assume you’re close to the optimum, so you shrink the box to refine the search. Norris: I see. So instead of trying to map the whole jagged continent, you’re just feeling your way down the mountain in the dark, keeping your hands close to your body so you don't fall off one of those cliffs. Linda: That’s a great analogy! And because they do this on a small 50-million parameter proxy model, they can afford to run thousands of these trials. It’s computationally cheap. Norris: Right, and this brings us back to the unified theory. The only reason they can waste time tuning 79 knobs on a baby model is because they are confident those knobs will transfer to the big model. Linda: Precisely. If Complete-d-P works, those per-module settings—like setting the embedding learning rate lower, or the depth-wise multipliers—should just work on the 7-billion parameter model without retuning. Norris: It’s a high-risk, high-reward strategy. You spend your budget up front on a complex search, betting the farm that the transfer holds. If it doesn't, you just overfitted a toy model. Linda: But if it does work... you potentially get a model that trains significantly faster because every single neuron is learning at its own optimal pace. It's like giving every student in a classroom a personalized curriculum instead of one lecture for everyone. Norris: Okay, you’ve piqued my interest. The methodology is sound, if a bit terrifying. But does it actually work when they scale it up? Or did the cliffs come back to haunt them?
## Scaling Up: 50 Million to 7 Billion
Norris: Alright, Linda. We've got the fancy math, the Stochastic Differential Equations, the fractal loss landscapes... it all sounds very impressive on a whiteboard. But the rubber has to meet the road eventually. Did they actually try this on a model that fits on more than a smartwatch? Linda: They absolutely did, Professor! And this is the payoff. The whole premise of this 'Completed' Parameterisation is that you shouldn't *have* to tune hyperparameters on the big model. It’s simply too expensive. Norris: Tell me about it. One wrong learning rate on a 7 billion parameter run and you've just burned a research grant the size of my mortgage. Linda: Exactly! So, they performed that expensive, jagged, cliff-filled search we talked about on a tiny proxy model. Just 50 million parameters. Norris: 50 million? Linda, I have Excel spreadsheets bigger than that. That's a rounding error in modern NLP. Linda: A *useful* rounding error! They found those specific, per-module learning rates—different for embeddings, attention heads, MLPs—on the 50 million model. Then, using their Complete(d)P rules, they translated those settings up to a 7 billion parameter model. Norris: Translated, not just copy-pasted. I assume the math handled the scaling factors for width and depth? Linda: Precisely. And the results were startling. On the small proxy model, the per-module approach was already 2.3 times faster than just tuning a single global learning rate. But the big question was: does that advantage transfer? Norris: And? Did the magic hold up when they multiplied the compute budget by... what? Linda: By about 600 times! And yes, it held up beautifully. The per-module settings, once scaled, resulted in a significant training speed-up on the large model. We're talking about reaching the same loss value much faster—about a 27% speed-up in compute to reach equivalent performance at the billion-parameter scale. Norris: Twenty-seven percent? In this economy? That is... actually quite substantial. Usually, when people say 'transfer,' they mean 'it didn't explode immediately.' Linda: It’s better than just 'not exploding.' They checked downstream tasks too—reasoning benchmarks like PIQA and Hellaswag. The models trained with transferred, per-module settings consistently outperformed the global baseline. They basically got a better model for less time, just by doing their homework on the small model first. Norris: So, let me get this straight. You spend a weekend torturing a tiny 50 million parameter model until it confesses its optimal per-module secrets... Linda: ...and then you apply those secrets to the 7 billion parameter giant, and it just works. No extra tuning required. Norris: Well. I suppose I can't argue with efficiency like that. It’s like testing a recipe in a thimble before cooking a banquet for a thousand people. Linda: And the banquet tastes better! The method is robust across the board.
## Conclusion: A Skeptic Convinced
Norris: I have to admit, Linda, when you first brought up 'per-module hyperparameter optimization', I had visions of a graduate student weeping softly in front of a server rack for six months. It sounded like a recipe for overfitting. Linda: But...? Norris: But, the SDE argument actually holds water. Treating the optimizer's discrete steps as an approximation of a continuous Stochastic Differential Equation—that is the kind of rigorous mathematical grounding that warms an old skeptic's heart. It turns what looks like arbitrary heuristics into actual physics. Linda: Exactly! It takes the magic out of it. We aren't just guessing that 'bigger batch means bigger learning rate'. The math tells us exactly how to scale the noise and the decay so the training dynamics stay consistent. It means we can finally trust the small-scale experiments. Norris: And that trust is expensive currency. If I can tune on a 50 million parameter model on a single GPU and know—actually know—that those settings will hold up on a 7 billion parameter run? That changes the economics of research entirely. Linda: Right? It democratizes things. You don't need a massive budget to find the optimal settings anymore. You just need a good proxy model and the right transfer rules. Plus, that 1.3x speed-up on the final run is practically free performance. Norris: Indeed. It seems the alchemists are finally learning chemistry. I suppose I might have to retire my jokes about hyperparameter tuning being a 'dark art'. It’s starting to look suspiciously like... engineering. Linda: Don't worry, Professor. We still have to pick the random seeds. There's still a little bit of magic left. Norris: Comforting to know. Well, until next week, keep your gradients clipped and your learning rates scheduled. This has been Mechanical Dreams.