arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2301.08986cs.CLcs.AIcs.LGcs.NE
收藏

在保持通用知识的同时调整语言模型

Adapting a Language Model While Preserving its General Knowledge

University of Illinois at Chicago(伊利诺伊大学芝加哥分校);Peking University(北京大学);Meta AI;Google Research(谷歌研究院)

Zixuan Ke, Yijia Shao, Haowei Lin, Hu Xu, Lei Shu, Bing Liu

摘要:

领域自适应预训练(Domain-adaptive pre-training,简称DA-training),又称后训练,是指利用特定领域的未标注语料对预先训练好的通用语言模型(LM)进行训练,使之适应特定领域的最终任务,从而提高其性能。然而,现有的DA训练方法在某种意义上是盲目的,因为它们没有明确地识别LM中的哪些知识应该被保留,哪些应该被领域语料库改变。本文表明,现有的方法是次优的,并提出了一种新的方法来执行LM中的知识的更明智的适应(1)软屏蔽的注意头的基础上,他们的重要性,以最好地保留在LM中的一般知识和(2)对比的一般和完整的表示(一般和领域知识),以学习与一般和特定领域的知识的综合表示。实验结果将证明所提出的方法的有效性。

英文摘要:

Domain-adaptive pre-training (or DA-training for short), also known as post-training, aims to train a pre-trained general-purpose language model (LM) using an unlabeled corpus of a particular domain to adapt the LM so that end-tasks in the domain can give improved performances. However, existing DA-training methods are in some sense blind as they do not explicitly identify what knowledge in the LM should be preserved and what should be changed by the domain corpus. This paper shows that the existing methods are suboptimal and proposes a novel method to perform a more informed adaptation of the knowledge in the LM by (1) soft-masking the attention heads based on their importance to best preserve the general knowledge in the LM and (2) contrasting the representations of the general and the full (both general and domain knowledge) to learn an integrated representation with both general and domain-specific knowledge. Experimental results will demonstrate the effectiveness of the proposed approach.

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

↑