|国家预印本平台
首页|Energy Considerations of Large Language Model Inference and Efficiency Optimizations

Energy Considerations of Large Language Model Inference and Efficiency Optimizations

Energy Considerations of Large Language Model Inference and Efficiency Optimizations

来源:Arxiv_logoArxiv
英文摘要

As large language models (LLMs) scale in size and adoption, their computational and environmental costs continue to rise. Prior benchmarking efforts have primarily focused on latency reduction in idealized settings, often overlooking the diverse real-world inference workloads that shape energy use. In this work, we systematically analyze the energy implications of common inference efficiency optimizations across diverse Natural Language Processing (NLP) and generative Artificial Intelligence (AI) workloads, including conversational AI and code generation. We introduce a modeling approach that approximates real-world LLM workflows through a binning strategy for input-output token distributions and batch size variations. Our empirical analysis spans software frameworks, decoding strategies, GPU architectures, online and offline serving settings, and model parallelism configurations. We show that the effectiveness of inference optimizations is highly sensitive to workload geometry, software stack, and hardware accelerators, demonstrating that naive energy estimates based on FLOPs or theoretical GPU utilization significantly underestimate real-world energy consumption. Our findings reveal that the proper application of relevant inference efficiency optimizations can reduce total energy use by up to 73% from unoptimized baselines. These insights provide a foundation for sustainable LLM deployment and inform energy-efficient design strategies for future AI infrastructure.

Jared Fernandez、Clara Na、Vashisth Tiwari、Yonatan Bisk、Sasha Luccioni、Emma Strubell

计算技术、计算机技术能源动力工业经济

Jared Fernandez,Clara Na,Vashisth Tiwari,Yonatan Bisk,Sasha Luccioni,Emma Strubell.Energy Considerations of Large Language Model Inference and Efficiency Optimizations[EB/OL].(2025-04-24)[2025-05-17].https://arxiv.org/abs/2504.17674.点此复制

评论