[논문 리뷰] Better Zero-Shot Reasoning with Role-Play Prompting
역할극 prompting은 12개 벤치마크에서 제로샷 추론을 개선하고, 종종 Zero-Shot 및 Zero-Shot-CoT 베이스라인을 능가합니다. 두 단계 프롬프트 설계를 통해 모델을 작업 특화 역할에 몰입시키는 방식입니다.
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.
연구 동기 및 목표
- 역할-극화가 제로샷 설정에서 LLM 추론을 향상시킬 수 있는지 조사한다.
- 작업 특화 역할에 모델을 몰입시키는 두 단계 역할극 프롬프트 프레임워크를 제안한다.
- ChatGPT와 오픈 소스 LLM들로 12개의 다양한 추론 벤치마크에서 방법을 평가한다.
제안 방법
- 두 단계 프레임워크: 1단계는 작업 특화 역할극 프롬프트를 구성하고, 2단계는 해당 역할에 기반한 답변을 도출한다.
- Role-Setting Prompt는 역할을 정의하고; Role-Feedback Prompt는 샘플링된 모델 응답에서 파생되어 역할 몰입을 심화한다.
- 질문 전체에 대해 최적의 역할 몰입 프롬프트를 선택하기 위해 다수의 1차 응답을 샘플링하여 한 작업 인스턴스당 단일 API 호출을 가능하게 한다.
- 여러 데이터셋에서 역할극 프롬프트와 제로샷 및 제로샷-코트(Zero-Shot-CoT) 베이스라인을 비교한다.
- 베스트 프랙티스를 찾기 위해 설계 프롬프트, 역할 선택, 프롬프트 구조를 제거 실험(ablation studies)으로 평가한다.
실험 결과
연구 질문
- RQ1역할극 프롬 prompting이 산술, 일반상식, 기호적 및 기타 추론 과제에서 제로샷 추론 성능을 향상시키는가?
- RQ2역할극 프롬 prompting이 다양한 데이터셋에서 Zero-Shot-CoT를 능가할 수 있는 암묵적 사고의 촉발점이 되는가?
- RQ3프롬프트 설계 선택(역할, 몰입 수준, 이중 라운드 구조)이 성능에 어떤 영향을 미치는가?
- RQ4이 방법이 다양한 모델(ChatGPT, Llama 2, Vicuna) 및 오픈 소스 LLM들에서 강건한가?
주요 결과
- 역할극 프롬 prompting은 12개 데이터셋 중 10개에서 제로샷보다 우수하게 나타났다.
- 산술 과제에서 6개 데이터셋 중 4개에서 향상; 일반상식, 기호적 및 기타 과제에서 해당 그룹의 모든 데이터셋에서 베이스라인을 능가했다.
- Zero-Shot-CoT와 비교했을 때 12개 데이터셋 중 9개에서 더 높은 정확도를 달성했고, 몇몇 경우 암묵적 CoT 촉발기로 작용했다.
- 몰입형 역할 묘사를 포함하는 이중 라운드 프롬프트가 단일 라운드 프롬프트 및 더 단순한 프롬프트보다 최상의 결과를 낳았다.
- 이 방법은 오픈 소스 모델(Llama-2, Vicuna) 및 다양한 크기에서 개선을 보여주어, 테스트 범위 내에서 보편성 및 규모-독립성을 시사한다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.