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

提示生成训练(PGT):开放书问答检索增强生成模型的少样本领域适应

Prompt Generate Train (PGT): Few-shot Domain Adaption of Retrieval Augmented Generation Models for Open Book Question-Answering

Microsoft(微软)

C. S. Krishna

AI总结:

本文提出PGT框架,通过合成数据生成、监督微调与强化学习对齐,在少样本下高效适配RAG模型,实现低成本且与GPT-4媲美的开放书问答。

摘要:

我们提出了一个框架——提示、生成、训练(PGT),以在专有文本文档集合上高效开发用于开放书问答的生成式问答模型。该框架在少样本设置下,使用监督微调和带有合成反馈的强化学习,将检索增强生成(RAG)模型适应到目标领域。我们假设,这将产生一个对齐的、不确定性校准的模型,该模型在以较低服务成本生成相关答案方面,与基于 GPT-4 的上下文检索增强生成具有竞争力。该框架的合成生成流水线将使用开源 LLM 和一种新颖的一致性过滤方案,生成由 <passage, question, answer> 元组组成的合成训练数据。该流水线将被设计为生成涵盖整个语料库的抽象和抽取式问题。该框架提议在合成数据集上微调一个较小的 RAG 模型,该模型包含一个密集检索器(ColBERTv2)和一个较小规模的 LLM。与此同时,该框架将训练一个奖励模型,利用合成组装样本的先验相关性排序,使领域接地的答案得分高于幻觉答案。在下一阶段,该框架将使用强化学习(近端策略优化)将 RAG 模型与目标领域对齐。此步骤可以提高 RAG 模型生成接地答案并忽略领域外问题的能力。在最后阶段,该框架将校准模型对于抽取式问答的不确定性。

英文摘要:

We propose a framework - Prompt, Generate, Train (PGT) - to efficiently develop a generative question-answering model for open-book question-answering over a proprietary collection of text documents. The framework adapts a retriever augmented generation (RAG) model to the target domain using supervised fine-tuning and reinforcement learning with synthetic feedback in a few-shot setting. This, we hypothesize, will yield an aligned, uncertainty calibrated model that is competitive with GPT-4 based in-context retrieval augmented generation in generating relevant answers at lower serving costs. The framework's synthetic generation pipeline will generate synthetic training data comprising <passage, question, answer> tuples using an open-source LLM and a novel consistency filtering scheme. The pipeline will be designed to generate both abstractive and extractive questions that span the entire corpus. The framework proposes to fine-tune a smaller RAG model comprising a dense retriever (ColBERTv2) and a smaller sized LLM on the synthetic dataset. In parallel, the framework will train a Reward model to score domain grounded answers higher than hallucinated answers using an a priori relevance ordering of synthetically assembled samples. In the next phase, the framework will align the RAG model with the target domain using reinforcement learning (Proximal Policy Optimization). This step may improve the RAG model's ability to generate grounded answers and ignore out of domain questions. In the final phase, the framework will calibrate the model's uncertainty for extractive question-answers.

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

↑