EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Prompt Optimization with Two Gradients for Classification in Large Language Models

Anthony Jethro Lieander, Hui Wang, Karen Rafferty

AI · 08.08.2025 · 6 (8) · 182

DOI: 10.3390/ai6080182 ↗

Kurz gefasst

Fachartikel in der Zeitschrift AI, online erschienen am 08.08.2025. Verfasst von Anthony Jethro Lieander und 2 weiteren Autor:innen. Die Arbeit wurde bisher 2-mal zitiert (Crossref) und nennt 32 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: Invest NI, European Regional Development Fund.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Large language models (LLMs) generally perform well in common tasks, yet are often susceptible to errors in sophisticated natural language processing (NLP) on classification applications. Prompt engineering has emerged as a strategy to enhance their performance. Despite the effort required for manual prompt optimization, recent advancements highlight the need for automation to reduce human involvement. We introduced the PO2G (prompt optimization with two gradients) framework to improve the efficiency of optimizing prompts for classification tasks. PO2G demonstrates improvement in efficiency, reaching almost 89% accuracy after just three iterations, whereas ProTeGi requires six iterations to achieve a comparable level. We evaluated PO2G and ProTeGi on a benchmark of nine NLP tasks, three tasks from the original ProTeGi study, and six non-domain-specific tasks. We also evaluated both frameworks on seven legal-domain classification tasks. These results provide broader insights into the efficiency and effectiveness of prompt optimization frameworks for classification across diverse NLP scenarios.

Förderung

  • Invest NI
  • European Regional Development Fund

Zitieren

APA

Lieander, A. J., Wang, H., & Rafferty, K. (2025). Prompt Optimization with Two Gradients for Classification in Large Language Models. AI, 6(8), 182. https://doi.org/10.3390/ai6080182

Vancouver

Lieander AJ, Wang H, Rafferty K. Prompt Optimization with Two Gradients for Classification in Large Language Models. AI. 2025;6(8):182. doi:10.3390/ai6080182

BibTeX
@article{Lieander2025,
  author = {Lieander, Anthony Jethro and Wang, Hui and Rafferty, Karen},
  title = {Prompt Optimization with Two Gradients for Classification in Large Language Models},
  journal = {AI},
  year = {2025},
  volume = {6},
  number = {8},
  pages = {182},
  doi = {10.3390/ai6080182}
}
Kostenlos starten →