简洁是可持续性的灵魂:刻画LLM响应长度
Brevity is the soul of sustainability: Characterizing LLM response lengths
AI总结:
本文针对LLM响应过长导致高能耗问题,通过基准测试和提示工程策略在保持质量的同时实现25-60%的能源优化。
摘要:
大型语言模型(LLMs)消耗的很大一部分能源来自于其推理过程,因此开发节能的推理方法至关重要。尽管已有多种推理优化技术,但输出压缩仍相对未被探索,仅有少量初步尝试涉及该方面。在本研究中,我们对12个仅解码器LLM在5个数据集上进行了基准测试,结果表明这些模型生成的响应往往比必要长度长得多。随后我们对LLM响应进行了全面的质量评估,正式定义了LLM响应中存在的六类信息类别。我们发现LLMs在最小答案之外,通常倾向于包含冗余或附加信息。为了解决LLM响应过长的问题,我们探索了几种简单直观的提示工程策略。实证评估表明,针对长度缩减和控制信息内容的适当提示,能够通过缩短响应长度实现25-60%的显著能源优化,同时保持LLM响应的质量。
英文摘要:
A significant portion of the energy consumed by Large Language Models (LLMs) arises from their inference processes; hence developing energy-efficient methods for inference is crucial. While several techniques exist for inference optimization, output compression remains relatively unexplored, with only a few preliminary efforts addressing this aspect. In this work, we first benchmark 12 decoder-only LLMs across 5 datasets, revealing that these models often produce responses that are substantially longer than necessary. We then conduct a comprehensive quality assessment of LLM responses, formally defining six information categories present in LLM responses. We show that LLMs often tend to include redundant or additional information besides the minimal answer. To address this issue of long responses by LLMs, we explore several simple and intuitive prompt-engineering strategies. Empirical evaluation shows that appropriate prompts targeting length reduction and controlling information content can achieve significant energy optimization between 25-60\% by reducing the response length while preserving the quality of LLM responses.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。