跳到正文
arXiv:cs.AI· Lass Najmuldeen, Seyedhamidreza Mousavi·· 18 小时前

LLM 基于深度的动态推理越狱脆弱性研究

Exploring Jailbreak Vulnerability Across Depth-Based Dynamic Inference in Large Language Models

AI 导读

研究考察了基于深度的动态推理对 LLM 抵御越狱攻击能力的影响,发现浅层退出比深层退出始终更稳健,退出深度会影响对抗后缀的优化难度,深层退出能达到更低的攻击损失,而对抗后缀在各退出深度上对模型效用的影响是一致的。该成果已被 NeurIPS 2026 语言模型安全基础研讨会(FLMSec)接收,代码已开源。

正文

View PDF HTML (experimental)

Abstract:Large Language Models (LLMs) have been shown to be computationally expensive and vulnerable to jailbreak attacks, in which adversarial prompts bypass safety alignment and induce harmful responses. To address this inefficiency, a range of techniques have been proposed to enable efficient LLM inference. Depth-based dynamic inference has demonstrated promising results by enabling outputs to be generated from intermediate layers. It offers the flexibility to adjust model behavior based on the available resource budget. However, how this flexibility affects the robustness of LLMs against jailbreak attacks remains unexplored. In this paper, we address this gap via a comprehensive investigation into the impact of depth-based dynamic inference on the robustness of LLMs against jailbreak attacks. Specifically, we make the following key observations: 1) Shallow exits are consistently more robust to jailbreak attacks than deeper ones; 2) Exit depth affects how easily the adversarial suffix can be optimized, with deeper exits reaching lower attack loss; and 3) Adversarial suffixes affect utility uniformly across exit depths. These insights can help design dynamic inference methodologies that are more robust to jailbreak attacks. Code is available at this https URL
Comments: Accepted at the NeurIPS 2026 Workshop on Foundations of Language Model Security (FLMSec). 10 pages, 4 figures, 3 tables
Subjects: Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Computation and Language (cs.CL); Cryptography and Security (cs.CR)
Cite as: arXiv:2610.15207 [cs.LG]
  (or arXiv:2610.15207v1 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2610.15207

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Lass Najmuldeen [view email]
[v1] Sat, 10 Oct 2026 22:36:04 UTC (1,205 KB)

来源:arXiv:cs.AI · arxiv.org