CoreLM:基于相关性的语言模型微调
CoreLM: Coreference-aware Language Model Fine-Tuning
摘要:
语言模型是所有现代自然语言处理(NLP)任务的基础。Transformers架构的引入极大地促进了语言建模在许多NLP任务中的有效性,导致了该领域的重大进步。然而,Transformers具有较大的计算成本,其相对于输入长度成二次方增长。这提出了一个挑战,因为理解长文本需要大量的上下文。在本文中,我们提出了一个微调框架,名为CoreLM,扩展了当前的预训练语言模型的架构,使它们包含显式的实体信息。通过引入实体表示,我们可以在模型的上下文空间之外提供信息,从而以一小部分计算成本获得更好的语言模型。我们使用GPT2实现我们的方法,并将微调后的模型与原始模型进行比较。我们提出的模型在GUMBY和LAMBDADA数据集中实现了较低的困惑,与GPT2和GPT2的微调版本相比,没有任何变化。我们还比较了模型的性能在LAMBADA和儿童图书测试的准确性,使用和不使用模型创建的共指注释。
英文摘要:
Language Models are the underpin of all modern Natural Language Processing (NLP) tasks. The introduction of the Transformers architecture has contributed significantly into making Language Modeling very effective across many NLP task, leading to significant advancements in the field. However, Transformers come with a big computational cost, which grows quadratically with respect to the input length. This presents a challenge as to understand long texts requires a lot of context. In this paper, we propose a Fine-Tuning framework, named CoreLM, that extends the architecture of current Pretrained Language Models so that they incorporate explicit entity information. By introducing entity representations, we make available information outside the contextual space of the model, which results in a better Language Model for a fraction of the computational cost. We implement our approach using GPT2 and compare the fine-tuned model to the original. Our proposed model achieves a lower Perplexity in GUMBY and LAMBDADA datasets when compared to GPT2 and a fine-tuned version of GPT2 without any changes. We also compare the models' performance in terms of Accuracy in LAMBADA and Children's Book Test, with and without the use of model-created coreference annotations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。