ExecVerify: White-Box RL with Verifiable Stepwise Rewards for Code Execution Reasoning
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
Code LLMs still struggle with code execution reasoning, especially in smaller models. Existing methods rely on supervised fine-tuning (SFT) with teacher-generated explanations, primarily in two forms: (1) input-output (I/O) prediction chains and (2) natural-language descriptions of execution traces. However, intermediate execution steps cannot be explicitly verified during SFT, so the training objective can reduce to merely matching teacher explanations. Moreover, training data is typically collected without explicit control over task difficulty. We introduce ExecVerify, which goes beyond text imitation by incorporating verifiable white-box rewards derived from execution traces, including next-statement prediction and variable value/type prediction. Our work first builds a dataset with multiple difficulty levels via constraint-based program synthesis. Then, we apply reinforcement learning (RL) to reward correct answers about both intermediate execution steps and final outputs, aligning the training objective with semantic correctness at each execution step. Finally, we adopt a two-stage training pipeline that first enhances execution reasoning and then transfers to code generation. Experiments demonstrate that a 7B model trained with ExecVerify achieves performance comparable to 32B models on code reasoning benchmarks and improves pass@1 by up to 5.9% on code generation tasks over strong post-training baselines.
Key facts. Cited by 6 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 29 of its 43 references that are in the map. First posted on arXiv 11 Mar 2026.
Builds on
29 of 43 references.
Closest ancestors · 10
Same direction, newest first
- 2025Chain of Execution Supervision Promotes General Reasoning in Large Language Models24 Oct
- 2025CoRe: Benchmarking LLMs Code Reasoning Capabilities through Static Analysis Tasks3 Jul
- 2025Code Execution as Grounded Supervision for LLM Reasoning12 Jun
- 2025KodCode: A Diverse, Challenging, and Verifiable Synthetic Dataset for Coding4 Mar
- 2025CodeI/O: Condensing Reasoning Patterns via Code Input-Output Prediction11 Feb
- 2024Qwen2.5-Coder Technical Report18 Sep
- 2024NExT: Teaching Large Language Models to Reason about Code Execution23 Apr
- 2024Reasoning Runtime Behavior of a Program with LLM: How Far Are We?25 Mar
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code12 Mar
- 2023Teaching Large Language Models to Self-Debug11 Apr
Other references · 19
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,057
- 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,464
- 2025Does Reinforcement Learning Really Incentivize Reasoning Capacity in LLMs Beyond the Base Model?cited by 982
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
- 2024A Survey on Large Language Models for Code Generationcited by 658
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
- 2025Process Reinforcement through Implicit Rewardscited by 504
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 361
- 2022The Stack: 3 TB of permissively licensed source codecited by 359
- 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 331
7 more
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 300
- 2023Magicoder: Empowering Code Generation with OSS-Instructcited by 256
- 2023TACO: Topics in Algorithmic COde generation datasetcited by 160
- 2025REASONING GYM: Reasoning Environments for Reinforcement Learning with Verifiable Rewardscited by 130
- 2022Two-stage LLM Fine-tuning with Less Specialization and More Generalizationcited by 41
- 2023Code Execution with Pre-trained Language Modelscited by 34
- 2025Selective Self-to-Supervised Fine-Tuning for Generalization in Large Language Modelscited by 9
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026Code as Agent Harnesscited by 47
- 2026Enhancing the Code Reasoning Capabilities of LLMs via Consistency-based Reinforcement Learningcited by 1
- 2026DiDPO: Diff-in-Diff Policy Optimization for Coding Agent Trainingcited by 1
- 2026Improving Large Language Models for Code through Runtime Program-State Reasoningcited by 0
- 2026Overlap, Unique and Conflict: Can LLMs Extract What They Can Recognize?cited by 0
- 2026ANTE: Anticipate, Then Execute -- Learning Internal World Models for Coding Agents from Verified Beliefscited by 0
- 2026ANTE: Anticipate, Then Execute -- Learning Internal World Models for Coding Agents from Verified Beliefs11 Oct 2026
- 2026Overlap, Unique and Conflict: Can LLMs Extract What They Can Recognize?30 Sep 2026
- 2026Improving Large Language Models for Code through Runtime Program-State Reasoning28 Sep 2026
- 2026DiDPO: Diff-in-Diff Policy Optimization for Coding Agent Training7 Aug 2026
- 2026Code as Agent Harness18 May 2026
- 2026Enhancing the Code Reasoning Capabilities of LLMs via Consistency-based Reinforcement Learning18 May 2026
Similar, not cited
Close in wording, no citation either way
- 2025CodeRL+: Improving Code Generation via Reinforcement with Execution Semantics Alignment
- 2026The Imitation Game: When LLMs Learn to Reason Like Programs via Code-Centric Reasoning Data Synthesis
- 2026StepCodeReasoner: Aligning Code Reasoning with Stepwise Execution Traces via Reinforcement Learning
- 2026Self-Execution Simulation Improves Coding Models
- 2025CodeReasoner: Enhancing the Code Reasoning Ability with Reinforcement Learning
- 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learning
- 2025R1-Code-Interpreter: LLMs Reason with Code via Supervised and Multi-stage Reinforcement Learning
- 2026When Do Intrinsic Rewards Work for Code Reasoning? A Comprehensive Study