Chain of Execution Supervision Promotes General Reasoning in Large Language Models

Nuo Chen, Ze-Hua Li, Ke-Qin Bao, Jun-Yang Lin, Dayiheng Liu
10/1/2025

No confident code implementation found for this paper.

Abstract

Building robust and general reasoning ability is a central goal in the development of large language models (LLMs). Recent efforts increasingly turn to code as a rich training source, given its inherent logical structure and diverse reasoning paradigms such as divide-and-conquer, topological ordering, and enumeration.

Show full abstract

However, reasoning in code is often expressed implicitly and entangled with syntactic or implementation noise, making direct training on raw code suboptimal.To address this, we introduce TracePile, a large-scale corpus of 2.6 million samples that transforms code execution into explicit, step-by-step chain-of-thought-style rationales, which we call Chain of Execution (CoE). The corpus spans domains including mathematics, classical algorithms and algorithmic competition, and is enriched with variable-tracing questions and code rewritings to enhance logical granularity and code diversity. We evaluate TracePile using three training setups: continue-pretraining, instruction tuning after pretraining, and two-stage finetuning. Experiments across four base models (LLaMA 3, LLaMA 3.1, Qwen-2.5, and Qwen-2.5 Coder) and 20 benchmarks covering math, code, logic, and algorithms demonstrate consistent improvements. Notably, TracePile boosts LLaMA3.1-8B by 7.1\% on average across nine math datasets and delivers clear gains on LiveCodeBench, CRUX, and MMLU under two-stage fine-tuning.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chen2025chain,
  title  = {Chain of Execution Supervision Promotes General Reasoning in Large Language Models},
  author = {Nuo Chen and Ze-Hua Li and Ke-Qin Bao and Jun-Yang Lin and Dayiheng Liu},
  year   = {2025},
  eprint = {2510.23629},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2510.23629},
  url    = {https://doi.org/10.48550/arXiv.2510.23629},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.23629.svg)](https://codeofpaper.com/paper/2510.23629)

Discussion