arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.25097cs.LGcs.CR
收藏

零温度下的推测解码:基于48,072样本扩展的范围安全不变性筛查

Speculative Decoding at Temperature Zero: A Scoped Safety-Invariance Screen with a 48,072-Sample Expansion

Independent Researcher(独立研究员)

Sahil Kadadekar

AI总结:

提出典型接受不变性筛查(TAIS),通过行为等价性测试验证零温度下推测解码是否泄露安全风险,实验表明在vLLM堆栈中无安全差异。

摘要:

推测解码通过让草稿模型为目标模型提出令牌以加速推理,引发了一个具体的安全问题:在零温度下,草稿侧行为是否会泄露到安全评分的输出中?我们提出了典型接受不变性筛查(TAIS),这是一种行为等价性筛查,将仅目标模型和推测解码的输出配对在相同的安全测试集上,并要求字节一致性证据、±3pp的TOST等价性以及每个任务的Cohen's h低于校准的零假设截止值|h|<0.1。应用于16,783样本的确认核心集加上44,066匹配的扩展样本(fp16/bf16执行、规范性和DPO对抗性草稿、GPTQ-4bit草稿、两个种子和四个安全基准),测试的零温度vLLM堆栈在TAIS下未显示可检测的安全差异。匹配的仅目标模型与推测解码拒绝的最大绝对Cohen's h为0.024,大约比常规微小效应阈值低一个数量级;27个任务TOST对比中有25个通过±3pp边界(两个未通过的对比是在相同上限率下的能力域Wald-CI边缘情况,而非真正的非等价性);DPO对抗性草稿在4,006个样本上产生与规范性草稿字节相同的输出;bf16改变了36%-53%的输出字节,但未使任何任务的安全率偏离等价范围。一个独立的4,006样本70B生产规模探测(缺少匹配的70B仅目标模型分支,因此不计为TAIS通过)在700个AdvBench完成上产生AdvBench拒绝率0.839,95% Wilson CI为[0.809, 0.864]。我们不声称涉及采样温度、未测试框架、未测试模型族或树推测变体(如EAGLE和Medusa)。

英文摘要:

Speculative decoding accelerates inference by letting a draft model propose tokens for a target model to verify, raising a concrete safety question: at temperature zero, can draft-side behavior leak into safety-scored outputs? We answer with Typical-Acceptance Invariance Screen (TAIS), a behavioral-equivalence screen that pairs target-only and speculative outputs on the same safety battery and requires byte-identity evidence, TOST equivalence at +/-3pp, and per-task Cohen's h below a calibrated null cutoff of |h| < 0.1. Applied to a 16,783-sample confirmatory core plus 44,066 matched expansion samples (fp16/bf16 execution, canonical and DPO-adversarial drafts, GPTQ-4bit drafts, two seeds, and four safety benchmarks), the tested temperature-zero vLLM stacks show no detectable safety divergence under TAIS. The largest absolute Cohen's h on matched target-only versus speculative refusal is 0.024, roughly an order of magnitude below the conventional trivial-effect floor; 25 of 27 per-task TOST contrasts pass at the +/-3pp margin (the two non-pass contrasts are capability-domain Wald-CI edge cases at identical ceiling rates, not genuine non-equivalence); the DPO-adversarial draft produces byte-identical output to the canonical draft across 4,006 samples; and bf16 changes 36%-53% of output bytes without moving any per-task safety rate outside equivalence. A separate 4,006-sample 70B production-scale probe, which lacks a matched 70B target-only arm and is therefore not counted as a TAIS pass, produces AdvBench refusal 0.839 over 700 AdvBench completions with 95% Wilson CI [0.809, 0.864]. We make no claim about sampling temperatures, untested frameworks, untested model families, or tree-speculation variants such as EAGLE and Medusa.

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

↑