atlas

Research map / Large language models / Reasoning and chain of thought

StepCodeReasoner: Aligning Code Reasoning with Stepwise Execution Traces via Reinforcement Learning

ICML 2026 · Large language models › Reasoning and chain of thought · approach: Test-time compute scaling · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes StepCodeReasoner, which inserts print-based execution-trace anchors into Python code and trains a Qwen2.5-Coder-7B model with SFT then Bi-Level GRPO (group-relative plus intra-trajectory stepwise rewards) to predict intermediate states and outputs for code reasoning.

Problem

Code reasoning methods supervise only final outputs, so models can reach correct answers through inconsistent intermediate execution reasoning (reward hacking / right answer, wrong logic).

Approach

Insert deterministic print-based execution anchors via a teacher LLM so each intermediate state is verifiable against an interpreter, and combine group-relative stepwise advantages with an intra-trajectory shaping term that credits steps by downstream correctness.

Key results

Surprising findings

Limitations

Experimental setup

Datasets: CodeReasoner training data CRUXEval LiveCodeBench REval HumanEval MBPP

Benchmarks: CRUXEval LiveCodeBench REval HumanEval MBPP

Metrics: pass@1 accuracy step accuracy

Baselines: GPT-4o GPT-4o-mini Qwen2.5-72B-Instruct Llama3-70B-Instruct Qwen2.5-Coder-32B-Instruct Qwen3-Coder-30B-A3B-Instruct SemCoder CodeI/O CodeReasoner

Builds on: GRPO CodeReasoner Step-GRPO

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy