arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.17245cs.LGcs.AIcs.CL
收藏

解锁语言模型中的持续学习能力

Unlocking Continual Learning Abilities in Language Models

School of Computing and Data Science, The University of Hong Kong(香港大学计算与数据科学学院);CUHK-SZ(香港中文大学(深圳));Tsinghua University(清华大学);University of Edinburgh(爱丁堡大学);NVIDIA(英伟达公司);HKUST(香港科技大学);ICT, Chinese Academy of Sciences(中国科学院信息技术研究所)

Wenyu Du, Shuang Cheng, Tongxu Luo, Zihan Qiu, Zeyu Huang, Ka Chun Cheung, Reynold Cheng, Jie Fu

AI总结:

针对语言模型持续学习中的灾难性遗忘问题,提出无需回放与任务标签的MIGU方法,通过更新线性层高幅值输出参数解锁其持续学习能力,在多架构多基准上取得优异性能且可与现有方法集成。

摘要:

语言模型(LM)展现出令人瞩目的性能与泛化能力,但灾难性遗忘这一长期存在的难题始终困扰着LM,削弱了其在持续学习(CL)场景下的长期适用性。现有方法通常通过引入旧任务数据或逐任务归纳偏置来解决该问题,但旧数据与准确的任务信息往往难以获取,或收集成本高昂,导致当前针对LM的持续学习方法可用性受限。为突破这一局限,我们提出MIGU(基于幅值的持续学习梯度更新方法),这是一种无需 rehearsal(回放)、无需任务标签的方法,仅更新LM线性层中输出幅值较大的模型参数。MIGU的提出源于我们的观察:当LM处理不同任务的数据时,其线性层输出的L1归一化幅值分布存在差异。通过在梯度更新过程中施加这一简单约束,我们能够利用LM的内在行为,从而解锁其先天的持续学习能力。实验表明,MIGU可普遍适用于T5、RoBERTa和Llama2三种LM架构,在四个持续学习基准的持续微调与持续预训练设置下,均能达到 state-of-the-art(最优)或相当的性能。例如,在包含15个任务的持续学习基准中,MIGU相比传统参数高效微调基线,平均准确率提升了15.2%。MIGU还可与现有三类持续学习方法无缝集成,进一步提升性能。代码可在https://github.com/wenyudu/MIGU获取。

英文摘要:

Language models (LMs) exhibit impressive performance and generalization capabilities. However, LMs struggle with the persistent challenge of catastrophic forgetting, which undermines their long-term sustainability in continual learning (CL). Existing approaches usually address the issue by incorporating old task data or task-wise inductive bias into LMs. However, old data and accurate task information are often unavailable or costly to collect, hindering the availability of current CL approaches for LMs. To address this limitation, we introduce $\textbf{MIGU}$ ($\textbf{M}$agn$\textbf{I}$tude-based $\textbf{G}$radient $\textbf{U}$pdating for continual learning), a rehearsal-free and task-label-free method that only updates the model parameters with large magnitudes of output in LMs' linear layers. MIGU is based on our observation that the L1-normalized magnitude distribution of the output in LMs' linear layers is different when the LM models deal with different task data. By imposing this simple constraint on the gradient update process, we can leverage the inherent behaviors of LMs, thereby unlocking their innate CL abilities. Our experiments demonstrate that MIGU is universally applicable to all three LM architectures (T5, RoBERTa, and Llama2), delivering state-of-the-art or on-par performance across continual finetuning and continual pre-training settings on four CL benchmarks. For example, MIGU brings a 15.2% average accuracy improvement over conventional parameter-efficient finetuning baselines in a 15-task CL benchmark. MIGU can also seamlessly integrate with all three existing CL types to further enhance performance. Code is available at https://github.com/wenyudu/MIGU.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑