亲爱的研友该休息了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!身体可是革命的本钱,早点休息,好梦!

CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learning

计算机科学 强化学习 水准点(测量) 正确性 编码(集合论) 编码器 人工智能 推论 语言模型 机器学习 程序设计语言 大地测量学 操作系统 集合(抽象数据类型) 地理
作者
H Le,Yue Wang,Akhilesh Gotmare,Silvio Savarese,Steven C. H. Hoi
出处
期刊:Cornell University - arXiv 被引量:59
标识
DOI:10.48550/arxiv.2207.01780
摘要

Program synthesis or code generation aims to generate a program that satisfies a problem specification. Recent approaches using large-scale pretrained language models (LMs) have shown promising results, yet they have some critical limitations. In particular, they often follow a standard supervised fine-tuning procedure to train a code generation model only from the pairs of natural-language problem descriptions and ground-truth programs. Such paradigm largely ignores some important but potentially useful signals in the problem specification such as unit tests, which thus often results in poor performance when solving complex unseen coding tasks. To address the limitations, we propose "CodeRL", a new framework for program synthesis tasks through pretrained LMs and deep reinforcement learning (RL). Specifically, during training, we treat the code-generating LM as an actor network, and introduce a critic network that is trained to predict the functional correctness of generated programs and provide dense feedback signals to the actor. During inference, we introduce a new generation procedure with a critical sampling strategy that allows a model to automatically regenerate programs based on feedback from example unit tests and critic scores. For the model backbones, we extended the encoder-decoder architecture of CodeT5 with enhanced learning objectives, larger model sizes, and better pretraining data. Our method not only achieves new SOTA results on the challenging APPS benchmark, but also shows strong zero-shot transfer capability with new SOTA results on the simpler MBPP benchmark.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
14秒前
caca完成签到,获得积分0
15秒前
思源应助凉水采纳,获得10
15秒前
花呗发布了新的文献求助10
19秒前
22秒前
pucca完成签到 ,获得积分10
23秒前
凉水发布了新的文献求助10
28秒前
凉水完成签到,获得积分10
37秒前
花呗完成签到,获得积分10
40秒前
47秒前
52秒前
1分钟前
1分钟前
单薄的蓝天完成签到,获得积分10
1分钟前
Lucas应助科研通管家采纳,获得10
1分钟前
Akim应助科研通管家采纳,获得10
1分钟前
无花果应助科研通管家采纳,获得10
1分钟前
Tiamo发布了新的文献求助10
1分钟前
SCI完成签到 ,获得积分10
1分钟前
乐乐应助科研圈外人采纳,获得10
2分钟前
开心的瘦子完成签到,获得积分10
2分钟前
CipherSage应助cc采纳,获得10
2分钟前
2分钟前
2分钟前
cc完成签到,获得积分10
2分钟前
2分钟前
芒果布丁完成签到 ,获得积分10
3分钟前
科研通AI5应助科研通管家采纳,获得10
3分钟前
享受不良诱惑完成签到,获得积分10
3分钟前
丫丫完成签到 ,获得积分10
3分钟前
3分钟前
Tiamo完成签到,获得积分10
3分钟前
yzsh完成签到,获得积分20
3分钟前
3分钟前
3分钟前
4分钟前
FFFF发布了新的文献求助20
4分钟前
4分钟前
Anna完成签到 ,获得积分10
4分钟前
FFFF完成签到,获得积分10
5分钟前
高分求助中
Pipeline and riser loss of containment 2001 - 2020 (PARLOC 2020) 1000
哈工大泛函分析教案课件、“72小时速成泛函分析:从入门到入土.PDF”等 660
Fermented Coffee Market 500
Theory of Dislocations (3rd ed.) 500
Comparing natural with chemical additive production 500
The Leucovorin Guide for Parents: Understanding Autism’s Folate 500
Phylogenetic study of the order Polydesmida (Myriapoda: Diplopoda) 500
热门求助领域 (近24小时)
化学 医学 生物 材料科学 工程类 有机化学 内科学 生物化学 物理 计算机科学 纳米技术 遗传学 基因 复合材料 化学工程 物理化学 病理 催化作用 免疫学 量子力学
热门帖子
关注 科研通微信公众号,转发送积分 5232636
求助须知:如何正确求助?哪些是违规求助? 4401913
关于积分的说明 13699440
捐赠科研通 4268297
什么是DOI,文献DOI怎么找? 2342513
邀请新用户注册赠送积分活动 1339514
关于科研通互助平台的介绍 1296180