arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.16013cs.DS
收藏

带前瞻的在线批处理:对抗性极限与随机增益

Online Batching with Lookahead: Adversarial Limits and Stochastic Gains

The University of Texas at Austin(德克萨斯大学奥斯汀分校);Capital One(第一资本)

Dimitris Christou, Jiayi Chen, Nihal Sharma, Aditya Akella, Shuchi Chawla, Sanjay Shakkottai

AI总结:

该研究针对单服务器在线批处理模型,分析了前瞻在对抗性和泊松到达场景下的极限与增益,证明适度前瞻可缩小在线与离线批处理的流时间差距。

摘要:

现代推理系统依赖批处理来利用并行执行并摊销串行执行开销,但批处理会产生一个根本性的在线调度权衡:立即服务请求会减少请求排队延迟,而等待则可以形成更大的批处理,更好地利用并行硬件并提高服务效率。我们在具有有限批处理容量、固定批处理处理时间且目标是最小化总流时间的单服务器在线批处理模型中研究这一权衡。我们的重点是与纯在线调度设置相比,对未来到达的有限前瞻的价值。我们表明,前瞻的好处取决于到达模型。在对抗性设置中,有限完美前瞻具有固有限制:对于任何有限前瞻窗口,每个在线算法与离线最优解之间仍存在常数因子的差距。因此,最坏情况的到达序列可防止对未来事件的完美知识完全克服在线不确定性。相比之下,在稳定状态下的泊松到达下,有限前瞻要强大得多。尽管最佳的感知分布在线算法与离线最优解之间具有非零渐近差距,但前瞻会以窗口长度的指数级速度缩小该差距。我们证明了指数中常数因子范围内的匹配上下界。这些结果共同对前瞻何时能缩小在线-离线差距给出了严格刻画,将在线算法的竞争分析见解融入排队论稳态界限中。我们还研究了不完美预测,表明前瞻的好处会随着预测误差而优雅地下降。对合成到达的模拟和对真实请求轨迹的实验支持该理论:适度的前瞻可大幅减少流时间,并使在线批处理接近离线基准。

英文摘要:

Modern inference systems rely on batching to exploit parallel execution and amortize serial execution overheads, but batching creates a fundamental online scheduling tradeoff: serving requests immediately reduces request queuing delay, while waiting can form larger batches that better utilize parallel hardware and improve serving efficiency. We study this tradeoff in a single-server online batching model with bounded batch capacity, fixed batch processing time, and the objective of minimizing total flow time. Our focus is on the value of finite lookahead into future arrivals over a purely online setting for scheduling. We show that the benefits of lookahead depend on the arrival model. In the adversarial setting, finite perfect lookahead has inherent limitations: for any bounded lookahead window, every online algorithm remains separated from the offline optimum by a constant factor. Thus, worst-case arrival sequences can prevent perfect knowledge of future events from fully overcoming online uncertainty. In contrast, under Poisson arrivals in the stable regime, finite lookahead is much more powerful. Although the best distribution-aware online algorithm has a nonzero asymptotic gap from the offline optimum, lookahead closes this gap exponentially fast in the window length. We prove matching upper and lower bounds up to constants in the exponent. Together, these results give a tight characterization of when lookahead can close the online--offline gap, incorporating insights from the competitive analysis of online algorithms into queueing-theoretic steady-state bounds. We also study imperfect predictions, showing that the benefit of lookahead degrades gracefully with prediction error. Simulations on synthetic arrivals and experiments on real request traces support the theory: modest lookahead substantially reduces flow time and brings online batching close to the offline benchmark.

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

↑