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

Dayu Yang, Tianyang Liu, Daoan Zhang, Antoine Simoulin, Xiaoyi Liu +6 more
2/26/2025
cs.CLcs.AIcs.LG

No official code found. Best implementation: dayuyang1999/Awesome-Code-Reasoning (367 stars, last commit 2025-06-23).

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.

View on arXivView PDF

Code Implementations(1)

3677Feb 11, 20251 years ago

Similar Papers

Cite this paper

@article{yang2025code,
  title  = {Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMs},
  author = {Dayu Yang and Tianyang Liu and Daoan Zhang and Antoine Simoulin and Xiaoyi Liu and Yuwei Cao and Zhaopu Teng and Xin Qian and Grey Yang and Jiebo Luo and Julian McAuley},
  year   = {2025},
  eprint = {2502.19411},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.19411v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.19411.svg)](https://codeofpaper.com/paper/2502.19411)

Discussion