Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Jung, Dongwon, Zhou, Wenxuan, Chen, Muhao
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2506.10343
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866908600343986176
author Jung, Dongwon
Zhou, Wenxuan
Chen, Muhao
author_facet Jung, Dongwon
Zhou, Wenxuan
Chen, Muhao
contents Training large language models (LLMs) with chain-of-thought (CoT) supervision has proven effective for enhancing their reasoning abilities. However, obtaining reliable and accurate reasoning supervision remains a significant challenge. We propose a scalable method for generating a high-quality CoT supervision dataset by leveraging the determinism of program execution. Unlike existing reasoning dataset generation methods that rely on costly human annotations or error-prone LLM-generated CoT, our approach extracts verifiable, step-by-step reasoning traces from code execution and transforms them into a natural language CoT reasoning. Experiments on reasoning benchmarks across various domains show that our method effectively equips LLMs with transferable reasoning abilities across diverse tasks. Furthermore, the ablation studies validate that our method produces highly accurate reasoning data and reduces overall token length during inference by reducing meaningless repetition and overthinking.
format Preprint
id arxiv_https___arxiv_org_abs_2506_10343
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Code Execution as Grounded Supervision for LLM Reasoning
Jung, Dongwon
Zhou, Wenxuan
Chen, Muhao
Computation and Language
Artificial Intelligence
Training large language models (LLMs) with chain-of-thought (CoT) supervision has proven effective for enhancing their reasoning abilities. However, obtaining reliable and accurate reasoning supervision remains a significant challenge. We propose a scalable method for generating a high-quality CoT supervision dataset by leveraging the determinism of program execution. Unlike existing reasoning dataset generation methods that rely on costly human annotations or error-prone LLM-generated CoT, our approach extracts verifiable, step-by-step reasoning traces from code execution and transforms them into a natural language CoT reasoning. Experiments on reasoning benchmarks across various domains show that our method effectively equips LLMs with transferable reasoning abilities across diverse tasks. Furthermore, the ablation studies validate that our method produces highly accurate reasoning data and reduces overall token length during inference by reducing meaningless repetition and overthinking.
title Code Execution as Grounded Supervision for LLM Reasoning
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2506.10343