提出新方法缓解大模型持续训练中的遗忘问题。
Large Continual Instruction Assistant
- 基于损失函数泰勒展开自动计算最优平衡系数
- 在多个基准上显著提升抗遗忘能力与整体性能
- 适合需要持续学习新指令的智能助手场景
持续指令微调(CIT)通过逐数据地让大模型学习人类意图,但现有梯度更新会严重损害对先前数据的性能。虽然指数移动平均(EMA)能追踪历史参数以减少遗忘,但其固定平衡权重难以适应不断变化的数据集,导致可塑性与稳定性失衡。本文提出一种通用的持续指令微调框架,从权衡前提和EMA更新出发,建立可塑性与稳定性理想条件。基于损失函数的泰勒展开,发现最优平衡权重可由梯度与学习参数自动确定。据此提出稳定-可塑性平衡系数,避免知识干扰。根据指令语义相似性判断是否重训或扩展参数,并为测试实例分配最适参数。在多个持续指令微调基准上实验表明,该方法不仅增强抗遗忘能力,还显著提升整体持续微调性能。代码已公开于 https://github.com/JingyangQiao/CoIN。
原文摘要 · Abstract (English)
Continual Instruction Tuning (CIT) is adopted to continually instruct Large Models to follow human intent data by data. It is observed that existing gradient update would heavily destroy the performance on previous datasets during CIT process. Instead, Exponential Moving Average (EMA), owns the ability to trace previous parameters, which can aid in decreasing forgetting. Nonetheless, its stable balance weight fails to deal with the ever-changing datasets, leading to the out-of-balance between plasticity and stability. In this paper, we propose a general continual instruction tuning framework to address the challenge. Starting from the trade-off prerequisite and EMA update, we propose the plasticity and stability ideal condition. Based on Taylor expansion in the loss function, we find the optimal balance weight can be automatically determined by the gradients and learned parameters. Therefore, we propose a stable-plasticity balanced coefficient to avoid knowledge interference. Based on the semantic similarity of the instructions, we can determine whether to retrain or expand the training parameters and allocate the most suitable parameters for the testing instances. Extensive experiments across multiple continual instruction tuning benchmarks demonstrate that our approach not only enhances anti-forgetting capabilities but also significantly improves overall continual tuning performance. Our code is available at https://github.com/JingyangQiao/CoIN.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。