arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.05200cs.CLcs.AI
收藏

KIF:语言模型持续学习中的知识识别与融合

KIF: Knowledge Identification and Fusion for Language Model Continual Learning

The Hong Kong Polytechnic University(香港理工大学);Peking University(北京大学);University of Illinois at Chicago(伊利诺伊大学芝加哥分校)

Yujie Feng, Xu Chu, Yongxin Xu, Zexin Lu, Bo Liu, Philip S. Yu, Xiao-Ming Wu

AI总结:

本文提出KIF框架,通过技能单元划分与分组知识识别及细粒度融合,在语言模型持续学习中实现知识迁移与防遗忘,实验验证其有效性。

摘要:

语言模型持续学习(CL)近年来因其能够在不重新训练的情况下使大型语言模型(LLMs)适应动态现实场景而引起了广泛关注。该领域的一个主要挑战是灾难性遗忘,即模型在学习新任务时会丢失先前获得的知识。现有方法通常利用多个参数高效微调(PEFT)块来获取任务特定知识,但这些方法效率低下,且未能利用跨任务的知识迁移潜力。在本文中,我们提出了一种新颖的语言模型持续学习框架,名为知识识别与融合(KIF),该框架在不依赖记忆重放的情况下促进知识迁移。KIF首先根据参数依赖关系将模型划分为“技能单元”,从而实现更精确的控制。随后,它采用一种新颖的分组知识识别技术来确定新任务中技能单元的重要性分布。通过将该重要性分布与先前任务的重要性分布进行比较,我们实施了一种细粒度的知识融合策略,该策略保留任务特定知识,从而防止遗忘,并更新任务共享知识,促进双向知识迁移。因此,KIF在保留先前知识和在新任务中表现出色之间实现了最佳平衡。KIF还表现出强大的泛化能力,适用于各种基础模型,并适应诸如LoRA之类的PEFT方法。此外,它提供了显著的可扩展性,支持通过与记忆重放技术集成来增强。在两个持续学习基准上进行的综合实验,涉及从220M到7B参数不等的模型,证实了KIF及其变体在不同设置下的有效性。

英文摘要:

Language model continual learning (CL) has recently attracted significant interest for its ability to adapt large language models (LLMs) to dynamic real-world scenarios without retraining. A major challenge in this domain is catastrophic forgetting, where models lose previously acquired knowledge upon learning new tasks. Existing approaches commonly utilize multiple parameter-efficient fine-tuning (PEFT) blocks to acquire task-specific knowledge, yet these methods are inefficient and fail to leverage potential knowledge transfer across tasks. In this paper, we introduce a novel CL framework for language models, named Knowledge Identification and Fusion (KIF), which boosts knowledge transfer without depending on memory replay. KIF initially segregates the model into 'skill units' based on parameter dependencies, allowing for more precise control. Subsequently, it employs a novel group-wise knowledge identification technique to ascertain the importance distribution of skill units for a new task. By comparing this importance distribution with those from previous tasks, we implement a fine-grained knowledge fusion strategy that retains task-specific knowledge, thereby preventing forgetting, and updates task-shared knowledge, which facilitates bi-directional knowledge transfer. As a result, KIF achieves an optimal balance between retaining prior knowledge and excelling in new tasks. KIF also demonstrates strong generalizability, making it suitable for various base models and adaptable to PEFT methods like LoRA. Furthermore, it offers notable extensibility, supporting enhancements through integration with memory replay techniques. Comprehensive experiments conducted on two CL benchmarks, involving models ranging from 220M to 7B parameters, affirm the effectiveness of KIF and its variants across different settings.

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

↑