研究大模型在多语言检索增强生成中如何处理不同语言的上下文信息。
On the Consistency of Multilingual Context Utilization in Retrieval-Augmented Generation
- 测试大模型跨语言使用相关文本的能力,不依赖检索质量。
- 模型能提取异语言信息但难以用正确语言生成完整答案。
- 非查询语种干扰项影响较小,同语种干扰影响更明显。
检索增强生成(RAG)结合大语言模型在多语言问答任务中表现优异,通过从语料库中检索相关段落实现。在多语言RAG(mRAG)中,检索到的段落可能与用户查询语言不同,使大模型难以有效利用信息。尽管已有研究表明从多语言语料库中检索可提升性能,尤其对低资源语言有益,但大模型在独立于检索质量的前提下,能否一致地利用不同语言上下文仍缺乏深入研究。本文对四种大模型在三个涵盖48种语言的QA数据集上的表现进行了全面评估,考察其:(i) 无论段落语言是否与查询一致,能否保持一致的信息利用;(ii) 是否能以预期语言作答;(iii) 当上下文中存在多个不同语言的干扰段落时,是否仍能聚焦相关信息。结果发现,大模型具备从异语言段落中提取信息的能力,但生成正确语言回答的能力较弱。基于准确率与特征归因分析,干扰段落会降低答案质量,且与查询同语种的干扰影响略强。研究深化了对大模型在mRAG系统中上下文利用机制的理解,为后续改进提供方向。
原文摘要 · Abstract (English)
Retrieval-augmented generation (RAG) with large language models (LLMs) has demonstrated strong performance in multilingual question-answering (QA) tasks by leveraging relevant passages retrieved from corpora. In multilingual RAG (mRAG), the retrieved passages can be written in languages other than that of the query entered by the user, making it challenging for LLMs to effectively utilize the provided information. Recent research suggests that retrieving passages from multilingual corpora can improve RAG performance, particularly for low-resource languages. However, the extent to which LLMs can leverage different kinds of multilingual contexts to generate accurate answers, *independently from retrieval quality*, remains understudied. In this paper, we conduct an extensive assessment of LLMs' ability to (i) make consistent use of a relevant passage regardless of its language, (ii) respond in the expected language, and (iii) focus on the relevant passage even when multiple `distracting' passages in different languages are provided in the context. Our experiments with four LLMs across three QA datasets covering a total of 48 languages reveal a surprising ability of LLMs to extract the relevant information from passages in a different language than the query, but a much weaker ability to formulate a full answer in the correct language. Our analysis, based on both accuracy and feature attribution techniques, further shows that distracting passages negatively impact answer quality regardless of their language. However, distractors in the query language exert a slightly stronger influence. Taken together, our findings deepen the understanding of how LLMs utilize context in mRAG systems, providing directions for future improvements.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。