Atropos:通过早期终止和模型热切换提升基于LLM的代理在自一致性下的成本效益权衡
Atropos: Improving Cost-Benefit Trade-off of LLM-based Agents under Self-Consistency with Early Termination and Model Hotswap
AI总结:
本文提出Atropos技术,通过预测早期终止和模型热切换提升基于LLM的代理在自一致性下的成本效益权衡,实验表明其能将性能提升至闭合LLM的74.35%,成本降低至23.9%。
摘要:
开放权重小型语言模型(SLMs)能够以更低的财务成本提供更快的本地推理,但可能无法达到商业大语言模型(LLMs)的性能水平。因此,许多最新的LLM应用,如软件工程代理,通常只在较大的模型上进行评估,忽略了改进此类应用成本效益权衡的问题。本文提出了Atropos,一种预测早期终止分析和热切换技术,旨在提升基于自一致性的LLM代理的成本效益权衡。Atropos的核心组件是一个基于LLM推理结构属性的预测模型:在将多个代理推理路径合并为图表示后,Atropos使用图卷积网络(GCN)预测正在进行的推理是否最终会成功。如果在源LLM上运行的代理任务实例被预测为失败,Atropos随后执行热切换,即将正在进行的推理上下文迁移到更强大的目标LLM:这可行是因为LLM上下文是无状态的。使用三个最近的基于LLM的代理对Atropos进行实证评估,结果表明Atropos可以在推理中途预测最终失败的推理的准确率为0.85。对这些推理进行LLM热切换可将多达27.57%的推理转换为成功。因此,Atropos在闭合LLM性能的74.35%水平上实现了仅23.9%的成本。
英文摘要:
Open-weight Small Language Models(SLMs) can provide faster local inference at lower financial cost, but may not achieve the same performance level as commercial Large Language Models (LLMs) that are orders of magnitudes larger. Consequently, many of the latest applications of LLMs, such as software engineering agents, tend to be evaluated on larger models only, leaving the issue of improving the cost-benefit trade-off of such applications neglected. This paper proposes Atropos, a predictive early-termination analysis and hotswap technique that aims to improve the cost-benefit trade-off for LLM-based agents that use self-consistency. The core component of ATROPOS is a predictive model based on structural properties of LLM inferences: after merging multiple agentic inference paths into a graph representation, ATROPOS uses Graph Convolutional Network (GCN) to predict whether an ongoing inference will eventually succeed or not. If an agentic task instance running on the source LLM is predicted to fail, ATROPOS subsequently performs hotswapping, i.e., migrating the on-going inference context onto the more capable target LLM: this is feasible because LLM contexts are stateless. An empirical evaluation of ATROPOS using three recent LLM-based agents shows that ATROPOS can predict early termination of eventually failing inferences with the accuracy of 0.85 at the midpoint of the inference. Hotswapping LLMs for such inferences can convert up to 27.57% of them to be successful. Consequently, ATROPOS achieves 74.35% of the performance of closed LLMs with as low as only 23.9% of the cost.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。