跳到正文
arXiv cs.AI· Lass Najmuldeen, Seyedhamidreza Mousavi·· 3 天前AI 评分23

LLM 基于深度的动态推理如何影响越狱脆弱性

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

AI 导读

研究发现,LLM 基于深度的动态推理中,浅层出口比深层出口对越狱攻击更鲁棒,深层出口的对抗后缀优化能达到更低的攻击损失,而对抗后缀对各出口深度的效用影响基本一致。该结论可为设计更抗越狱的动态推理方法提供依据,代码已开源,论文被 NeurIPS 2026 FLMSec Workshop 接收。

正文 · 原文

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