Deep Reinforcement Learning for Programming Language Correction

By Rahul Gupta, Aditya Kanade, Shirish K. Shevade. 2018

34 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Control and Systems Engineering, Information Systems, Natural Language Processing, Reinforcement Learning

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Michihiro Yasunaga
  2. Percy Liang
  3. Mario Fritz
  4. Michele Tufano
  5. Hossein Hajipour
  6. Aditya Kanade
  7. Denys Poshyvanyk
  8. Luke S. Zettlemoyer

In Control and Systems Engineering

  1. Percy Liang
  2. Michihiro Yasunaga
  3. Mario Fritz
  4. Shirish K. Shevade

In Information Systems

  1. Michihiro Yasunaga
  2. Percy Liang
  3. Michele Tufano
  4. Denys Poshyvanyk
  5. Gabriele Bavota
  6. Mario Fritz
  7. Aditya Kanade
  8. Hossein Hajipour

In Natural Language Processing

  1. Michihiro Yasunaga
  2. Percy Liang
  3. Mario Fritz
  4. Michele Tufano
  5. Gabriele Bavota
  6. Denys Poshyvanyk
  7. Aditya Kanade
  8. Massimiliano Di Penta

In Reinforcement Learning

  1. Michihiro Yasunaga
  2. Percy Liang
  3. Mario Fritz
  4. Shirish K. Shevade
  5. Rahul Gupta
  6. Aditya Kanade
  7. Hossein Hajipour

Citations in the corpus