BlackDAN:一种用于大型语言模型高效且上下文感知越狱的黑盒多目标方法
BlackDAN: A Black-Box Multi-Objective Approach for Effective and Contextual Jailbreaking of Large Language Models
AI总结:
针对现有LLM越狱策略仅聚焦攻击成功率的局限,提出黑盒多目标攻击框架BlackDAN,通过NSGA-II算法优化ASR、隐蔽性和相关性,实验证明其在多类模型上成功率更高、鲁棒性更强且响应更相关难检测。
摘要:
尽管大型语言模型(LLMs)在各类任务中展现出卓越能力,但它们面临越狱攻击等潜在安全风险——此类攻击利用漏洞绕过安全措施并生成有害输出。现有越狱策略主要聚焦于最大化攻击成功率(ASR),常忽视其他关键因素,包括越狱响应与查询的相关性及隐蔽性水平。这种对单一目标的狭隘关注可能导致无效攻击,要么缺乏上下文相关性,要么极易被识别。在本研究中,我们提出BlackDAN,一种创新的黑盒攻击框架,采用多目标优化,旨在生成高质量提示,在实现高效越狱的同时保持上下文相关性并最小化可检测性。BlackDAN利用多目标进化算法(MOEAs),具体为NSGA-II算法,跨ASR、隐蔽性和语义相关性等多个目标优化越狱。通过集成变异、交叉和帕累托支配等机制,BlackDAN提供了透明且可解释的越狱生成过程。此外,该框架允许基于用户偏好定制,能够选择平衡有害性、相关性及其他因素的提示。实验结果表明,BlackDAN优于传统单目标方法,在各类LLMs和多模态LLMs上实现更高成功率和更强鲁棒性,同时确保越狱响应既相关又更难被检测。
英文摘要:
While large language models (LLMs) exhibit remarkable capabilities across various tasks, they encounter potential security risks such as jailbreak attacks, which exploit vulnerabilities to bypass security measures and generate harmful outputs. Existing jailbreak strategies mainly focus on maximizing attack success rate (ASR), frequently neglecting other critical factors, including the relevance of the jailbreak response to the query and the level of stealthiness. This narrow focus on single objectives can result in ineffective attacks that either lack contextual relevance or are easily recognizable. In this work, we introduce BlackDAN, an innovative black-box attack framework with multi-objective optimization, aiming to generate high-quality prompts that effectively facilitate jailbreaking while maintaining contextual relevance and minimizing detectability. BlackDAN leverages Multiobjective Evolutionary Algorithms (MOEAs), specifically the NSGA-II algorithm, to optimize jailbreaks across multiple objectives including ASR, stealthiness, and semantic relevance. By integrating mechanisms like mutation, crossover, and Pareto-dominance, BlackDAN provides a transparent and interpretable process for generating jailbreaks. Furthermore, the framework allows customization based on user preferences, enabling the selection of prompts that balance harmfulness, relevance, and other factors. Experimental results demonstrate that BlackDAN outperforms traditional single-objective methods, yielding higher success rates and improved robustness across various LLMs and multimodal LLMs, while ensuring jailbreak responses are both relevant and less detectable.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。