Saved in:
Bibliographic Details
Main Authors: Wang, Sijie, Guo, Quanjiang, Zhao, Kai, Zhang, Yawei, Li, Xin, Li, Xiang, Li, Siqi, She, Rui, Yu, Shangshu, Tay, Wee Peng
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2508.05242
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908481021280256
author Wang, Sijie
Guo, Quanjiang
Zhao, Kai
Zhang, Yawei
Li, Xin
Li, Xiang
Li, Siqi
She, Rui
Yu, Shangshu
Tay, Wee Peng
author_facet Wang, Sijie
Guo, Quanjiang
Zhao, Kai
Zhang, Yawei
Li, Xin
Li, Xiang
Li, Siqi
She, Rui
Yu, Shangshu
Tay, Wee Peng
contents Code large language models (LLMs) have become indispensable tools for building efficient and automated coding pipelines. Existing models are typically post-trained using reinforcement learning (RL) from general-purpose LLMs using "human instruction-final answer" pairs, where the instructions are usually from manual annotations. However, collecting high-quality coding instructions is both labor-intensive and difficult to scale. On the other hand, code snippets are abundantly available from various sources. This imbalance presents a major bottleneck in instruction-based post-training. We propose CodeBoost, a post-training framework that enhances code LLMs purely from code snippets, without relying on human-annotated instructions. CodeBoost introduces the following key components: (1) maximum-clique curation, which selects a representative and diverse training corpus from code; (2) bi-directional prediction, which enables the model to learn from both forward and backward prediction objectives; (3) error-aware prediction, which incorporates learning signals from both correct and incorrect outputs; (4) heterogeneous augmentation, which diversifies the training distribution to enrich code semantics; and (5) heterogeneous rewarding, which guides model learning through multiple reward types including format correctness and execution feedback from both successes and failures. Extensive experiments across several code LLMs and benchmarks verify that CodeBoost consistently improves performance, demonstrating its effectiveness as a scalable and effective training pipeline.
format Preprint
id arxiv_https___arxiv_org_abs_2508_05242
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle CodeBoost: Boosting Code LLMs by Squeezing Knowledge from Code Snippets with RL
Wang, Sijie
Guo, Quanjiang
Zhao, Kai
Zhang, Yawei
Li, Xin
Li, Xiang
Li, Siqi
She, Rui
Yu, Shangshu
Tay, Wee Peng
Computation and Language
Code large language models (LLMs) have become indispensable tools for building efficient and automated coding pipelines. Existing models are typically post-trained using reinforcement learning (RL) from general-purpose LLMs using "human instruction-final answer" pairs, where the instructions are usually from manual annotations. However, collecting high-quality coding instructions is both labor-intensive and difficult to scale. On the other hand, code snippets are abundantly available from various sources. This imbalance presents a major bottleneck in instruction-based post-training. We propose CodeBoost, a post-training framework that enhances code LLMs purely from code snippets, without relying on human-annotated instructions. CodeBoost introduces the following key components: (1) maximum-clique curation, which selects a representative and diverse training corpus from code; (2) bi-directional prediction, which enables the model to learn from both forward and backward prediction objectives; (3) error-aware prediction, which incorporates learning signals from both correct and incorrect outputs; (4) heterogeneous augmentation, which diversifies the training distribution to enrich code semantics; and (5) heterogeneous rewarding, which guides model learning through multiple reward types including format correctness and execution feedback from both successes and failures. Extensive experiments across several code LLMs and benchmarks verify that CodeBoost consistently improves performance, demonstrating its effectiveness as a scalable and effective training pipeline.
title CodeBoost: Boosting Code LLMs by Squeezing Knowledge from Code Snippets with RL
topic Computation and Language
url https://arxiv.org/abs/2508.05242