浮点偏置加法中的Logit泄漏 Logit Leakage through Floating-Point Bias Addition 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-10-12
👁️ 预览文献
💡 AI 中文简介
语言模型API在隐藏logits时仍可能暴露token偏置。现有方法只能恢复相对logits,无法确定公共加性分量。本文发现浮点偏置加法中的数值侧信道,通过token身份即可区分具有相同完整未扰动log概率的分数向量。方法利用二进制指数边界处可表示间距的变化,在至多52次token查询内精确恢复一对logit及其未知的平局优先顺序。在7个模型家族的11个公开检查点上评估,并在vLLM、SGLang和llama.cpp上端到端验证,自适应恢复在全部128个Qwen3-0.6B输入上成功。还提出在偏置加法前减去最大值以抑制公共偏移披露的充分条件。
领域机器学习安全与隐私
适合谁读需要一定专业背景
核心贡献1. 发现浮点偏置加法中的数值侧信道,仅通过token身份即可区分具有相同完整未扰动log概率的分数向量;2. 提出在至多52次token查询内精确恢复logit对及其平局优先顺序的方法,并给出抑制公共偏移披露的充分条件。
关键数据在11个公开检查点(7个模型家族)上评估;端到端实验中,自适应恢复在vLLM、SGLang和llama.cpp上对全部128个Qwen3-0.6B输入(含64个留出输入)成功;仅token实验提取了预训练小模型完整输出头表示(至多可逆隐藏基变换);缓解措施在受控实验中消除了所有观察到的公共偏移变体区分。
推荐理由如果你关心语言模型API的隐私泄露,这篇论文揭示了一个仅靠token查询就能精确恢复logit的巧妙侧信道,值得一读。
关键词["Logit泄漏", "浮点侧信道", "语言模型API", "偏置加法", "数值安全", "模型提取"]

原文摘要

查看英文原文摘要

Language model APIs can expose token-specific biases while withholding logits and token probabilities. Existing bias-based extraction recovers relative logits, leaving a common additive component undetermined in ideal arithmetic. We identify a numerical side channel in floating-point bias addition that exposes information about this component through token identities alone. The channel distinguishes score vectors with identical complete unperturbed log probabilities. Our method exploits changes in representable spacing at binary exponent boundaries. Under the stated binary32 arithmetic assumptions and a known reachable score interval, it recovers a logit pair and its unknown tie-breaking priority exactly in at most 52 token queries. Given complete relative logits, one recovered anchor determines the original logit vector. We evaluate recovery across 11 public checkpoints from seven model families and extend the local method with adaptive interval search and anchor selection. In end-to-end experiments with vLLM, SGLang, and llama.cpp, adaptive recovery succeeds on all 128 Qwen3-0.6B inputs per system, including 64 held-out inputs. A separate token-only experiment extracts a pretrained small model's complete output-head representation up to an invertible hidden-basis transformation. We also establish a sufficient condition for suppressing common-shift disclosure by subtracting the maximum before bias addition. In controlled experiments, this mitigation eliminates all observed distinctions between common-shift variants and preserves token decisions under the tested random biases.