arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.20224cs.CL
收藏

超越测试时计算策略:倡导语言模型推理中的能耗-token指标

Beyond Test-Time Compute Strategies: Advocating Energy-per-Token in LLM Inference

Technische Universität Berlin(柏林技术大学)

Patrick Wilhelm, Thorsten Wittkopp, Odej Kao

AI总结:

本文探讨了在小模型中测试时计算策略的能耗-准确率权衡,提出能耗-token指标和受控推理策略,以实现可持续的AI部署。

摘要:

大型语言模型(LLMs)在多样任务上表现出色,但带来显著的能耗和计算成本,尤其在请求密集场景中。在许多实际应用中,LLMs的完整规模和能力往往不必要,小语言模型(SLMs)可为更简单的文本生成任务提供准确响应。当增强高级推理策略,如链式思维(CoT)提示或多数投票时,SLMs可接近大模型性能,同时减少总体计算需求。然而,这些策略也可能引入额外能耗,产生能耗-准确率权衡。本文分析了在小模型中测试时计算策略的权衡,使用MMLU基准。此外,探讨了transformer架构的输入-输出token动态,导致LLMs的非线性硬件能耗曲线。为将AI研究与物理影响结合,我们提出能耗效率指标,包括每token能耗,作为传统准确率基准的补充。除了模型选择,我们提出受控推理的CoT token生成,利用操作曲线动态调节推理深度。这一愿景整合了能耗感知的路由机制,确保模型选择和推理策略在可持续AI部署中平衡准确率。

英文摘要:

Large Language Models (LLMs) demonstrate exceptional performance across diverse tasks but come with substantial energy and computational costs, particularly in request-heavy scenarios. In many real-world applications, the full scale and capabilities of LLMs are often unnecessary, as Small Language Models (SLMs) can provide accurate responses for simpler text generation tasks. When enhanced with advanced reasoning strategies, such as Chain-of-Thought (CoT) prompting or Majority Voting, SLMs can approach the performance of larger models while reducing overall computational requirements. However, these strategies can also introduce additional energy costs, creating an energy-accuracy trade-off. Our analysis examines these trade-offs in test-time compute strategies for smaller models compared to larger ones, using the MMLU benchmark. Additionally, we explore the input-output token dynamics of transformer architectures, which result in nonlinear hardware energy operation curves for LLMs. To bridge AI research with its physical impact, we propose \textit{energy efficiency metrics}, including Energy-per-Token, as complements to traditional accuracy benchmarks. Beyond model selection, we propose controlled reasoning in CoT token generation, using operating curves to regulate reasoning depth dynamically. This vision integrates a energy-aware routing mechanism, ensuring that model selection and inference strategies balance accuracy for sustainable AI deployment.

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

↑