Skip to main content
QUICK REVIEW

[论文解读] Better Zero-Shot Reasoning with Role-Play Prompting

Aobo Kong, Shiwan Zhao|arXiv (Cornell University)|Aug 15, 2023
Logic, Reasoning, and KnowledgeComputer Science被引用 22
一句话总结

Role-play prompting 在12个基准测试中显著提升零-shot 推理,常超越 Zero-Shot 和 Zero-Shot-CoT 基线,通过两阶段提示设计将模型置于任务特定角色。

ABSTRACT

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.

研究动机与目标

  • 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.

提出的方法

  • Two-stage framework: stage 1 constructs task-specific role-play prompts, stage 2 elicits answers grounded in that role.
  • Role-Setting Prompt 定义角色;Role-Feedback Prompt 通过抽取的模型响应来深化角色沉浸。
  • 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.

实验结果

研究问题

  • 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?

主要发现

  • 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.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。