用检索增强生成模型提升大模型知识问答与生成能力
Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks

- 结合参数化模型与外部维基百科检索,动态获取知识
- 在三个开放域问答任务上超越现有最优模型
- 生成内容更准确、多样且有据可查,适合知识密集型任务
大型预训练语言模型虽在下游NLP任务中表现优异,但其知识访问与精确操控能力有限,在知识密集型任务上仍逊于专用架构。此外,决策溯源与知识更新仍是未解难题。通过引入可微分访问机制的显式非参数记忆,可解决该问题,但此前仅用于抽取类任务。本文提出通用的检索增强生成(RAG)微调方案,融合预训练序列到序列模型(参数记忆)与稠密向量索引的维基百科(非参数记忆),并通过预训练神经检索器访问。对比两种RAG结构:一种对整个生成序列使用相同检索片段,另一种每词可使用不同片段。在多种知识密集型NLP任务上进行微调与评估,三组开放域问答任务均达到新最优性能,优于参数化seq2seq模型及专用检索-抽取架构。在生成任务中,RAG模型生成的语言更具体、多样且事实准确。
原文摘要 · Abstract (English)
Large pre-trained language models have been shown to store factual knowledge in their parameters, and achieve state-of-the-art results when fine-tuned on downstream NLP tasks. However, their ability to access and precisely manipulate knowledge is still limited, and hence on knowledge-intensive tasks, their performance lags behind task-specific architectures. Additionally, providing provenance for their decisions and updating their world knowledge remain open research problems. Pre-trained models with a differentiable access mechanism to explicit non-parametric memory can overcome this issue, but have so far been only investigated for extractive downstream tasks. We explore a general-purpose fine-tuning recipe for retrieval-augmented generation (RAG) -- models which combine pre-trained parametric and non-parametric memory for language generation. We introduce RAG models where the parametric memory is a pre-trained seq2seq model and the non-parametric memory is a dense vector index of Wikipedia, accessed with a pre-trained neural retriever. We compare two RAG formulations, one which conditions on the same retrieved passages across the whole generated sequence, the other can use different passages per token. We fine-tune and evaluate our models on a wide range of knowledge-intensive NLP tasks and set the state-of-the-art on three open domain QA tasks, outperforming parametric seq2seq models and task-specific retrieve-and-extract architectures. For language generation tasks, we find that RAG models generate more specific, diverse and factual language than a state-of-the-art parametric-only seq2seq baseline.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。