mlsanityData to 14 Oct 2026

ExecVerify: White-Box RL with Verifiable Stepwise Rewards for Code Execution Reasoning

arXiv 2603.11226 ↗First posted 11 Mar 2026cs.SEcited by 6

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

  1. 2025Chain of Execution Supervision Promotes General Reasoning in Large Language Models24 Oct
  2. 2025CoRe: Benchmarking LLMs Code Reasoning Capabilities through Static Analysis Tasks3 Jul
  3. 2025Code Execution as Grounded Supervision for LLM Reasoning12 Jun
  4. 2025KodCode: A Diverse, Challenging, and Verifiable Synthetic Dataset for Coding4 Mar
  5. 2025CodeI/O: Condensing Reasoning Patterns via Code Input-Output Prediction11 Feb
  6. 2024Qwen2.5-Coder Technical Report18 Sep
  7. 2024NExT: Teaching Large Language Models to Reason about Code Execution23 Apr
  8. 2024Reasoning Runtime Behavior of a Program with LLM: How Far Are We?25 Mar
  9. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code12 Mar
  10. 2023Teaching Large Language Models to Self-Debug11 Apr

Other references · 19

  1. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
  2. 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,057
  3. 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,464
  4. 2025Does Reinforcement Learning Really Incentivize Reasoning Capacity in LLMs Beyond the Base Model?cited by 982
  5. 2021Measuring Coding Challenge Competence With APPScited by 902
  6. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
  7. 2024A Survey on Large Language Models for Code Generationcited by 658
  8. 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
  9. 2025Process Reinforcement through Implicit Rewardscited by 504
  10. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 361
  11. 2022The Stack: 3 TB of permissively licensed source codecited by 359
  12. 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 331
7 more
  1. 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 300
  2. 2023Magicoder: Empowering Code Generation with OSS-Instructcited by 256
  3. 2023TACO: Topics in Algorithmic COde generation datasetcited by 160
  4. 2025REASONING GYM: Reasoning Environments for Reinforcement Learning with Verifiable Rewardscited by 130
  5. 2022Two-stage LLM Fine-tuning with Less Specialization and More Generalizationcited by 41
  6. 2023Code Execution with Pre-trained Language Modelscited by 34
  7. 2025Selective Self-to-Supervised Fine-Tuning for Generalization in Large Language Modelscited by 9

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 6.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025CodeRL+: Improving Code Generation via Reinforcement with Execution Semantics Alignment
  2. 2026The Imitation Game: When LLMs Learn to Reason Like Programs via Code-Centric Reasoning Data Synthesis
  3. 2026StepCodeReasoner: Aligning Code Reasoning with Stepwise Execution Traces via Reinforcement Learning
  4. 2026Self-Execution Simulation Improves Coding Models
  5. 2025CodeReasoner: Enhancing the Code Reasoning Ability with Reinforcement Learning
  6. 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learning
  7. 2025R1-Code-Interpreter: LLMs Reason with Code via Supervised and Multi-stage Reinforcement Learning
  8. 2026When Do Intrinsic Rewards Work for Code Reasoning? A Comprehensive Study