MOPrompt: Multi-objective Semantic Evolution for Prompt Optimization

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Câmara, Sara, Luz, Eduardo, Carvalho, Valéria, Meneghini, Ivan, Moreira, Gladston
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866909874531598336
author Câmara, Sara
Luz, Eduardo
Carvalho, Valéria
Meneghini, Ivan
Moreira, Gladston
author_facet Câmara, Sara
Luz, Eduardo
Carvalho, Valéria
Meneghini, Ivan
Moreira, Gladston
contents Prompt engineering is crucial for unlocking the potential of Large Language Models (LLMs). Still, since manual prompt design is often complex, non-intuitive, and time-consuming, automatic prompt optimization has emerged as a research area. However, a significant challenge in prompt optimization is managing the inherent trade-off between task performance, such as accuracy, and context size. Most existing automated methods focus on a single objective, typically performance, thereby failing to explore the critical spectrum of efficiency and effectiveness. This paper introduces the MOPrompt, a novel Multi-objective Evolutionary Optimization (EMO) framework designed to optimize prompts for both accuracy and context size (measured in tokens) simultaneously. Our framework maps the Pareto front of prompt solutions, presenting practitioners with a set of trade-offs between context size and performance, a crucial tool for deploying Large Language Models (LLMs) in real-world applications. We evaluate MOPrompt on a sentiment analysis task in Portuguese, using Gemma-2B and Sabiazinho-3 as evaluation models. Our findings show that MOPrompt substantially outperforms the baseline framework. For the Sabiazinho model, MOPrompt identifies a prompt that achieves the same peak accuracy (0.97) as the best baseline solution, but with a 31% reduction in token length.
format Preprint
id arxiv_https___arxiv_org_abs_2508_01541
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle MOPrompt: Multi-objective Semantic Evolution for Prompt Optimization
Câmara, Sara
Luz, Eduardo
Carvalho, Valéria
Meneghini, Ivan
Moreira, Gladston
Computation and Language
Prompt engineering is crucial for unlocking the potential of Large Language Models (LLMs). Still, since manual prompt design is often complex, non-intuitive, and time-consuming, automatic prompt optimization has emerged as a research area. However, a significant challenge in prompt optimization is managing the inherent trade-off between task performance, such as accuracy, and context size. Most existing automated methods focus on a single objective, typically performance, thereby failing to explore the critical spectrum of efficiency and effectiveness. This paper introduces the MOPrompt, a novel Multi-objective Evolutionary Optimization (EMO) framework designed to optimize prompts for both accuracy and context size (measured in tokens) simultaneously. Our framework maps the Pareto front of prompt solutions, presenting practitioners with a set of trade-offs between context size and performance, a crucial tool for deploying Large Language Models (LLMs) in real-world applications. We evaluate MOPrompt on a sentiment analysis task in Portuguese, using Gemma-2B and Sabiazinho-3 as evaluation models. Our findings show that MOPrompt substantially outperforms the baseline framework. For the Sabiazinho model, MOPrompt identifies a prompt that achieves the same peak accuracy (0.97) as the best baseline solution, but with a 31% reduction in token length.
title MOPrompt: Multi-objective Semantic Evolution for Prompt Optimization
topic Computation and Language
url https://arxiv.org/abs/2508.01541