arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.07672cs.CRcs.CL
收藏

DYNASHIELD:一种通过动态解码定制实现的大语言模型黑盒移动目标防御

DYNASHIELD: A Black-Box Moving Target Defense for LLMs via Dynamic Decoding Customization

Michigan State University(密歇根州立大学)

Xiaoqun Liu, Weiming Qi, Qiben Yan

AI总结:

DYNASHIELD是一种无需访问模型内部或重新训练的黑盒LLM防御框架,通过动态定制解码配置降低了4种越狱攻击的成功率,同时保持响应质量且开销极小。

摘要:

大语言模型(LLMs)仍易受越狱攻击影响,这类攻击中对抗性提示会诱导模型生成有害输出。现有防御方法通常需要访问模型内部结构或额外训练,限制了其对通过黑盒API部署的服务提供商的适用性。本文提出DYNASHIELD,这是一种移动目标防御框架,通过在推理时定制解码超参数和系统提示来提升鲁棒性。DYNASHIELD包含两个关键步骤:(1)识别能降低攻击成功率的解码配置;(2)从加权配置池中进行概率采样,为模型行为引入可控变异性。我们在7种开源LLMs上,使用来自AdvBench的对抗性提示,针对4种最先进的越狱攻击对DYNASHIELD进行评估。结果显示,与7种基线防御方法相比,DYNASHIELD的攻击成功率大幅降低,同时保持了响应质量且推理开销极小。由于DYNASHIELD仅通过暴露的运行时控制操作,无需重新训练或访问模型内部,这些结果表明,安全感知型动态解码是一种有前景且实用的轻量级防御机制,适用于黑盒LLM部署。

英文摘要:

Large language models (LLMs) remain vulnerable to jailbreak attacks in which adversarial prompts induce harmful outputs. Existing defenses often require access to the model internals or additional training, limiting their applicability for service providers deployed through black-box APIs. In this paper, we propose DYNASHIELD, a moving target defense framework that improves robustness by customizing decoding hyperparameters and system prompts at inference time. DYNASHIELD includes two key steps: (1) it identifies decoding configurations that reduce attack success probability, and (2) it probabilistically samples from a weighted configuration pool to introduce controlled variability in model behavior. We evaluate DYNASHIELD across 7 open-source LLMs under 4 state-of-the-art jailbreak attacks, using adversarial prompts from AdvBench. Results show substantial reductions in attack success rate compared with 7 baseline defenses, while maintaining response quality and incurring minimal inference overhead. Because DYNASHIELD operates solely through exposed runtime controls, it requires no retraining or model-internal access. These results suggest that safety-aware dynamic decoding is a promising and practically lightweight defense mechanism for black-box LLM deployments.

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

↑