Geometry-Lite: 通过层间边际几何进行可解释的安全探测
Geometry-Lite: Interpretable Safety Probing via Layer-Wise Margin Geometry
AI总结:
本文研究了大语言模型在提示级别上的安全探测问题,提出了一种名为Geometry-Lite的紧凑探测器,通过层间边际几何分析来提高安全检测的可解释性和准确性。
摘要:
用于大语言模型的提示级别安全探测使用隐藏状态表示来区分安全和不安全的提示,但强平均检测性能并不能解释这种分离的几何结构。特别是,仍然不清楚安全证据是如何在层间形成的,哪些层间几何特性支持低误报决策,以及哪些几何偏见在基准转移下保持稳定。我们将此视为一个经验分解问题,并引入Geometry-Lite,一种紧凑的提示级别探测器,它将每一层的最终提示令牌表示映射到以质心、局部邻域和监督线性边界读出为中心的符号边际,然后通过边界位置、层间变化和粗略形状对结果边际配置进行总结。在九个指令微调的backbone(1.2B-70B)和七个安全基准上,Geometry-Lite在单层探测器上表现更好,同时接近原始多层分数堆叠,使其成为分析多层安全信号的有用工具。分解显示,安全证据主要通过持久的边界位置几何结构表达:最终或极端边际和不安全侧层占用主导汇总检测性能。相比之下,有限差分漂移和结构总结对汇总AUROC贡献很小,尽管漂移可以在低FPR阈值下提供小的召回修正。在基准转移下,优化的线性边界在训练混合物上是尖锐的,而类条件均值几何在预定义的硬保留子集上保持分离更可靠。总体而言,提示级别安全证据不是主要的层间运动信号,而是一种持久的层间边际几何结构,其有用组件和读取级偏见在决策关键区域变得明显。
英文摘要:
Prompt-level safety probes for large language models use hidden-state representations to separate safe from unsafe prompts, but strong average detection performance does not explain the geometry of this separation. In particular, it remains unclear how safety evidence is formed across layers, which aspects of that layer-wise geometry support low-false-positive decisions, and which geometric biases remain stable under benchmark shift. We study this as an empirical decomposition problem and introduce Geometry-Lite, a compact prompt-level probe that maps each layer's final prompt-token representation to signed margins under centroid, local-neighborhood, and supervised linear-boundary readouts, then summarizes the resulting margin profiles by boundary position, layer-to-layer change, and coarse shape. Across nine instruction-tuned backbones ($1.2$B--$70$B) and seven safety benchmarks, Geometry-Lite improves over single-layer probes while remaining close to raw multi-layer score stacking, making it a useful instrument for analyzing the multi-layer safety signal. The decomposition shows that safety evidence is expressed primarily through persistent boundary-position geometry: final or extremal margins and unsafe-side layer occupancy dominate aggregate detection performance. In contrast, finite-difference drift and structural summaries add little to pooled AUROC, although drift can provide small recall-oriented corrections under shifted low-FPR thresholds. Under benchmark shift, optimized linear boundaries are sharp on the training mixture, whereas class-conditional mean geometry retains separation more reliably on a predefined hard held-out subset. Overall, prompt-level safety evidence is not primarily a layer-to-layer motion signal, but a persistent layer-wise margin geometry whose useful components and readout-level biases become visible in decision-critical regimes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。