External knowledge,e.g., entities and entity descriptions, can help humans understand texts. Many works have been explored to include external knowledge in the pre-trained models. These methods, generally, design pre-training tasks and implicitly introduce knowledge by updating model weights, alternatively, use it straightforwardly together with the original text. Though effective, there are some limitations. On the one hand, it is implicit and only model weights are paid attention to, the pre-trained entity embeddings are ignored. On the other hand, entity descriptions may be lengthy, and inputting into the model together with the original text may distract the model's attention. This paper aims to explicitly include both entities and entity descriptions in the fine-tuning stage. First, the pre-trained entity embeddings are fused with the original text representation and updated by the backbone model layer by layer. Second, descriptions are represented by the knowledge module outside the backbone model, and each knowledge layer is selectively connected to one backbone layer for fusing. Third, two knowledge-related auxiliary tasks, i.e., entity/description enhancement and entity enhancement/pollution task, are designed to smooth the semantic gaps among evolved representations. We conducted experiments on four knowledge-oriented tasks and two common tasks, and the results achieved new state-of-the-art on several datasets. Besides, we conduct an ablation study to show that each module in our method is necessary. The code is available at https://github.com/lshowway/Ered.
翻译:外部知识,例如,实体和实体说明,可以帮助人类理解文本。许多工作已经探讨过,将外部知识纳入经过培训的模型中。这些方法,通常是设计培训前任务,并通过更新模型重量来隐含地介绍知识。这些方法,通常是设计培训前任务,并且通过更新模型重量来明确包括实体和实体说明,或者直接与原始文本一起使用。虽然有些限制,但有些限制。一方面,它隐含,只有模型重量得到重视,预先培训的实体嵌入被忽略。另一方面,实体说明可能很长,输入模型时加上原始文本可能会分散模型的注意力。本文旨在明确将实体和实体说明纳入微调阶段。首先,经过培训前实体嵌入的原始文本表示与原始文本的表示相融合,并且由主干模型层更新。第二,描述由主干模型以外的知识模块进行,每个知识层有选择地与一个主干层连接。第三,两个与知识相关的辅助任务,即实体/描述增强和实体加强/澄清模型的任务可能转移模型的注意力。本文旨在将实体和实体说明实体说明在微调化阶段的每个任务中进行两次实验,我们所要完成的常规任务,一个共同任务将显示的方法显示。我们演进制模式任务,每个任务将取得的新任务。