mlsanityData to 14 Oct 2026

An Empirical Study of Reasoning Steps in Thinking Code LLMs

arXiv 2511.05874 ↗First posted 8 Nov 2025cs.AIcited by 2

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

Abstract (arXiv)

Thinking Large Language Models (LLMs) generate explicit intermediate reasoning traces before final answers, potentially improving transparency, interpretability, and solution accuracy for code generation. However, the quality of these reasoning chains remains underexplored. We present a comprehensive empirical study examining the reasoning process and quality of thinking LLMs for code generation. We evaluate six state-of-the-art reasoning LLMs (DeepSeek-R1, OpenAI-o3-mini, Claude-3.7-Sonnet-Thinking, Gemini-2.0-Flash-Thinking, Gemini-2.5-Flash, and Qwen-QwQ) across 100 code generation tasks of varying difficulty from BigCodeBench. We quantify reasoning-chain structure through step counts and verbosity, conduct controlled step-budget adjustments, and perform a 21-participant human evaluation across three dimensions: efficiency, logical correctness, and completeness. Our step-count interventions reveal that targeted step increases can improve resolution rates for certain models/tasks, while modest reductions often preserve success on standard tasks, rarely on hard ones. Through systematic analysis, we develop a reasoning-problematic taxonomy, identifying completeness as the dominant failure mode. Task complexity significantly impacts reasoning quality; hard problems are substantially more prone to incompleteness than standard tasks. Our stability analysis demonstrates that thinking LLMs maintain consistent logical structures across computational effort levels and can self-correct previous errors. This study provides new insights into the strengths and limitations of current thinking LLMs in software engineering.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 26 of its 45 references that are in the map. First posted on arXiv 8 Nov 2025.

Builds on

26 of 45 references.

Closest ancestors · 6

Same direction, newest first

  1. 2025Are They All Good? Evaluating the Quality of CoTs in LLM-based Code Generation9 Jul
  2. 2025Code Reasoning for Software Engineering Tasks: A Survey and A Call to Action16 Jun
  3. 2025From LLM Reasoning to Autonomous AI Agents: A Comprehensive Review28 Apr
  4. 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMs26 Feb
  5. 2024OpenAI o1 System Card21 Dec
  6. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code12 Mar

Other references · 20

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  2. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
  3. 2023Let's Verify Step by Stepcited by 3,789
  4. 2021Program Synthesis with Large Language Modelscited by 3,637
  5. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  6. 2023Gemini: A Family of Highly Capable Multimodal Modelscited by 872
  7. 2024DeepSeek-V3 Technical Reportcited by 811
  8. 2024A Survey on Large Language Models for Code Generationcited by 658
  9. 2024GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Modelscited by 550
  10. 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
  11. 2024ProcessBench: Identifying Process Errors in Mathematical Reasoningcited by 292
  12. 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolutioncited by 263
8 more
  1. 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 168
  2. 2023AI Transparency in the Age of LLMs: A Human-Centered Research Roadmapcited by 123
  3. 2025DeepSeek-R1 Thoughtology: Let's think about LLM Reasoningcited by 92
  4. 2024RepoAgent: An LLM-Powered Open-Source Framework for Repository-level Code Documentation Generationcited by 70
  5. 2025Evaluating Step-by-step Reasoning Traces: A Surveycited by 63
  6. 2025Quantifying the Reasoning Abilities of LLMs on Real-world Clinical Casescited by 29
  7. 2024AlphaTrans: A Neuro-Symbolic Compositional Approach for Repository-Level Code Translation and Validationcited by 28
  8. 2024ACORN: Aspect-wise Commonsense Reasoning Explanation Evaluationcited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Unveiling the Magic of Code Reasoning through Hypothesis Decomposition and Amendment
  2. 2025A Study on Thinking Patterns of Large Reasoning Models in Code Generation
  3. 2024LLM Reasoners: New Evaluation, Library, and Analysis of Step-by-Step Reasoning with Large Language Models
  4. 2026Think Anywhere in Code Generation
  5. 2024General Purpose Verification for Chain of Thought Prompting
  6. 2026Think Deep, Not Just Long: Measuring LLM Reasoning Effort via Deep-Thinking Tokens
  7. 2025LLM Reasoning for Machine Translation: Synthetic Data Generation over Thinking Tokens
  8. 2026Not All Code Is Equal: A Data-Centric Study of Code Complexity and LLM Reasoning