## Introduction: The Alchemy of Training Norris: Add a pinch of weight decay... stir the batch size counter-clockwise... and whisper a prayer to the GPU gods. There. Now we wait three days to see if it explodes. Linda: Professor? Are you talking to your computer again? You know the cluster doesn't actually have ears, right? Norris: Oh, hello, Linda. And don't be so sure. sometimes I think it feeds on my anxiety. I'm just trying to get this new transformer to converge. It’s like medieval alchemy, I swear. I feel less like a scientist and more like a wizard trying to turn lead into gold, except the lead is a pile of text data and the gold is a validation loss that doesn't look like a heart attack. Linda: The 'Black Magic' of hyperparameter tuning. It is frustrating. You change the learning rate by a decimal point and suddenly the model forgets how to speak English. Norris: Exactly! It’s all intuition and guesswork. 'Oh, just use a batch size of 256, it feels right.' 'Double the learning rate, it’s a Tuesday.' Where is the rigor, Linda? Where is the science? Linda: Well, put away your cauldron and your spellbook, Professor. Because that is exactly what this week's paper is about. It's about taking the 'alchemy' out of training and replacing it with hard, empirical math. Norris: You have my attention. Please tell me someone finally figured out a formula so I can stop guessing. Linda: They claim they have. The paper is titled 'Predictable Scale: Part I, Step Law – Optimal Hyperparameter Scaling Law in Large Language Model Pre-training.' It’s fresh off the presses from the team at StepFun and Fudan University. Norris: 'Predictable Scale.' That is a very confident title. Usually, when I see 'scaling law' in a title, it's someone drawing a line through three data points on a graph and calling it a universal truth. Is this another one of those? Linda: Not even close. This isn't a theoretical paper that assumes a spherical cow in a vacuum. This is brute force science. They wanted to solve the hyperparameter problem once and for all, so they didn't just train a few models. They went massive. Norris: How massive are we talking? Did they run it on MNIST? Because if I see another scaling law based on handwritten digits... Linda: Think bigger. Much bigger. We are talking about thousands of Large Language Models trained from scratch, specifically to map out exactly how learning rate and batch size should change as you scale up. Norris: Thousands? That sounds expensive. Linda: It was. And the result is what they call the 'Step Law.' They claim it's a universal, plug-and-play formula. You give it your model size and your dataset size, and it tells you exactly what hyperparameters to use. No grid search, no guessing, no alchemy. Norris: A plug-and-play formula... If that actually works, Linda, I might cry. Do you know how many weekends I’ve lost to tuning learning rate schedules? Linda: Get your handkerchief ready, Professor. Because the data behind this is overwhelming. Let's get into the details. ## The Million-Hour Experiment Norris: Okay, Linda, rewind for a second. You said 'thousands' of models. Usually, when people say that, they mean they trained a thousand tiny 2-layer perceptrons on a laptop to prove a point. You aren't suggesting they trained thousands of actual Language Models? Linda: I am. And not on a laptop, unless your laptop has a dedicated cooling tower. They conducted what they call an 'unprecedented empirical investigation.' Specifically, they trained over 3,700 LLMs from scratch. Norris: 3,700... from scratch. That is statistically significant, to put it mildly. What kind of compute budget are we looking at here? Linda: Hold onto your coffee mug. They consumed nearly one million NVIDIA H800 GPU hours. Norris: One... million? H800s? Good heavens. If I put that in a grant proposal, the review board would laugh me out of the room. That’s millions of dollars in compute just to find out what learning rate to use! Linda: It’s a massive investment, but think about the alternative. The industry is spending billions training models like GPT-4 or Llama 3. If you get the hyperparameters wrong on a run that size, you don't just lose a few dollars; you light a bonfire with ten million dollars. StepFun—the group behind this—decided to pay the upfront cost to solve the problem for everyone. Norris: It’s brute force, but it’s noble brute force. So, they have this mountain of GPU hours. What exactly were they doing with it? You can't just run random configurations. Linda: They performed exhaustive grid searches. For every model size and dataset size combination, they trained a grid of different learning rates and batch sizes to find the absolute global minimum of the loss. Norris: Grid search on LLMs. I shudder at the thought. Usually, we do a random search or a Bayesian optimization because the search space is too big. Doing a grid search implies they really wanted to see the shape of the terrain. Linda: Exactly. They wanted to map the 'loss landscape.' And because they had so much data—processing about 100 trillion tokens in total across these runs—they could actually visualize it. They found something very reassuring. Norris: Let me guess. It looked like a terrifying, jagged mountain range full of local minima where models go to die? Linda: Quite the opposite! They discovered that under fixed conditions, the landscape is convex. It’s a nice, smooth bowl. There’s a broad optimum region. Norris: Convexity? In deep learning? That is a bold claim. We usually assume the landscape is non-convex and chaotic. Linda: Well, they show 3D surface plots in the paper constructed from real training runs—not theoretical approximations. It shows a clear, bowl-shaped valley. This convexity is crucial because it means if you can find the formula for the center of that bowl, you’re safe. You don't need to worry about getting stuck in a bad local minimum just because you shifted the learning rate by 1%. Norris: This is actually fascinating. Most scaling laws, like the original Kaplan paper or Chinchilla, focused on how loss scales with compute. This is focusing on how the *optimal settings* scale. It’s a meta-scaling law. Linda: Right. They aren't just predicting performance; they are predicting the recipe to get there. And unlike previous attempts that extrapolated from tiny models, they have dense data points all the way up to billions of parameters to verify their curve fitting. Norris: I suppose with a million GPU hours, you don't have to extrapolate much. You can just... interpolate. Which is far more reliable. Alright, I'm impressed by the wallet size and the methodology. But what did this million-dollar map actually reveal? What does the Step Law look like? ## Defining the Step Law Norris: Alright, Linda, you've dazzled me with the million GPU hours and the convex loss landscape. But let's get down to brass tacks. What is the actual 'Step Law'? If I have a new model, how do I find my magic numbers? Linda: Okay, let's break it down. They derived two specific power-law equations. One for Learning Rate, and one for Batch Size. Let's start with the Learning Rate. Norris: The Learning Rate. The heartbeat of the training process. I assume it scales with the model size? Bigger models usually need smaller learning rates to avoid divergence. Linda: Correct. They found the optimal learning rate follows a power law involving both the Model Size, N, and the Dataset Size, D. So, as N gets bigger, the rate goes down. But crucially, it also depends on how much data you have. Norris: That tracks with what we know. DeepSeek and others have suggested something similar. You need to pace yourself differently depending on how long the race is. Linda: Exactly. So far, so standard. But Professor, are you sitting down? Because the second part—the Batch Size law—is where things get controversial. Norris: I am seated. Hit me. Linda: Conventional wisdom says that as you increase the Model Size, you should increase the Batch Size. The logic is that larger models have more noise in their gradient estimates, so you need more samples per step to stabilize them. Norris: It’s not just wisdom, Linda, it’s practically physics. If I have a 100 billion parameter monster, I can't just feed it a batch of 4 tokens. It needs a massive batch to get a reliable gradient direction. Linda: Well, the physics might need a rewrite. StepFun's data shows that the optimal Batch Size is largely *invariant* to Model Size. Norris: Invariant? That... that can't be right. You're telling me a 1 billion parameter model and a 100 billion parameter model want the same batch size? Linda: If the dataset size D is the same? Yes. Their formula for Batch Size depends *only* on D. It’s proportional to D raised to the power of roughly 0.57. Norris: Wait. So the length of the training run dictates the batch size, not the width of the network? That implies the batch size is purely about... what? Information efficiency per step over the lifetime of the run? Linda: Precisely. It seems to be about how you allocate your 'token budget' to minimize noise over the course of training, rather than stabilizing a specific model architecture. They showed these regression analyses in the appendix—the correlation with Model Size was statistically insignificant. Norris: I find that hard to swallow. If I ignore the model size, surely I’m leaving performance on the table. There has to be a penalty. Linda: They checked that. They compared the loss you get using their 'N-invariant' formula against the absolute best loss found by their exhaustive grid search. The difference? The Step Law prediction was within 0.094% of the global optimum. Norris: 0.094%. That is... vanishingly small. That’s effectively zero difference in the real world. Linda: Right? It suggests that while Model Size *might* theoretically have a tiny impact, for all practical engineering purposes, you can ignore it. You just look at your token count—say, 100 billion tokens—plug it into the formula, and bam: you have your optimal batch size. Norris: This completely decouples the hyperparameter search. If Batch Size only depends on D, and Learning Rate depends on N and D... you can calculate them independently before you even write a line of training code. Linda: That’s why they call it 'Predictable Scale.' They essentially handed us a calculator. No more 'feeling' the batch size, Professor. Norris: I suppose my feelings were wrong. But this is good! It simplifies the problem space enormously. Instead of a 3D search, it’s just two decoupled lookups. Linda: And it explains why transfer learning for hyperparameters has been so hit-or-miss in the past. People were trying to transfer settings from small models to big models without adjusting for the dataset size correctly, or they were over-adjusting batch size based on parameter count when they didn't need to. Norris: So, just to clarify: if I decide to double my training data, I should increase my batch size, regardless of whether I'm training a toy model or a behemoth? Linda: Exactly. The law says Batch Size scales with roughly the square root of Dataset Size. So if you quadruple your data, you double your batch size. Norris: Simple. Elegant. And backed by a million hours of burning silicon. I hate to admit it, but I’m starting to like this paper. ## Universality: MoEs and Data Recipes Norris: I have to admit, Linda, the batch size discovery is elegant. But I’m still holding onto a shred of skepticism. We’ve been talking about dense, standard Transformer models. But the world is moving on. Everyone who can afford it is training Mixture-of-Experts now. Linda: Ah, yes. MoEs. Sparse models where you only activate a fraction of the parameters for each token. Efficient, but notoriously finicky to train. Norris: Exactly. The dynamics are completely different. You have routing issues, load balancing... surely a simple power law derived from dense models falls apart when you start carving holes in the network? Linda: That’s what I thought, too. And that is exactly where other scaling laws—like the one from DeepSeek—started to crumble in this study. They struggled to predict optimal settings when the sparsity changed. Norris: I assume because they rely too heavily on parameter count, and with MoEs, 'parameter count' is ambiguous. Do you mean total parameters or active parameters? Linda: Right. But here is the triumph of the Step Law. The researchers tested it on 16 different MoE configurations with varying sparsity levels—different ratios of active to total parameters. And the Step Law predicted the optimal hyperparameters with a relative error of less than 0.5%. Norris: Wait. It worked on MoEs just as well as dense models? Without a special 'MoE coefficient' or a fudge factor? Linda: Without any fudge factors. They found the law exhibits 'strong invariance' across model shapes. Whether it’s a dense block of cheese or Swiss cheese, the optimal learning rate and batch size follow the same fundamental curve based on the scale of the data and the model. Norris: That is remarkably robust. You mentioned other laws struggled? Linda: Yes. When they applied the DeepSeek formula to these MoE models, the relative error was over four times higher than the Step Law. It seems Step Law captures something deeper about optimization capacity that isn't dependent on the specific density of the architecture. Norris: Okay, fine. It handles architecture changes. But what about the data itself? We all know training on Python code is different from training on Shakespeare. The loss curves look different; the noise is different. Linda: They anticipated you'd say that, Professor. So they designed three different 'Data Recipes.' First, a baseline. Second, a 'Code Integration' recipe with a lot of programming languages. And third, a 'Bilingual' recipe that mixed English and Chinese. Norris: Chinese... that’s interesting. A completely different token distribution, different character set. Usually, hyperparameters tuned for English transfer poorly to multilingual settings without adjustment. Linda: Not with the Step Law. They visualized the optimal points for all three recipes. The Step Law's predictions landed within 0.25% of the global minimum for all of them. Norris: Even the code-heavy recipe? Code usually requires different handling because it’s so brittle—one wrong token breaks the syntax. Linda: Even the code-heavy recipe. It turns out, if you account for the dataset size D correctly—as the Step Law does—the specific 'flavor' of the data matters much less than the sheer volume of it. Norris: So, let me get this straight. I can swap my architecture from Dense to MoE. I can swap my data from English literature to Python scripts. And I can still use the exact same calculator to set my learning rate and batch size? Linda: That is the claim. It’s a 'universal' scaling law. And honestly, looking at the comparison charts against OpenAI’s law, Microsoft’s law, and DeepSeek’s law... Step Law is the only one that hits the bullseye across every single variation. Norris: It’s surprisingly... tidy. I’ve spent so many years assuming that every model was a unique snowflake that needed special care. To find out they’re all just points on the same curve... it’s humbling. Linda: Or liberating! It means you can focus on the architecture and the data quality, and stop worrying about the tuning. ## Conclusion: A Plug-and-Play Future Norris: Well, Linda, I suppose I have to accept it. The days of the 'Training Alchemist' are numbered. If I can just look up the optimal settings in a table—or calculate them with a simple power law—then my 'intuition' is officially obsolete. Linda: Don't think of it as obsolete, Professor. Think of it as automated. Now you can use that brain power for designing better architectures or curating better datasets, instead of babysitting a loss curve at 3 AM. Norris: That is a fair trade. And honestly, the economic implications are staggering. If this Step Law prevents even a few failed training runs at the scale of GPT-5 or whatever comes next, we are talking about saving tens of millions of dollars in electricity and hardware wear. Linda: It’s a huge efficiency boost. And the best part is that StepFun didn't keep this proprietary. They open-sourced everything. The code, the data, even the checkpoints for those 3,700 models are on GitHub. Norris: That is generous. And rare. Usually, a company spends a million GPU hours and guards the results like a dragon hoarding gold. Releasing the map to the treasure is... refreshing. Linda: It really democratizes things. It means smaller labs—like ours—can train efficiently without needing a million-dollar budget just to find the starting line. Norris: Indeed. So, next week, when I start that new training run... I won't be reaching for my lucky dice. I'll just check the Step Law. Linda: See? Old dogs, new tricks. Thanks for listening, everyone. Join us next week for another deep dive into the mechanics of our dreams. Norris: And until then, may your loss be convex and your gradients be stable. Goodbye!