RL Fine-Tuning Heals OOD Forgetting in SFT
This paper challenges the notion that "SFT memorizes, RL generalizes" by demonstrating through checkpoint-wise and spectral analyses that SFT often causes out-of-distribution forgetting which is subsequently restored by RL, a recovery process linked to the rotation of singular vectors rather than changes in singular values.
Original paper dedicated to the public domain under CC0 1.0 (http://creativecommons.org/publicdomain/zero/1.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
The Big Picture: The "Two-Step" Dance of AI Training
Imagine you are teaching a brilliant but inexperienced student (a Large Language Model) how to solve complex puzzles. The standard recipe for making this student a reasoning expert involves two steps:
- Step 1: Supervised Fine-Tuning (SFT) – You give the student a textbook with answers and say, "Memorize these patterns and copy the style."
- Step 2: Reinforcement Learning (RL) – You put the student in a game where they get points for correct answers and lose points for wrong ones, saying, "Now, figure out the logic yourself to win."
For a long time, the AI community believed a simple story: "SFT makes the student memorize the textbook (good for known problems), and RL makes the student generalize and think creatively (good for new problems)."
This paper says that story is incomplete. The authors discovered that while SFT is great at first, it actually starts to hurt the student's ability to solve new types of puzzles if you let them study the textbook for too long. Then, RL doesn't necessarily teach them new superpowers; it mostly just fixes the damage SFT caused.
The Discovery: The "Peak and Crash"
The researchers watched the student's progress every single day during the training process. They found a surprising pattern:
- The Early Win: At the very beginning of the "textbook study" (SFT), the student gets really good at solving new types of puzzles (Out-of-Distribution or OOD tasks). It's like the student suddenly understands the underlying logic of math.
- The Crash: As the student keeps studying the textbook, they start to get worse at the new puzzles, even though they get better at the specific textbook problems. They become so obsessed with the exact format of the textbook answers that they forget how to apply the logic to slightly different situations.
- The Fix: When they finally switch to the "game" phase (RL), the student's performance on new puzzles bounces back up.
The Analogy:
Imagine a chef learning to cook.
- Early SFT: The chef learns the basic rules of flavor. They can cook a great meal with any ingredients.
- Late SFT: The chef is forced to memorize a specific recipe book. They become amazing at making that exact dish but forget how to adjust flavors if they are given different ingredients. They have "forgotten" their general cooking intuition.
- RL: The chef is put in a competition where they get points for tasty food, regardless of the recipe. This forces them to stop blindly following the book and start using their intuition again. They recover their general cooking skills, but they don't suddenly become a better chef than they were at the very start of their training.
The Key Finding: RL is a "Restorer," Not a "Creator"
The paper challenges the idea that RL creates new reasoning abilities from scratch. Instead, the authors found:
- SFT Forgets: If you train too long on the specific data, the model "forgets" its ability to handle weird or new situations.
- RL Recovers: RL acts like a bandage. It patches up the holes SFT made, restoring the model to the level of performance it had at the peak of the SFT phase.
- The Ceiling: RL rarely makes the model better than that early peak. It just brings it back up to where it was before it got too specialized.
The "Goldilocks" Zone:
The researchers found that RL only works if you start it at the right time.
- If you start RL too early (before the model knows the basics), it fails because the model is too confused.
- If you start RL too late (after the model has forgotten everything), the "game" signals are too messy for the model to learn from.
- There is a specific "sweet spot" (a range of checkpoints) where RL can successfully heal the forgetting.
The Secret Mechanism: The "Spinning Compass"
To understand why this happens, the authors looked inside the model's brain using a mathematical tool called Singular Value Decomposition (SVD). Think of the model's knowledge as a giant compass with many needles pointing in different directions.
- The Size of the Needles (Singular Values): The researchers found that the strength of these needles (how much knowledge is stored) barely changes during training. They stay stable.
- The Direction of the Needles (Singular Vectors): However, the direction the needles point to changes drastically.
The Analogy:
Imagine the model's knowledge is a map.
- SFT doesn't erase the map (the size of the data stays the same), but it rotates the map. It turns the compass so that "North" points toward the specific textbook examples, making it hard to find "North" for new, different locations.
- RL rotates the compass back. It doesn't add new land to the map; it just re-aligns the compass so "North" points to the general logic again, allowing the model to navigate new terrain.
Summary for the Everyday Reader
- Old Belief: "SFT memorizes, RL generalizes."
- New Reality: "SFT forgets (by over-specializing), and RL recovers (by re-aligning)."
- The Lesson: Don't keep training your AI on the same specific data forever. It will lose its ability to think flexibly. If you want it to be smart about new things, you need to stop the "memorization" phase at the right time and use the "game" phase to fix the focus, rather than expecting the game to teach it entirely new skills from scratch.
The paper concludes that the best performance for solving new, tricky problems often happens early in the training process, and the second stage (RL) is mostly there to save us from the mistakes we made by training too long in the first stage.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.