MOPO: Multi-Objective Prompt Optimization for Affective Text Generation

Yarik Menchaca Resendiz, Roman Klinger
12/17/2024
cs.CL

No official code found. Best implementation: YarikMR/MOPO (1 star, last commit 2025-05-02).

Abstract

How emotions are expressed depends on the context and domain. On X (formerly Twitter), for instance, an author might simply use the hashtag #anger, while in a news headline, emotions are typically written in a more polite, indirect manner. To enable conditional text generation models to create emotionally connotated texts that fit a domain, users need to have access to a parameter that allows them to choose the appropriate way to express an emotion. To achieve this, we introduce MOPO, a Multi-Objective Prompt Optimization methodology. MOPO optimizes prompts according to multiple objectives (which correspond here to the output probabilities assigned by emotion classifiers trained for different domains). In contrast to single objective optimization, MOPO outputs a set of prompts, each with a different weighting of the multiple objectives. Users can then choose the most appropriate prompt for their context. We evaluate MOPO using three objectives, determined by various domain-specific emotion classifiers. MOPO improves performance by up to 15 pp across all objectives with a minimal loss (1-2 pp) for any single objective compared to single-objective optimization. These minor performance losses are offset by a broader generalization across multiple objectives - which is not possible with single-objective optimization. Additionally, MOPO reduces computational requirements by simultaneously optimizing for multiple objectives, eliminating separate optimization procedures for each objective.

View on arXivView PDF

Code Implementations(1)

YarikMR/MOPOCommunity56%

This project provides a framework for MOPO: Multi-objective Prompt Optimization for Affective Text Generation.

11PythonMay 2, 20251 years ago

Similar Papers

Cite this paper

@article{resendiz2024mopo,
  title  = {MOPO: Multi-Objective Prompt Optimization for Affective Text Generation},
  author = {Yarik Menchaca Resendiz and Roman Klinger},
  year   = {2024},
  eprint = {2412.12948},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.12948v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.12948.svg)](https://codeofpaper.com/paper/2412.12948)

Discussion