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

利用向量化上下文改进检索增强开放域问答

Improving Retrieval Augmented Open-Domain Question-Answering with Vectorized Contexts

School of Information Science and Technology, ShanghaiTech University(上海科技大学信息科学与技术学院);Institute for Intelligent Computing, Alibaba Group(阿里巴巴集团智能计算研究院)

Zhuo Chen, Xinyu Wang, Yong Jiang, Pengjun Xie, Fei Huang, Kewei Tu

AI总结:

本文提出一种通用方法,利用小型编码器语言模型对上下文进行向量化编码并与原始输入交叉注意力,使大语言模型在计算需求接近基线的情况下能处理数倍长的上下文,并在多个数据集和上下文学习设置中提升开放域问答性能。

摘要:

在大语言模型时代,应用检索增强生成等技术能更好地解决开放域问答问题。受限于模型规模和计算资源等约束,上下文长度常受限,使得在回答开放领域问题时,赋予模型覆盖超长上下文的能力变得极具挑战。本文提出一种通用且便捷的方法,以在开放域问答任务中覆盖更长的上下文。该方法利用一个小型编码器语言模型有效编码上下文,并将该编码与原始输入应用交叉注意力。通过我们的方法,原始语言模型能覆盖数倍长的上下文,同时保持计算需求接近基线。实验表明,微调后,在两个内部数据集、四个外部数据集以及两种上下文学习设置中均取得了性能提升。

英文摘要:

In the era of large language models, applying techniques such as Retrieval Augmented Generation can better address Open-Domain Question-Answering problems. Due to constraints including model sizes and computing resources, the length of context is often limited, and it becomes challenging to empower the model to cover overlong contexts while answering questions from open domains. This paper proposes a general and convenient method to covering longer contexts in Open-Domain Question-Answering tasks. It leverages a small encoder language model that effectively encodes contexts, and the encoding applies cross-attention with origin inputs. With our method, the origin language models can cover several times longer contexts while keeping the computing requirements close to the baseline. Our experiments demonstrate that after fine-tuning, there is improved performance across two held-in datasets, four held-out datasets, and also in two In Context Learning settings.

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

↑