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

UncertaintyRAG:面向检索增强生成的基于片段级不确定性增强的长上下文建模

UncertaintyRAG: Span-Level Uncertainty Enhanced Long-Context Modeling for Retrieval-Augmented Generation

SYSU(中山大学);HKU(香港大学);UCL(伦敦大学学院);CUHK(香港中文大学);OSU(俄亥俄州立大学);MSRA(微软研究院);SMBU(上海生物医学工程研究所);CAS(中国科学院)

Zixuan Li, Jing Xiong, Fanghua Ye, Chuanyang Zheng, Xun Wu, Jianqiao Lu, Zhongwei Wan, Xiaodan Liang, Chengming Li, Zhenan Sun, Lingpeng Kong, Ngai Wong

AI总结:

UncertaintyRAG 利用基于信噪比的片段级不确定性改进长上下文检索增强生成,通过无监督训练和数据采样策略,以极少训练数据实现最先进性能,并可灵活集成到不同上下文窗口的大语言模型中。

摘要:

我们提出 UncertaintyRAG,这是一种用于长上下文检索增强生成(RAG)的新方法,利用基于信噪比(SNR)的片段级不确定性来估计文本块之间的相似度。这种片段级不确定性增强了模型校准,提高了鲁棒性,并缓解了随机分块引入的语义不一致。基于这一见解,我们提出了一种高效的無监督学习技术来训练检索模型,同时提出了一种有效的数据采样和规模扩展策略。UncertaintyRAG 在 LLaMA-2-7B 上比基线方法提高了 2.03%,在分布偏移设置下仅使用其他先进开源检索模型 4% 的训练数据,就取得了最先进的结果。我们的方法通过片段级不确定性展示了强大的校准能力,从而在长上下文 RAG 任务中实现了更好的泛化性和鲁棒性。此外,UncertaintyRAG 提供了一个轻量级检索模型,可以集成到任何具有不同上下文窗口长度的大语言模型中,无需微调,展示了我们方法的灵活性。

英文摘要:

We present UncertaintyRAG, a novel approach for long-context Retrieval-Augmented Generation (RAG) that utilizes Signal-to-Noise Ratio (SNR)-based span uncertainty to estimate similarity between text chunks. This span uncertainty enhances model calibration, improving robustness and mitigating semantic inconsistencies introduced by random chunking. Leveraging this insight, we propose an efficient unsupervised learning technique to train the retrieval model, alongside an effective data sampling and scaling strategy. UncertaintyRAG outperforms baselines by 2.03% on LLaMA-2-7B, achieving state-of-the-art results while using only 4% of the training data compared to other advanced open-source retrieval models under distribution shift settings. Our method demonstrates strong calibration through span uncertainty, leading to improved generalization and robustness in long-context RAG tasks. Additionally, UncertaintyRAG provides a lightweight retrieval model that can be integrated into any large language model with varying context window lengths, without the need for fine-tuning, showcasing the flexibility of our approach.

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

↑