Saved in:
Bibliographic Details
Main Authors: Xu, Bin, Lin, Yiguan, Li, Yinghao, Gao, Yang
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2411.11053
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918013776691200
author Xu, Bin
Lin, Yiguan
Li, Yinghao
Gao, Yang
author_facet Xu, Bin
Lin, Yiguan
Li, Yinghao
Gao, Yang
contents Large language models demonstrate exceptional performance in simple code generation tasks but still face challenges in tackling complex problems. These challenges may stem from insufficient reasoning and problem decomposition capabilities. To address this issue, we propose a reasoning-augmented data generation process, SRA-MCTS, which guides the model to autonomously generate high-quality intermediate reasoning paths. This creates a positive feedback loop, enabling continuous improvement. Our method operates entirely through the model itself without requiring additional supervision. By synthesizing natural language reasoning paths and translating them into executable code, the approach ensures analytical accuracy and enhances the success rate in solving complex tasks. Experimental results show that, even without additional supervisory signals, our method achieves performance improvements across different model scales, demonstrating the significant potential of self-improvement in small models. Furthermore, the method remains robust when traditional Chain-of-Thought (CoT) approaches exhibit performance degradation, with notable improvements observed in diversity metrics such as pass@10. We encourage further exploration of reasoning processes within training data to enhance the ability of language models to address complex problems. Our code and data are public at https://github.com/DIRECT-BIT/SRA-MCTS.
format Preprint
id arxiv_https___arxiv_org_abs_2411_11053
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle SRA-MCTS: Self-driven Reasoning Augmentation with Monte Carlo Tree Search for Code Generation
Xu, Bin
Lin, Yiguan
Li, Yinghao
Gao, Yang
Computation and Language
Artificial Intelligence
Large language models demonstrate exceptional performance in simple code generation tasks but still face challenges in tackling complex problems. These challenges may stem from insufficient reasoning and problem decomposition capabilities. To address this issue, we propose a reasoning-augmented data generation process, SRA-MCTS, which guides the model to autonomously generate high-quality intermediate reasoning paths. This creates a positive feedback loop, enabling continuous improvement. Our method operates entirely through the model itself without requiring additional supervision. By synthesizing natural language reasoning paths and translating them into executable code, the approach ensures analytical accuracy and enhances the success rate in solving complex tasks. Experimental results show that, even without additional supervisory signals, our method achieves performance improvements across different model scales, demonstrating the significant potential of self-improvement in small models. Furthermore, the method remains robust when traditional Chain-of-Thought (CoT) approaches exhibit performance degradation, with notable improvements observed in diversity metrics such as pass@10. We encourage further exploration of reasoning processes within training data to enhance the ability of language models to address complex problems. Our code and data are public at https://github.com/DIRECT-BIT/SRA-MCTS.
title SRA-MCTS: Self-driven Reasoning Augmentation with Monte Carlo Tree Search for Code Generation
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2411.11053