NegativePrompt: Leveraging Psychology for Large Language Models Enhancement via Negative Emotional Stimuli

Xu Wang,Cheng Li,Yi Chang,Jindong Wang,Yuan Wu
2024-05-13
Abstract:Large Language Models (LLMs) have become integral to a wide spectrum of applications, ranging from traditional computing tasks to advanced artificial intelligence (AI) applications. This widespread adoption has spurred extensive research into LLMs across various disciplines, including the social sciences. Notably, studies have revealed that LLMs possess emotional intelligence, which can be further developed through positive emotional stimuli. This discovery raises an intriguing question: can negative emotions similarly influence LLMs, potentially enhancing their performance? In response to this question, we introduce NegativePrompt, a novel approach underpinned by psychological principles, involving ten specifically designed negative emotional stimuli. We embark on rigorous experimental evaluations of five LLMs including Flan-T5-Large, Vicuna, Llama 2, ChatGPT, and GPT-4, across a set of 45 tasks. The results are revealing: NegativePrompt markedly enhances the performance of LLMs, evidenced by relative improvements of 12.89% in Instruction Induction tasks and 46.25% in BIG-Bench tasks. Moreover, we conduct attention visualization experiments to decipher the underlying mechanisms of NegativePrompt's influence. Our research contributes significantly to the understanding of LLMs and emotion interaction, demonstrating the practical efficacy of NegativePrompt as an emotion-driven method and offering novel insights for the enhancement of LLMs in real-world applications. The code is available at
Computation and Language
What problem does this paper attempt to address?
This paper discusses how to enhance the performance of Large Language Models (LLMs) by utilizing negative emotional prompts. Current research primarily focuses on enhancing LLM performance through positive emotional prompts, but this paper introduces a new approach called NegativePrompt, which uses 10 specially designed negative emotional prompts based on psychological principles to potentially improve LLM performance. By conducting experiments on five LLMs including Flan-T5-Large, Vicuna, Llama 2, ChatGPT, and GPT-4, with 45 tasks, the results show that NegativePrompt significantly improves LLM performance, such as a 12.89% improvement in instruction-driven tasks and a 46.25% improvement in BIG-Bench tasks. Additionally, the research reveals the underlying mechanisms of how NegativePrompt influences LLMs through attention visualization experiments. This work provides new insights into the interaction between LLMs and emotions and offers an emotion-driven approach to enhance LLM performance in real-world applications.