Language Models Coupled with Metacognition Can Outperform Reasoning Models
Preprint
Abstract
Large language models (LLMs) excel in speed and adaptability across various reasoning tasks, but they often struggle when strict logic or constraint enforcement is required. In contrast, Large Reasoning Models (LRMs) are specifically designed for complex, step-by-step reasoning, although they come with significant computational costs and slower inference times. To address these trade-offs, we employ and generalize the SOFAI (Slow and Fast AI) cognitive architecture into SOFAI-LM, which coordinates a fast LLM with a slower but more powerful LRM through metacognition. The metacognitive module actively monitors the LLM's performance and provides targeted, iterative feedback with relevant examples. This enables the LLM to progressively refine its solutions without requiring the need for additional model fine-tuning. Extensive experiments on graph coloring and code debugging problems demonstrate that our feedback-driven approach significantly enhances the problem-solving capabilities of the LLM. In many instances, it achieves performance levels that match or even exceed those of standalone LRMs while requiring considerably less time. Additionally, when the LLM and feedback mechanism alone are insufficient, we engage the LRM by providing appropriate information collected during the LLM's feedback loop, tailored to the specific characteristics of the problem domain and leads to improved overall performance. Evaluations on two contrasting domains: graph coloring, requiring globally consistent solutions, and code debugging, demanding localized fixes, demonstrate that SOFAI-LM enables LLMs to match or outperform standalone LRMs in accuracy while maintaining significantly lower inference time.Keywords
All Related Versions
This publication has 7 references indexed in Scilit:
- Thinking Fast and Slow in Human and Machine IntelligenceCommunications of the ACM, 2025
- Can large language models reason and plan?Annals of the New York Academy of Sciences, 2024
- FollowBench: A Multi-level Fine-grained Constraints Following Benchmark for Large Language Models2024
- PiVe: Prompting with Iterative Verification Improving Graph-based Generative Capability of LLMs2024
- Toolformer: Language Models Can Teach Themselves to Use Tools2023
- Large Language Models Are Zero-Shot Reasoners2022
- Chain-Of-Thought Prompting Elicits Reasoning in Large Language Models2022