Staple: Towards Reliable Problem Solving with Large Language Models via Plan Optimization and Tree Search
Staple is a plan retrieval augmented reasoning framework for LLMs that improves reliability of multi-step reasoning while reducing token and interaction costs. It builds an offline plan database of general-purpose reasoning instructions, generated and optimized by LLMs and stored as tree structures via Monte Carlo Tree Search. For new questions, online search directly retrieves optimal step-by-step plans. Experiments on mathematical and multi-task problems show competitive accuracy with minimal resources, and the plan trees are human-interpretable, reusable, and expandable.