Green Prompt Engineering: Investigating the Energy Impact of Prompt Design in Software Engineering
- URL: http://arxiv.org/abs/2509.22320v1
- Date: Fri, 26 Sep 2025 13:19:33 GMT
- Title: Green Prompt Engineering: Investigating the Energy Impact of Prompt Design in Software Engineering
- Authors: Vincenzo De Martino, Mohammad Amin Zadenoori, Xavier Franch, Alessio Ferrari,
- Abstract summary: This paper introduces Green Prompt Engineering, framing linguistic complexity as a design dimension that can influence energy consumption and performance.<n>We conduct an empirical study on requirement classification using open-source Small Language Models, varying the readability of prompts.
- Score: 4.100681477651029
- License: http://creativecommons.org/licenses/by/4.0/
- Abstract: Language Models are increasingly applied in software engineering, yet their inference raises growing environmental concerns. Prior work has examined hardware choices and prompt length, but little attention has been paid to linguistic complexity as a sustainability factor. This paper introduces Green Prompt Engineering, framing linguistic complexity as a design dimension that can influence energy consumption and performance. We conduct an empirical study on requirement classification using open-source Small Language Models, varying the readability of prompts. Our results reveal that readability affects environmental sustainability and performance, exposing trade-offs between them. For practitioners, simpler prompts can reduce energy costs without a significant F1-score loss; for researchers, it opens a path toward guidelines and studies on sustainable prompt design within the Green AI agenda.
Related papers
- Insights Informed Generative AI for Design: Incorporating Real-world Data for Text-to-Image Output [51.88841610098437]
We propose a novel pipeline that integrates DALL-E 3 with a materials dataset to enrich AI-generated designs with sustainability metrics and material usage insights.<n>We evaluate the system through three user tests: (1) no mention of sustainability to the user prior to the prompting process with generative AI, (2) sustainability goals communicated to the user before prompting, and (3) sustainability goals communicated along with quantitative CO2e data included in the generative AI outputs.
arXiv Detail & Related papers (2025-06-17T22:33:11Z) - Greening AI-enabled Systems with Software Engineering: A Research Agenda for Environmentally Sustainable AI Practices [70.24403396375277]
The "Greening AI with Software Engineering" CECAM-Lorentz workshop was held February 3-7, 2025 in Lausanne, Switzerland.<n>This report presents a research agenda emerging from the workshop.<n>It outlines open research directions and practical recommendations to guide the development of environmentally sustainable AI-enabled systems.
arXiv Detail & Related papers (2025-06-02T15:19:49Z) - Green Prompting [2.377736044164336]
Large Language Models (LLMs) have become widely used across various domains spanning search engines, code generation, and text creation.<n>This study empirically study how different prompt and response characteristics directly impact LLM inference energy cost.
arXiv Detail & Related papers (2025-03-09T19:49:31Z) - Prompt engineering and its implications on the energy consumption of Large Language Models [4.791072577881446]
Large language models (LLMs) in software engineering pose severe challenges regarding computational resources, data centers, and carbon emissions.<n>In this paper, we investigate how prompt engineering techniques (PETs) can impact the carbon emission of the Llama 3 model for the code generation task.
arXiv Detail & Related papers (2025-01-10T11:49:31Z) - Question Answering for Decisionmaking in Green Building Design: A Multimodal Data Reasoning Method Driven by Large Language Models [13.501199715254906]
Decision-making in green building design (DGBD) is crucial for reducing building energy costs.<n>Many studies have already applied artificial intelligence (AI) methods to this field.<n>This study innovatively integrates large language models with DGBD, creating GreenQA, a question answering framework for multimodal data reasoning.
arXiv Detail & Related papers (2024-12-06T03:02:58Z) - Green Federated Learning: A new era of Green Aware AI [11.536626349203361]
Federated Learning (FL) presents new opportunities to address this need.
It's crucial to furnish researchers, stakeholders, and interested parties with a roadmap to navigate and understand existing efforts and gaps in green-aware AI algorithms.
This survey primarily aims to achieve this objective by identifying and analyzing over a hundred FL works.
arXiv Detail & Related papers (2024-09-19T09:54:18Z) - Efficient Prompting Methods for Large Language Models: A Survey [50.82812214830023]
Efficient Prompting Methods have attracted a wide range of attention.<n>We discuss Automatic Prompt Engineering for different prompt components and Prompt Compression in continuous and discrete spaces.
arXiv Detail & Related papers (2024-04-01T12:19:08Z) - kNN-ICL: Compositional Task-Oriented Parsing Generalization with Nearest
Neighbor In-Context Learning [50.40636157214161]
Task-Oriented Parsing (TOP) enables conversational assistants to interpret user commands expressed in natural language.
LLMs have achieved impressive performance in computer programs based on a natural language prompt.
This paper focuses on harnessing the capabilities of LLMs for semantic parsing tasks.
arXiv Detail & Related papers (2023-12-17T17:26:50Z) - A Synthesis of Green Architectural Tactics for ML-Enabled Systems [9.720968127923925]
We provide a catalog of 30 green architectural tactics for ML-enabled systems.
An architectural tactic is a high-level design technique to improve software quality.
To enhance transparency and facilitate their widespread use, we make the tactics available online in easily consumable formats.
arXiv Detail & Related papers (2023-12-15T08:53:45Z) - On the Opportunities of Green Computing: A Survey [80.21955522431168]
Artificial Intelligence (AI) has achieved significant advancements in technology and research with the development over several decades.
The needs for high computing power brings higher carbon emission and undermines research fairness.
To tackle the challenges of computing resources and environmental impact of AI, Green Computing has become a hot research topic.
arXiv Detail & Related papers (2023-11-01T11:16:41Z) - Energy Transformer [64.22957136952725]
Our work combines aspects of three promising paradigms in machine learning, namely, attention mechanism, energy-based models, and associative memory.
We propose a novel architecture, called the Energy Transformer (or ET for short), that uses a sequence of attention layers that are purposely designed to minimize a specifically engineered energy function.
arXiv Detail & Related papers (2023-02-14T18:51:22Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.