Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMs

📅 2025-02-26
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This work investigates the bidirectional enhancement mechanism between code generation and complex reasoning in large language models (LLMs). Addressing the mutual constraints between code intelligence and advanced reasoning capabilities, we propose a synergistic paradigm wherein “code serves as a reasoning medium” and “reasoning acts as a code engine,” establishing a unified analytical framework that formalizes bidirectional empowerment pathways and evaluation dimensions. Methodologically, we integrate program analysis, chain-of-thought prompting, execution-guided learning, symbolic reasoning, and runtime verification to enable multi-granularity joint modeling of code and reasoning. We introduce three novel techniques: scalable co-training, dynamic code distillation, and reasoning-guided fine-tuning. Experiments demonstrate that our framework significantly improves accuracy and robustness on complex software engineering tasks—advancing code intelligence from snippet-level completion toward end-to-end, engineering-grade problem solving.

Technology Category

Application Category

📝 Abstract
In large language models (LLMs), code and reasoning reinforce each other: code offers an abstract, modular, and logic-driven structure that supports reasoning, while reasoning translates high-level goals into smaller, executable steps that drive more advanced code intelligence. In this study, we examine how code serves as a structured medium for enhancing reasoning: it provides verifiable execution paths, enforces logical decomposition, and enables runtime validation. We also explore how improvements in reasoning have transformed code intelligence from basic completion to advanced capabilities, enabling models to address complex software engineering tasks through planning and debugging. Finally, we identify key challenges and propose future research directions to strengthen this synergy, ultimately improving LLM's performance in both areas.
Problem

Research questions and friction points this paper is trying to address.

Enhancing reasoning through structured code
Transforming code intelligence with advanced reasoning
Addressing challenges in LLM code-reasoning synergy
Innovation

Methods, ideas, or system contributions that make the work stand out.

Code enhances reasoning in LLMs
Reasoning drives advanced code intelligence
Logical decomposition improves runtime validation
🔎 Similar Papers
No similar papers found.