## Dessert Before Vegetables?
Norris: Welcome back to Mechanical Dreams, everyone. I'm Professor Norris. Now, Linda, I must object to the title you proposed for today's episode: 'Dessert Before Vegetables?' It sounds less like a computer science discussion and more like a negotiation with a toddler. Linda: It's a metaphor, Professor! But don't worry, we aren't pivoting to nutrition. We are talking about how we feed data to Large Language Models. Specifically, the concept of Curriculum Learning. Norris: Ah, Curriculum Learning. A concept that is intuitively pleasing to anyone who has ever taught a class. The idea, if I recall, is that order matters. You don't hand a first-grader a copy of 'Finnegans Wake'; you start with 'The Cat in the Hat'. Linda: Exactly. In the context of LLM pretraining, it means sorting your data by quality. You start training the model on the noisy, lower-quality web data—the 'vegetables'—and you save the high-quality, clean, reasoning-heavy textbooks—the 'dessert'—for the very end of training. Norris: It makes perfect sense. It utilizes the 'recency bias' of the model. The last things it sees should be the things it remembers best, so you want those to be your highest quality tokens. It’s elegant. It’s logical. Let me guess: this paper proves it works beautifully? Linda: actually... no. Or rather, that's the mystery. Historically, despite how logical it sounds, curriculum learning for LLMs has been a bit of a flop. Most studies show that carefully sorting your data yields almost no improvement over just shuffling everything randomly. Norris: Is that so? That is... disappointing. You mean to tell me that carefully planning a syllabus is no better than dropping a library on the students' heads and hoping for the best? That makes my job feel somewhat redundant. Linda: It’s been a huge puzzle in the field. Why doesn't saving the best for last work? Well, the paper I brought today, from researchers at Tsinghua University, argues that we've been sabotaging ourselves. The curriculum isn't the problem, Professor. The problem is how we tell the model to learn.
## The Invisible antagonist: Learning Rate Decay
Norris: Alright, Linda. You've got me on the edge of my ergonomic office chair. We've established the premise: we sort the data from trash to treasure. Logic dictates the model should end up smarter because it sees the highest quality examples right before the final exam, so to speak. But you ended the last segment on a cliffhanger. You said it doesn't work. Who is the saboteur here? Linda: It’s an inside job, Professor! The saboteur is something we take for granted in almost every single LLM training run. It's the Learning Rate Schedule. Norris: The schedule? You mean the standard decay? But Linda, that's non-negotiable. You start with a high learning rate to explore the loss landscape, and then you anneal it—you decay the rate down to zero so the model can settle into a nice, cozy local minimum without bouncing around. That is Optimization 101. Linda: Exactly. Optimization 101 says 'decay to zero'. But Curriculum Learning 101 says 'put the best data at the end'. Do you see the conflict? Norris: Wait. Let me think this through. If I put the best data at the very end of training... and the learning rate at the end of training is scheduled to be... Linda: Tiny. Microscopic. Basically zero. Norris: Oh. Oh, I see. We are whispering the most important secrets of the universe to the model right as it's falling asleep. Linda: That is the perfect analogy! The paper calls this the 'incompatibility' between the data schedule and the optimization schedule. Think about what the learning rate actually represents. It’s not just a step size; it acts as an implicit importance weight. Norris: Right, because a larger step size means that specific batch of data has a larger impact on the final weights. So, by using a standard Cosine schedule or Warmup-Stable-Decay, we are implicitly telling the model: 'This noisy web scrape from step 100 is crucially important,' and 'This pristine textbook data from step 100,000 doesn't matter at all.' Linda: Precisely. We are inversely weighting the data quality. The authors of the paper actually ran experiments to prove this. They found that if you train with a constant learning rate—just keep it high the whole time—curriculum learning works beautifully. It beats random shuffling by a huge margin. Norris: But you can't just keep the learning rate high forever, Linda. If you don't decay, the loss won't converge. You'll just bounce around the bottom of the valley like a kangaroo on a trampoline. Linda: And that is the tragedy. As soon as they switched to a standard decay schedule—like the WSD schedule everyone loves right now—the advantage of the curriculum vanished. The aggressive decay during the final phase, which is exactly when the high-quality data arrives, essentially muted the data. The model couldn't update its weights enough to care about the 'good stuff'. Norris: So it's a classic coordination failure. The data team is shouting 'Save the best for last!' and the optimization team is shouting 'Shut it down early!' and nobody bothered to check if those two strategies play nice together. Linda: It really explains why the literature on this has been so confusing. People try curriculum learning, use a standard scheduler, see no gain, and conclude 'Curriculum Learning doesn't work.' But the reality is, it works fine—you just have to let the model listen. Norris: It’s like serving a filet mignon as the very last course of a twenty-course meal. It doesn't matter how good the steak is if the guest is already loosening their belt and asking for the check. So, we're stuck. We need high learning rates to learn the good data, but we need low learning rates to converge. How do we square that circle? Linda: Well, the authors propose we stop thinking about convergence purely in terms of step size. We need to think about the geometry of the loss landscape—specifically, the signal versus the noise. That's where the 'River Valley' comes in.
## Signal, Noise, and the River Valley
Norris: Okay, Linda, I'm following you so far. We save the filet mignon for dessert, but we've already turned off the stove—the learning rate is too low to cook it. But let's get under the hood. What is actually happening mathematically? Is the model just... ignoring the data? Linda: It’s not ignoring it, Professor, but it's barely reacting to it. To understand why, the authors break down the gradient update into two components: the signal and the noise. Norris: Ah, signal and noise. The eternal struggle. Linda: Exactly. Think of 'signal' as the true direction of improvement—the vector pointing exactly where the model needs to go to get smarter. 'Noise' is the random variance that makes the training loss bounce around. Norris: And naturally, high-quality data has more signal and less noise. Linda: Precisely! High-quality data is like a clear, loud command. Low-quality web data is like a command shouted through a broken walkie-talkie—you get the general idea, but there's a lot of static. Now, normally, why do we decay the learning rate at the end of training? Norris: To stop the jitter. You want to reduce the step size so you can settle into a local minimum without bouncing out of it. You're trying to suppress the noise. Linda: Right. But here is the tragedy. The learning rate acts as a volume knob for both the noise *and* the signal. When you turn it down to zero to suppress the noise from the early, messy data, you are also muting the strong, clear signal coming from the pristine data you saved for the end. Norris: I see. We’re throwing the baby out with the bathwater. Or rather, we’re quieting the static, but we're also unplugging the speaker right when the symphony starts playing. Linda: The paper uses a really beautiful analogy for this, citing a 'river valley' model of the loss landscape. Picture the optimization process as a boat traveling down a river valley. The river flowing downstream is the 'signal'—that's the direction of progress. The width of the valley, where you bounce side-to-side against the banks, is the 'noise'. Norris: I like this. So, in standard training, we paddle hard at first, bouncing off the banks, and then we stop paddling to drift into a calm spot? Linda: Basically. Standard learning rate decay is like turning off your engine so you stop bouncing off the canyon walls. It lets you settle into the deepest part of the channel. That works great if the water is choppy and the current is weak. Linda: But with curriculum learning, the end of your journey is a stretch of river where the water is perfectly smooth and the current—the signal—is incredibly fast and direct. That’s your high-quality data. Norris: But because we stuck to the old map, we’ve already cut the engine. So we're sitting in this fast, smooth current, just... drifting? Linda: Exactly! The authors show this theoretically. If you decay the learning rate too aggressively, the model literally stops moving along the signal direction. It doesn't matter how 'good' the data is if the optimizer isn't allowed to take a step. You end up with a model that has seen the truth but wasn't allowed to learn from it.
## The Solution: Curriculum Model Averaging (CMA)
Norris: So, let me get this straight. We’ve established that the standard learning rate schedule—the cosine decay that everyone and their grandmother uses—is essentially sabotaging curriculum learning. It turns the hearing aid off right when the opera singer starts hitting the high notes. Linda: That is... a surprisingly accurate metaphor. Yes. By the time we feed the model the high-quality data—the textbooks, the reasoning problems—the learning rate is so small that the model barely updates its weights. Norris: Right. So, the obvious solution, or at least the naive one, would be: don't turn the hearing aid off. Just keep the learning rate high. But Linda, you know as well as I do that if you finish training with a high learning rate, the model doesn't converge. It just bounces around the loss landscape like a pinball. You end up with a noisy, unstable mess. Linda: Exactly! And that’s the trap. You need stability to get a good model, but you need plasticity—high learning rates—to learn the hard stuff at the end. Traditionally, we thought those two things were mutually exclusive. But this paper asks: what if they aren't? Norris: I sense a plot twist coming. Linda: Enter the hero of our story: Curriculum Model Averaging, or CMA. The authors propose a complete paradigm shift. Instead of using learning rate decay to stabilize the model, they use weight averaging. Norris: Weight averaging... like Stochastic Weight Averaging? Or EMA? Linda: Exponential Moving Average, or EMA, specifically. Here is the recipe: Step one, you sort your data from low quality to high quality. Step two, you train with a constant learning rate. No decay. You keep that learning rate high right to the very end. Norris: Which, as we established, leaves you with a pinball machine. Linda: Ideally, yes. The loss curve actually looks terrible if you just peek at it. It doesn't flatten out; it stays noisy. But then comes Step three: You take the last few checkpoints—the snapshots of the model's brain while it was bouncing around—and you average their weights together. Norris: I see. So instead of lowering the temperature to freeze the model into a valley, which is what decay does... Linda: You keep the temperature high so it can explore and learn the complex contours of the high-quality data. The high learning rate lets the model take big steps towards the 'signal' provided by that good data. But because big steps introduce noise, you use the averaging to mathematically smooth that noise out afterward. Norris: That is clever. It’s replacing the *mechanism* of stability. Decay stabilizes by stopping movement. Averaging stabilizes by finding the center of the movement. Linda: Precisely! The paper argues that learning rate decay serves two purposes: it reduces noise, which is good, but it also shrinks the update size, which is bad if you're saving the best data for last. Model averaging creates that same noise reduction without shrinking the updates. Norris: So it decouples the stability from the plasticity. You can have your cake and eat it too. You can learn aggressively from the Wikipedia articles at the end, but still end up with a smooth, converged model. Linda: And it works, Professor. They call this 'Curriculum Model Averaging'. In their experiments, they just keep the learning rate flat—completely constant—and let EMA handle the cleanup. The high-quality data gets the full force of the optimizer. Norris: It feels a bit like cheating, doesn't it? 'My model won't converge, so I'll just average all my failures and hope it makes a success.' But mathematically, I suppose it's sound. It reminds me of the river valley analogy you mentioned earlier. Linda: Right! If the high-quality data is a river flowing down a valley, the high learning rate lets you surf down the river quickly. You might splash around a lot—that’s the noise—but the averaging tells you where the middle of the river was. Norris: Whereas with the old method, by the time you reached the river, you’d turned off the engine and were just drifting aimlessly. Linda: Exactly. And they didn't just stop at constant learning rates. They found this synergy is robust. They tried a 'moderate' decay—decaying a little bit, but not to zero—combined with averaging, and that worked even better in some cases. They call that CDMA. Norris: CDMA. Now it sounds like a cellular network standard from 2005. But the principle stands. We’ve been optimizing our schedules for uniform data—where every batch is the same average quality—so it made sense to decay aggressively. But when the data changes over time... Linda: The optimization has to change with it. You have to co-design the data curriculum and the training dynamics. You can't just slap a curriculum onto a cosine schedule and expect magic.
## Results at Scale
Norris: Alright, Linda. This theory is all well and good—signal rivers and noise valleys. Very poetic. But I’ve been around the block. Usually, when people come to me claiming 'Curriculum Learning works,' they show me a graph of a model learning to add two single-digit numbers, or maybe classifying handwritten digits on a laptop. Linda: Not this time, Professor! They didn't just run this on a toy dataset. They validated their findings at a scale that actually matters for us. They trained 1.5 billion parameter models—specifically using the Qwen2.5 architecture—on 30 billion tokens. Norris: Oh? 1.5 billion. Okay, that's not exactly GPT-4, but for an academic paper? That is... surprisingly robust. That’s a real training run. So, don't keep me in suspense. Did it actually work, or was it just 'statistically comparable'? Linda: It worked, and significantly so. When they combined the curriculum—sorting data from worst to best—with that constant learning rate and model averaging we just talked about, they saw a 1.64% average improvement across standard benchmarks. Norris: One point six four percent. I can hear the audience shrugging right now, Linda. 'Less than two percent? I get better returns in my savings account.' Linda: Professor, come on! You know as well as I do that in the world of LLM pretraining, 1.6% is massive! Companies spend millions of dollars on extra compute just to squeeze out half a percent on MMLU. Getting 1.64% essentially for free—just by reordering your data and changing the scheduler—is huge. Norris: You make a fair point. In the optimization mines, finding a nugget that size is rare. And you’re saying this held up across different tests? Linda: Yes! They tested on MMLU, ARC, CommonSenseQA—the works. And get this: in 'mid-training' scenarios, where you take an existing model and switch to high-quality data partway through, the improvement was even higher. Over 2% on core benchmarks. Norris: Two percent. Now you definitely have my attention. It really drives home the irony, doesn't it? We've been optimizing our hyperparameters for random shuffling for so long, we convinced ourselves that 'decaying the learning rate to zero' was a law of physics. Linda: Exactly! But it's only a law for *random* data. Once you curate the curriculum, the old laws actually hold you back. This paper proves that if you treat your data schedule and your optimization schedule as a joint design problem, there’s a lot of untapped potential left on the table.
## Rethinking the Pretraining Recipe
Norris: I have to hand it to them, Linda. I really do. I started this episode thinking curriculum learning was just one of those elegant academic concepts that falls apart the moment it touches the messy reality of GPU clusters. But this... this actually makes sense. Linda: It really does, doesn't it? It reframes the whole history of the field. It suggests that all those previous papers reporting 'marginal gains' or 'negative results' from curriculum learning might not have been wrong about the data ordering—they were just using the wrong map for the territory. Norris: Precisely. We were judging a fish by its ability to climb a tree, or rather, judging a curriculum by how well it performed under a learning rate schedule designed for random shuffling. It’s the co-design aspect that really gets me. Linda: That’s the key term: co-design. The authors argue that we can't treat data curation and optimization dynamics as separate departments anymore. If you change the order of your data, you have to fundamentally change the physics of your training run. The 'Optimal Regime' they found—moderate decay plus model averaging—completely contradicts the standard 'decay-to-zero' wisdom we've held onto for years. Norris: And the implications for mid-training are massive. We're seeing more and more labs doing this—training on massive web slop first, then switching to high-quality textbooks and code at the end. But if you do that with a standard cosine schedule, you’re basically whispering the secrets of the universe to a model that’s already fallen asleep. Linda: Exactly! And the results prove it. In their mid-training experiments, using this Curriculum Model Averaging technique didn't just help a little—it boosted accuracy on core benchmarks by over 2%. In the world of LLM pretraining, where people fight for fractions of a percent, that is a canyon-sized gap. Norris: It makes me wonder how much compute we’ve wasted over the last few years. How many brilliant models were stifled because we turned down the learning rate knob too early? It’s a sobering thought. Linda: It is, but it's also optimistic! It means we might be able to get much smarter models with the same amount of data, just by keeping the model 'plastic' and receptive when the good stuff arrives. We don't necessarily need more tokens; we just need to be smarter about when and how we feed them to the network. Norris: Well, consider me converted. No more 'dessert before vegetables' analogies from me. From now on, the rule is: keep the kitchen open and the stove hot until the Michelin-star meal is actually served. Don't shut down the gas while the chef is plating the lobster. Linda: (Laughs) I’m sure the GPU cluster admins will love that analogy, Professor. Norris: I'm sure they will. Alright, that’s all the time we have for this week's exploration of 'Mechanical Dreams.' A fascinating paper that reminds us: sometimes the oldest ideas just need a fresh pair of hyperparameters to shine. Linda: Thanks for listening, everyone! We'll link the paper, 'How Learning Rate Decay Wastes Your Best Data,' in the show notes. You definitely want to check those loss curves—they are beautiful. Norris: Until next time, keep your gradients steady and your learning rates... well, maybe keep them constant for a while.