arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.21139math.OCcs.AIcs.LG
收藏

何时值得为更好的大语言模型(LLM)付费?基于切换混合保真度神谕的随机优化

When is a better LLM worth paying for? Stochastic Optimization with Switching Mixed-Fidelity Oracles

MIT Sloan School of Management(麻省理工学院斯隆管理学院);IBM Research(IBM研究院)

Swati Gupta, Tianjiao Li

AI总结:

本研究针对下游任务,提出带切换混合保真度神谕的随机优化框架,开发两种感知成本算法,可自适应选择LLM神谕,在保证精度的同时降低累计成本。

摘要:

大语言模型(LLM)越来越多地被用于决策上游,以清理数据、检测标签错误和重建缺失值。然而,LLM辅助的数据整理带来了新的操作权衡:更高保真度的模型和更丰富的提示词可能成本大幅增加,而这种额外保真度的价值取决于下游优化的准确性。这引出了本研究的核心问题:针对手头特定的下游任务,何时应该为更好的LLM付费?我们通过混合保真度一阶神谕的随机优化来研究该问题,这类神谕可能存在系统性偏差和依赖状态的方差。我们开发了两种感知成本的算法框架,允许在随机神谕之间进行自适应切换。在偏差已知的情况下,第一种元算法采用重启式、感知成本的策略,在优化阶段自适应选择神谕保真度,其累计成本不大于事后最优固定神谕的成本,且可能显著更小。在偏差未知的情况下,我们开发了一种带预算的验证方案,该方案利用偶尔的可信梯度评估来验证优化进度并排除不成功的神谕源,同时展示了验证成本与延迟检测偏差源之间的明确权衡。我们通过将带偏随机梯度外推(SGE)和依赖状态噪声下的递归正则化作为子例程,实现了这些元算法的具体实例。合成实验和LLM补全实验说明了理论预测的定性切换行为:自适应策略跳过了几个昂贵的LLM神谕,相对于固定高保真度替代方案,在实现可比准确性的同时大幅降低了累计成本。

英文摘要:

Large language models (LLMs) are increasingly used upstream of decision-making to clean data, detect label errors, and reconstruct missing values. Yet LLM-assisted data curation creates a new operational tradeoff: higher-fidelity models and richer prompts can be substantially more expensive, while the value of this additional fidelity depends on the downstream optimization accuracy. This raises the central question of this work: when should one pay for a better LLM, given a specific downstream task at hand? We study this question through stochastic optimization with mixed-fidelity first-order oracles, which can have systematic bias and state-dependent variance. We develop two cost-aware algorithmic frameworks that allow adaptive switching between stochastic oracles. With known bias, the first meta-algorithm applies a restarted, cost-aware policy that adaptively selects oracle fidelity across optimization stages. Its cumulative cost is no larger than that of the best fixed oracle in hindsight and can be substantially smaller. With unknown bias, we develop a budgeted certification scheme that uses occasional trusted-gradient evaluations to certify the optimization progress and eliminate unsuccessful oracle sources, and show an explicit tradeoff between certification cost and delayed detection of biased sources. We provide concrete realizations of these meta-algorithms by applying biased stochastic gradient extrapolation (SGE) and recursive regularization under state-dependent noise as subroutines. Synthetic and LLM-completion experiments illustrate the qualitative switching behavior predicted by the theory: the adaptive policy skips several expensive LLM oracles and substantially reduces cumulative cost relative to fixed high-fidelity alternatives while achieving comparable accuracy.

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

↑