Research paper code for improved zero-shot chain-of-thought reasoning
Top 50.9% on sourcepulse
This repository provides the code for the ACL 2023 paper "Plan-and-Solve Prompting," which enhances zero-shot chain-of-thought reasoning in large language models. It offers a structured approach to problem-solving for researchers and developers working with LLMs, aiming to improve accuracy and interpretability in complex reasoning tasks.
How It Works
The Plan-and-Solve (PS) prompting strategy guides LLMs through a two-stage process: first, devising a plan to tackle a problem, and second, executing that plan step-by-step. This approach contrasts with standard chain-of-thought by explicitly separating planning from execution, which the authors argue leads to more robust and accurate reasoning, particularly for tasks requiring multi-step problem decomposition.
Quick Start & Requirements
pip
.apikeys.json
.text-davinci-003
engine and datasets like SVAMP.main_threads.py
.Highlighted Details
Maintenance & Community
The project is associated with the ACL 2023 paper and has seen community interest, as indicated by Twitter discussions. Further community engagement channels are not explicitly listed.
Licensing & Compatibility
The repository's license is not specified in the README. Compatibility for commercial use or closed-source linking would require clarification on the licensing terms.
Limitations & Caveats
The code is primarily tied to OpenAI's text-davinci-003
model and may require adaptation for other LLMs. The effectiveness of the PS prompting strategy is dependent on the quality of the generated plan and the LLM's ability to follow it.
2 years ago
1 week