Skip to content
AI Learning Ground Start learning

Research ·

InstructReplay: Replaying Assistant Turns to Preserve General Behavior During Factual Fine-Tuning

InstructReplay is a fine-tuning method that preserves an instruction-tuned model's general abilities when teaching it new facts, by keeping its responses close to pre-recorded answers from the original model on general instructions.

InstructReplay: Replaying Assistant Turns to Preserve General Behavior During Factual Fine-Tuning
Image: Hugging Face

A Hugging Face paper page describes InstructReplay, a technique for preserving general capabilities while fine-tuning a model on new factual data. The authors found that standard fine-tuning lowers instruction-following, reasoning and coding benchmarks by 35 points on average, and that these losses track a collapse in answer length: fine-tuned models at least halve their responses, and the further a response drifts from the original model's length, the more often it fails.

InstructReplay works by having the initial model answer a set of general instructions once, then keeping the fine-tuned model close to those answers during training. Across three model families and two domains, it reduces the average decline on five general benchmarks from 28.1 to 2.4 points while learning the new facts as well as standard fine-tuning, and it outperformed seven adaptation methods in all six settings. Controlled comparisons attribute the gain to replaying the model's own answers rather than the form of the loss.

For anyone adapting models with domain-specific data, this offers a practical way to avoid catastrophic forgetting of instruction-following and reasoning skills. The linked discussion also notes an open question: whether the remaining gap would persist if standard fine-tuning were forced to generate answers as long as InstructReplay's.

References

Read the full story at Hugging Face ↗Like, save or discuss on Buzz

#research