Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

Mechanical Dreams

Mechanical Dreams artwork

Learning Rates Regulate Catastrophic Overtraining

May 26, 202621 minAudio
ShareXLinkedInFacebookWhatsAppEmail

In this episode: • Introduction to Catastrophic Overtraining: Linda and Professor Norris introduce the paper and the counterintuitive phenomenon where better pretraining leads to worse catastrophic forgetting. • Feature Drift and Optimization Regimes: The hosts discuss how the supervised finetuning learning rate acts as an implicit regularizer, introducing the Mean Principal Angle to measure feature drift. • Sharpness and the Edge of Stability: Linda connects the mystery of overtraining to pretraining learning rate decay, explaining how model sharpness amplifies the finetuning learning rate. • Practical Takeaways for LLM Training: Professor Norris and Linda summarize the actionable advice from the paper, including lowering SFT learning rates and rethinking pretraining schedules.

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Transcript

From the show.

## Introduction to Catastrophic Overtraining

Norris: Welcome back to Mechanical Dreams, the podcast where we try to understand what our neural networks are dreaming about when we aren't looking. I am Professor Norris, and as always, I am joined by my brilliant student, Linda. Linda: Hi everyone! I am so excited for today's episode. We are diving into a brand new preprint from EPFL titled '(How) Learning Rates Regulate Catastrophic Overtraining' by Mark Rofin, Aditya Varre, and Nicolas Flammarion. Norris: Now, Linda, I have been around long enough to know all about catastrophic forgetting. It is what happens when I try to learn a new programming language and suddenly forget how to cook dinner. But catastrophic overtraining? That is a new phrase for me. Linda: It is a fascinating phenomenon that was recently discovered by Springer and colleagues earlier this year, and this new paper tries to figure out exactly why it happens mechanistically. Basically, we all know the standard LLM pipeline, right? You do a massive unsupervised pretraining run to get a capable base model, and then you do Supervised Finetuning, or SFT, to teach it to follow instructions. Norris: Right, the SFT stage is crucial. If you skip it and go straight to RL phase, the model struggles to get a reliable signal or spits out completely unreadable chains of thought. But we also know SFT tends to degrade the general, out-of-distribution capabilities the model learned during pretraining. That is the classic catastrophic forgetting problem. Linda: Exactly. But here is the crazy part. It was observed that if you take a base language model and pretrain it for longer, it obviously becomes a better general model. But when you apply that same SFT to teach it to follow instructions, that better base model actually suffers from much more catastrophic forgetting of its general skills compared to an earlier, objectively worse checkpoint. Norris: Wait, let me get this straight. You invest millions of GPU hours to make a smarter base model, pouring billions of tokens into it, and your reward is that it forgets everything the second you try to teach it to be polite? That seems completely backwards. Usually, a better representation is more robust. Linda: That is exactly why it is so counterintuitive! If scaling up pretraining budget inherently results in stronger forgetting during post-training, the entire paradigm of throwing more compute at pretraining might need to be adjusted. The initial hypothesis from prior work was something called progressive sensitivity to noise. The idea was that adding more tokens made the model more plastic to downstream modifications, but nobody really understood the underlying cause. Norris: I can see why. It sounds almost like a statistical artifact at first glance. You could argue that a model has finite capacity. The better it fits the pretraining distribution, the more it has to overwrite to fit the finetuning distribution. A zero-sum game, essentially. Linda: That was a prevailing theory! But recently, other researchers found that just using lower learning rates during SFT can partially mitigate the forgetting. If it were purely a capacity issue, the learning rate shouldn't matter that much. You would just end up overwriting capacity anyway to reach the same SFT loss. This clue led the EPFL authors to look at this through the lens of optimization dynamics rather than just statistical capacity. Norris: Alright, I am skeptical, but I am listening. Optimization dynamics are notoriously tricky to pin down in these massive loss landscapes. How exactly did they set up their experiments to prove this is not just an artifact? Linda: They started by looking at catastrophic forgetting in standalone models to establish a baseline. They took four one-billion-parameter models like OLMo, Hubble, and Gemma 3, and finetuned them on the Anthropic-HH dataset. But instead of just looking at the final model, they carefully controlled the learning rates and tracked the exact trajectory of the parameters. They wanted to see if models that reach the exact same finetuning loss behave differently out of distribution. Norris: Oh, that is a smart control. If two models have the same loss on the instruction dataset, but different generalization capabilities, you know the optimizer took them to qualitatively different minima in the parameter space. I think I see where this is going, and I am starting to get why you were so excited to bring this paper in today.

## Feature Drift and Optimization Regimes

Norris: So, you left us hanging at the end of the last segment, Linda. The researchers trained these one-billion-parameter models with different learning rates but stopped them at the exact same finetuning loss. What did they find? Linda: They found a striking effect. Models finetuned with higher learning rates exhibited significantly lower out-of-distribution performance on tasks like ARC and HellaSwag. So, even though the models were equally good at following instructions according to the finetuning loss, the high-learning-rate models forgot much more of their general knowledge. Norris: Fascinating. Since they achieved the same training loss, they essentially moved equivalent distances in terms of the objective function, but the optimizer steered them to completely different regions of the parameter space. This is a classic example of implicit regularization. Linda: Exactly. The choice of learning rate alone dictates which minimum the model falls into. The authors framed this using the concepts of lazy versus rich optimization regimes. Norris: Ah, yes. A low learning rate keeps the model in the lazy regime. It barely moves from the pretraining initialization, relying almost entirely on the existing features to solve the finetuning task. A high learning rate pushes it into the rich regime, forcing the model to learn new task-specific features, which in this case, overwrites the old ones. Linda: To prove this was actually happening inside the network, the authors needed to quantify how much the internal features were changing. They introduced a specific metric for this called the Mean Principal Angle, or MPA. Norris: Mean Principal Angle. That sounds like they are treating the model representations as vector spaces and measuring the geometric rotation between them. Linda: That is exactly what they did! They took the centered activation matrices from the residual streams of both the base model and the finetuned model. Then, they performed Singular Value Decomposition on these matrices to extract the top singular vectors. Norris: I see. And then you compute the arc cosine of the inner products between those singular vectors to get the angle. If the model has not changed at all, the angle is zero. As the representations diverge, the angle increases. Linda: Precisely. And the results were super clear. Across all the models they tested, finetuning with a high learning rate resulted in a much larger Mean Principal Angle than finetuning with a low learning rate, for any fixed level of training loss. Norris: So the representations literally rotate further away from their original, pretrained state when you use a large learning rate. They call this feature drift, I assume? Linda: Yes, feature drift. And just to be absolutely sure the math mapped onto meaningful semantic changes, they also verified this using Sparse Autoencoders on Gemma 3. They tracked the distance between the latent features restored by the autoencoder, and it correlated almost perfectly with the Mean Principal Angle. High learning rates fundamentally overwrite pretrained representations. Norris: Okay, but why? I understand the high-level intuition of lazy versus rich regimes, but mechanistically, what is happening step-by-step in the loss landscape to cause this discrepancy? Linda: They looked at the very first hundred steps of finetuning to answer that. They found that the feature drift shoots up rapidly at the very beginning of training. And here is the kicker: while the decrease in training loss is roughly convex with respect to the learning rate, the increase in feature drift is linear. Norris: Let me think about the math there. If the drift increases linearly with the learning rate, but the loss reduction has diminishing returns due to convexity, that means taking a massive step gives you a lot of feature drift but does not buy you proportional progress on the loss. Linda: You nailed it. Achieving the same total decrease in loss requires accumulating a much larger increase in feature drift if you use a high learning rate. The ratio of drift to loss reduction is just worse when you take big steps. Norris: So taking giant leaps effectively scrambles the base features way more than taking many careful small steps, even if you eventually end up at the exact same altitude in the loss landscape. That beautifully explains why low learning rates protect against catastrophic forgetting. Linda: It really does. They even confirmed this behavior in a simplified toy model using sparse regression with two-layer diagonal linear networks, showing that this feature drift dynamic is a fundamental property of neural network optimization, not just a quirk of large language models. Norris: Well, that is a very satisfying explanation for the finetuning side of things. But wait a minute. This explains why high learning rates cause forgetting, but it still does not explain the core overtraining mystery we started the episode with. Why does a model that was pretrained longer forget more when the finetuning learning rate is held constant? Linda: That is the perfect question to lead us into the next part of the paper. To understand why longer pretraining causes more forgetting, we have to look at how the pretraining process changes the loss landscape itself, specifically something called model sharpness.

## Sharpness and the Edge of Stability

Norris: Alright Linda, you promised me an answer to the core mystery of catastrophic overtraining. We established that high learning rates during finetuning cause feature drift. But why does a model that has been pretrained for longer, with more data, suddenly forget more when we apply the exact same finetuning learning rate? Linda: The answer lies in how the loss landscape evolves over the course of pretraining. Specifically, it all comes down to the Edge of Stability. Norris: Ah, the Edge of Stability. A classic phenomenon in deep learning optimization. For our listeners who might need a refresher, this is the observation that as you train a neural network, the loss landscape gets sharper and sharper until the optimizer is essentially bouncing along the brink of instability. Linda: Exactly. The sharpness of the model, mathematically defined as the top eigenvalue of its loss Hessian matrix, naturally increases during training. But it doesn't increase forever. It hits a ceiling dictated by the pretraining learning rate. That ceiling is exactly two divided by the learning rate. Norris: Right, the two-over-eta threshold. Once sharpness hits that point, the model can't get any sharper without the gradient descent steps becoming unstable, so it just oscillates around that edge. But wait... standard pretraining involves a learning rate schedule. Linda: Yes it does! Think about what happens at the end of a typical pretraining run. We anneal, or decay, the learning rate. Norris: Oh, wow. I see it. If the learning rate, eta, goes down, then two divided by eta goes up. You are raising the ceiling on the Edge of Stability! Linda: Bingo! When you decay the learning rate during pretraining, you are actually allowing the model to settle into much sharper regions of the loss landscape. So, a later pretraining checkpoint isn't just a 'better' model—it is mathematically a 'sharper' model. Norris: That is a brilliant connection. But I have to ask a practical question. Computing the top eigenvalue of a Hessian matrix is incredibly computationally expensive. How on earth did they measure true sharpness for billion-parameter models like Gemma and OLMo? Linda: You are completely right, computing the true Hessian eigenspectrum for these models is basically impossible. So, the researchers used a really clever perturbation-based proxy. They took the model, added a tiny bit of Gaussian noise to the parameters, and then measured the KL-divergence between the original model's predictions and the noisy model's predictions. Norris: That is a very elegant workaround. If the model is in a flat minimum, adding a little noise won't change its predictions much, so the KL-divergence is low. But if it's in a sharp ravine, even microscopic noise will wildly change the output distribution. Did they verify this proxy actually works? Linda: They did! They tested it on a smaller 14-million-parameter Pythia model where they actually could compute the true Hessian sharpness, and the proxy tracked it perfectly. Armed with this metric, they looked at models trained with the newer Warmup-Stable-Decay, or WSD, schedules. Norris: I love the WSD schedule. It is perfect for this kind of analysis because the learning rate is kept completely flat for the vast majority of training, and only drops rapidly during the final cooldown phase. It isolates the learning rate decay variable beautifully. Linda: Exactly. They looked at models like SmolLM 3B and Apertus 8B, which use WSD. During the long stable phase, the sharpness stayed completely flat, just oscillating at the Edge of Stability. But the exact moment the learning rate cooldown kicked in, the sharpness skyrocketed. Norris: Okay, so later pretraining checkpoints are undeniably sharper. Let's tie this back to finetuning. How does base model sharpness explain catastrophic overtraining? Linda: Because sharpness provides the reference scale for what constitutes a 'large' learning rate. A learning rate is only 'large' or 'small' relative to the steepness of the local loss landscape. If you take a fixed SFT learning rate and apply it to a flat base model, it acts like a small step, keeping you in the lazy regime we talked about earlier. Norris: But if you apply that exact same finetuning learning rate to a much sharper base model—one that has gone through learning rate decay—that fixed step size suddenly acts like a massive learning rate! The walls of the loss ravine are steeper, so the optimizer gets violently catapulted around. Linda: Yes! The sharper base model is hyper-sensitive to optimization steps. This artificially amplified effective learning rate throws the model straight into the rich feature-learning regime, causing massive feature drift and overwriting all those valuable pretrained capabilities. Norris: That perfectly solves the mystery. The model isn't progressively more sensitive to noise just because it saw more tokens. It is more sensitive because the pretraining learning rate decay drove it into a steeper minimum, which in turn amplifies the finetuning feature drift! It's an optimization side-effect, not a statistical capacity issue. Linda: Exactly. They proved this empirically. They tracked SmolLM through its pretraining. As long as the learning rate was stable, catastrophic forgetting during finetuning remained constant. But the moment pretraining entered the cooldown phase and sharpness spiked, catastrophic forgetting suddenly surged right alongside it. Norris: I am thoroughly convinced, Linda. The EPFL team painted an incredibly cohesive picture here. They linked the Edge of Stability, pretraining schedules, feature drift, and catastrophic forgetting into one unified mechanical explanation. Linda: It really is a beautiful piece of research. It demystifies something that seemed totally paradoxical at first glance, and turns it into a predictable, mathematically sound consequence of stochastic gradient descent.

## Practical Takeaways for LLM Training

Norris: So, Linda, we have painted a very clear, albeit somewhat terrifying, picture of the loss landscape. We know that sharp pretraining checkpoints combined with high finetuning learning rates lead to catastrophic overtraining. But how do we actually fix this in practice? What is the actionable advice for the engineers out there? Linda: The authors lay out a dual story of learning rates, which translates into two major practical recommendations. The first one is about the finetuning phase. Basically, you should use the smallest possible supervised finetuning learning rate that still achieves acceptable in-distribution performance on your instruction dataset. Norris: That makes total sense based on everything we have discussed. You want to stay in that lazy optimization regime as much as possible to protect the pretrained features. But I imagine there is a trade-off there. A lower learning rate means it might take longer to converge. Linda: Exactly. It might cost a bit more compute during the SFT phase because you are taking smaller steps. But when you consider that pretraining costs millions of dollars and SFT is just a tiny fraction of that, it is absolutely worth spending a little extra time on SFT to avoid lobotomizing your expensive base model. Norris: I could not agree more. Never penny-pinch on the finetuning if it costs you the base model's general intelligence. Now, what is the second recommendation? You hinted earlier it had to do with the pretraining schedule itself. Linda: Yes, and this is the spicy one. Because learning rate decay during pretraining is what causes the sharpness to spike, the authors suggest we might want to avoid pretraining learning rate decay altogether if we plan to do post-training. Norris: No learning rate decay in pretraining? That goes against years of deep learning dogma! Everybody decays the learning rate at the end to get that final drop in validation loss. Linda: It is definitely a paradigm shift! But the authors point out that you can just anneal the learning rate during the post-training phase instead. They even cite another recent paper by Yano and colleagues that suggests pretraining without learning rate decay enhances supervised finetuning. If you use a schedule like Warmup-Stable-Decay, you might just want to skip the decay phase entirely for your base model checkpoints. Norris: That is fascinating. You essentially hand off a model that is still in a flatter minimum to the finetuning team. It might have a slightly worse pretraining loss on paper, but it is vastly more robust to downstream feature drift. You optimize for the final product, the post-trained assistant, rather than just optimizing for the lowest possible perplexity on the pretraining corpus. Linda: Exactly! It completely changes how we measure the success of a pretraining run. Now, are there caveats? Yes. The authors explicitly note that they ran these experiments on models in the one to three billion parameter range. One could argue we don't know for absolute certain if this perfectly scales to frontier models. Norris: Right, a one-billion parameter model is practically a toy by today's frontier standards. But the underlying mechanics are driven by stochastic gradient descent and the Edge of Stability, which are fundamental to how these networks train regardless of size. I would be very surprised if the physics of the loss landscape suddenly changed at a hundred billion parameters. Linda: I agree, and the authors make the exact same point. Catastrophic forgetting and overtraining aren't emergent properties of massive scale; they happen consistently at the 1B scale, so it is a perfectly valid environment to study the mechanics. They also note that proving strict causality between pretraining decay and sharpness would require running massive, controlled pretraining ablations from scratch, which is prohibitively expensive, so they are relying on strong correlational evidence. Norris: Well, maybe they can get a massive compute grant for their next paper. But honestly, the evidence they have compiled here is already incredibly compelling. It is a rare paper that takes a bizarre empirical observation like catastrophic overtraining and completely demystifies it with rigorous optimization theory. Linda: I completely agree. It really highlights how interconnected the entire lifecycle of a language model is. The choices you make in month two of pretraining can completely dictate how the model behaves during alignment six months later. Norris: A butterfly flaps its wings in the pretraining cluster, and a language model forgets how to do math during finetuning. Well said, Linda. And I think that brings us to the end of our journey today. Linda: Thanks for diving into this one with me, Professor. I hope everyone listening found it as insightful as we did. Norris: Thank you all for joining us on Mechanical Dreams. Until next week, keep your learning rates low and your memories intact!

Open the transcript file

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. You don’t need long context

    Nov 12, 202620 minAudio

    In this episode: • The Context Window Arms Race: Professor Norris and Linda introduce the episode and discuss a new NVIDIA paper challenging the necessity of massive context windows, highlighting the hidden...

    Credit the people on this episode

  2. Scaling Hierarchical Networks

    Nov 11, 202621 minAudio

    In this episode: • Intro and The Bitter Lesson: Introducing the podcast and the Cartesia paper on Hierarchical Networks. • Scaling Ladders and The BPE Comparison: Discussing the compute efficiency gains of 1-stage...

    Credit the people on this episode

  3. Perturbing Inputs Improves Pretraining Distillation

    Nov 10, 202621 minAudio

    In this episode: • Introduction and Standard Distillation: Professor Norris and Linda introduce the podcast and set the baseline for standard knowledge distillation in language models. • The Core Idea of Perturbed...

    Credit the people on this episode

  4. Why is AI-generated language so hard to understand

    Nov 9, 202620 minAudio

    In this episode: • Introduction: The Reader-Patience Budget: Professor Norris and Linda introduce the episode's topic, discussing the growing sentiment that AI-generated text is becoming overly convoluted. • The...

    Credit the people on this episode

  5. Muse Glimmer 30B

    Nov 8, 202622 minAudio

    In this episode: • Introduction & Paper Overview: Professor Norris and Linda introduce the episode and the Muse Glimmer 30B paper, outlining its goal of bringing agentic capabilities to consumer hardware. • Architecture...

    Credit the people on this episode