跳到正文
arXiv (AI + Vision + Imaging)· Eric Price, Kevin Tian, Zhiyang Xun, Yusong Zhu·· 14 天前AI 评分18

自回归模型中总变差距离的估计:SGLang 与 vLLM 同权重服务差异实测

Total Variation Distance Estimation in Autoregressive Models

AI 导读

研究在样本、logit 与含噪 logit 三种访问模型下估计两个长度为 n 的自回归分布间总变差距离至加性误差 ε。样本访问需 O~(n²K/ε²) 次查询,优于 Meel 等人 2025 年的 O~(n³m/ε⁵);logit 访问需 O(n/ε²) 次且紧致。实验实测了 SGLang 与 vLLM 在相同权重下的分布距离。

正文 · 原文

arXiv:2607.19510v2 Announce Type: replace Abstract: Modern LLM deployments use a number of implementation choices and inference optimizations (e.g., batching, custom kernels, and quantization) on top of fixed weights, so two engines serving "the same model" can produce meaningfully different distributions. We study the problem of estimating the total variation (TV) distance between two length-$n$ autoregressive distributions to additive error $\varepsilon$, under three access models. (1) Under sample access, we use $\widetilde{O}(n^2 K/\varepsilon^2)$ queries, where $K$ is the maximum support of the next-token distribution. This improves upon the $\widetilde{O}(n^3 m/\varepsilon^5)$-query estimator of Meel et al. (2025), where $m \geq K$ is the total size of the token alphabet. (2) Under logit access, we use $O(n/\varepsilon^2)$ queries, and this is tight. (3) Under noisy logit access, we smoothly interpolate between the above two guarantees: if probability values are given to relative error $\sigma$, we use $\widetilde{O}((n+n^2\sigma^2)/\varepsilon^2)$ queries. We complement our theoretical results with an empirical evaluation of our algorithms, for example measuring the distance between SGLang and vLLM serving identical weights. Our experiments highlight the robustness and practicality of estimating the total variation distance, which remains estimable where the KL divergence is infinite. Our code is available at https://github.com/XunZhiyang/llm-tv-estimation.

来源:arXiv (AI + Vision + Imaging) · arxiv.org