arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.21330cs.CLcs.AI
收藏

LLM在生物医学问答中针对错误信息的鲁棒性

LLM Robustness Against Misinformation in Biomedical Question Answering

Institute of Medical Microbiology(医学微生物学研究所);Virology, University Hospital Leipzig(莱比锡大学医院病毒学研究所);University Hospital Leipzig(莱比锡大学医院)

Alexander Bondarenko, Adrian Viehweger

AI总结:

该研究评估了四款大语言模型在生物医学问答中针对错误信息的鲁棒性,测试了不同场景下的准确率及对抗攻击表现,发现RAG可缩小模型效果差距,且鲁棒性排名随评估指标变化。

摘要:

检索增强生成(RAG)方法通过检索并提供来自外部知识源的额外上下文(例如将上下文添加到提示中),用于减少大语言模型(LLM)在问答任务中的虚构问题。然而,注入错误信息会误导LLM生成错误答案。\n在本文中,我们评估了四款LLM——Gemma 2、GPT-4o-mini、Llama 3.1和Mixtral——在回答生物医学问题时针对错误信息的有效性和鲁棒性。我们在三种场景下评估了是非题和自由形式问题的回答准确率:原生LLM回答(无上下文提供)、“完美”增强生成(提供正确上下文)以及提示注入攻击(提供错误上下文)。我们的结果显示,Llama 3.1(700亿参数)在原生场景(0.651)和“完美”RAG场景(0.802)中均取得了最高准确率。不过,在“完美”RAG场景下,各模型之间的准确率差距几乎消失,这表明它有可能缓解LLM因规模不同而产生的效果差异。\n我们进一步从两方面进行了评估:一方面是LLM生成恶意上下文的能力,另一方面是LLM对提示注入攻击的鲁棒性,使用的指标包括攻击成功率(ASR)、受攻击下的准确率以及准确率下降幅度。作为对抗方,我们使用相同的四款LLM(Gemma 2、GPT-4o-mini、Llama 3.1和Mixtral)生成错误上下文,并将其注入目标模型的提示中。有趣的是,Llama被证明是最有效的对抗方,在所有目标模型上,它导致原生回答的准确率下降最高达0.48,“完美”RAG场景下的准确率下降最高达0.63。我们的分析表明,鲁棒性排名会因评估指标的不同而变化,这凸显了评估LLM对抗攻击韧性的复杂性。

英文摘要:

The retrieval-augmented generation (RAG) approach is used to reduce the confabulation of large language models (LLMs) for question answering by retrieving and providing additional context coming from external knowledge sources (e.g., by adding the context to the prompt). However, injecting incorrect information can mislead the LLM to generate an incorrect answer. In this paper, we evaluate the effectiveness and robustness of four LLMs against misinformation - Gemma 2, GPT-4o-mini, Llama~3.1, and Mixtral - in answering biomedical questions. We assess the answer accuracy on yes-no and free-form questions in three scenarios: vanilla LLM answers (no context is provided), "perfect" augmented generation (correct context is provided), and prompt-injection attacks (incorrect context is provided). Our results show that Llama 3.1 (70B parameters) achieves the highest accuracy in both vanilla (0.651) and "perfect" RAG (0.802) scenarios. However, the accuracy gap between the models almost disappears with "perfect" RAG, suggesting its potential to mitigate the LLM's size-related effectiveness differences. We further evaluate the ability of the LLMs to generate malicious context on one hand and the LLM's robustness against prompt-injection attacks on the other hand, using metrics such as attack success rate (ASR), accuracy under attack, and accuracy drop. As adversaries, we use the same four LLMs (Gemma 2, GPT-4o-mini, Llama 3.1, and Mixtral) to generate incorrect context that is injected in the target model's prompt. Interestingly, Llama is shown to be the most effective adversary, causing accuracy drops of up to 0.48 for vanilla answers and 0.63 for "perfect" RAG across target models. Our analysis reveals that robustness rankings vary depending on the evaluation measure, highlighting the complexity of assessing LLM resilience to adversarial attacks.

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

↑