The Price of Prompting: Profiling Energy Use in Large Language Models Inference
Not on the map. Why?
Abstract (arXiv)
In the rapidly evolving realm of artificial intelligence, deploying large language models (LLMs) poses increasingly pressing computational and environmental challenges. This paper introduces MELODI - Monitoring Energy Levels and Optimization for Data-driven Inference - a multifaceted framework crafted to monitor and analyze the energy consumed during LLM inference processes. MELODI enables detailed observations of power consumption dynamics and facilitates the creation of a comprehensive dataset reflective of energy efficiency across varied deployment scenarios. The dataset, generated using MELODI, encompasses a broad spectrum of LLM deployment frameworks, multiple language models, and extensive prompt datasets, enabling a comparative analysis of energy use. Using the dataset, we investigate how prompt attributes, including length and complexity, correlate with energy expenditure. Our findings indicate substantial disparities in energy efficiency, suggesting ample scope for optimization and adoption of sustainable measures in LLM deployment. Our contribution lies not only in the MELODI framework but also in the novel dataset, a resource that can be expanded by other researchers. Thus, MELODI is a foundational tool and dataset for advancing research into energy-conscious LLM deployment, steering the field toward a more sustainable future.
Key facts. Cited by 22 papers in the map (data through 7 Oct 2026). Builds on 28 of its 69 references that are in the map. First posted on arXiv 4 Jul 2024.
Builds on
28 of 69 references.
References · 28
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,242
- 2021Ethical and social risks of harm from Language Modelscited by 957
- 2022Estimating the Carbon Footprint of BLOOM, a 176B Parameter Language Modelcited by 264
- 2023Sentiment Analysis in the Era of Large Language Models: A Reality Checkcited by 262
- 2023Prompting Large Language Model for Machine Translation: A Case Studycited by 247
- 2020Towards the Systematic Reporting of the Energy and Carbon Footprints of Machine Learningcited by 246
16 more
- 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 242
- 2023Power Hungry Processing: Watts Driving the Cost of AI Deployment?cited by 186
- 2020Carbontracker: Tracking and Predicting the Carbon Footprint of Training Deep Learning Modelscited by 168
- 2023From Words to Watts: Benchmarking the Energy Costs of Large Language Model Inferencecited by 168
- 2023Can ChatGPT Understand Too? A Comparative Study on ChatGPT and Fine-tuned BERTcited by 155
- 2022Pretrained Language Models for Text Generation: A Surveycited by 121
- 2023Document-Level Machine Translation with Large Language Modelscited by 90
- 2023When Large Language Models Meet Personalization: Perspectives of Challenges and Opportunitiescited by 89
- 2022Zeus: Understanding and Optimizing GPU Energy Consumption of DNN Trainingcited by 78
- 2023MarioGPT: Open-Ended Text2Level Generation through Large Language Modelscited by 63
- 2024Towards Greener LLMs: Bringing Energy-Efficiency to the Forefront of LLM Inferencecited by 59
- 2023Eliciting the Translation Ability of Large Language Models via Multilingual Finetuning with Translation Instructionscited by 55
- 2024Hybrid Heterogeneous Clusters Can Lower the Energy Consumption of LLM Inference Workloadscited by 17
- 2020Verified Instruction-Level Energy Consumption Measurement for NVIDIA GPUscited by 9
- 2023GPT4All: An Ecosystem of Open Source Compressed Language Modelscited by 8
- 2024The Model Arena for Cross-lingual Sentiment Analysis: A Comparative Study in the Era of Large Language Modelscited by 3
Built on by
Citing papers per year: 2024: 2; 2025: 11; 2026: 9.
22 papers.
Sort:
By area:
- 2025How Hungry is AI? Benchmarking Energy, Water, and Carbon Footprint of LLM Inferencecited by 73
- 2025A Survey of Research in Large Language Models for Electronic Design Automationcited by 38
- 2025Sustainable LLM Inference for Edge AI: Evaluating Quantized LLMs for Energy Efficiency, Output Accuracy, and Inference Latencycited by 32
- 2024A Survey of Small Language Modelscited by 31
- 2025Efficient Context Selection for Long-Context QA: No Tuning, No Iteration, Just Adaptive-kcited by 19
- 2025The Rise of Small Language Models in Healthcare: A Comprehensive Surveycited by 18
- 2026Watt Counts: Energy-Aware Benchmark for Sustainable LLM Inference on Heterogeneous GPU Architecturescited by 5
- 2025Green MLOps to Green GenOps: An Empirical Study of Energy Consumption in Discriminative and Generative AI Operationscited by 2
- 2026The Energy Footprint of LLM-Based Environmental Analysis: LLMs and Domain Productscited by 2
- 2024MATATA: Weakly Supervised End-to-End MAthematical Tool-Augmented Reasoning for Tabular Applicationscited by 1
- 2025Performance Trade-offs of Optimizing Small Language Models for E-Commercecited by 1
- 2025Characterizing and Understanding Energy Footprint and Efficiency of Small Language Model on Edgescited by 1
10 more
- 2026KAIROS: Stateful, Context-Aware Power-Efficient Agentic Inference Servingcited by 1
- 2025Small Language Models: Architectures, Techniques, Evaluation, Problems and Future Adaptationcited by 0
- 2025Energy-Aware Routing to Large Reasoning Modelscited by 0
- 2025Emissions and Performance Trade-off Between Small and Large Language Modelscited by 0
- 2026Optimising for Energy Efficiency and Performance in Machine Learningcited by 0
- 2026SEALing the Gap: A Reference Framework for LLM Inference Carbon Estimation via Multi-Benchmark Driven Embodimentcited by 0
- 2026Improving Multi-turn Dialogue Consistency with Self-Recall Thinkingcited by 0
- 2026From Caveman to Expert Analyst: Energy Consumption of Variable LLM Taskscited by 0
- 2026Understanding the Energy Scaling of Large Language Model Inference Across Context Lengths and Attention Architecturescited by 0
- 2026How Do Prompt Variations Affect Energy Consumption in On-Device LLMs?cited by 0
- 2026How Do Prompt Variations Affect Energy Consumption in On-Device LLMs?1 Sep 2026
- 2026Understanding the Energy Scaling of Large Language Model Inference Across Context Lengths and Attention Architectures25 Aug 2026
- 2026From Caveman to Expert Analyst: Energy Consumption of Variable LLM Tasks2 Jul 2026
- 2026Improving Multi-turn Dialogue Consistency with Self-Recall Thinking14 May 2026
- 2026KAIROS: Stateful, Context-Aware Power-Efficient Agentic Inference Serving17 Apr 2026
- 2026Watt Counts: Energy-Aware Benchmark for Sustainable LLM Inference on Heterogeneous GPU Architectures10 Apr 2026
- 2026The Energy Footprint of LLM-Based Environmental Analysis: LLMs and Domain Products31 Mar 2026
- 2026SEALing the Gap: A Reference Framework for LLM Inference Carbon Estimation via Multi-Benchmark Driven Embodiment3 Mar 2026
- 2026Optimising for Energy Efficiency and Performance in Machine Learning13 Jan 2026
- 2025Energy-Aware Routing to Large Reasoning Models23 Dec 2025
- 2025Emissions and Performance Trade-off Between Small and Large Language Models21 Dec 2025
- 2025Characterizing and Understanding Energy Footprint and Efficiency of Small Language Model on Edges7 Nov 2025
10 more
- 2025Performance Trade-offs of Optimizing Small Language Models for E-Commerce24 Oct 2025
- 2025Efficient Context Selection for Long-Context QA: No Tuning, No Iteration, Just Adaptive-k10 Jun 2025
- 2025Small Language Models: Architectures, Techniques, Evaluation, Problems and Future Adaptation26 May 2025
- 2025How Hungry is AI? Benchmarking Energy, Water, and Carbon Footprint of LLM Inference14 May 2025
- 2025The Rise of Small Language Models in Healthcare: A Comprehensive Survey23 Apr 2025
- 2025Sustainable LLM Inference for Edge AI: Evaluating Quantized LLMs for Energy Efficiency, Output Accuracy, and Inference Latency4 Apr 2025
- 2025Green MLOps to Green GenOps: An Empirical Study of Energy Consumption in Discriminative and Generative AI Operations31 Mar 2025
- 2025A Survey of Research in Large Language Models for Electronic Design Automation16 Jan 2025
- 2024MATATA: Weakly Supervised End-to-End MAthematical Tool-Augmented Reasoning for Tabular Applications28 Nov 2024
- 2024A Survey of Small Language Models25 Oct 2024
- 2025How Hungry is AI? Benchmarking Energy, Water, and Carbon Footprint of LLM Inferencecited by 73
- 2025A Survey of Research in Large Language Models for Electronic Design Automationcited by 38
- 2025Sustainable LLM Inference for Edge AI: Evaluating Quantized LLMs for Energy Efficiency, Output Accuracy, and Inference Latencycited by 32
- 2024A Survey of Small Language Modelscited by 31
- 2025The Rise of Small Language Models in Healthcare: A Comprehensive Surveycited by 18
- 2025Green MLOps to Green GenOps: An Empirical Study of Energy Consumption in Discriminative and Generative AI Operationscited by 2
- 2025Performance Trade-offs of Optimizing Small Language Models for E-Commercecited by 1
- 2025Characterizing and Understanding Energy Footprint and Efficiency of Small Language Model on Edgescited by 1
- 2025Small Language Models: Architectures, Techniques, Evaluation, Problems and Future Adaptationcited by 0
- 2025Emissions and Performance Trade-off Between Small and Large Language Modelscited by 0
- 2026Optimising for Energy Efficiency and Performance in Machine Learningcited by 0
- 2026SEALing the Gap: A Reference Framework for LLM Inference Carbon Estimation via Multi-Benchmark Driven Embodimentcited by 0
12 most cited of 15 All 15 (JSON)
- 2026How Do Prompt Variations Affect Energy Consumption in On-Device LLMs?1 Sep 2026
- 2026Understanding the Energy Scaling of Large Language Model Inference Across Context Lengths and Attention Architectures25 Aug 2026
- 2026From Caveman to Expert Analyst: Energy Consumption of Variable LLM Tasks2 Jul 2026
- 2026SEALing the Gap: A Reference Framework for LLM Inference Carbon Estimation via Multi-Benchmark Driven Embodiment3 Mar 2026
- 2026Optimising for Energy Efficiency and Performance in Machine Learning13 Jan 2026
- 2025Emissions and Performance Trade-off Between Small and Large Language Models21 Dec 2025
- 2025Characterizing and Understanding Energy Footprint and Efficiency of Small Language Model on Edges7 Nov 2025
- 2025Performance Trade-offs of Optimizing Small Language Models for E-Commerce24 Oct 2025
- 2025Small Language Models: Architectures, Techniques, Evaluation, Problems and Future Adaptation26 May 2025
- 2025How Hungry is AI? Benchmarking Energy, Water, and Carbon Footprint of LLM Inference14 May 2025
- 2025The Rise of Small Language Models in Healthcare: A Comprehensive Survey23 Apr 2025
- 2025Sustainable LLM Inference for Edge AI: Evaluating Quantized LLMs for Energy Efficiency, Output Accuracy, and Inference Latency4 Apr 2025
12 newest of 15 All 15 (JSON)