arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.06350cs.LGcs.AIcs.CL
收藏

代价是否值得?一种LLM级联的决策理论刻画

Is Escalation Worth It? On the Depth of LLM Cascades

Dylan Bouchard

Dylan Bouchard

AI总结:

本文通过决策理论框架分析LLM级联的代价与性能平衡,提出级联前沿的分段凹性及影子价格关系,验证了级联策略在不同数据集上的表现,发现结构成本是限制级联性能的主要因素。

摘要:

模型级联,即在低置信度查询中让廉价LLM退避至昂贵模型,广泛用于部署中的成本-质量权衡。现有方法大多将退避阈值视为经验超参数,缺乏对模型池中由此产生的成本-质量前沿几何结构的指导。我们开发了一个基于约束优化和对偶性的决策理论框架。对于双模型级联,我们建立了在置信度支持的递减收益区域内的成本-质量前沿的分段凹性,递归影子价格连接了预算约束和质量约束的 formulations。给定k个模型的池,我们刻画由确定性双模型阈值级联可实现的前沿为$\binom{k}{2}$对级联的点wise包络,切换点是最佳对变化的点。对于k-模型级联,我们推导出一阶条件,在这些条件下,一个影子价格使各阶段边界的边际质量-成本相等。我们验证了该框架在五个基准(MATH, MMLU, TriviaQA, SimpleQA, LiveCodeBench)上八个模型的表现。在确定性阈值级联类中,全固定链在双对包络下表现不佳,而优化的子序列级联在实践中并未带来显著的held-out增益。一个轻量级的预生成路由器在五个数据集中的四个上优于最佳级联策略,主要因为它避免了将查询直接发送到较大模型时廉价模型的生成成本,而不是因为更强的路由信号。这些结果表明,级联性能主要受限于结构成本,因为级联在任何升级决策之前都会支付廉价模型,而不是由于中间阶段的不足。

英文摘要:

LLM cascades, in which a cheap model defers to an expensive one on low-confidence queries, are widely used to reduce inference cost. Given a pool of models, a practitioner must decide how many models to include and where to set each deferral threshold. We derive first-order optimality conditions showing that, at an optimum, the ratio of expected accuracy gain to expected downstream cost is equal across deferral boundaries. A local search based on these conditions closely matches exhaustive search. We also derive an identity that decomposes the accuracy gain of score-based escalation over random escalation into two AUROC terms. Across five benchmarks and nine deferral scores, with model sequences and thresholds optimized from a pool of eight models, two-model cascades improve mean test-set accuracy over single-model selection by 2.1 to 8.2 percentage points. However, allowing more than two models does not improve mean test-set accuracy in 118 of 135 comparisons across scorers, datasets, and depth caps, and adds at most 0.43 percentage points. To understand the role of deferral scores in depth gains, we conduct counterfactual experiments with simulated confidence scores. When these scores have high AUROC and reflect only whether the current model answered correctly, allowing more than two models improves test-set accuracy on four of five benchmarks. However, these gains do not persist when the scores also reflect query difficulty shared across models, even at the same AUROC. These results suggest that gains from additional depth depend on how well the confidence score separates correct from incorrect answers for the current model compared with later models.

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

↑