Green Prompting: Characterizing Prompt-driven Energy Costs of LLM Inference
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) have become widely used across various domains spanning search engines, code generation, and text creation. However, a major concern associated with their adoption is the high cost of inference, impacting both their sustainability and financial feasibility. In this study, we empirically study how different prompt and response characteristics directly impact LLM inference energy cost. We conduct experiments leveraging three open-source transformer-based LLMs across three task types-question answering, sentiment analysis, and text generation. For each inference, we analyzed prompt and response characteristics (length, semantic meaning, time taken, energy consumption). Our results demonstrate that even when presented with identical tasks, models generate responses with varying characteristics and subsequently exhibit distinct energy consumption patterns. We found that prompt length is less significant than the semantic meaning of the task itself. In addition, we identified specific keywords associated with higher or lower energy usage that vary between associated tasks. These findings highlight the importance of prompt design in optimizing inference efficiency. We conclude that the semantic meaning of prompts and certain task-related keywords significantly impact inference costs, leading the way for deeper exploration towards creating energy-adaptive LLMs.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 36 of its 50 references that are in the map. First posted on arXiv 9 Mar 2025.
Builds on
36 of 50 references.
References · 36
- 2017Attention Is All You Needcited by 60,361
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,554
- 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,254
- 2024Gemma: Open Models Based on Gemini Research and Technologycited by 916
- 2023Instruction Tuning with GPT-4cited by 686
- 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 632
24 more
- 2023Splitwise: Efficient generative LLM inference using phase splittingcited by 558
- 2024Taming Throughput-Latency Tradeoff in LLM Inference with Sarathi-Servecited by 526
- 2019Quantifying the Carbon Emissions of Machine Learningcited by 521
- 2023Orca: Progressive Learning from Complex Explanation Traces of GPT-4cited by 379
- 2022Estimating the Carbon Footprint of BLOOM, a 176B Parameter Language Modelcited by 265
- 2020Towards the Systematic Reporting of the Energy and Carbon Footprints of Machine Learningcited by 249
- 2021Sustainable AI: Environmental Implications, Challenges and Opportunitiescited by 242
- 2023Power Hungry Processing: Watts Driving the Cost of AI Deployment?cited by 191
- 2023From Words to Watts: Benchmarking the Energy Costs of Large Language Model Inferencecited by 170
- 2020Carbontracker: Tracking and Predicting the Carbon Footprint of Training Deep Learning Modelscited by 169
- 2022Ask Me Anything: A simple strategy for prompting language modelscited by 155
- 2023HelpSteer: Multi-attribute Helpfulness Dataset for SteerLMcited by 142
- 2023Black-Box Prompt Optimization: Aligning Large Language Models without Model Trainingcited by 122
- 2016An Analysis of Deep Neural Network Models for Practical Applicationscited by 116
- 2023WebGLM: Towards An Efficient Web-Enhanced Question Answering System with Human Preferencescited by 100
- 2022Zeus: Understanding and Optimizing GPU Energy Consumption of DNN Trainingcited by 79
- 2023LLMCarbon: Modeling the end-to-end Carbon Footprint of Large Language Modelscited by 72
- 2024Beyond Efficiency: A Systematic Survey of Resource-Efficient Large Language Modelscited by 67
- 2024Towards Greener LLMs: Bringing Energy-Efficiency to the Forefront of LLM Inferencecited by 61
- 2024A Survey of Prompt Engineering Methods in Large Language Models for Different NLP Taskscited by 47
- 2024Characterization of Large Language Model Development in the Datacentercited by 46
- 2022Hardware Approximate Techniques for Deep Neural Network Accelerators: A Surveycited by 39
- 2024When to Stop? Towards Efficient Code Generation in LLMs with Excess Token Preventioncited by 21
- 2021NPE: An FPGA-based Overlay Processor for Natural Language Processingcited by 17
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.