InstructReplay: Replaying Assistant Turns to Preserve General Behavior During Factual Fine-Tuning
Abstract
Fine-tuning an instruction-tuned language model on new facts often erodes its general abilities. We find 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 initial model's length, the more often it fails. We propose InstructReplay: the initial model answers a set of general instructions once, and during fine-tuning the model is kept close to the initial model on these answers. Across three model families and two domains, InstructReplay reduces the average decline on five general benchmarks from 28.1 to 2.4 points and keeps answer length close to the initial model's, while learning the new facts as well as standard fine-tuning. It balances learning and retention better than seven adaptation methods in all six settings. Controlled comparisons attribute the gain to replaying the model's own answers to general instructions rather than to the form of the loss.
Create a lesson
Metadata
- Categories
- cs.AI, cs.CL
- Comments
- Project page at https://xiaofengshi.github.io/InstructReplay/ and code at https://github.com/xiaofengShi/InstructReplay
Related papers
Frequency-Conditioned Privacy Auditing of Fine-Tuned Language Models
Shared title terminologycs.AIAymen Noor, Ke Lyu, Honglu Jiang
Temporal Conditioning for Human Behavioral Cloning in Chess
Shared title terminologycs.AIVictor Dziwniel, Tianxiang Lu
No Fixed Configuration Is Best: Context- and Cost-Aware Tuning of LLM Pipelines, with an Application to Schema Matching and Mapping
Shared title terminologycs.AIGokhan Kirlik, Xiuwen Zheng, Anirudh Sriram
E2SIM: Long-Horizon Simulation of Everyday Human Behavior with Evolving States
Shared title terminologycs.AIZiwei Gong, Xiangyang Yin, Thai Quoc On et al.
What People Choose Not to Say: A Multimodal Benchmark for Fine-Grained Information Manipulation in Conversations
Shared title terminologycs.AIYuhan Bian, Zhaokai Liang, Jia Wang et al.
AI-Assisted Auto-formalization for Trustworthy Scientific Computing: Case Studies and Lessons Learned
Shared title terminologycs.AIMohit Tekriwal, Het Mankad, Naifeng Zhang et al.