mlsanityData to 7 Oct 2026

The Price of Prompting: Profiling Energy Use in Large Language Models Inference

arXiv 2407.16893 ↗First posted 4 Jul 2024cs.CY cs.AI cs.CLcited by 22

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  4. 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
  5. 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
  6. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
  7. 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,242
  8. 2021Ethical and social risks of harm from Language Modelscited by 957
  9. 2022Estimating the Carbon Footprint of BLOOM, a 176B Parameter Language Modelcited by 264
  10. 2023Sentiment Analysis in the Era of Large Language Models: A Reality Checkcited by 262
  11. 2023Prompting Large Language Model for Machine Translation: A Case Studycited by 247
  12. 2020Towards the Systematic Reporting of the Energy and Carbon Footprints of Machine Learningcited by 246
16 more
  1. 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 242
  2. 2023Power Hungry Processing: Watts Driving the Cost of AI Deployment?cited by 186
  3. 2020Carbontracker: Tracking and Predicting the Carbon Footprint of Training Deep Learning Modelscited by 168
  4. 2023From Words to Watts: Benchmarking the Energy Costs of Large Language Model Inferencecited by 168
  5. 2023Can ChatGPT Understand Too? A Comparative Study on ChatGPT and Fine-tuned BERTcited by 155
  6. 2022Pretrained Language Models for Text Generation: A Surveycited by 121
  7. 2023Document-Level Machine Translation with Large Language Modelscited by 90
  8. 2023When Large Language Models Meet Personalization: Perspectives of Challenges and Opportunitiescited by 89
  9. 2022Zeus: Understanding and Optimizing GPU Energy Consumption of DNN Trainingcited by 78
  10. 2023MarioGPT: Open-Ended Text2Level Generation through Large Language Modelscited by 63
  11. 2024Towards Greener LLMs: Bringing Energy-Efficiency to the Forefront of LLM Inferencecited by 59
  12. 2023Eliciting the Translation Ability of Large Language Models via Multilingual Finetuning with Translation Instructionscited by 55
  13. 2024Hybrid Heterogeneous Clusters Can Lower the Energy Consumption of LLM Inference Workloadscited by 17
  14. 2020Verified Instruction-Level Energy Consumption Measurement for NVIDIA GPUscited by 9
  15. 2023GPT4All: An Ecosystem of Open Source Compressed Language Modelscited by 8
  16. 2024The Model Arena for Cross-lingual Sentiment Analysis: A Comparative Study in the Era of Large Language Modelscited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 11; 2026: 9.

22 papers.

Sort:

By area:

  1. 2025How Hungry is AI? Benchmarking Energy, Water, and Carbon Footprint of LLM Inferencecited by 73
  2. 2025A Survey of Research in Large Language Models for Electronic Design Automationcited by 38
  3. 2025Sustainable LLM Inference for Edge AI: Evaluating Quantized LLMs for Energy Efficiency, Output Accuracy, and Inference Latencycited by 32
  4. 2024A Survey of Small Language Modelscited by 31
  5. 2025Efficient Context Selection for Long-Context QA: No Tuning, No Iteration, Just Adaptive-kcited by 19
  6. 2025The Rise of Small Language Models in Healthcare: A Comprehensive Surveycited by 18
  7. 2026Watt Counts: Energy-Aware Benchmark for Sustainable LLM Inference on Heterogeneous GPU Architecturescited by 5
  8. 2025Green MLOps to Green GenOps: An Empirical Study of Energy Consumption in Discriminative and Generative AI Operationscited by 2
  9. 2026The Energy Footprint of LLM-Based Environmental Analysis: LLMs and Domain Productscited by 2
  10. 2024MATATA: Weakly Supervised End-to-End MAthematical Tool-Augmented Reasoning for Tabular Applicationscited by 1
  11. 2025Performance Trade-offs of Optimizing Small Language Models for E-Commercecited by 1
  12. 2025Characterizing and Understanding Energy Footprint and Efficiency of Small Language Model on Edgescited by 1
10 more
  1. 2026KAIROS: Stateful, Context-Aware Power-Efficient Agentic Inference Servingcited by 1
  2. 2025Small Language Models: Architectures, Techniques, Evaluation, Problems and Future Adaptationcited by 0
  3. 2025Energy-Aware Routing to Large Reasoning Modelscited by 0
  4. 2025Emissions and Performance Trade-off Between Small and Large Language Modelscited by 0
  5. 2026Optimising for Energy Efficiency and Performance in Machine Learningcited by 0
  6. 2026SEALing the Gap: A Reference Framework for LLM Inference Carbon Estimation via Multi-Benchmark Driven Embodimentcited by 0
  7. 2026Improving Multi-turn Dialogue Consistency with Self-Recall Thinkingcited by 0
  8. 2026From Caveman to Expert Analyst: Energy Consumption of Variable LLM Taskscited by 0
  9. 2026Understanding the Energy Scaling of Large Language Model Inference Across Context Lengths and Attention Architecturescited by 0
  10. 2026How Do Prompt Variations Affect Energy Consumption in On-Device LLMs?cited by 0