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

SECA:用于诱发LLM幻觉的语义等价且连贯的攻击

SECA: Semantically Equivalent and Coherent Attacks for Eliciting LLM Hallucinations

University of Pennsylvania(宾夕法尼亚大学)

Buyun Liang, Liangzu Peng, Jinqi Luo, Darshan Thaker, Kwan Ho Ryan Chan, René Vidal

AI总结:

SECA通过现实修改提示诱发LLM幻觉,提高攻击成功率并减少语义错误。

摘要:

大型语言模型(LLMs)正越来越多地应用于高风险领域。然而,最先进的LLMs常常表现出幻觉,这引发了对其可靠性的严重担忧。先前的研究探索了对抗性攻击来诱发LLMs中的幻觉,但这些方法通常依赖于不现实的提示,要么通过插入无意义的标记,要么通过改变原始语义意图。因此,这些方法在揭示幻觉在现实世界中的产生机制方面提供了有限的见解。相比之下,计算机视觉中的对抗性攻击通常涉及对输入图像的现实修改。然而,识别诱发LLM幻觉的现实对抗性提示的问题仍 largely underexplored。为了解决这一差距,我们提出了语义等价且连贯的攻击(SECA),通过在提示上进行现实修改来诱发幻觉,同时保持其含义并维持语义连贯性。我们的贡献有三方面:(i)我们将寻找现实攻击以诱发幻觉问题公式化为在输入提示空间上受语义等价和连贯性约束的约束优化问题;(ii)我们引入了一种约束保持的零阶方法,以有效搜索对抗性但可行的提示;(iii)我们通过在开放性多项选择问答任务上的实验表明,SECA在攻击成功率方面更高,同时与现有方法相比,几乎不产生语义等价或语义连贯性错误。SECA突显了开源和商业梯度不可达LLM对现实和合理的提示变化的敏感性。代码可在https://github.com/Buyun-Liang/SECA上获得。

英文摘要:

Large Language Models (LLMs) are increasingly deployed in high-risk domains. However, state-of-the-art LLMs often exhibit hallucinations, raising serious concerns about their reliability. Prior work has explored adversarial attacks to elicit hallucinations in LLMs, but these methods often rely on unrealistic prompts, either by inserting nonsensical tokens or by altering the original semantic intent. Consequently, such approaches provide limited insight into how hallucinations arise in real-world settings. In contrast, adversarial attacks in computer vision typically involve realistic modifications to input images. However, the problem of identifying realistic adversarial prompts for eliciting LLM hallucinations remains largely underexplored. To address this gap, we propose Semantically Equivalent and Coherent Attacks (SECA), which elicit hallucinations via realistic modifications to the prompt that preserve its meaning while maintaining semantic coherence. Our contributions are threefold: (i) we formulate finding realistic attacks for hallucination elicitation as a constrained optimization problem over the input prompt space under semantic equivalence and coherence constraints; (ii) we introduce a constraint-preserving zeroth-order method to effectively search for adversarial yet feasible prompts; and (iii) we demonstrate through experiments on open-ended multiple-choice question answering tasks that SECA achieves higher attack success rates while incurring almost no semantic equivalence or semantic coherence errors compared to existing methods. SECA highlights the sensitivity of both open-source and commercial gradient-inaccessible LLMs to realistic and plausible prompt variations. Code is available at https://github.com/Buyun-Liang/SECA.

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

↑