基于置信度的多尺度模型选择以实现高效推理
Confidence-Driven Multi-Scale Model Selection for Cost-Efficient Inference
AI总结:
本文提出基于置信度的多尺度模型选择方法,通过动态选择合适模型提升推理效率,实验表明在保持准确性的同时降低计算成本达20%-40%。
摘要:
大型语言模型(LLMs)已通过在多样化的自然语言任务中进行推理,彻底改变了推理领域,但更大的模型性能更好但计算成本更高。我们提出了一种基于置信度的策略,该策略能够根据置信度评估动态选择最合适的模型。通过评估模型处理任务的置信度和响应准确性,那些很可能正确解决的任务会被保留,而更不确定或复杂的情况则会委托给更大的模型,从而在保证可靠性的同时减少计算成本。具体来说,我们评估了模型正确回答的可能性以及其响应准确性的概率。在大规模多任务语言理解(MMLU)基准测试中,我们的方法在准确性方面与最大模型相当,同时将计算成本降低了20%至40%。当应用于GPT-4o API调用时,它减少了约60%的token使用,进一步提高了成本效率。这些发现表明,基于置信度的模型选择有潜力增强现实中的LLM部署,特别是在资源受限的环境中,如边缘设备和商业API应用。
英文摘要:
Large Language Models (LLMs) have revolutionized inference across diverse natural language tasks, with larger models performing better but at higher computational costs. We propose a confidence-driven strategy that dynamically selects the most suitable model based on confidence estimates. By assessing a model's confidence in handling the task and response accuracy, tasks that are likely to be solved correctly are retained, while more uncertain or complex cases are delegated to a larger model, ensuring reliability while minimizing computation. Specifically, we evaluate a model's likelihood of knowing the correct answer and the probability that its response is accurate. Experiments on the Massive Multitask Language Understanding (MMLU) benchmark show that our approach achieves accuracy comparable to the largest model while reducing computational costs by 20\% to 40\%. When applied to GPT-4o API calls, it reduces token usage by approximately 60\%, further improving cost efficiency. These findings indicate the potential of confidence-based model selection to enhance real-world LLM deployment, particularly in resource-constrained settings such as edge devices and commercial API applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。