arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1801.10467cs.AIcs.PLcs.SE
收藏

用于程序设计语言纠错的深度强化学习

Deep Reinforcement Learning for Programming Language Correction

Department of Computer Science and Automation(计算机科学与自动化系);Indian Institute of Science(印度科学研究所)

Rahul Gupta, Aditya Kanade, Shirish Shevade

摘要:

新手程序员经常为程序设计语言的形式语法而苦恼。为了帮助他们,我们设计了一个新的程序设计语言校正框架服从强化学习。该框架允许代理模仿人类的文本导航和编辑操作。我们证明,代理可以通过自我探索直接从原始输入,即程序文本本身,没有任何知识的正式语法的程序设计语言的培训。我们利用专家演示十分之一的训练数据来加速训练。建议的技术进行评估6975错误的C程序与排版错误,写的学生在介绍编程课程。我们的技术修复了14%以上的程序和29%以上的编译器错误消息,相对于使用完全监督神经机器翻译方法的最先进的工具DeepFix。

英文摘要:

Novice programmers often struggle with the formal syntax of programming languages. To assist them, we design a novel programming language correction framework amenable to reinforcement learning. The framework allows an agent to mimic human actions for text navigation and editing. We demonstrate that the agent can be trained through self-exploration directly from the raw input, that is, program text itself, without any knowledge of the formal syntax of the programming language. We leverage expert demonstrations for one tenth of the training data to accelerate training. The proposed technique is evaluated on 6975 erroneous C programs with typographic errors, written by students during an introductory programming course. Our technique fixes 14% more programs and 29% more compiler error messages relative to those fixed by a state-of-the-art tool, DeepFix, which uses a fully supervised neural machine translation approach.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑