已入深夜,您辛苦了!由于当前在线用户较少,发布求助请尽量完整的填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!祝你早点完成任务,早点休息,好梦!

PCR-Chain: Partial Code Reuse Assisted by Hierarchical Chaining of Prompts on Frozen Copilot

计算机科学 任务(项目管理) 抽象语法树 编码(集合论) 代码重用 背景(考古学) 语法 连锁 重新使用 文档 程序设计语言 人工智能 软件 工程类 古生物学 系统工程 集合(抽象数据类型) 生物 废物管理 心理学 心理治疗师
作者
Qing Huang,Jianguo Zhu,Zhilong Li,Zhenchang Xing,Changjing Wang,Xiwei Xu
标识
DOI:10.1109/icse-companion58688.2023.00013
摘要

API documentation, technical blogs and programming Q&A sites contain a large amount of partial code that can be reused in programming tasks. However, due to unresolved simple names and last-mile syntax errors, such partial code is frequently not compilable. To facilitate partial code reuse, we develop PCR-Chain for resolving FQNs and fixing last-mile syntax errors in partial code based on a giant pre-trained code model (e.g., Copilot). Methodologically, PCR-Chain is backed up by the underlying global-level prompt architecture (which combines three design ideas: hierarchical task breakdown, prompt composition including sequential and conditional structures, and a mix of prompt-based AI and non-AI units) and the local-level prompt design. Technically, we propose PCR-Chain, which employs in-context learning rather than supervised fine-tuning with gradient updates on downstream task data. This approach enables the frozen, giant pre-trained code model to learn the desired behavior for a specific task through behavior-describing prompts and imitate it to complete the task. Experimental results show that PCR-Chain automatically resolves the FQNs and fixes last-mile syntax errors in 50 partial code samples collected from Stack Overflow with high success rates, without requiring any program analysis. The correct execution of the unit, module, and PCR-Chain demonstrates the effectiveness of the prompt design, prompt composition, and prompt architecture. Website:https://github.com/SE-qinghuang/PCR-ChainDemoVideo: https://youtu.be/6HGRNc2JE
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
大幅提高文件上传限制,最高150M (2024-4-1)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
2秒前
yk完成签到,获得积分10
5秒前
英姑应助科研通管家采纳,获得10
7秒前
科目三应助科研通管家采纳,获得10
7秒前
FashionBoy应助科研通管家采纳,获得10
7秒前
SciGPT应助科研通管家采纳,获得10
7秒前
汉堡包应助科研通管家采纳,获得10
7秒前
白小黑发布了新的文献求助10
8秒前
碧蓝的乐荷完成签到,获得积分10
10秒前
59发布了新的文献求助10
15秒前
16秒前
我要发一区完成签到 ,获得积分10
16秒前
Tonsil01发布了新的文献求助10
20秒前
21秒前
21秒前
yk发布了新的文献求助10
21秒前
monica发布了新的文献求助10
25秒前
斯文败类应助pilgrim53采纳,获得30
28秒前
Akim应助123456采纳,获得10
29秒前
认真的寒香完成签到 ,获得积分10
30秒前
温暖小松鼠完成签到 ,获得积分10
32秒前
wanci应助Tonsil01采纳,获得10
34秒前
酷波er应助pilgrim53采纳,获得30
36秒前
37秒前
扶石完成签到,获得积分10
38秒前
38秒前
眼药水发布了新的文献求助10
40秒前
势临完成签到,获得积分10
41秒前
42秒前
kustmustshnu发布了新的文献求助10
43秒前
流年完成签到,获得积分10
43秒前
46秒前
46秒前
爆米花应助monica采纳,获得10
46秒前
46秒前
可可发布了新的文献求助10
46秒前
luha完成签到 ,获得积分10
47秒前
正直十三发布了新的文献求助10
49秒前
50秒前
roser完成签到 ,获得积分10
50秒前
高分求助中
Teaching Social and Emotional Learning in Physical Education 900
Plesiosaur extinction cycles; events that mark the beginning, middle and end of the Cretaceous 800
Recherches Ethnographiques sue les Yao dans la Chine du Sud 500
Two-sample Mendelian randomization analysis reveals causal relationships between blood lipids and venous thromboembolism 500
Chinese-English Translation Lexicon Version 3.0 500
[Lambert-Eaton syndrome without calcium channel autoantibodies] 440
Wisdom, Gods and Literature Studies in Assyriology in Honour of W. G. Lambert 400
热门求助领域 (近24小时)
化学 材料科学 医学 生物 有机化学 工程类 生物化学 纳米技术 物理 内科学 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 电极 光电子学 量子力学
热门帖子
关注 科研通微信公众号,转发送积分 2390111
求助须知:如何正确求助?哪些是违规求助? 2096227
关于积分的说明 5280421
捐赠科研通 1823493
什么是DOI,文献DOI怎么找? 909537
版权声明 559645
科研通“疑难数据库(出版商)”最低求助积分说明 486017