[Paper Review] Better Zero-Shot Reasoning with Role-Play Prompting
Role-play prompting improves zero-shot reasoning across 12 benchmarks, often outperforming Zero-Shot and Zero-Shot-CoT baselines, by using a two-stage prompt design to immerse the model in a task-specific role.
Modern large language models (LLMs) exhibit a remarkable capacity for role-playing, enabling them to embody not only human characters but also non-human entities. This versatility allows them to simulate complex human-like interactions and behaviors within various contexts, as well as to emulate specific objects or systems. While these capabilities have enhanced user engagement and introduced novel modes of interaction, the influence of role-playing on LLMs' reasoning abilities remains underexplored. In this study, we introduce a strategically designed role-play prompting methodology and assess its performance under the zero-shot setting across twelve diverse reasoning benchmarks. Our empirical results illustrate that role-play prompting consistently surpasses the standard zero-shot approach across most datasets. Notably, in experiments conducted using ChatGPT, accuracy on AQuA rises from 53.5% to 63.8%, and on Last Letter from 23.8% to 84.2%.Upon further comparison with the Zero-Shot-CoT technique, which prompts the model to "think step by step", our study demonstrates that role-play prompting acts as a more effective trigger for the CoT process. This highlights its potential to augment the reasoning capabilities of LLMs. We release our code at https://github.com/NKU-HLT/Role-Play-Prompting.
Motivation & Objective
- Investigate whether role-playing can enhance LLM reasoning in zero-shot settings.
- Propose a two-stage role-play prompting framework to immerse the model in a task-specific role.
- Evaluate the method across twelve diverse reasoning benchmarks using ChatGPT and open-source LLMs.
Proposed method
- Two-stage framework: stage 1 constructs task-specific role-play prompts, stage 2 elicits answers grounded in that role.
- Role-Setting Prompt defines the role; Role-Feedback Prompt is derived from sampled model responses to deepen role immersion.
- Sample multiple first-round responses to select an optimal role-immersion prompt for all questions, enabling a single API call per task instance.
- Compare role-play prompting with Zero-Shot and Zero-Shot-CoT baselines across multiple datasets.
- Assess prompt design, role selection, and prompt structure via ablation studies to identify best practices.
Experimental results
Research questions
- RQ1Does role-play prompting improve zero-shot reasoning performance across arithmetic, commonsense, symbolic, and other reasoning tasks?
- RQ2Is role-play prompting an implicit trigger for chain-of-thought that can outperform Zero-Shot-CoT in various datasets?
- RQ3How do prompt design choices (role, immersion level, two-round structure) affect performance?
- RQ4Is the approach robust across different models (ChatGPT, Llama 2, Vicuna) and open-source LLMs?
Key findings
- Role-Play Prompting outperforms zero-shot on 10 of 12 datasets.
- On arithmetic tasks, it improves four of six datasets; on commonsense, symbolic, and other tasks, it exceeds the baseline on all datasets in those groups.
- Compared with Zero-Shot-CoT, Role-Play Prompting achieves higher accuracy on 9 of 12 datasets, and serves as an implicit CoT trigger in several cases.
- Two-round prompts with immersive role descriptions yield the best results, outperforming single-round prompts and simpler prompts.
- The method shows improvements across open-source models (Llama-2, Vicuna) and various sizes, indicating universality and scale-independence within tested ranges.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.