为生存,我必须背叛:通过博弈论场景进行大语言模型的劫持攻击
"To Survive, I Must Defect": Jailbreaking LLMs via the Game-Theory Scenarios
AI总结:
本文提出一种基于博弈论的可扩展黑盒劫持框架GTA,通过重塑LLM目标以提高攻击成功率,实现在多种场景下的高ASR表现。
摘要:
随着大语言模型(LLMs)的普及,非专家用户可能带来风险,促使对劫持攻击进行广泛研究。然而,大多数现有的黑盒劫持攻击依赖于手工设计的启发式方法或狭窄的搜索空间,这限制了可扩展性。与先前的攻击相比,我们提出了博弈论攻击(GTA),一种可扩展的黑盒劫持框架。具体来说,我们将攻击者对安全对齐的LLMs的交互形式为有限时间 horizon、可提前停止的顺序随机博弈,并通过量级响应重新参数化LLMs的随机输出。在此基础上,我们引入了一个行为猜想“模板-安全翻转”:通过博弈论场景重塑LLMs的有效目标,原本的安全偏好可能在模板内成为最大化场景收益,从而在特定情境中削弱安全约束。我们通过经典的博弈如囚徒困境的披露变种验证了这一机制,并进一步引入了一个攻击代理,其能够自适应地增加压力以提高攻击成功率(ASR)。在多个协议和数据集上的实验表明,GTA在Deepseek-R1等LLMs上实现了超过95%的ASR,同时保持了效率。对组件、解码、多语言设置以及代理核心模型的消融研究证实了其有效性和泛化能力。此外,场景扩展研究进一步建立了可扩展性。GTA还能够在其他博弈论场景以及保持模型机制固定而改变背景的一次性LLM生成变体上实现相近的ASR。配对使用一个执行词级插入的有害词检测代理,GTA在提示防护模型下保持高ASR的同时降低了检测率。除了基准测试外,GTA还劫持了现实中的LLM应用,并报告了流行HuggingFace LLMs的长期安全监控。
英文摘要:
As LLMs become more common, non-expert users can pose risks, prompting extensive research into jailbreak attacks. However, most existing black-box jailbreak attacks rely on hand-crafted heuristics or narrow search spaces, which limit scalability. Compared with prior attacks, we propose Game-Theory Attack (GTA), an scalable black-box jailbreak framework. Concretely, we formalize the attacker's interaction against safety-aligned LLMs as a finite-horizon, early-stoppable sequential stochastic game, and reparameterize the LLM's randomized outputs via quantal response. Building on this, we introduce a behavioral conjecture "template-over-safety flip": by reshaping the LLM's effective objective through game-theoretic scenarios, the originally safety preference may become maximizing scenario payoffs within the template, which weakens safety constraints in specific contexts. We validate this mechanism with classical game such as the disclosure variant of the Prisoner's Dilemma, and we further introduce an Attacker Agent that adaptively escalates pressure to increase the ASR. Experiments across multiple protocols and datasets show that GTA achieves over 95% ASR on LLMs such as Deepseek-R1, while maintaining efficiency. Ablations over components, decoding, multilingual settings, and the Agent's core model confirm effectiveness and generalization. Moreover, scenario scaling studies further establish scalability. GTA also attains high ASR on other game-theoretic scenarios, and one-shot LLM-generated variants that keep the model mechanism fixed while varying background achieve comparable ASR. Paired with a Harmful-Words Detection Agent that performs word-level insertions, GTA maintains high ASR while lowering detection under prompt-guard models. Beyond benchmarks, GTA jailbreaks real-world LLM applications and reports a longitudinal safety monitoring of popular HuggingFace LLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。