arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.24617cs.DScs.LGmath.OC
收藏

多LLM查询优化

Multi-LLM Query Optimization

Arlen Dean, Zijin Zhang, Stefanus Jasin, Yuqing Liu

AI总结:

本文研究如何在异构模型间优化查询分配,通过建立鲁棒的离线查询规划问题,结合联合界限分解与Chernoff型集中界,提出闭式表达式并设计近似方案。

摘要:

在并行部署多个大语言模型(LLMs)以分类未知真实标签时,如何最优分配查询仍不明确。本文提出一个鲁棒的离线查询规划问题,最小化总查询成本并满足状态间误差约束。通过将问题归约到最小权集合覆盖问题,证明其NP难。为克服不可行性,结合多类误差的联合界限分解与Chernoff型集中界,得到闭式表达式且保证可行性。进一步证明该替代方案在优化层面渐近紧致,误差容忍度缩小时,替代最优成本与真实最优成本的比率收敛至1,具有显式速率O(loglog(1/α_min)/log(1/α_min))。最后设计渐近完全多项式时间近似方案(AFPTAS),在(1+ε)因子内返回替代可行的查询计划。

英文摘要:

Deploying multiple large language models (LLMs) in parallel to classify an unknown ground-truth label is a common practice, yet the problem of optimally allocating queries across heterogeneous models remains poorly understood. In this paper, we formulate a robust, offline query-planning problem that minimizes total query cost subject to statewise error constraints which guarantee reliability for every possible ground-truth label. We first establish that this problem is NP-hard via a reduction from the minimum-weight set cover problem. To overcome this intractability, we develop a surrogate by combining a union bound decomposition of the multi-class error into pairwise comparisons with Chernoff-type concentration bounds. The resulting surrogate admits a closed-form, multiplicatively separable expression in the query counts and is guaranteed to be feasibility-preserving. We further show that the surrogate is asymptotically tight at the optimization level: the ratio of surrogate-optimal cost to true optimal cost converges to one as error tolerances shrink, with an explicit rate of $O\left(\log\log(1/α_{\min}) / \log(1/α_{\min})\right)$. Finally, we design an asymptotic fully polynomial-time approximation scheme (AFPTAS) that returns a surrogate-feasible query plan within a $(1+\varepsilon)$ factor of the surrogate optimum.

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

↑