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

利用上下文提示向大型语言模型注入知识

Infusing Knowledge into Large Language Models with Contextual Prompts

University of Delhi(德里大学);IBM Research India(IBM印度研究院)

Kinshuk Vasisht, Balaji Ganesan, Vikas Kumar, Vasudha Bhatnagar

AI总结:

针对现有知识注入依赖额外预训练或知识图谱的问题,本文提出直接从输入上下文生成提示的简单泛化方法,并通过探测微调后的 LLM 验证其有效性。

摘要:

知识注入是增强大型语言模型以处理特定领域自然语言处理任务的一种有前景的方法,而无需基于大规模数据从头预训练模型。这些增强型 LLM 通常依赖额外的预训练,或来自现有知识图谱的知识提示,这在许多应用中并不现实。相比之下,直接从相关文档进行知识注入具有更强的泛化性,不仅免除了对结构化知识图谱的需求,而且对通常无法在任何知识图谱中找到的实体也很有用。基于这一动机,我们提出了一种简单且具有泛化性的知识注入方法,通过从输入文本的上下文中生成提示来实现。我们通过探测经过微调的 LLM 对该方法进行评估,实验结果证明了其有效性。

英文摘要:

Knowledge infusion is a promising method for enhancing Large Language Models for domain-specific NLP tasks rather than pre-training models over large data from scratch. These augmented LLMs typically depend on additional pre-training or knowledge prompts from an existing knowledge graph, which is impractical in many applications. In contrast, knowledge infusion directly from relevant documents is more generalisable and alleviates the need for structured knowledge graphs while also being useful for entities that are usually not found in any knowledge graph. With this motivation, we propose a simple yet generalisable approach for knowledge infusion by generating prompts from the context in the input text. Our experiments show the effectiveness of our approach which we evaluate by probing the fine-tuned LLMs.

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

↑