arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.24217cs.AIcs.DC
收藏

识别和减轻生产级LLM推理基准中的系统性测量偏差

Identifying and Mitigating Systemic Measurement Bias in Production LLM Inference Benchmarks

Google(谷歌)

Ashok Chandrasekar, Jason Kramberger

AI总结:

针对生产级LLM推理基准中因客户端排队导致的测量偏差,提出基于多进程的无偏评估框架和归一化输出令牌时间(NTPOT)指标,实现高并发下的准确性能评估。

摘要:

随着大型语言模型(LLM)从研究环境过渡到生产部署,评估其是否满足严格的服务水平目标(SLO)变得至关重要。然而,当前的评估方法在大规模下存在严重的测量偏差。我们证明,广泛使用的基准测试工具依赖于单进程、异步驱动架构,在高并发下引入了根本性的客户端排队瓶颈。通过将基准测试客户端建模为$M/G/1$队列,我们从数学上展示了Python全局解释器锁(GIL)如何随着请求速率增加而人为地膨胀首令牌时间(TTFT)和每输出令牌时间(TPOT)指标。为了解决这一系统性不准确性,我们提出了一个无偏的多进程评估框架,有效分散客户端负载,确保可忽略的排队开销。此外,我们形式化了一个复合指标——归一化每输出令牌时间(NTPOT),以稳健地摊销端到端延迟,包括跨序列长度的预填充和调度延迟。我们的实证评估表明,该方法成功隔离了纯服务引擎性能,能够在每秒数千个查询的生产规模下对LLM进行准确、可复现的性能分析。

英文摘要:

As Large Language Models (LLMs) transition from research environments to production deployments, evaluating their performance against strict Service Level Objectives (SLOs) has become critical. However, current evaluation methodologies suffer from severe measurement bias at scale. We demonstrate that widely used benchmarking utilities rely on single-process, asyncio-driven architectures that introduce fundamental client-side queuing bottlenecks under high concurrency. By modeling the benchmarking client as an $M/G/1$ queue, we mathematically demonstrate how the Python Global Interpreter Lock (GIL) artificially inflates Time to First Token (TTFT) and Time Per Output Token (TPOT) metrics as request rates scale. To resolve this systematic inaccuracy, we propose an unbiased, multi-process evaluation framework that effectively distributes client-side load, ensuring negligible queuing overhead. Furthermore, we formalize a composite metric, Normalized Time Per Output Token (NTPOT), to robustly amortize end-to-end latency, including prefill and scheduling delays across sequence lengths. Our empirical evaluation demonstrates that this methodology successfully isolates pure serving engine performance, enabling accurate, reproducible profiling of LLMs at production scales exceeding thousands of queries per second.

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

↑