mlsanityData to 7 Oct 2026

Dual-Process Scaffold Reasoning for Enhancing LLM Code Debugging

arXiv 2511.08052 ↗First posted 11 Nov 2025cs.AI cs.CL cs.SEcited by 0

On the map: LLM reasoning → Reasoning for agents, planning and code

Abstract (arXiv)

Recent LLMs have demonstrated sophisticated problem-solving capabilities on various benchmarks through advanced reasoning algorithms. However, the key research question of identifying reasoning steps that balance complexity and computational efficiency remains unsolved. Recent research has increasingly drawn upon psychological theories to explore strategies for optimizing cognitive pathways. The LLM's final outputs and intermediate steps are regarded as System 1 and System 2, respectively. However, an in-depth exploration of the System 2 reasoning is still lacking. Therefore, we propose a novel psychologically backed Scaffold Reasoning framework for code debugging, which encompasses the Scaffold Stream, Analytic Stream, and Integration Stream. The construction of reference code within the Scaffold Stream is integrated with the buggy code analysis results produced by the Analytic Stream through the Integration Stream. Our framework achieves an 88.91% pass rate and an average inference time of 5.36 seconds per-problem on DebugBench, outperforming other reasoning approaches across various LLMs in both reasoning accuracy and efficiency. Further analyses elucidate the advantages and limitations of various cognitive pathways across varying problem difficulties and bug types. Our findings also corroborate the alignment of the proposed Scaffold Reasoning framework with human cognitive processes.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 17 of its 25 references that are in the map. First posted on arXiv 11 Nov 2025.

Builds on

17 of 25 references.

References · 17

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  3. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  4. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  5. 2024Chain of Agents: Large Language Models Collaborating on Long-Context Taskscited by 201
  6. 2024The Impact of Reasoning Step Length on Large Language Modelscited by 152
  7. 2024Distilling System 2 into System 1cited by 152
  8. 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 123
  9. 2024DebugBench: Evaluating Debugging Capability of Large Language Modelscited by 74
  10. 2023PEARL: Prompting Large Language Models to Plan and Execute Actions Over Long Documentscited by 61
  11. 2025Evolving Deeper LLM Thinkingcited by 58
  12. 2024Cycles of Thought: Measuring LLM Confidence through Stable Explanationscited by 27
5 more
  1. 2024Disentangling Logic: The Role of Context in Large Language Model Reasoning Capabilitiescited by 22
  2. 2025ThinkLess: A Training-Free Inference-Efficient Method for Reducing Reasoning Redundancycited by 17
  3. 2024Enhancing Chain of Thought Prompting in Large Language Models via Reasoning Patternscited by 13
  4. 2025Efficient Reasoning via Chain of Unconscious Thoughtcited by 6
  5. 2024Reasoning Graph Enhanced Exemplars Retrieval for In-Context Learningcited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMs
  2. 2025Demystifying Errors in LLM Reasoning Traces: An Empirical Study of Code Execution Simulation
  3. 2025DebugTA: An LLM-Based Agent for Simplifying Debugging and Teaching in Programming Education
  4. 2026CodeGlance: Understanding Code Reasoning Challenges in LLMs through Multi-Dimensional Feature Analysis
  5. 2025Unveiling the Magic of Code Reasoning through Hypothesis Decomposition and Amendment
  6. 2025textttReMind: Understanding Deductive Code Reasoning in LLMs
  7. 2025Breakpoint: Scalable evaluation of system-level reasoning in LLM code agents
  8. 2026From Brewing to Resolution: Tracing the Internal Lifecycle of Code Reasoning in LLMs