唤醒你的MNEME:通过稀疏模型差异预测LLM遗忘与微调的副作用
Reviving Your MNEME: Predicting The Side Effects of LLM Unlearning and Fine-Tuning via Sparse Model Diffing
AI总结:
针对LLM微调或遗忘后存在不可预测非预期副作用且缺乏通用检测方法的问题,提出轻量级框架MNEME,通过稀疏模型差异在任务无关数据上对比模型以识别副作用,在多场景多模型上最高达95%准确率,还可通过高激活样本重训练部分逆转效应。
摘要:
大语言模型(LLM)常被进行微调或遗忘处理,以适配新任务或消除不良行为。现有评估方法仅衡量这类干预后的性能,但目前仍缺乏通用方法来检测非预期副作用——例如遗忘生物学内容会降低化学任务的性能,尤其是当这些效应不可预测或呈涌现性时。为解决这一问题,我们提出MNEME(Mechanistic Effects评估用模型差异分析,Model diffiNg for Evaluating Mechanistic Effects),这是一个利用稀疏模型差异识别此类副作用的轻量级框架。MNEME在无需访问微调数据的前提下,在任务无关数据(例如The Pile、LMSYS-Chat-1M)上对比基础模型与微调模型,以分离出行为偏移。我们在三个场景下的五款LLM上应用了该框架:WMDP知识遗忘、涌现性对齐失效、良性微调,MNEME预测副作用的准确率最高可达95%,结果与已知基准一致,且无需自定义启发式规则。此外,我们证明对高激活样本进行重训练可部分逆转这些效应。我们的研究结果表明,稀疏探测与差异分析为探究微调引发的模型变化提供了可扩展、自动化的视角,为理解和管理LLM行为提供了实用工具。
英文摘要:
Large language models (LLMs) are frequently fine-tuned or unlearned to adapt to new tasks or eliminate undesirable behaviors. While existing evaluation methods assess performance after such interventions, there remains no general approach for detecting unintended side effects, such as unlearning biology content degrading performance on chemistry tasks, particularly when these effects are unpredictable or emergent. To address this issue, we introduce MNEME, Model diffiNg for Evaluating Mechanistic Effects, a lightweight framework for identifying these side effects using sparse model diffing. MNEME compares base and fine-tuned models on task-agnostic data (for example, The Pile, LMSYS-Chat-1M) without access to fine-tuning data to isolate behavioral shifts. Applied to five LLMs across three scenarios: WMDP knowledge unlearning, emergent misalignment, and benign fine-tuning, MNEME achieves up to 95 percent accuracy in predicting side effects, aligning with known benchmarks and requiring no custom heuristics. Furthermore, we show that retraining on high-activation samples can partially reverse these effects. Our results demonstrate that sparse probing and diffing offer a scalable and automated lens into fine-tuning-induced model changes, providing practical tools for understanding and managing LLM behavior.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。