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

掩码策略对语言模型知识保留能力的影响

The Effect of Masking Strategies on Knowledge Retention by Language Models

L3S Research Center(L3S研究中心);TU Delft(代尔夫特理工大学)

Jonas Wallat, Tianyi Zhang, Avishek Anand

AI总结:

该研究探究预训练掩码策略对语言模型知识保留的影响,发现掩码实体及基于点互信息的相关跨度掩码效果优于随机掩码,同时验证了知识获取中的灾难性遗忘现象并探索了预防方法。

摘要:

语言模型在预训练阶段保留了大量世界知识,这使得具备丰富知识的模型可应用于信息检索领域中常见的知识密集型任务,例如排序或问答。理解模型如何获取事实信息、获取了哪些事实信息,是构建负责任模型的必要前提。然而,目前关于预训练任务对语言模型在预训练期间获取和遗忘的知识量的影响的研究还较为有限。本文的目标是更好地理解知识获取过程。为此,我们选取了一系列预训练任务向模型中注入知识,在后续步骤中,通过衡量模型回答事实性问题的能力来测试其知识保留能力。我们的实验表明,掩码实体以及基于点互信息对相关跨度进行有原则的掩码,比掩码随机词元能保留更多事实知识。我们的研究结果证明,与执行任务的能力类似,从某项任务训练中获取的(事实性)知识会在模型被训练执行另一项任务时被遗忘(即灾难性遗忘),同时我们也探究了如何预防这一现象。为促进可复现性,本文所用的代码和数据均已公开。

英文摘要:

Language models retain a significant amount of world knowledge from their pre-training stage. This allows knowledgeable models to be applied to knowledge-intensive tasks prevalent in information retrieval, such as ranking or question answering. Understanding how and which factual information is acquired by our models is necessary to build responsible models. However, limited work has been done to understand the effect of pre-training tasks on the amount of knowledge captured and forgotten by language models during pre-training. Building a better understanding of knowledge acquisition is the goal of this paper. Therefore, we utilize a selection of pre-training tasks to infuse knowledge into our model. In the following steps, we test the model's knowledge retention by measuring its ability to answer factual questions. Our experiments show that masking entities and principled masking of correlated spans based on pointwise mutual information lead to more factual knowledge being retained than masking random tokens. Our findings demonstrate that, like the ability to perform a task, the (factual) knowledge acquired from being trained on that task is forgotten when a model is trained to perform another task (catastrophic forgetting) and how to prevent this phenomenon. To foster reproducibility, the code, as well as the data used in this paper, are openly available.

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

↑