跳到正文
arXiv:cs.AI· Shaomin Chen, Xiaorui Gong·· 5 小时前

浮点偏置加法中的 Logit 泄漏:通过 token 查询精确恢复未扰动 logit 向量

Logit Leakage through Floating-Point Bias Addition

AI 导读

研究揭示语言模型 API 在浮点偏置加法中存在数值侧信道,仅凭 token 身份即可区分未扰动完整对数概率相同的得分向量。在 binary32 算术假设下,该方法最多用 52 次 token 查询精确恢复一对 logit 及其未知的平局优先级。

正文

View PDF HTML (experimental)

Abstract: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 this http URL, 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.
Comments: 18 pages, 6 figures, 5 tables, including appendices
Subjects: Cryptography and Security (cs.CR); Artificial Intelligence (cs.AI)
Cite as: arXiv:2610.16790 [cs.CR]
  (or arXiv:2610.16790v1 [cs.CR] for this version)
  https://doi.org/10.48550/arXiv.2610.16790

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Shaomin Chen [view email]
[v1] Mon, 12 Oct 2026 13:44:37 UTC (193 KB)

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