细粒度微调在激活差异中留下明显可读的痕迹
Narrow Finetuning Leaves Clearly Readable Traces in Activation Differences
AI总结:
研究发现狭窄微调会在激活中留下明显痕迹,揭示了微调领域偏见,并警告了使用此类模型进行广泛微调研究的局限性。
摘要:
在狭窄领域上进行微调已成为适应大型语言模型(LLMs)以适应特定任务以及创建具有已知异常属性的模型的重要工具。我们展示了狭窄微调会在LLM激活中产生强烈的偏见,这些偏见可以被解释以理解微调领域。这些偏见可以通过简单的模型差异研究工具(研究模型在微调前后的差异)来发现。特别是,通过分析随机文本前几个令牌的激活差异,并通过将此差异加到模型激活中来引导,可以产生与微调数据格式和一般内容相似的文本。我们证明这些分析包含关键信息,通过创建一个基于LLM的可解释性代理来理解微调领域。有了这种偏见,代理在使用简单提示时的表现显著优于基线代理。我们的分析涵盖了不同架构(Gemma、LLaMA、Qwen)和规模(1B到32B参数)下的合成文档微调用于虚假事实、新兴偏离、潜意识学习和禁忌词猜测游戏模型。我们怀疑这些偏见反映了过拟合,并发现将预训练数据混合到微调语料库中可以大大减少它们,尽管残余风险可能仍然存在。我们的工作(1)证明了微调模型在激活中具有训练目标的明显痕迹,并提出了改进其训练的方法;(2)警告人工智能安全和可解释性研究人员,使用此类模型作为研究更广泛微调(如聊天微调)的代理可能并不现实;(3)强调需要更深入研究狭窄微调的影响以及开发真正现实的案例研究用于模型差异、安全和可解释性研究。
英文摘要:
Finetuning on narrow domains has become an essential tool to adapt Large Language Models (LLMs) to specific tasks and to create models with known unusual properties that are useful for research. We show that narrow finetuning creates strong biases in LLM activations that can be interpreted to understand the finetuning domain. These biases can be discovered using simple tools from model diffing - the study of differences between models before and after finetuning. In particular, analyzing activation differences on the first few tokens of random text and steering by adding this difference to the model activations produces text similar to the format and general content of the finetuning data. We demonstrate that these analyses contain crucial information by creating an LLM-based interpretability agent to understand the finetuning domain. With access to the bias, the agent performs significantly better compared to baseline agents using simple prompting. Our analysis spans synthetic document finetuning for false facts, emergent misalignment, subliminal learning, and taboo word guessing game models across different architectures (Gemma, LLaMA, Qwen) and scales (1B to 32B parameters). We suspect these biases reflect overfitting and find that mixing pretraining data into the finetuning corpus largely removes them, though residual risks may remain. Our work (1) demonstrates that narrowly finetuned models have salient traces of their training objective in their activations and suggests ways to improve how they are trained, (2) warns AI safety and interpretability researchers that the common practice of using such models as a proxy for studying broader finetuning (e.g., chat-tuning) might not be realistic, and (3) highlights the need for deeper investigation into the effects of narrow finetuning and development of truly realistic case studies for model-diffing, safety and interpretability research.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。