arXiv cs.CL· Alon Jacobson, Qian Xie, Peter I. Frazier·· 11 小时前AI 评分29
Latency-Aware Adaptive Best-of-N:面向在线服务的延迟感知自适应采样方法
Latency-Aware Adaptive Best-of-$N$
AI 导读
针对 Best-of-N 采样在在线服务中忽略延迟成本的问题,研究者提出一种两阶段自适应算法:先抽取初始批次,再根据观测奖励与批次延迟决定是否抽取第二批及规模,无需显式测量服务器负载。
正文 · 原文
Abstract:Test-time compute (TTC) improves language model responses by spending additional computation at inference time, and the right amount of compute depends on the prompt. Adaptive TTC methods allocate compute based on signals of response quality such as observed rewards, often by stopping once the signal exceeds a fixed threshold, and generally measure cost by the number of generations or tokens. But in online serving, latency is also a cost: it grows with server load, so a method using a fixed threshold spends too little compute when generation is fast and too much when it is slow. For Best-of-$N$ sampling, a widely used TTC method, we propose a two-stage adaptive algorithm that draws an initial batch, then uses the observed rewards and the batch's latency to decide whether to draw a second batch and at what size by comparing expected improvement against predicted cost: it draws one when the first batch's best reward is below a threshold that decreases with the first batch's latency, without explicitly measuring server load. We map each reward to its value under the cumulative distribution function (CDF) of the prompt's reward distribution, so the same tradeoff parameters can be reused across tasks; a regression fitted offline on other prompts predicts a distribution for the CDF value of the first batch's best reward, giving the expected improvement in closed form. We evaluate the method by simulation on a preference-based alignment benchmark, measuring generations-equivalent cost: generations plus latency, converted to generations. The method reaches Best-of-$N$'s reward at lower generations-equivalent cost, and conditioning on the measured first-batch latency saves at least as much of that cost as fixed-threshold (latency-unaware) baselines, and more when latency is highly variable, when it grows with batch size, and when the second batch's latency is highly predictable from the first's.
| Subjects: | Computation and Language (cs.CL); Machine Learning (cs.LG) |
| Cite as: | arXiv:2611.07453 [cs.CL] |
| (or arXiv:2611.07453v1 [cs.CL] for this version) | |
| https://doi.org/10.48550/arXiv.2611.07453 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Alon Jacobson [view email]
[v1]
Thu, 5 Nov 2026 04:56:16 UTC (1,186 KB)
来源:arXiv cs.CL · arxiv.org