跳到正文
arXiv:cs.AI· Omanshu Thapliyal·· 5 小时前AI 评分42

基于收缩约束状态空间模型的有界可达性与越狱检测

Bounded Reachability & Jailbreak Detection via Contraction-Constrained State Space Models

AI 导读

研究发现,基于状态空间模型(SSM)的安全头要获得形式化鲁棒性认证,需满足状态转移矩阵的 l∞ 范数小于 1 的收缩条件,此时可对线性时不变分类器进行精确区间界传播(IBP)认证。

正文

View PDF HTML (experimental)

Abstract:Safety heads are lightweight classifiers attached to pretrained language models for flagging harmful inputs before generation. Their empirical detection performance has been studied, but their formal robustness properties remain largely unexplored. We ask when a State Space Model (SSM)-based safety head can be certified to produce the same prediction for all inputs within a bounded embedding-space perturbation. We prove that the answer turns on a single condition: the $l_\infty$ norm of the state transition matrix must satisfy $\norm{A}_\infty<1$ (the \emph{contraction condition}), which enables exact interval bound propagation (IBP) certification for linear time-invariant classifiers. When the contraction condition holds, the reachable output interval has bounded steady-state width and examples can be certified as robustly classified. When it fails, the interval grows exponentially with sequence length and certification is impossible at any practical perturbation radius. We enforce contraction with a hinge penalty and show on toxic comment data that certified fraction improves from 41\% to 59\%, with a sharp empirical phase transition at $\norm{A}_\infty=1$ matching the theory. Applying a contraction-regularized S4 head to jailbreak detection on JailbreakBench, we achieve a zero-shot transfer to AdvBench (DR=0.994) and HarmBench (DR=0.988). A logistic regression on mean-pooled Mamba-130M embeddings matches or exceeds the S4 head on every detection metric, confirming that harmful intent is already linearly separable in the embedding space. The S4 safety head's contribution is not superior discrimination but the formal certification that no probe-based approach provides.
Comments: 21 pages, 18 figures, AIMS Workshop @ COLM 2026
Subjects: Artificial Intelligence (cs.AI)
Cite as: arXiv:2610.02853 [cs.AI]
  (or arXiv:2610.02853v1 [cs.AI] for this version)
  https://doi.org/10.48550/arXiv.2610.02853

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Omanshu Thapliyal [view email]
[v1] Fri, 2 Oct 2026 05:39:06 UTC (2,874 KB)

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