The Art of SOCRATIC QUESTIONING: Recursive Thinking with Large Language Models

Jingyuan Qi, Zhiyang Xu, Ying Shen, Minqian Liu, Di Jin, Qifan Wang, Lifu Huang

TL;DR

Socratic Questioning introduces a recursive, divide-and-conquer prompting framework that enables Large Language Models (LLMs) to dynamically break down complex problems into simpler sub-questions and aggregate their answers. Unlike sequential Chain-of-Thought prompting, this method explicitly navigates the reasoning space and self-corrects via confidence-based backtracking. It achieves state-of-the-art performance across diverse language and multimodal reasoning tasks while maintaining high computational efficiency.

What Problem Does This Paper Address?

While Chain-of-Thought (CoT) prompting has significantly improved LLM performance on complex reasoning tasks, it suffers from a fundamental flaw: it is a single-pass, sequential process. If the model makes a mistake in an early reasoning step, that error cascades, accumulating down the line and ultimately ruining the final answer. CoT lacks the capacity to pause, recognize uncertainty, and backtrack or explore alternative problem-solving paths.

In contrast, when humans face complex problems, we naturally employ recursive thinking. We break a daunting question down into manageable sub-problems, solve those first, and then combine the solutions to address the overarching problem. This paper bridges this gap by introducing Socratic Questioning (SQ), a prompting paradigm that mimics this human cognitive process.

Methods

Socratic Questioning implements a recursive, divide-and-conquer algorithm driven by a Self-Questioning (SQ) module. The framework operates via two main phases:

  1. Top-Down Exploration: When presented with a question, a Question-Answering (QA) module attempts to solve it and outputs both an answer and a confidence level (high, medium, or low). If the confidence is high, the process stops. If it is lower than high, a Question-Generation (QG) module is triggered to decompose the complex question into simpler, more approachable sub-questions.
  2. Bottom-Up Backtracking: Once the sub-questions are recursively answered with high confidence, a QA-to-Hint (QA2H) module merges the sub-questions and their answers into declarative statements (hints). These hints are appended to the parent question's context, allowing the model to re-evaluate the original problem with enriched information.
Figure 2: Schematic comparison of various prompting methods. Each blue rectangle box represents a thought serving as an intermediate reasoning step in the problem-solving process. SOCRATIC QUESTIONING incorporates both a top-down exploration process (in red line) to deconstruct complex problems into smaller sub-questions and a bottom-up backtracking process (in green line) to recursively solve these sub-questions and gather solutions for higher-level problems.

For multimodal tasks (Visual Question Answering), the authors adapt the framework by incorporating a visual perception model (BLIP-2) to generate question-guided captions. They also split the QG module into Fact-QG (to probe external commonsense knowledge) and Visual-QG (to extract targeted visual details from the image).

Datasets

The authors evaluated their method across a robust suite of language and multimodal benchmarks:

  • Language Tasks: MMLU (Physics and Chemistry subsets), MATH (competition-level mathematics), LogiQA (logical reasoning), GSM8K (grade-school math), and StrategyQA (multi-hop reasoning).
  • Multimodal Tasks: VQA-v2, OK-VQA (knowledge-based visual question answering), and AOK-VQA (augmented knowledge/reasoning VQA).

Note on Data Hygiene: The authors discovered significant data leakage in pre-trained baselines (where models like GPT-3 could correctly answer VQA questions even when the input image was replaced with pure black pixels). To ensure a fair evaluation, they implemented a strict filtering process, retaining only "clean" instances where the visual data was strictly necessary to solve the problem.

Key Insights and Ideas

  • Adaptive Depth vs. Fixed Width: Traditional advanced prompting methods like Tree-of-Thought (ToT) or Self-Consistency CoT (SC-CoT) rely on fixed search widths or exhaustive path generations, which incur massive computational overhead. Socratic Questioning scales adaptively based on problem difficulty; it only "digs deeper" when the model explicitly flags low confidence.
  • Robustness via Context Enrichment: Instead of attempting to rewrite a broken sequential reasoning path, SQ corrects errors by dynamically modifying the input context with high-confidence sub-problem solutions. This prevents early errors from cascading.
  • The Danger of "Over-Thinking": The authors observed that increasing the maximum number of turns or recursion depth too much can actually degrade performance on simpler tasks. Due to calibration errors, an LLM might occasionally flag low confidence on a correct answer, causing the model to generate irrelevant sub-questions that introduce noise into the reasoning space.

Key Results

Socratic Questioning consistently outperformed state-of-the-art prompting methods across the board:

  • Language Performance: SQ achieved absolute accuracy gains over standard CoT of +4.34% on MATH, +2.98% on MMLU Physics, +4.22% on MMLU Chemistry, and +4.66% on LogiQA.
  • Multimodal Performance: On knowledge-intensive VQA tasks (OK-VQA and AOK-VQA), SQ significantly outperformed strong baselines like BLIP-2 and PICa under both traditional and semantic-based accuracy metrics.
  • Efficiency Gains: SQ proved highly efficient compared to other tree-search methods. For instance, SQ (2-turns) required an average of only 9.22 LLM calls per instance, compared to 31.1 calls for Tree-of-Thought (ToT) and 20 calls for SC-CoT, all while delivering superior accuracy.
Example of Socratic Questioning vs CoT

Limitations and Future Work

  • Reliance on Self-Calibration: The framework's trigger mechanism depends entirely on the LLM's ability to accurately gauge its own confidence. Because LLMs are notoriously prone to overconfidence, they occasionally skip sub-question generation even when their initial answer is incorrect.
  • Visual Pipeline Simplicity: The multimodal implementation relies solely on a single image captioning model (BLIP-2). The authors note that incorporating a wider variety of specialized vision models—such as OCR, dense captioning, or scene graphs—could drastically improve the quality of visual sub-question answers.
  • Language and Task Scope: The current evaluation is limited to English-language datasets and VQA tasks. The authors plan to extend the recursive framework to multilingual benchmarks and other modalities, including speech and video.

Summary updated

BibTeX
@inproceedings{qi2023art,
  author = {Jingyuan Qi and Zhiyang Xu and Ying Shen and Minqian Liu and Di Jin and Qifan Wang and Lifu Huang},
  title = {{The Art of SOCRATIC QUESTIONING: Recursive Thinking with Large Language Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.255},
}
Figure