Reproduce “Complexity-Based Prompting for Multi-Step Reasoning” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Yao Fu, Hao Peng, Ashish Sabharwal, Peter Clark, Tushar Khot

Researchers from the University of Edinburgh and the Allen Institute for AI developed complexity-based prompting and consistency for Chain-of-Thought in LLMs, which selects and prioritizes reasoning examples based on their step count. This method improved multi-step reasoning task accuracy by an average of 5.3% on GPT-3 and 6.2% on Codex, with gains up to 18% on specific benchmarks.

Key insights

  • Providing LLMs with in-context examples that exhibit higher reasoning complexity (more steps) consistently leads to improved multi-step reasoning performance.
  • Prioritizing more complex generated reasoning chains during decoding (complexity-based consistency) further enhances the accuracy of final answers.
  • Complex prompts primarily improve the model's performance on simpler test cases, suggesting they foster more robust and broadly applicable reasoning capabilities.
  • The effectiveness of complexity-based prompting is an emergent property, observed only in sufficiently large language models.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.