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

用于关系抽取的端到端可训练检索增强生成

End-to-End Trainable Retrieval-Augmented Generation for Relation Extraction

National Institute of Standards and Technology(美国国家标准与技术研究院);Colorado State University(科罗拉多州立大学);Toyota Technological Institute(丰田工业大学)

Kohei Makino, Makoto Miwa, Yutaka Sasaki

AI总结:

针对检索增强生成中实例检索不可微导致无法端到端训练的问题,提出ETRAG框架,通过可微的k近邻选择实现检索器与关系抽取目标的联合优化,在TACRED数据集上显著提升性能。

摘要:

本文解决了基于检索增强生成的关系抽取器中的一个关键挑战:由于实例检索的不可微性质,端到端训练不适用于传统的检索增强生成。这一问题使得实例检索器无法针对关系抽取任务进行优化,且传统上它必须使用与关系抽取不同的目标来训练。为解决此问题,我们提出了一种新颖的端到端可训练检索增强生成(ETRAG),它通过利用 $k$ 个最近实例的可微选择,允许包括检索器在内的整个模型针对关系抽取目标进行端到端优化。我们在 TACRED 数据集上评估了 ETRAG 的关系抽取性能,该数据集是关系抽取的标准基准。随着检索实例的增加,ETRAG 相对基线模型展现出持续的改进。此外,对端到端训练的检索器所检索实例的分析证实,检索到的实例包含与查询相同的关系标签或实体,并且专门针对目标任务进行了特化。我们的发现为未来关于检索增强生成以及自然语言处理中文本生成的更广泛应用的研究提供了有希望的基础。

英文摘要:

This paper addresses a crucial challenge in retrieval-augmented generation-based relation extractors; the end-to-end training is not applicable to conventional retrieval-augmented generation due to the non-differentiable nature of instance retrieval. This problem prevents the instance retrievers from being optimized for the relation extraction task, and conventionally it must be trained with an objective different from that for relation extraction. To address this issue, we propose a novel End-to-end Trainable Retrieval-Augmented Generation (ETRAG), which allows end-to-end optimization of the entire model, including the retriever, for the relation extraction objective by utilizing a differentiable selection of the $k$ nearest instances. We evaluate the relation extraction performance of ETRAG on the TACRED dataset, which is a standard benchmark for relation extraction. ETRAG demonstrates consistent improvements against the baseline model as retrieved instances are added. Furthermore, the analysis of instances retrieved by the end-to-end trained retriever confirms that the retrieved instances contain common relation labels or entities with the query and are specialized for the target task. Our findings provide a promising foundation for future research on retrieval-augmented generation and the broader applications of text generation in Natural Language Processing.

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

↑