演化技能结构攻击记忆增强大语言模型越狱
Evolving Skill-Structured Attack Memory Enhances LLM Jailbreaking
AI总结:
提出MemAttack框架,通过技能结构化的攻击记忆建模、生命周期驱动的记忆演化和探索-利用平衡的记忆选择,实现高效的黑盒越狱攻击,在AdvBench上达到98.00%攻击成功率。
摘要:
大语言模型(LLM)的越狱攻击旨在诱导LLM生成本应拒绝的内容。自动化黑盒越狱生成对于安全评估尤为重要,攻击者仅观察模型输出,需要自动搜索有效的对抗性提示。现有黑盒越狱方法要么依赖样本级启发式搜索,要么通过积累策略池或方法库来利用攻击经验,缺乏对攻击经验的系统组织和管理。为缓解这些缺陷,我们提出MemAttack,一种记忆驱动的黑盒越狱框架,具有全面的攻击记忆建模、演化和选择。具体来说,MemAttack包含三个关键设计:(1)技能结构记忆建模,将积累的攻击经验抽象为可重用的技能结构攻击记忆,其单元将攻击技能与模板、证据和生命周期状态配对;(2)生命周期驱动的记忆演化,通过基于证据的试用、晋升、退休、重新激活、淘汰和存储清理来演化记忆;(3)探索-利用平衡的记忆选择,通过上下文汤普森采样平衡可靠记忆重用与不确定性驱动的探索。在AdvBench上的实验表明,MemAttack实现了平均98.00%的攻击成功率,比最强基线高出16.67个百分点,同时请求次数减少45.9%。此外,随着记忆在更多样本上的积累,MemAttack持续改进。
英文摘要:
Jailbreak attacks on large language models (LLMs) aim to induce LLMs to produce content that they are expected to refuse. Automated black-box jailbreak generation is important for safety evaluation, where the attacker observes only model outputs and needs to search for effective adversarial prompts. Existing black-box jailbreak methods either depend on sample-wise heuristic search or leverage attack experience through accumulating strategy pools or method libraries, lacking a systematic organization and management of attack experience. To mitigate these drawbacks, we propose MemoAttack, a memory-driven black-box jailbreak framework with comprehensive attack memory modeling, evolution, and selection. Specifically, MemoAttack comprises three key designs: (1) Skill-Structured Memory Modeling, which abstracts accumulated attack experience into reusable skill-structured attack memory whose units pair attack skills with templates, evidence, and lifecycle state; (2) Lifecycle-Driven Memory Evolution, which evolves the memory through evidence-based probation, promotion, retirement, reactivation, elimination, and storage cleanup; and (3) Posterior-Guided Contextual Memory Selection, which balances reliable memory reuse with uncertainty-driven exploration via contextual Thompson sampling. Across three target models on AdvBench, MemoAttack achieves attack success rates of 93.33-96.67%, exceeding the strongest baseline on each target by 10.00-12.00 percentage points while reducing mean expansion cost on its own successful goals by 20.2-51.6%. In a sequential 400-goal evaluation on Qwen3.5, the trailing 50-goal mean expansion-attempt count decreases overall from 19.74 to 10.92 as memory accumulates.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。