Kformer:Transformer前馈层中的知识注入
Kformer: Knowledge Injection in Transformer Feed-Forward Layers
摘要:
近年来,针对预训练语言模型(PTM)的知识注入模型层出不穷,但大多数研究都忽略了PTM自身的能力,即大量隐含知识存储在参数中。最近的一项研究观察到前馈网络(FFN)中的知识神经元,这些神经元负责表达事实知识。在这项工作中,我们提出了一个简单的模型,Kformer,它利用存储在PTM和外部知识,通过知识注入Transformer FFN层的知识。经验上的结果对两个知识密集型任务,常识推理(即,SocialIQA)和医学问答(即,MedQA-USMLE),证明Kformer可以比其他知识注入技术(如级联或基于注意力的注入)产生更好的性能。我们认为,所提出的简单模型和实证研究结果可能有助于社区开发更强大的知识注入方法。代码可在https://github.com/zjunlp/Kformer获得。
英文摘要:
Recent days have witnessed a diverse set of knowledge injection models for pre-trained language models (PTMs); however, most previous studies neglect the PTMs' own ability with quantities of implicit knowledge stored in parameters. A recent study has observed knowledge neurons in the Feed Forward Network (FFN), which are responsible for expressing factual knowledge. In this work, we propose a simple model, Kformer, which takes advantage of the knowledge stored in PTMs and external knowledge via knowledge injection in Transformer FFN layers. Empirically results on two knowledge-intensive tasks, commonsense reasoning (i.e., SocialIQA) and medical question answering (i.e., MedQA-USMLE), demonstrate that Kformer can yield better performance than other knowledge injection technologies such as concatenation or attention-based injection. We think the proposed simple model and empirical findings may be helpful for the community to develop more powerful knowledge injection methods. Code available in https://github.com/zjunlp/Kformer.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。