Emotion-Conditioned Text Generation through Automatic Prompt Optimization
Not on the map. Why?
Abstract (arXiv)
Conditional natural language generation methods often require either expensive fine-tuning or training a large language model from scratch. Both are unlikely to lead to good results without a substantial amount of data and computational resources. Prompt learning without changing the parameters of a large language model presents a promising alternative. It is a cost-effective approach, while still achieving competitive results. While this procedure is now established for zero- and few-shot text classification and structured prediction, it has received limited attention in conditional text generation. We present the first automatic prompt optimization approach for emotion-conditioned text generation with instruction-fine-tuned models. Our method uses an iterative optimization procedure that changes the prompt by adding, removing, or replacing tokens. As objective function, we only require a text classifier that measures the realization of the conditional variable in the generated text. We evaluate the method on emotion-conditioned text generation with a focus on event reports and compare it to manually designed prompts that also act as the seed for the optimization procedure. The optimized prompts achieve 0.75 macro-average F1 to fulfill the emotion condition in contrast to manually designed seed prompts with only 0.22 macro-average F1.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 19 of its 30 references that are in the map. First posted on arXiv 9 Aug 2023.
Builds on
19 of 30 references.
References · 19
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 361
- 2019Benchmarking Zero-shot Text Classification: Datasets, Evaluation and Entailment Approachcited by 299
- 2022UL2: Unifying Language Learning Paradigmscited by 292
- 2021PPT: Pre-trained Prompt Tuning for Few-shot Learningcited by 232
- 2021Knowledgeable Prompt-tuning: Incorporating Knowledge into Prompt Verbalizer for Text Classificationcited by 183
- 2017Emotional Chatting Machine: Emotional Conversation Generation with Internal and External Memorycited by 167
- 2021OpenPrompt: An Open-source Framework for Prompt-learningcited by 148
- 2021Planning with Learned Entity Prompts for Abstractive Summarizationcited by 75
7 more
- 2021A Plug-and-Play Method for Controlled Text Generationcited by 55
- 2017Affect-LM: A Neural Language Model for Customizable Affective Text Generationcited by 50
- 2022Dimensional Modeling of Emotions in Text with Appraisal Theories: Corpus Creation, Annotation Reliability, and Predictioncited by 45
- 2022Towards Unified Prompt Tuning for Few-shot Text Classificationcited by 18
- 2022Contrastive Learning for Prompt-Based Few-Shot Language Learnerscited by 17
- 2022Natural Language Inference Prompts for Zero-shot Emotion Classification in Text across Corporacited by 13
- 2023Affective Natural Language Generation of Event Descriptions through Fine-grained Appraisal Conditionscited by 4
Built on by
Citing papers per year: 2024: 2; 2025: 2; 2026: 2.
6 papers.
- 2024Affective Computing in the Era of Large Language Models: A Survey from the NLP Perspectivecited by 24
- 2024MOPO: Multi-Objective Prompt Optimization for Affective Text Generationcited by 8
- 2025Prompt Stability in Code LLMs: Measuring Sensitivity across Emotion- and Personality-Driven Variationscited by 1
- 2025ELSA: A Style Aligned Dataset for Emotionally Intelligent Language Generationcited by 0
- 2026Evaluating Prompt Engineering Strategies for Sentiment Control in AI-Generated Textscited by 0
- 2026iPOE: Interpretable Prompt Optimization via Explanationscited by 0
- 2026iPOE: Interpretable Prompt Optimization via Explanations18 May 2026
- 2026Evaluating Prompt Engineering Strategies for Sentiment Control in AI-Generated Texts6 Feb 2026
- 2025Prompt Stability in Code LLMs: Measuring Sensitivity across Emotion- and Personality-Driven Variations17 Sep 2025
- 2025ELSA: A Style Aligned Dataset for Emotionally Intelligent Language Generation11 Apr 2025
- 2024MOPO: Multi-Objective Prompt Optimization for Affective Text Generation17 Dec 2024
- 2024Affective Computing in the Era of Large Language Models: A Survey from the NLP Perspective30 Jul 2024