Post
46
🔁 InstructReplay | Teach a model new facts and keep more of its skills
We asked SmolLM3-3B to write a letter in all lowercase. After standard fine-tuning on biomedical Q&A, it replied with one sentence starting with a capital letter. With InstructReplay, it wrote a full lowercase letter.
We ask the original model to answer general prompts once. As we train on domain Q&A, we replay those replies and match the original model’s next-token probabilities on them.
📊 Across three models and two domains, InstructReplay cut the average drop on five general benchmarks from 28.1 to 2.4 percentage points. Both methods gained about 15 points on closed-book domain Q&A.
The source of the replay answers mattered. With the same prompts and training loss, the model’s own replies preserved more of its general skills than the dataset’s reference answers did.
📄 Paper InstructReplay: Replaying Assistant Turns to Preserve General Behavior During Factual Fine-Tuning (2611.32918)
💻 Code https://github.com/xiaofengShi/InstructReplay
🌐 Project https://xiaofengshi.github.io/InstructReplay/
With alignment tax and catastrophic forgetting still major concerns in domain post-training, we hope InstructReplay offers a practical way to add domain knowledge while retaining general capabilities, and we’d welcome feedback in the comments or a pull request on GitHub if you try it.
We asked SmolLM3-3B to write a letter in all lowercase. After standard fine-tuning on biomedical Q&A, it replied with one sentence starting with a capital letter. With InstructReplay, it wrote a full lowercase letter.
We ask the original model to answer general prompts once. As we train on domain Q&A, we replay those replies and match the original model’s next-token probabilities on them.
📊 Across three models and two domains, InstructReplay cut the average drop on five general benchmarks from 28.1 to 2.4 percentage points. Both methods gained about 15 points on closed-book domain Q&A.
The source of the replay answers mattered. With the same prompts and training loss, the model’s own replies preserved more of its general skills than the dataset’s reference answers did.
📄 Paper InstructReplay: Replaying Assistant Turns to Preserve General Behavior During Factual Fine-Tuning (2611.32918)
💻 Code https://github.com/xiaofengShi/InstructReplay
🌐 Project https://xiaofengshi.github.io/InstructReplay/
With alignment tax and catastrophic forgetting still major concerns in domain post-training, we hope InstructReplay offers a practical way to add domain knowledge while retaining general capabilities, and we’d welcome feedback in the comments or a pull request on GitHub if you try it.