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

从幻觉到越狱:重新思考大型基础模型的脆弱性

From Hallucinations to Jailbreaks: Rethinking the Vulnerability of Large Foundation Models

School of Information Sciences University of Illinois at Urbana-Champaign(信息科学学院伊利诺伊大学厄巴纳-香槟分校);Computer Science and Engineering HKUST(计算机科学与工程香港科技大学);Computer Science Department University of California, Los Angeles(计算机科学系加州大学洛杉矶分校);Research Scientist, Intel Labs(英特尔实验室研究员);School of Information Sciences University of Illinois Urbana-Champaign(信息科学学院伊利诺伊大学厄巴纳-香槟分校)

Haibo Jin, Peiyan Zhang, Peiran Wang, Man Luo, Haohan Wang

AI总结:

本文提出统一理论框架将大型基础模型的越狱与幻觉分别建模为token级和注意力级优化,证明两者在损失收敛和梯度行为上具有一致性,并发现针对一种脆弱性的缓解技术可降低另一种的成功率。

摘要:

大型基础模型(LFMs)容易受到两种不同的脆弱性影响:幻觉和越狱攻击。虽然通常被孤立研究,但我们观察到针对其中一种的防御往往会影响另一种,暗示着更深层的联系。我们提出了一个统一的理论框架,将越狱建模为 token 级优化,将幻觉建模为注意力级优化。在该框架内,我们建立了两个关键命题:(1)相似的损失收敛——在针对特定目标的输出进行优化时,两种脆弱性的损失函数收敛方式相似;(2)注意力重分配中的梯度一致性——两者都表现出由共享的注意力动态驱动的梯度行为。我们在 LLaVA-1.5 和 MiniGPT-4 上实证验证了这些命题,显示出一致的优化趋势和对齐的梯度。利用这一联系,我们证明针对幻觉的缓解技术可以降低越狱成功率,反之亦然。我们的发现揭示了 LFMs 中共享的失败模式,并建议鲁棒性策略应共同解决这两种脆弱性。

英文摘要:

Large foundation models (LFMs) are susceptible to two distinct vulnerabilities: hallucinations and jailbreak attacks. While typically studied in isolation, we observe that defenses targeting one often affect the other, hinting at a deeper connection. We propose a unified theoretical framework that models jailbreaks as token-level optimization and hallucinations as attention-level optimization. Within this framework, we establish two key propositions: (1) \textit{Similar Loss Convergence} - the loss functions for both vulnerabilities converge similarly when optimizing for target-specific outputs; and (2) \textit{Gradient Consistency in Attention Redistribution} - both exhibit consistent gradient behavior driven by shared attention dynamics. We validate these propositions empirically on LLaVA-1.5 and MiniGPT-4, showing consistent optimization trends and aligned gradients. Leveraging this connection, we demonstrate that mitigation techniques for hallucinations can reduce jailbreak success rates, and vice versa. Our findings reveal a shared failure mode in LFMs and suggest that robustness strategies should jointly address both vulnerabilities.

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

↑