Reproduce “Let's Sample Step by Step: Adaptive-Consistency for Efficient Reasoning and Coding with LLMs” 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

Pranjal Aggarwal, Aman Madaan, Yiming Yang, Mausam

Adaptive-Consistency introduces a dynamic sampling strategy for large language models, significantly reducing the computational cost associated with improving output correctness via majority voting. This method adaptively stops sampling when a sufficient confidence in a majority answer is established, leading to an average 3.3 times reduction in sample budget with a negligible impact on accuracy across various reasoning and coding tasks.

Key insights

  • Dynamic resource allocation based on emerging consensus is more efficient than a fixed sampling budget for improving LLM output correctness.
  • Probabilistic stopping criteria, specifically the Beta Stopping Criteria, can effectively determine sufficient confidence for early termination of sampling, balancing accuracy and computational cost.
  • Intelligently allocating more samples to complex problems and fewer to simple ones leads to a superior cost-quality trade-off for LLM inference.

Summary by alphaXiv.

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