← 研踪 PaperTrailarXiv:2607.19510 · v2
Total Variation Distance Estimation in Autoregressive Models
自回归模型中的全变差距离估计
首次提交 2026-07-22 02:49
版本更新 2026-11-10 23:40
雷达观测 2026-11-11 13:07
摘要
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- autoregressive distributions to additive error , under three access models. (1) Under sample access, we use queries, where is the maximum support of the next-token distribution. This improves upon the -query estimator of Meel et al. (2025), where is the total size of the token alphabet. (2) Under logit access, we use 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 , we use 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.
作者备注:Preliminary version of this paper is accepted by Neurips 2026. 40 pages, 11 figures, code is available at https://github.com/XunZhiyang/llm-tv-estimation
观测到的版本
相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。
v2 · 2026-11-10 23:40 · 最新观测版本
Total Variation Distance Estimation in Autoregressive Models
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- autoregressive distributions to additive error , under three access models. (1) Under sample access, we use queries, where is the maximum support of the next-token distribution. This improves upon the -query estimator of Meel et al. (2025), where is the total size of the token alphabet. (2) Under logit access, we use 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 , we use 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.
查看此版本解读 →查看此版本原文 ↗