Javascript must be enabled to continue!
Energy-Aware Prompt Engineering for Large Language Models: An Empirical Study on Software Engineering Tasks
View through CrossRef
The growing environmental impact of AI-based software systems, particularly those leveraging large language models (LLMs), necessitates urgent investigation into their substantial resource consumption, which contributes significantly to data center load and carbon emissions. This paper extends our prior work on LLM energy consumption, which focused solely on Llama 3.0 for code completion, by empirically analyzing the influence of Prompt Engineering Techniques (PETs) on the energy footprint of two prominent LLMs: the general-purpose Llama 3.1 and the specialized Code Llama. Our investigation spans two distinct natural language tasks: code completion and textual summarization of GitHub README.md files. Specifically, we examine the impact of custom prompts on code completion and the effect of input formatting (comparing plain text, Markdown, and HTML representations) on the textual summarization task. Our findings indicate that prompt customization positively influences the energy efficiency of both Llama 3.1 and Code Llama. However, for the textual summarization task, the specific input format (plain text, Markdown, HTML) appears to have a less pronounced contribution to energy consumption. Notably, Code Llama consistently exhibited a substantially higher energy footprint compared to Llama 3.1 throughout the majority of our experimental evaluations, highlighting potential differences in resource demands between general-purpose and specialized models.
Title: Energy-Aware Prompt Engineering for Large Language Models: An Empirical Study on Software Engineering Tasks
Description:
The growing environmental impact of AI-based software systems, particularly those leveraging large language models (LLMs), necessitates urgent investigation into their substantial resource consumption, which contributes significantly to data center load and carbon emissions.
This paper extends our prior work on LLM energy consumption, which focused solely on Llama 3.
0 for code completion, by empirically analyzing the influence of Prompt Engineering Techniques (PETs) on the energy footprint of two prominent LLMs: the general-purpose Llama 3.
1 and the specialized Code Llama.
Our investigation spans two distinct natural language tasks: code completion and textual summarization of GitHub README.
md files.
Specifically, we examine the impact of custom prompts on code completion and the effect of input formatting (comparing plain text, Markdown, and HTML representations) on the textual summarization task.
Our findings indicate that prompt customization positively influences the energy efficiency of both Llama 3.
1 and Code Llama.
However, for the textual summarization task, the specific input format (plain text, Markdown, HTML) appears to have a less pronounced contribution to energy consumption.
Notably, Code Llama consistently exhibited a substantially higher energy footprint compared to Llama 3.
1 throughout the majority of our experimental evaluations, highlighting potential differences in resource demands between general-purpose and specialized models.
Related Results
Hubungan Perilaku Pola Makan dengan Kejadian Anak Obesitas
Hubungan Perilaku Pola Makan dengan Kejadian Anak Obesitas
<p><em><span style="font-size: 11.0pt; font-family: 'Times New Roman',serif; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-langua...
Učinak poučavanja razrednomu jeziku u izobrazbi nastavnika njemačkoga
Učinak poučavanja razrednomu jeziku u izobrazbi nastavnika njemačkoga
The actual use of classroom language is principally limited to the classroom environment. As far as foreign language learning is concerned, the classroom often turns out to be the ...
Increased life expectancy of heart failure patients in a rural center by a multidisciplinary program
Increased life expectancy of heart failure patients in a rural center by a multidisciplinary program
Abstract
Funding Acknowledgements
Type of funding sources: None.
INTRODUCTION Patients with heart failure (HF)...
Generative AI for Enterprise Software Engineering: Current Applications, Challenges, and Future Research Directions
Generative AI for Enterprise Software Engineering: Current Applications, Challenges, and Future Research Directions
Generative Artificial Intelligence (GenAI) and Large Language Models (LLMs) are revolutionizing
<br>
enterprise software engineering, meaning there is intelligent automation ...
Promptsecure: Secure Prompt Engineering Protocols for Regulated Genai Environments
Promptsecure: Secure Prompt Engineering Protocols for Regulated Genai Environments
The rapid proliferation of Generative AI (GenAI) technologies has introduced a new era of content creation,
automation, and intelligence augmentation. However, the growing reliance...
Local and Global Messages for Prompting Energy Conservation Behaviour: An Experimental Study in University
Local and Global Messages for Prompting Energy Conservation Behaviour: An Experimental Study in University
To create a cost effective environment during the management of building facilities, energy conservation is important among building users as it can help to conserve energy and red...
Retraining US Workforce in the Age of Agentic Gen AI: Role of Prompt Engineering and Up-Skilling Initiatives
Retraining US Workforce in the Age of Agentic Gen AI: Role of Prompt Engineering and Up-Skilling Initiatives
This work reviews U.S. workforce retention, AI upskilling, prompt engineering, workforce development, and automation in the context of recent advancements in agentic generative AI....
A Wideband mm-Wave Printed Dipole Antenna for 5G Applications
A Wideband mm-Wave Printed Dipole Antenna for 5G Applications
<span lang="EN-MY">In this paper, a wideband millimeter-wave (mm-Wave) printed dipole antenna is proposed to be used for fifth generation (5G) communications. The single elem...

