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

LLM2KB:使用指令微调的上下文感知大语言模型构建知识库

LLM2KB: Constructing Knowledge Bases using instruction tuned context aware Large Language Models

ARiSE Labs at Bosch(博世ARiSE实验室)

Anmol Nayak, Hari Prasad Timmapathini

AI总结:

本研究提出LLM2KB知识库构建系统,基于Llama 2架构与Wikipedia数据集,用LoRA对两个13B级大模型做参数高效指令微调,结合DPR获取的上下文完成实体关系抽取,在LM-KBC挑战赛21种关系上获0.6185的平均F1分数。

摘要:

大语言模型(LLM)的出现彻底改变了自然语言处理领域,推动了各类应用的显著进步。一个核心研究方向是利用这些强大模型构建知识库(KB),知识库作为结构化信息存储库,可支撑信息检索与推理任务。本文提出LLM2KB系统,该系统基于大语言模型构建知识库,重点采用Llama 2架构与Wikipedia数据集。我们对Llama-2-13b-chat和StableBeluga-13B进行参数高效指令微调,通过低秩适配(LoRA)技术训练仅占基础模型0.05%参数的小型注入模型。这些注入模型的训练提示词经过设计,可利用通过稠密段落检索(DPR)算法获取的主体实体Wikipedia页面上下文,为给定的主体实体和关系回答对应的客体实体。我们的最优模型在ISWC 2023会议举办的LM-KBC挑战赛的21种关系上取得了0.6185的平均F1分数。

英文摘要:

The advent of Large Language Models (LLM) has revolutionized the field of natural language processing, enabling significant progress in various applications. One key area of interest is the construction of Knowledge Bases (KB) using these powerful models. Knowledge bases serve as repositories of structured information, facilitating information retrieval and inference tasks. Our paper proposes LLM2KB, a system for constructing knowledge bases using large language models, with a focus on the Llama 2 architecture and the Wikipedia dataset. We perform parameter efficient instruction tuning for Llama-2-13b-chat and StableBeluga-13B by training small injection models that have only 0.05 % of the parameters of the base models using the Low Rank Adaptation (LoRA) technique. These injection models have been trained with prompts that are engineered to utilize Wikipedia page contexts of subject entities fetched using a Dense Passage Retrieval (DPR) algorithm, to answer relevant object entities for a given subject entity and relation. Our best performing model achieved an average F1 score of 0.6185 across 21 relations in the LM-KBC challenge held at the ISWC 2023 conference.

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

↑