Crafting Reversible SFT Behaviors in Large Language Models
Yuping Lin, Pengfei He, Yue Xing, Yingqian Cui, Jiayuan Ding, Subhabrata Mukherjee, Hui Liu, Zhen Xiang
原文摘要
Supervised fine-tuning (SFT) induces new behaviors in large language models, yet imposes no structural constraint on how these behaviors are distributed within the model. Existing behavior interpretation methods, such as circuit attribution approaches, identify sparse subnetworks correlated with SFT-induced behaviors post-hoc. However, the fine-tuned model may still carry the behavior through other pathways, so such subnetworks offer no guaranteed handle for selectively controlling SFT-induced behaviors at inference time. We pursue a constructive alternative by asking: can an SFT-induced behavior be deliberately compressed into a sparse subnetwork, termed a *carrier*, that is sufficient for the behavior and, by construction, necessary for it, while remaining controllable at inference time without weight modification? We propose (a) **Loss-Constrained Dual Descent (LCDD)**, which constructs such carriers by jointly optimizing routing masks and model weights under an explicit utility budget, and (b) **SFT-Eraser**, a soft trigger prompt optimized via activation matching on extracted carrier channels, to revert the SFT-induced behavior toward the base model. Across safety, fixed-response, and style behaviors on four model families, LCDD yields sparse carriers that preserve target behaviors while enabling strong reversion when triggered by SFT-Eraser. Our ablation study shows that triggered LCDD models are consistently closer to the base model than identically triggered standard SFT models. The crafted structure is therefore what drives this reversion. These results establish training-time construction as a practical route to localizing and selectively suppressing SFT-induced behaviors in deployed models.
cs.LG