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

理解检索增强生成中置信度的影响:医疗领域案例研究

Understanding the Impact of Confidence in Retrieval Augmented Generation: A Case Study in the Medical Domain

Nara Institute of Science and Technology(奈良科学技术研究所);The University of Tokyo(东京大学);NEC Corporation(日本电气株式会社)

Shintaro Ozaki, Yuta Kato, Siyuan Feng, Masayo Tomita, Kazuki Hayashi, Wataru Hashimoto, Ryoma Obara, Masafumi Oyamada, Katsuhiko Hayashi, Hidetaka Kamigaito, Taro Watanabe

AI总结:

本文以医疗领域为案例,研究检索增强生成(RAG)对大型语言模型输出置信度的影响,通过校准误差、熵、最佳概率和准确率等指标评估多种配置与模型,发现部分模型能自行判断检索文档与答案的相关性,并据此确定其在RAG框架中的生成器角色。

摘要:

检索增强生成(RAG)通过利用外部信息来增强大型语言模型(LLMs)对查询的响应准确性,从而补充其知识。该方法凭借注入最新信息的优势在多个领域得到广泛应用,研究人员正致力于理解和改进这一方面,以在高风险应用中充分释放RAG的潜力。然而,尽管RAG有潜力满足这些需求,其输出置信度水平背后的机制仍未得到充分探索。本研究聚焦于RAG的影响,具体考察RAG是否能在医疗领域提高LLM输出的置信度。我们在多种配置和模型上进行了分析。我们通过将模型的预测概率视为其输出,并计算包括校准误差方法、熵、最佳概率和准确率在内的多个评估指标来评估置信度。跨多个数据集的实验结果证实,某些模型具备自行判断插入文档是否与正确答案相关的能力。这些结果表明,基于模型输出概率对其进行评估,可以确定它们在RAG框架中是否充当生成器。我们的方法使我们能够评估模型是否处理了检索到的文档。

英文摘要:

Retrieval Augmented Generation (RAG) complements the knowledge of Large Language Models (LLMs) by leveraging external information to enhance response accuracy for queries. This approach is widely applied in several fields by taking its advantage of injecting the most up-to-date information, and researchers are focusing on understanding and improving this aspect to unlock the full potential of RAG in such high-stakes applications. However, despite the potential of RAG to address these needs, the mechanisms behind the confidence levels of its outputs remain underexplored. Our study focuses on the impact of RAG, specifically examining whether RAG improves the confidence of LLM outputs in the medical domain. We conduct this analysis across various configurations and models. We evaluate confidence by treating the model's predicted probability as its output and calculating several evaluation metrics which include calibration error method, entropy, the best probability, and accuracy. Experimental results across multiple datasets confirmed that certain models possess the capability to judge for themselves whether an inserted document relates to the correct answer. These results suggest that evaluating models based on their output probabilities determine whether they function as generators in the RAG framework. Our approach allows us to evaluate whether the models handle retrieved documents.

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

↑