arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.07247cs.LG
收藏

基于基础模型程序的资源高效推理

Resource-efficient Inference with Foundation Model Programs

The University of Texas at Austin(德克萨斯大学奥斯汀分校);Rice University(里奇大学)

Lunyiu Nie, Zhimin Ding, Kevin Yu, Marco Cheung, Chris Jermaine, Swarat Chaudhuri

AI总结:

针对大型模型推理成本高的问题,提出基于基础模型程序的资源分配策略,通过学习为各程序模块动态选择不同规模的后端模型,在流式视觉问答任务中实现高达98%的资源节省且精度损失极小。

摘要:

大型语言和视觉模型在推理时的资源成本在生产部署中带来了日益严峻的挑战。我们提出使用基础模型程序(即能够调用具有不同资源成本和性能的基础模型的程序)作为解决该问题的方法。具体而言,我们提出了一种将任务转化为程序的方法,随后学习一种资源分配策略,该策略针对每个输入,为每个程序模块选择基础模型“后端”。该策略使用更小、更便宜的后端来处理较简单的子任务,同时允许更复杂的子任务利用更大、更强大的模型。我们在两个新的“流式”视觉问答任务上评估了该方法,在这些任务中,系统对一系列输入进行回答,并在每次回答后接收真实反馈。与整体多模态模型相比,我们的实现实现了高达98%的资源节省,且精度损失极小,证明了其在可扩展和资源高效的多模态推理方面的潜力。

英文摘要:

The inference-time resource costs of large language and vision models present a growing challenge in production deployments. We propose the use of foundation model programs, i.e., programs that can invoke foundation models with varying resource costs and performance, as an approach to this problem. Specifically, we present a method that translates a task into a program, then learns a policy for resource allocation that, on each input, selects foundation model "backends" for each program module. The policy uses smaller, cheaper backends to handle simpler subtasks, while allowing more complex subtasks to leverage larger, more capable models. We evaluate the method on two new "streaming" visual question-answering tasks in which a system answers a question on a sequence of inputs, receiving ground-truth feedback after each answer. Compared to monolithic multi-modal models, our implementation achieves up to 98% resource savings with minimal accuracy loss, demonstrating its potential for scalable and resource-efficient multi-modal inference.

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

↑