具有早期弃权(不执行)的LLM级联的成本节约
Cost-Saving LLM Cascades with Early Abstention
AI总结:
研究LLM级联中早期弃权(不执行)的益处,发现允许早期模型弃权可平均减少2.2%测试损失,降低13.0%成本和5.0%错误率。
摘要:
LLM级联部署小型LLM来回答大多数查询,将大型且昂贵的LLM的使用限制在困难查询上。这种方法可以显著降低成本而不影响性能。然而,如金融或医学等风险敏感领域对避免模型错误有额外要求。由于即使是最昂贵的模型也容易犯错,这些领域的应用受益于允许LLM系统完全弃权(不执行)回答困难查询。引入弃权(不执行)为LLM级联提出了一个设计问题:弃权(不执行)应该仅允许在最终模型上进行,还是也应该在早期模型上进行?由于小型和大型模型的错误模式是相关的,允许早期模型弃权(不执行)可能通过预期昂贵且缓慢的模型的弃权(不执行)决策来减少推理成本和延迟,从而避免运行这些模型。我们研究了这种“早期弃权(不执行)”在LLM级联中的益处,发现它在六个基准测试(GSM8K、MedMCQA、MMLU、TriviaQA、TruthfulQA和XSum)上平均减少了2.2%的总体测试损失。这些收益源于更有效地使用弃权(不执行),以总体弃权(不执行)率平均增加4.1%换取成本减少13.0%和错误率降低5.0%。我们的发现证明了利用不同语言模型之间错误模式的相关性来推动具有弃权(不执行)功能的LLM系统性能提升的可能性。
英文摘要:
LLM cascades deploy small LLMs to answer most queries, limiting the use of large and expensive LLMs to difficult queries. This approach can significantly reduce costs without impacting performance. However, risk-sensitive domains such as finance or medicine place an additional premium on avoiding model errors. Since even the most expensive models are susceptible to making mistakes, applications in these domains benefit from allowing LLM systems to completely abstain from answering difficult queries. Introducing abstention poses a design question for LLM cascades: should abstention only be allowed at the final model or also at earlier models? Since the error patterns of small and large models are correlated, allowing earlier models to abstain may reduce inference costs and latency by anticipating abstention decisions by expensive and slow models, thus avoiding the need to run these models. We investigate the benefits of such "early abstention" in LLM cascades and find that it reduces overall test loss by 2.2% on average across six benchmarks (GSM8K, MedMCQA, MMLU, TriviaQA, TruthfulQA, and XSum). These gains result from a more effective use of abstention, trading a 4.1% average increase in the overall abstention rate for a 13.0% reduction in cost and a 5.0% reduction in error rate. Our findings demonstrate the possibility of leveraging correlations between the error patterns of different language models to drive performance improvements for LLM systems with abstention.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。