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

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

Abstract

Automated prompt engineering has emerged as a powerful alternative to manual trial-and-error, utilizing Reinforcement Learning (RL) to search for discrete token sequences that elicit specific behaviors from Large Language Models (LLMs). However, most existing methods rely on simple scalarization—averaging multiple reward functions into a single value—which often leads to "objective collapse," where the model excels in one metric while failing in others. We present MORL-Prompt, a framework that adapts Multi-Objective Reinforcement Learning (MORL) to the discrete prompt optimization space. By optimizing for the volume of the reward space rather than a linear average, MORL-Prompt achieves a superior balance across conflicting objectives. Our empirical analysis across text style transfer and machine translation tasks demonstrates that multi-objective approaches, particularly the Expected Product of Rewards, significantly outperform standard scalarization in maintaining content integrity while achieving target style and sentiment.

1. Introduction

As Large Language Models (LLMs) become central to NLP workflows, the process of prompt engineering has shifted toward automation. Discrete prompt optimization treats the prompt as a sequence of tokens to be learned via RL. A significant challenge in this domain is the multi-faceted nature of real-world tasks. For instance, a prompt designed for style transfer must simultaneously satisfy style alignment, content preservation, and fluency.

The standard approach to this multi-objective problem is scalarization: combining multiple rewards into a single weighted average. This paper identifies a critical failure mode in scalarization termed objective collapse. Because RL agents are opportunistic, they often find it easier to maximize a single, "low-hanging" reward to the extreme rather than balancing multiple difficult ones. This results in prompts that might achieve a perfect style score but produce nonsensical or irrelevant output. MORL-Prompt addresses this by treating prompt optimization as a true multi-objective problem.

2. Methodology

MORL-Prompt utilizes Soft Q-Learning (SQL) as its base RL framework to optimize a small policy model that generates discrete prompts. These prompts are then fed into a frozen, larger LLM (such as GPT-2 or Flan-T5). To prevent objective collapse, the authors adapt three classic Multi-Objective Optimization (MOO) techniques:

  1. Hypervolume Indicator (HVI): This method treats rewards as coordinates in a multi-dimensional space. The goal is to maximize the "volume" under the Pareto frontier, effectively pushing the model to improve all objectives simultaneously.
  2. Expected Product of Rewards (Product): A robust alternative to HVI, this method maximizes the product of individual rewards. This serves as a "soft" logical AND; if any single reward is near zero, the total product is penalized heavily, forcing the agent to maintain a baseline performance across all metrics.
  3. Multiple Gradient Descent Algorithm (MGDA): This approach calculates the gradient for each objective and identifies a common update direction that benefits all objectives, ensuring monotonic progress across the reward set.

3. Experimental Setup

The framework was evaluated on two primary tasks, each modified to include three competing objectives:

  • Unsupervised Text Style Transfer: Using the Shakespeare dataset, the model converted modern English to Shakespearean style. The objectives were (1) content preservation, (2) target style matching, and (3) maintaining positive sentiment.
  • Supervised Machine Translation: Using the IWSLT 2017 German-to-English dataset, the model optimized for (1) semantic similarity (BertScore), (2) translation quality (BLEU), and (3) positive sentiment.

4. Key Insights and Results

4.1 The Failure of Average Rewards

The study demonstrates that "Average Reward" is a deceptive metric. While a prompt trained on an average might show a high mean score, the individual components are often wildly imbalanced. In the style transfer task, the Average baseline achieved a Content score of only 19.56. In contrast, the Product method achieved a score of 34.58—nearly double the content preservation—while remaining competitive in style and sentiment.

4.2 The Robustness of the Product Method

While HVI is theoretically optimal for finding the Pareto frontier, it proved sensitive to "dominant outliers"—rare samples that score high across all metrics by chance, which can destabilize RL training. The Expected Product of Rewards emerged as the most robust contender. It naturally penalizes prompts that ignore any single objective, making it highly effective in the noisy environments typical of discrete prompt tuning.

4.3 Pareto Efficiency and Generalization

Qualitative and quantitative analyses showed that volume-based methods (HVI and Product) consistently produced outputs closer to the "sweet spot" of the Pareto frontier. Furthermore, these methods proved effective across different model architectures, including decoder-only (GPT-2) and encoder-decoder (Flan-T5) models, suggesting the framework is model-agnostic.

5. Limitations and Conclusion

Despite its success, MORL-Prompt faces challenges regarding computational intensity. Multi-objective RL is resource-heavy, with experiments requiring 20-24 hours on high-end NVIDIA RTX A6000 GPUs. Additionally, the resulting discrete prompts are often "gibberish" strings of tokens that are highly effective for the machine but lack human interpretability.

In conclusion, MORL-Prompt provides a path forward for complex prompt engineering tasks where objectives are in tension. By moving beyond simple scalarization, researchers can ensure that LLMs maintain critical constraints—such as content preservation or safety—while pursuing stylistic or performance-oriented goals. Future work will explore applying these multi-objective rewards to bake human-centric constraints directly into the automated optimization process.

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