mlsanityData to 7 Oct 2026

Think Like Human Developers: Harnessing Community Knowledge for Structured Code Reasoning

arXiv 2503.14838 ↗First posted 19 Mar 2025cs.SEcited by 0

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

Abstract (arXiv)

Large Language Models (LLMs) have significantly advanced automated code generation, yet they struggle with complex coding tasks requiring multi-step logical reasoning. High-quality reasoning data is crucial for improving LLMs' reasoning capabilities, but such datasets remain scarce. Existing approaches either rely on computationally expensive reinforcement learning (RL) or error-prone reasoning chains synthesized by LLMs, posing challenges in scalability and accuracy. To address this challenge, we propose SVRC (Structured and Validated Reasoning Chains for Code Generation), a novel framework that mines, restructures, and enriches reasoning chains from community-driven discussions on software engineering platforms. SVRC refines unstructured and incomplete discussions of coding problems by aligning them with Software Development Life Cycle (SDLC) principles, ensuring that reasoning chains capture real-world problem-solving strategies and support iterative refinement. To evaluate the effectiveness of SVRC, we introduce CodeThinker, an LLM fine-tuned on 12,444 reasoning-augmented samples generated by SVRC. Experiments on LiveCodeBench show that CodeThinker surpasses its base model by 42.86% on medium-level code problems in terms of pass@1 and outperforms GPT-4o-mini and GPT-4o by 73.14% and 115.86%, respectively. Our ablation study further highlights that each component of SVRC contributes to the reasoning capabilities of CodeThinker.

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 22 of its 52 references that are in the map. First posted on arXiv 19 Mar 2025.

Builds on

22 of 52 references.

Closest ancestors · 3

Same direction, newest first

  1. 2024OpenAI o1 System Card21 Dec
  2. 2024Qwen2.5-Coder Technical Report18 Sep
  3. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code12 Mar

Other references · 19

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  2. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
  3. 2021Program Synthesis with Large Language Modelscited by 3,509
  4. 2023Qwen Technical Reportcited by 3,273
  5. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  6. 2024A Survey on LLM-as-a-Judgecited by 1,384
  7. 2025s1: Simple test-time scalingcited by 1,311
  8. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  9. 2021Measuring Coding Challenge Competence With APPScited by 879
  10. 2024A Survey on Large Language Models for Code Generationcited by 646
  11. 2024OpenMathInstruct-2: Accelerating AI for Math with Massive Open-Source Instruction Datacited by 194
  12. 2024MathScale: Scaling Instruction Tuning for Mathematical Reasoningcited by 144
7 more
  1. 2024Evaluating Mathematical Reasoning Beyond Accuracycited by 69
  2. 2024What's Wrong with Your Code Generated by Large Language Models? An Extensive Studycited by 52
  3. 2024Towards Understanding the Characteristics of Code Generation Errors Made by Large Language Modelscited by 28
  4. 2025From Code to Courtroom: LLMs as the New Software Judgescited by 16
  5. 2024ACECode: A Reinforcement Learning Framework for Aligning Code Efficiency and Correctness in Code Language Modelscited by 10
  6. 2025Large Language Models for Code Generation: The Practitioners Perspectivecited by 9
  7. 2025Benchmarking Large Language Models for Multi-Language Software Vulnerability Detectioncited by 5

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025CodeSense: a Real-World Benchmark and Dataset for Code Semantic Reasoning
  2. 2025rStar-Coder: Scaling Competitive Code Reasoning with a Large-Scale Verified Dataset
  3. 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMs
  4. 2025An Empirical Study of Reasoning Steps in Thinking Code LLMs
  5. 2026Pseudo2CodeQA: A Benchmark for LLM-Based Structured Algorithmic Reasoning in Code Generation
  6. 2025Breakpoint: Scalable evaluation of system-level reasoning in LLM code agents
  7. 2025Code Reasoning for Software Engineering Tasks: A Survey and A Call to Action
  8. 2025A Study on Thinking Patterns of Large Reasoning Models in Code Generation