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

异质大语言模型的渐近最优顺序检验

Sequential Sampling for Binary Classification: Two LLMs are (Almost) All You Need

McGill University(麦吉尔大学);University of North Carolina, Chapel Hill(北卡罗来纳大学教堂山分校);Queen’s University(女王大学);University of Michigan(密歇根大学)

Guokai Li, Alys Liang, Mo Liu, Murray Lei, Stefanus Jasin, Fenghua Yang, Preet Baxi

AI总结:

本文研究了使用异质大语言模型进行贝叶斯二元顺序假设检验问题,通过分析信息率和成本,证明在误差容忍度趋近于零时,最优策略等价于使用最多两个模型,并构造了基于信念的混合策略以逼近下限。

摘要:

我们研究了一个具有多个大语言模型(LLMs)的贝叶斯二元顺序假设检验问题。每个LLM j有每查询成本c_j>0,随机等待时间具有均值μ_j>0和子高斯尾部,以及不对称准确性:返回正确标签的概率取决于真实假设θ∈{A,B},在A和B下不一定相同。这种不对称性导致每个LLM有两个不同的信息率(I_{j,A}, I_{j,B})。决策者按顺序选择LLMs,观察其噪声二进制答案,并在后验概率超过1-α时停止。目标是最小化查询成本和等待成本的期望和,即E[C_π] + E[g(W_π)],其中C_π是总查询成本,W_π是总等待时间,g是多项式函数(例如g(x)=x^ρ,ρ≥1)。我们证明当误差容忍度α→0时,最优策略渐近等价于使用最多两个LLMs。在这种情况下,单LLM策略不一定是最优的:现在需要利用A和B下的信息之间的二维权衡。任何可接受的策略都会导致一个期望信息分配向量在R_+^2中,我们显示当α相对小时,最优分配位于关联凸集的极点,因此最多使用两个LLMs。我们构造了基于信念的策略,当后验模糊时混合两个LLMs,当后验足够接近一个假设时切换到一个“专家”LLM。这些策略在α→0时接近下限,误差为(1+o(1))因子。

英文摘要:

We study how to orchestrate multiple large language models (LLMs) for reliable binary classification when models differ in accuracy, monetary cost, and response time. A decision-maker adaptively chooses which LLM to query, updates its belief after each response, and stops once sufficient confidence has been reached. Our results reveal a sharp contrast between exact and near-optimal orchestration. In the worst case, an exactly optimal policy may need to query every available LLM. Yet under high reliability requirements, a simple policy using at most two LLMs is asymptotically optimal. The policy identifies one specialist for each possible outcome and adaptively switches between them according to the accumulated evidence. We derive a universal lower bound on the achievable cost and show that this two-LLM policy approaches the bound at the best possible rate. Two LLMs are not merely sufficient; they can be essential. When models have complementary strengths, relying on the best single LLM can be arbitrarily more costly than using two specialists. How the models are queried also matters: committing to a fixed query plan can waste substantial resources because it cannot stop early or redirect queries as evidence accumulates. In a weak-signal regime, we analytically show that the best static design costs four times as much as the optimal sequential policy. Numerical experiments using 18 LLMs on a public benchmark show that these benefits remain substantial at practically relevant confidence levels. The main message is simple: near-optimal LLM orchestration need not require coordinating a large portfolio of models. Identifying two complementary specialists and switching between them as evidence evolves can capture most of the value of adaptive inference.

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

↑