mlsanityData to 14 Oct 2026

Code Execution as Grounded Supervision for LLM Reasoning

arXiv 2506.10343 ↗First posted 12 Jun 2025cs.CL cs.AIcited by 5

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

Abstract (arXiv)

Training large language models (LLMs) with chain-of-thought (CoT) supervision has proven effective for enhancing their reasoning abilities. However, obtaining reliable and accurate reasoning supervision remains a significant challenge. We propose a scalable method for generating a high-quality CoT supervision dataset by leveraging the determinism of program execution. Unlike existing reasoning dataset generation methods that rely on costly human annotations or error-prone LLM-generated CoT, our approach extracts verifiable, step-by-step reasoning traces from code execution and transforms them into a natural language CoT reasoning. Experiments on reasoning benchmarks across various domains show that our method effectively equips LLMs with transferable reasoning abilities across diverse tasks. Furthermore, the ablation studies validate that our method produces highly accurate reasoning data and reduces overall token length during inference by reducing meaningless repetition and overthinking.

Key facts. Cited by 5 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 15 of its 35 references that are in the map. First posted on arXiv 12 Jun 2025.

Builds on

15 of 35 references.

References · 15

  1. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  2. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  3. 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,807
  4. 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,464
  5. 2025s1: Simple test-time scalingcited by 1,341
  6. 2023AGIEval: A Human-Centric Benchmark for Evaluating Foundation Modelscited by 716
  7. 2025LIMO: Less is More for Reasoningcited by 498
  8. 2024Improve Mathematical Reasoning in Language Models by Automated Process Supervisioncited by 441
  9. 2025Reasoning Models Don't Always Say What They Thinkcited by 415
  10. 2023Llemma: An Open Language Model For Mathematicscited by 388
  11. 2024ProcessBench: Identifying Process Errors in Mathematical Reasoningcited by 292
  12. 2022Language Models of Code are Few-Shot Commonsense Learnerscited by 160
3 more
  1. 2025A Minimalist Approach to LLM Reasoning: from Rejection Sampling to Reinforcecited by 145
  2. 2024Are LLMs Capable of Data-based Statistical and Causal Reasoning? Benchmarking Advanced Quantitative Reasoning with Datacited by 63
  3. 2023The Magic of IF: Investigating Causal Reasoning Abilities in Large Language Models of Codecited by 21

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 3.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025CoT-RAG: Integrating Chain of Thought and Retrieval-Augmented Generation to Enhance Reasoning in Large Language Models
  2. 2025Chain of Execution Supervision Promotes General Reasoning in Large Language Models
  3. 2025An Empirical Study of Reasoning Steps in Thinking Code LLMs
  4. 2025LLMs Can Easily Learn to Reason from Demonstrations Structure, not content, is what matters!
  5. 2025Scaling Code-Assisted Chain-of-Thoughts and Instructions for Model Reasoning
  6. 2023Chain-of-Thought in Neural Code Generation: From and For Lightweight Language Models
  7. 2025Dynamic Early Exit in Reasoning Models
  8. 2026A State-Transition Framework for Efficient LLM Reasoning