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

基于大语言模型的运行时参数优化以实现高效模型推理

LLM-Guided Runtime Parameter Optimization for Energy-Efficient Model Inference

Virginia Polytechnic and State University(弗吉尼亚理工大学)

Katelyn Crumpacker, Dimitrios Nikolopoulos

AI总结:

本文提出一种结合人类反馈和大语言模型的运行时参数优化方法,以提高模型推理的能效,通过迭代优化快速找到高效参数配置。

摘要:

大型语言模型(LLMs)已成为许多现实工作流的重要组成部分。然而,LLMs消耗大量能量,在这些工具需求规模下成为一个重大问题。随着LLMs被集成到不同工作流中,不同应用出现以应对这些工具的推理挑战。这又提出了一个问题,即选择这些服务的运行时参数值以最小化能耗。通常这需要深入了解应用或传统优化方法,这些方法可能需要数天才能找到最优值。本文创建了一个带有人类在循环中的流程,利用LLM辅助的运行时参数优化来解决这一问题。通过人类创建的特定反馈提示方法,基于聊天的LLMs能够比传统搜索方法更快地找到节能的推理参数。LLMs还能根据不同的硬件设置调整其解决方案,并轻松考虑其他系统约束。增强的提示模板在平均3.4次提示下收敛,优于基线方法平均5.2次提示,并始终实现了更低的最终每token能耗。增强的提示模板还优于Sobol采样在收敛速度方面。

英文摘要:

Large Language Models (LLMs) have become an integral part of many real-world workflows. However, LLMs consume a lot of energy, which becomes a large concern in the scale of the demand for these tools. As LLMs become integrated into different workflows, different applications have arisen to deal with the challenge of running inference for these tools. This raises another issue of choosing the runtime parameter values for these services in order to minimize the energy consumption. Oftentimes this requires deep knowledge of the application or traditional optimization methods that can take days to find optimal values. In this work, we created a human-in-the-loop flow with LLM-assisted runtime parameter optimization in order to solve this issue. With human-created, specific feedback prompting methods, chat-based LLMs can iteratively find energy-efficient inference parameters faster than traditional search methods. LLMs can also tailor their solutions to different hardware setups and easily take into account other system constraints. The enhanced prompt template was able to converge below the threshold at an average of 3.4 prompts compared to the baseline, which converged in an average of 5.2 prompts, and consistently achieved lower final energy per token. The enhanced prompt template also outperformed Sobol sampling in convergence speed.

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

↑