On the Investigation of Evolutionary Multi-Objective Optimization for Discrete Prompt Search

Hien H. Mai, Ngoc Hoang Luong · Proceedings of the Genetic and Evolutionary Computation Conference Companion · 2025

Discrete prompt search (DPS) aims to automatically find high-performing prompts that yield top accuracy in interactions with a pretrained language model. In the context of few-shot learning, evaluations of candidate prompts can only be done via a limited number of labeled examples. The search is often formulated as an optimization problem where prediction accuracy, F1 score, or cross-entropy loss is used as the objective function. While resulting prompts achieve top performance, they are mostly unreadable and uninterpretable, i.e., unlike natural languages. In this paper, we formulate DPS as a true multi-objective optimization (MOO) problem considering simultaneously both prompt performance and readability as separate objectives. We show that there exist certain degrees of conflict between the objectives, making the search for human-readable and highly-accurate prompts a challenging problem. We then propose the Multi-objective Evolutionary Algorithm for Predictive Probability guided Prompting (MoEAP3) to address the problem. Our MoEAP3 returns not a single final prompt as in conventional methods but a whole front of multiple candidate prompts, each representing an efficient trade-off between the objectives. Decision makers can straightforwardly investigate this front and intuitively select the prompt that yields the desired trade-off. Source code can be found at: https://github.com/ELO-Lab/MoEAP3.

Read the paper · More papers on PaperTik