HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

Deep Reinforcement Learning for Programming Language Correction

Rahul Gupta; Aditya Kanade; Shirish Shevade

Deep Reinforcement Learning for Programming Language Correction

Abstract

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.

Code Repositories

terne/dtuproject
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
program-repair-on-deepfixRLAssist
Average Success Rate: 26.6

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Deep Reinforcement Learning for Programming Language Correction | Papers | HyperAI