Green Prompt Engineering: Investigating the Energy Impact of Prompt Design in Software Engineering

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: De Martino, Vincenzo, Zadenoori, Mohammad Amin, Franch, Xavier, Ferrari, Alessio
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866915516593995776
author De Martino, Vincenzo
Zadenoori, Mohammad Amin
Franch, Xavier
Ferrari, Alessio
author_facet De Martino, Vincenzo
Zadenoori, Mohammad Amin
Franch, Xavier
Ferrari, Alessio
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2509_22320
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Green Prompt Engineering: Investigating the Energy Impact of Prompt Design in Software Engineering
De Martino, Vincenzo
Zadenoori, Mohammad Amin
Franch, Xavier
Ferrari, Alessio
Software Engineering
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.
title Green Prompt Engineering: Investigating the Energy Impact of Prompt Design in Software Engineering
topic Software Engineering
url https://arxiv.org/abs/2509.22320