Abstract
The groundbreaking capabilities of Large Language Models (LLMs) offer new opportunities for enhancing human-computer interaction through emotion-adaptive Artificial Intelligence (AI). However, deliberately controlling the sentiment in these systems remains challenging. The present study investigates the potential of prompt engineering for controlling sentiment in LLM-generated text, providing a resource-sensitive and accessible alternative to existing methods. Using Ekman's six basic emotions (e.g., joy, disgust), we examine various prompting techniques, including Zero-Shot and Chain-of-Thought prompting using gpt-3.5-turbo, and compare it to fine-tuning. Our results indicate that prompt engineering effectively steers emotions in AI-generated texts, offering a practical and cost-effective alternative to fine-tuning, especially in data-constrained settings. In this regard, Few-Shot prompting with human-written examples was the most effective among other techniques, likely due to the additional task-specific guidance. The findings contribute valuable insights towards developing emotion-adaptive AI systems.
Abstract (translated)
大型语言模型(LLM)的突破性能力为通过情感适应型人工智能增强人机交互提供了新的机遇。然而,有意控制这些系统中的情绪仍然是一个挑战。本研究探讨了利用提示工程在由LLM生成的文本中控制情绪的潜力,并提供了一种相对于现有方法更为资源敏感且易于访问的选择。我们使用埃克曼的基本六种情感(如喜悦、厌恶)来检验各种提示技术,包括使用gpt-3.5-turbo的零样本和链式思维提示法,并将其与微调方法进行比较。我们的研究结果表明,提示工程能够有效地引导人工智能生成文本中的情绪变化,提供了一种在数据受限的情况下比微调更为实用且成本效益更高的选择。在这方面,在使用人类编写示例的情况下的少量学习提示技术最为有效,这可能是因为额外的任务特定指导的作用。这些发现为开发情感适应型AI系统提供了宝贵的见解。
URL
https://arxiv.org/abs/2602.06692