[논문 리뷰] Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Models
Plan-and-Solve 프롬프트는 먼저 계획을 고안한 후 이를 실행하도록 LLM에 요청하여 제로샷 추론을 향상시키고 다수의 데이터셋에서 Zero-shot-CoT보다 오류를 줄입니다. PS+는 자세한 가이드를 추가하고 자주 few-shot CoT 프롬프트와 동등하거나 그 이상을 보입니다.
Large language models (LLMs) have recently been shown to deliver impressive performance in various NLP tasks. To tackle multi-step reasoning tasks, few-shot chain-of-thought (CoT) prompting includes a few manually crafted step-by-step reasoning demonstrations which enable LLMs to explicitly generate reasoning steps and improve their reasoning task accuracy. To eliminate the manual effort, Zero-shot-CoT concatenates the target problem statement with "Let's think step by step" as an input prompt to LLMs. Despite the success of Zero-shot-CoT, it still suffers from three pitfalls: calculation errors, missing-step errors, and semantic misunderstanding errors. To address the missing-step errors, we propose Plan-and-Solve (PS) Prompting. It consists of two components: first, devising a plan to divide the entire task into smaller subtasks, and then carrying out the subtasks according to the plan. To address the calculation errors and improve the quality of generated reasoning steps, we extend PS prompting with more detailed instructions and derive PS+ prompting. We evaluate our proposed prompting strategy on ten datasets across three reasoning problems. The experimental results over GPT-3 show that our proposed zero-shot prompting consistently outperforms Zero-shot-CoT across all datasets by a large margin, is comparable to or exceeds Zero-shot-Program-of-Thought Prompting, and has comparable performance with 8-shot CoT prompting on the math reasoning problem. The code can be found at https://github.com/AGI-Edgerunners/Plan-and-Solve-Prompting.
연구 동기 및 목표
- 수동 시범 없이 다단계 추론 작업 해결 동기 부여
- 제로샷 CoT에서 계산, 누락 단계, 의미 오류를 줄임
- 추론 가이드 PS 도입 및 향상된 PS+ 도입으로 추론 유도
- 다양한 추론 데이터셋에서 PS/PS+의 효과 입증
제안 방법
- 모델이 먼저 계획을 고안한 다음 하위 작업을 수행하여 문제를 해결하는 Plan-and-Solve (PS) 프롬프트를 제안
- 관련 변수 추출, 중간 결과 계산, 계산 강조 등 상세 지시를 통해 PS를 PS+로 확장(예: 추출, 계산)
- 두 단계 프로세스 사용: 1단계는 추론 및 계획 생성; 2단계는 추론 텍스트에서 최종 숫자 답을 추출
- 탐욕적 디코딩(하나의 출력 체인) 사용 및 답 추출 프롬프트를 추가하여 최종 숫자 답을 얻음
- GPT-3(text-davinci-003)로 산술, 상식, 기호적 추론의 열 데이터셋 10개에서 평가
- Zero-shot-CoT, Zero-shot-PoT, Manual-CoT(8-shot), Auto-CoT(자동 시범), 8-shot CoT 베이스라인과 비교

실험 결과
연구 질문
- RQ1Zero-shot PS+ 프롬 prompting가 산술, 상식, 기호적 작업에서 Zero-shot-CoT를 능가하는가?
- RQ2PS+가 PoT 및 다양한 데이터셋의 정확도 측면에서 few-shot CoT 프롬 prompting과 비교해 어떤 차이가 있는가?
- RQ3자세한 지시 추가(PS+)가 계산 및 누락 단계 오류와 overall 추론 품질에 미치는 영향은 무엇인가?
- RQ4PS/PS+ 프롬 prompting이 예시 없이 수동 시연 프롬 prompting과 대등하거나 그 이상으로 도달할 수 있는가?
주요 결과
- PS+ 프롬 prompting은 모든 산술 데이터셋에서 Zero-shot-CoT보다 큰 차이로 지속적으로 우수하고, 해당 작업에서 종종 PoT와 동등하거나 그 이상을 달성합니다.
- PS+는 산술 평균 정확도 76.7으로 PS의 72.9, Zero-shot-CoT의 70.4를 상회하며, 여러 few-shot 베이스라인(Manual-CoT 77.6, Auto-CoT 75.9)과 경쟁하거나 이를 능가합니다.
- 상식 과제에서 Zero-shot-PS+는 CSQA에서 71.9%, StrategyQA에서 65.4%를 달성하여 Zero-shot-CoT( 각각 65.2%, 63.8%)를 능가합니다.
- 상징적 과제에서 Zero-shot-PS+는 Last Letter 75.2%, Coin Flip 99.6%를 기록하며 Zero-shot-CoT(64.8%, 96.8%)를 이깁니다.
- PS+와의 자기 일관성은 GSM8K에서 성능을 크게 높여(SC 포함 73.7%, SC 미포함 58.7%), SVAMP에서(84.4% vs 75.7%) 상승했습니다.
- 오류 분석에 따르면 PS+는 제로샷-CoT보다 계산 오류(5%) 및 누락 단계 오류(7%)가 더 적게 나타났습니다.

이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.