arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2402.10527cs.CLcs.CRstat.AP
收藏

通过查询高效的采样攻击评估大型语言模型中的生物医学知识鲁棒性

Assessing biomedical knowledge robustness in large language models by query-efficient sampling attacks

UC San Francisco(加州大学旧金山分校);UC Berkeley(加州大学伯克利分校)

R. Patrick Xian, Alex J. Lee, Satvik Lolla, Vincent Wang, Qiming Cui, Russell Ro, Reza Abbasi-Asl

AI总结:

针对高风险领域LLMs知识鲁棒性问题,提出基于幂缩放距离加权采样的嵌入空间攻击,通过类型一致实体替换生成对抗实体,在低查询预算下评估生物医学知识鲁棒性,揭示两类对抗实体特征及对解释的操纵性,补充模型可信度评估。

摘要:

大型语言模型(LLMs)中参数化领域知识的深度不断增加,推动其在实际应用中快速部署。理解高风险和知识密集型任务中的模型漏洞,对于量化模型预测的可信度和规范其使用至关重要。最近在自然语言处理任务中发现命名实体可作为对抗样本(即对抗实体),这引发了关于它们对高风险和专业领域中预训练及微调LLMs知识鲁棒性潜在影响的疑问。我们研究了使用类型一致的实体替换作为模板,为具有生物医学知识的十亿参数级LLMs收集对抗实体。为此,我们开发了一种基于幂缩放距离加权采样的嵌入空间攻击,以低查询预算和可控覆盖范围评估其生物医学知识的鲁棒性。我们在生物医学问答的对抗干扰物生成任务中证明,该方法相较于基于随机采样和黑盒梯度引导搜索的替代方法,具有更优的查询效率和可扩展性。后续的失效模式分析揭示了攻击面上具有不同特征的两类对抗实体,且我们表明实体替换攻击可操纵基于标记的Shapley值解释,使其在该场景下具有欺骗性。我们的方法补充了高容量模型的标准评估,结果凸显了LLMs中领域知识的脆弱性。

英文摘要:

The increasing depth of parametric domain knowledge in large language models (LLMs) is fueling their rapid deployment in real-world applications. Understanding model vulnerabilities in high-stakes and knowledge-intensive tasks is essential for quantifying the trustworthiness of model predictions and regulating their use. The recent discovery of named entities as adversarial examples (i.e. adversarial entities) in natural language processing tasks raises questions about their potential impact on the knowledge robustness of pre-trained and finetuned LLMs in high-stakes and specialized domains. We examined the use of type-consistent entity substitution as a template for collecting adversarial entities for billion-parameter LLMs with biomedical knowledge. To this end, we developed an embedding-space attack based on powerscaled distance-weighted sampling to assess the robustness of their biomedical knowledge with a low query budget and controllable coverage. Our method has favorable query efficiency and scaling over alternative approaches based on random sampling and blackbox gradient-guided search, which we demonstrated for adversarial distractor generation in biomedical question answering. Subsequent failure mode analysis uncovered two regimes of adversarial entities on the attack surface with distinct characteristics and we showed that entity substitution attacks can manipulate token-wise Shapley value explanations, which become deceptive in this setting. Our approach complements standard evaluations for high-capacity models and the results highlight the brittleness of domain knowledge in LLMs.

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

↑