TL;DR
The Adaptive-Solver (AS) framework dynamically adjusts LLM reasoning strategies—switching models, prompts, and sample sizes—based on the difficulty of each individual problem. By mimicking human cognitive flexibility, it slashes API costs by up to 85% while maintaining or even improving accuracy compared to state-of-the-art static solvers.
What Problem Does This Paper Address?
Current approaches to Large Language Model (LLM) reasoning are largely "one-size-fits-all." Whether a model is asked a simple arithmetic question or a complex multi-step logic puzzle, researchers typically use a fixed strategy: the same expensive model (e.g., GPT-4), the same prompting technique (e.g., Chain-of-Thought), and a fixed number of reasoning paths.
This rigidity is inefficient. Using GPT-4 for a problem GPT-3.5 could solve is a waste of money, while a simple prompt might fail on a complex problem that requires deeper decomposition. The authors argue that machines should emulate the human cognitive framework—specifically System 1 (intuitive) and System 2 (analytical) thinking—to dynamically allocate computational resources where they are needed most.
Methods
The authors introduce the Adaptive-Solver (AS) framework, which consists of two main components:
- Evaluation Module: After a solver generates an initial set of answers, this module assesses their reliability using answer consistency. If the model's multiple reasoning paths converge on the same answer (high consistency), the process terminates. If not, it triggers the next module.
- Adaptation Module: This module pivots to a more sophisticated strategy based on a pre-configured "pipeline." It adapts across four dimensions:
- Model Adaptation: Switching from a cheap model (GPT-3.5) to a powerful one (GPT-4).
- Sample Size Adaptation: Increasing the number of reasoning paths to reduce internal randomness.
- Prompting Method Adaptation: Switching between techniques like Chain-of-Thought (CoT), Plan-and-Solve (PS), and Least-to-Most (L2M).
- Decomposition Granularity Adaptation: For L2M prompts, adjusting how finely the problem is broken down into sub-questions.
The framework uses a heuristic algorithm to automatically configure the optimal pipeline for a specific dataset using a small validation set, ensuring a steady increase in performance with controlled cost increments.
Datasets
The framework was evaluated on eight diverse reasoning benchmarks:
- Arithmetic Reasoning: GSM8K, SVAMP, AQuA, AddSub, SingleEq, and MultiArith.
- Commonsense Reasoning: CSQA.
- Symbolic Reasoning: Last Letter Concatenation (LLC).
Key Insights and Ideas
- The "Good Enough" Threshold: For simpler tasks, cheaper models perform comparably to expensive ones. Dynamic selection allows the system to reserve "heavy lifting" for truly difficult problems.
- Prompt Diversity is a Strength: No single prompting method is best for every problem. L2M excels at complex decomposition, while CoT is often more efficient for straightforward logic. The AS framework treats these methods as a "pool" of tools to be used as needed.
- Granularity Trade-offs: Breaking a problem into too many steps (fine-grained decomposition) can actually introduce noise and lower accuracy on simple problems, whereas complex problems require that level of detail to succeed.
- Consistency as a Proxy for Confidence: The paper reinforces that self-consistency is a robust metric for "knowing when you don't know," providing a reliable signal for when to escalate to a more expensive solver.
Key Results
- Massive Cost Efficiency: Compared to using GPT-4 exclusively, the AS framework achieved 46% to 85% reductions in API costs while maintaining comparable accuracy.
- Superior Performance at Equal Cost: When compared to baselines with the same budget, the AS framework improved accuracy by up to 4.5% (e.g., on the GSM8K dataset).
- Minimal Latency Overhead: Despite the multi-round approach, the average number of solver calls per problem was only 1.68. Most problems were solved by the initial, cheaper solver, keeping the average inference time manageable.
Limitations and Future Work
- Inference Time: While the average time is low, complex problems that fail multiple rounds will see significantly higher latency. The authors suggest controlling pipeline length to mitigate this.
- Validation Dependency: The framework requires a small validation set (typically <200 samples) to pre-determine the optimal pipeline for a new dataset.
- Future Directions: The authors propose expanding the "component pool" to include other augmented tools like calculators or code interpreters. They also suggest exploring more sophisticated evaluation metrics beyond simple answer consistency to trigger adaptation.
Summary updated