Dual-Process Scaffold Reasoning for Enhancing LLM Code Debugging
Po-Chung Hsieh, Chin-Po Chen, Jeng-Lin Li, Ming-Ching Chang

TL;DR
This paper introduces a psychologically inspired Scaffold Reasoning framework for LLM-based code debugging, improving accuracy and efficiency by mimicking human cognitive strategies.
Contribution
It proposes a novel Scaffold Reasoning framework that integrates multiple reasoning streams, enhancing LLM debugging performance and aligning with human cognition.
Findings
Achieved 88.91% pass rate on DebugBench
Outperformed other reasoning methods in accuracy and efficiency
Analyzed cognitive pathway advantages across problem types
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Software Testing and Debugging Techniques · Software System Performance and Reliability
