Unlock the Correlation between Supervised Fine-Tuning and Reinforcement Learning in Training Code Large Language Models
Jie Chen, Xintian Han, Yu Ma, Xun Zhou, Liang Xiang

TL;DR
This paper investigates the relationship between supervised fine-tuning and reinforcement learning in training large language models for code generation, revealing how RL enhances generalization and mitigates overfitting.
Contribution
It provides a systematic analysis of how SFT and RL interact, introduces a synthetic dataset creation method, and demonstrates RL's role in improving model generalization and reducing overfitting.
Findings
RL significantly improves SFT's generalization to target domains.
A small set of synthetic functions suffices for effective SFT.
Training RL from scratch reduces overfitting in fine-tuned models.
Abstract
Automatic code generation has been a longstanding research topic. With the advancement of general-purpose large language models (LLMs), the ability to code stands out as one important measure to the model's reasoning performance. Usually, a two-stage training paradigm is implemented to obtain a Code LLM, namely the pretraining and the fine-tuning. Within the fine-tuning, supervised fine-tuning (SFT), and reinforcement learning (RL) are often used to improve the model's zero-shot ability. A large number of work has been conducted to improve the model's performance on code-related benchmarks with either modifications to the algorithm or refinement of the dataset. However, we still lack a deep insight into the correlation between SFT and RL. For instance, what kind of dataset should be used to ensure generalization, or what if we abandon the SFT phase in fine-tuning. In this work, we make…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling
MethodsShrink and Fine-Tune
