atlas

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

Scaling Code-Assisted Chain-of-Thoughts and Instructions for Model Reasoning

NeurIPS 2025 · Large language models › Reasoning and chain of thought · approach: Chain-of-thought training and analysis · 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.

Caco fine-tunes a code model (CodeGen) on executable code chain-of-thoughts, samples and verifies new code CoTs, then back-translates them into verified natural-language problems and CoTs to build a 1.3M-sample math instruction dataset.

Problem

Existing chain-of-thought data for LLM reasoning relies on natural-language traces that are hard to verify and expensive to scale, while prior code-assisted methods generalize poorly beyond predefined math problems.

Approach

Unify seed solutions as executable Python code templates, fine-tune an unconditional code generator on them to sample diverse new code CoTs, filter by execution, and reverse-translate the verified code into natural-language problems and language CoTs checked by answer-matching and CoT-consistency verification.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
increase generated training data from 596K to 1.3M (ablation)Caco on Qwen2.5-Math-7B · Average across math benchmarksaccuracy: 66.6 -> 67.7Helped
increase generated training data from 109K to 1.3M (ablation)Caco on LLaMA3-8B · Average across math benchmarksaccuracy: 46.7 -> 57.3Helped
add verification filtering to the training data pipeline (ablation)Caco-trained LLaMA · Math benchmarksaverage accuracy: 20.8 -> 21.8Helped
add verification filtering to the training data pipeline (ablation)Caco-trained LLaMA · OlympiadBench-Mathaccuracy: 18.7, outperforming its non-verified counterpart by 1.1 pointsHelped
use Caco-generated data instead of teacher-distilled natural-language CoTs at 300K samplesQwen-7B · Average across math benchmarksaccuracy: 65.5 -> 66.2Helped
scale Caco data from 300K to 1.3M samples (ablation)Qwen-7B · Average across math benchmarksaccuracy: 66.2 -> 67.7Helped
use Caco-generated data instead of seed self-improvement at 300K samplesDS-7B · Average across math benchmarksaccuracy: 48.9 -> 53.2Helped
use Caco-generated data instead of seed self-improvement at 300K samplesQwen-7B · Average across math benchmarksaccuracy: 52.6 -> 66.2Helped
train on Caco-1.3M instead of DartMathLLaMA3-8B · Average across math benchmarksaccuracy: 39.7 -> 57.3Helped
train on Caco-1.3M instead of Qwen2.5-Math-7B-InstructQwen2.5-Math-7B · Average across math benchmarksaccuracy: 63.6 -> 67.7Helped

Surprising findings

Limitations

Experimental setup

Datasets: MATH DeepScaleR BigMath KodCode MegaScience GSM8K CollegeMath DeepMind-Mathematics OlympiadBench TheoremQA

Benchmarks: MATH GSM8K CollegeMath DeepMind-Mathematics OlympiadBench-Math TheoremQA AIME24 HumanEval+ ARC-c BBH KorBench AGIEval

Metrics: Pass@1 accuracy average accuracy solvability ratio correctness ratio

Baselines: MetaMath MMIQC NuminaMath MathFusion RFT DART-Math LLaMA3-8B-Instruct Qwen2.5-Math-7B-Instruct DeepSeekMath-7B-RL

Builds on: DartMath MathFusion Program of Thoughts STaR

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