MORL-Prompt: An Empirical Analysis of Multi-Objective Reinforcement Learning for Discrete Prompt Optimization

Yasaman Jafari, Dheeraj Mekala, Rose Yu, Taylor Berg-Kirkpatrick

Abstract

Prompt optimization for Large Language Models (LLMs) often involves balancing multiple, sometimes conflicting, objectives such as style, content preservation, and sentiment. Standard reinforcement learning approaches that maximize a simple average of rewards frequently suffer from "objective collapse," where the model over-optimizes one metric at the expense of others. This paper introduces MORL-Prompt, a framework that applies Multi-Objective Reinforcement Learning (MORL) to discrete prompt optimization. By utilizing techniques like the Hypervolume Indicator (HVI) and the Expected Product of Rewards, the authors demonstrate that models can achieve a superior Pareto-optimal balance across diverse NLP tasks, including text style transfer and machine translation.

Introduction

As Large Language Models (LLMs) become central to various NLP applications, the need for precise control over their outputs has grown. Prompt engineering, the practice of finding the optimal input string to elicit a desired response, has shifted from manual heuristic design to automated optimization using Reinforcement Learning (RL). However, most existing methods treat prompt optimization as a single-objective problem, typically by averaging multiple reward functions into a single scalar value. This approach often fails in complex scenarios where objectives are in tension, such as maintaining semantic meaning while drastically altering linguistic style.

The Objective Collapse Problem

The authors identify a critical failure mode in standard prompt optimization termed "objective collapse." When an optimizer is tasked with maximizing the average of several rewards, it may find a shortcut by maximizing the easiest objective to its extreme while neglecting others. For instance, in a Shakespearean style transfer task, a model might generate highly stylized but nonsensical text that completely loses the original input's content. This results in a high average score but a useless output.

Figure 1: Conceptual comparison of vanilla prompting (left) vs. multi-objective prompting (right).

As illustrated in Figure 1, multi-objective prompting aims to push the performance frontier toward the upper-right corner of the reward space, ensuring that no single objective is sacrificed for the sake of another.

The MORL-Prompt Framework

To address objective collapse, the researchers propose MORL-Prompt, a framework that integrates Multi-Objective Optimization (MOO) with discrete prompt tuning. The system utilizes a small policy model ($\pi_\theta$) to generate discrete text prompts. These prompts are prepended to the input and passed through a frozen, larger language model ($p_{LM}$). The resulting output is then evaluated against multiple reward functions.

Figure 2: The MORL-Prompt optimization loop.

The framework, shown in Figure 2, employs Soft Q-Learning (SQL) to update the policy model based on multi-objective rewards. Three specific MOO techniques were evaluated:

  1. Hypervolume Indicator (HVI): Maximizes the volume of the reward space covered by the current solutions relative to a reference point, effectively pushing the entire Pareto frontier outward.
  2. Expected Product of Rewards (Product): Maximizes the mathematical product of all rewards. This method naturally penalizes solutions that fail on any single objective, as a near-zero score in one dimension collapses the entire product.
  3. Multiple Gradient Descent Algorithm (MGDA): Computes a common descent direction that guarantees improvement across all objectives simultaneously.

Empirical Evaluation

The framework was tested on two primary tasks: Unsupervised Text Style Transfer (Modern English to Shakespearean) and Supervised Machine Translation (German to English). Objectives included Content Preservation (BertScore), Style/Translation Quality (Classifier/BLEU), and Sentiment (RoBERTa classifier).

Key Results

The Product method emerged as the most effective and stable strategy for balancing rewards. In the Shakespearean style transfer task, the standard "Average" baseline achieved a high style score of 79.25 but failed significantly on content preservation (19.56). The Product method, however, achieved a balanced result with 34.58 for content and 57.78 for style. Similar trends were observed in machine translation, where the Product method consistently outperformed both the baseline and the more computationally intensive MGDA in maintaining a high balance across BLEU, BertScore, and sentiment metrics.

Discussion and Conclusion

MORL-Prompt demonstrates that explicitly modeling the trade-offs between competing objectives is essential for robust prompt optimization. While volume-based methods like HVI and Product provide a "safety floor" for performance, the Product method is particularly notable for its simplicity and robustness against outliers.

A remaining challenge is the interpretability of the learned discrete prompts, which often appear as unreadable strings to humans. Future research may focus on incorporating fluency constraints into the multi-objective mix to produce more human-interpretable prompts without sacrificing performance. Overall, MORL-Prompt provides a powerful toolkit for navigating the complex reward landscapes of modern AI prompting.

Summary updated

BibTeX
@inproceedings{jafari2024morl,
  author = {Yasaman Jafari and Dheeraj Mekala and Rose Yu and Taylor Berg-Kirkpatrick},
  title = {{MORL-Prompt: An Empirical Analysis of Multi-Objective Reinforcement Learning for Discrete Prompt Optimization}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.577},
}
Figure