如何向大型多模态模型传授新技能
How to Teach Large Multimodal Models New Skills
AI总结:
本文研究了如何在不丧失原有能力的前提下通过序列微调向大型多模态模型传授新技能,提出两种有效的微调方法以平衡学习与遗忘。
摘要:
如何在不消除原有能力的情况下向大型多模态模型(LMMs)传授新技能?我们研究了在五个目标技能上进行序列微调的同时,监控八个保留基准上的通用能力。令人惊讶的是,我们发现在微调一个技能后,在保留任务上的表现损失可以部分恢复,当模型随后在不同技能上进行微调时。我们追溯这种行为到输出标记分布的可测量变化,通过一个简单的计数偏差探测器显示这种变化与遗忘相关。基于这一见解,我们确定了两种简单且稳健的微调配方,能够在学习和限制漂移之间取得良好平衡:(i)仅更新自注意力投影层(SA Proj.,Δ学习+24.9 / Δ保留遗忘-0.6),和(ii)仅更新MLP Gate&Up并冻结Down投影(+30.5 / -2.1)。这两种方法在学习-遗忘权衡方面显著优于全LLM微调(+31.8 / -23.3)。我们还对比了常见的遗忘缓解方法:学习无遗忘(LwF)、LoRA、专家混合、和权重空间插值(WiSE-FT),发现我们的选择性微调配方在学习-稳定性平衡方面与这些方法相当或更优,同时更简单,不需要回放、辅助参数或每阶段微调。这些结果在LLaVA-OneVision、LLaVA-NeXT和Qwen2.5-VL上均成立,证实了在不遗忘的情况下教授LMMs新技能的关键在于通过选择微调哪些组件来控制输出分布变化。代码将被提供。
英文摘要:
How can we teach large multimodal models (LMMs) new skills without erasing prior abilities? We study sequential fine-tuning on five target skills while monitoring general ability on eight held-out benchmarks across three model families. Surprisingly, we find that performance lost on held-out tasks after fine-tuning on one skill can partly recover when the model is subsequently tuned on a different skill. We trace this behavior to a measurable shift in the output token distribution, manifested through a simple counting-bias probe that shows the shift co-varies with forgetting. Guided by this insight, we identify two simple, robust tuning recipes that learn strongly while limiting drift: (i) updating only the self-attention projection layers (SA Proj., $Δ$ learning +24.9 / $Δ$ held-out forgetting -0.6), and (ii) updating only the MLP Gate&Up while freezing the Down projection (+30.5 / -2.1). Both substantially outperform full-LLM tuning (+31.8 / -23.3) in the learning-forgetting trade-off. We also compare against common forgetting mitigation methods: Learning without Forgetting (LwF), LoRA, Mixture-of-Experts, and weight-space interpolation (WiSE-FT), and find that our selective tuning recipes match or exceed their learning-stability balance while remaining simpler, requiring no replay, auxiliary parameters, or per-stage tuning. These results hold across LLaVA-OneVision, LLaVA-NeXT, and Qwen2.5-VL, confirming that the key to teaching LMMs new skills without forgetting lies in controlling output distribution shift by choosing which components to tune. Code will be made available.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。