Replay-buffer mix for domain SFT: how much general data, and from where?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
A team is SFT'ing a 7B model on a narrow legal-summarisation corpus and watching MMLU drop 4 points by step 5k. They want to add a replay buffer of general instruction data to slow the forgetting. Specify a starting recipe: what general source to pull from, what mix ratio to start with, how to tune it, and the failure modes at both extremes of the ratio.
Mix a small slice of general instruction data, around 10%, into your domain SFT batches and tune the ratio against MMLU until forgetting stays inside tolerance.
Imagine teaching someone to write only legal contracts for six months. After a while they get great at contracts but start fumbling everyday emails. To prevent that, every day you sneak in one ordinary email task between the contract drills. Not too many, or the contract skill stalls. Not too few, or the email skill keeps slipping away. You watch two report cards each week, one for contracts and one for general writing, and slide the daily mix up or down until both numbers look healthy. The same idea works for a model. A small refresh of general examples mixed into every batch reminds the network of what it used to know, while most of the practice still pushes it toward the new specialty.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
6 min: framing forgetting as a two-loss tradeoff + source choice + row-level interleaving + starting ratio + pilot loop with held-out MMLU + failure modes at both extremes + when replay cannot help.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Concatenating one block of general data before the domain block. The model sees the general examples first, then forgets them anyway during the long domain tail. Interleave at the row level instead.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.