mlsanityData to 7 Oct 2026

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

arXiv 2510.04081 ↗First posted 5 Oct 2025cs.CL cs.PLcited by 10

On the map: LLM reasoning → Prompting and chain-of-thought reasoning

Abstract (arXiv)

Reasoning capability is pivotal for Large Language Models (LLMs) to solve complex tasks, yet achieving reliable and scalable reasoning remains challenging. While Chain-of-Thought (CoT) prompting has become a mainstream approach, existing methods often suffer from uncontrolled generation, insufficient quality, and limited diversity in reasoning paths. Recent efforts leverage code to enhance CoT by grounding reasoning in executable steps, but such methods are typically constrained to predefined mathematical problems, hindering scalability and generalizability. In this work, we propose Caco (Code-Assisted Chain-of-ThOught), a novel framework that automates the synthesis of high-quality, verifiable, and diverse instruction-CoT reasoning data through code-driven augmentation. Unlike prior work, Caco first fine-tunes a code-based CoT generator on existing math and programming solutions in a unified code format, then scales the data generation to a large amount of diverse reasoning traces. Crucially, we introduce automated validation via code execution and rule-based filtering to ensure logical correctness and structural diversity, followed by reverse-engineering filtered outputs into natural language instructions and language CoTs to enrich task adaptability. This closed-loop process enables fully automated, scalable synthesis of reasoning data with guaranteed executability. Experiments on our created Caco-1.3M dataset demonstrate that Caco-trained models achieve strong competitive performance on mathematical reasoning benchmarks, outperforming existing strong baselines. Further analysis reveals that Caco's code-anchored verification and instruction diversity contribute to superior generalization across unseen tasks. Our work establishes a paradigm for building self-sustaining, trustworthy reasoning systems without human intervention.

Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Placed in Prompting and chain-of-thought reasoning, one of 17 directions in LLM reasoning. Builds on 23 of its 51 references that are in the map. First posted on arXiv 5 Oct 2025.

Builds on

23 of 51 references.

Closest ancestors · 1

Same direction, newest first

  1. 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Tasks22 Nov

Other references · 22

  1. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  2. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
  3. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
  4. 2017Decoupled Weight Decay Regularizationcited by 1,722
  5. 2024OlympiadBench: A Challenging Benchmark for Promoting AGI with Olympiad-Level Bilingual Multimodal Scientific Problemscited by 1,099
  6. 2024Qwen2.5-Math Technical Report: Toward Mathematical Expert Model via Self-Improvementcited by 1,057
  7. 2025rStar-Math: Small LLMs Can Master Math Reasoning with Self-Evolved Deep Thinkingcited by 308
  8. 2024Accessing GPT-4 level Mathematical Olympiad Solutions via Monte Carlo Tree Self-refine with LLaMa-3 8Bcited by 156
  9. 2024Orca-Math: Unlocking the potential of SLMs in Grade School Mathcited by 151
  10. 2024MAmmoTH2: Scaling Instructions from the Webcited by 143
  11. 2025KodCode: A Diverse, Challenging, and Verifiable Synthetic Dataset for Codingcited by 115
  12. 2025Big-Math: A Large-Scale, High-Quality Math Dataset for Reinforcement Learning in Language Modelscited by 104
10 more
  1. 2024MathGenie: Generating Synthetic Data with Question Back-translation for Enhancing Mathematical Reasoning of LLMscited by 72
  2. 2024Key-Point-Driven Data Synthesis with its Enhancement on Mathematical Reasoningcited by 58
  3. 2025CodeI/O: Condensing Reasoning Patterns via Code Input-Output Predictioncited by 54
  4. 2025MegaMath: Pushing the Limits of Open Math Corporacited by 47
  5. 2024MathCoder2: Better Math Reasoning from Continued Pretraining on Model-translated Mathematical Codecited by 39
  6. 2025MathFusion: Enhancing Mathematical Problem-solving of LLM through Instruction Fusioncited by 30
  7. 2024Unleashing LLM Reasoning Capability via Scalable Question Synthesis from Scratchcited by 24
  8. 2024DotaMath: Decomposition of Thought with Code Assistance and Self-correction for Mathematical Reasoningcited by 19
  9. 2025MetaLadder: Ascending Mathematical Solution Quality via Analogical-Problem Reasoning Transfercited by 6
  10. 2023Abstract Syntax Tree for Programming Language Understanding and Representation: How Far Are We?cited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 9.

10 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Hierarchical Chain-of-Thought: Enhancing LLM Reasoning Performance and Efficiency
  2. 2024To CoT or not to CoT? Chain-of-thought helps mainly on math and symbolic reasoning
  3. 2022Large Language Models Are Reasoning Teachers
  4. 2023Automatic Prompt Augmentation and Selection with Chain-of-Thought from Labeled Data
  5. 2024Break the Chain: Large Language Models Can be Shortcut Reasoners
  6. 2025CoT-RAG: Integrating Chain of Thought and Retrieval-Augmented Generation to Enhance Reasoning in Large Language Models
  7. 2025Understanding Chain-of-Thought Effectiveness in Code Generation: An Empirical and Information-Theoretic Analysis
  8. 2022Towards Understanding Chain-of-Thought Prompting: An Empirical Study of What Matters