2022

Fix Bugs with Transformer through a Neural-Symbolic Edit Grammar

Hu, Yaojie, Shi, Xingjian, Zhou, Qiang et al.

Understand

We introduce NSEdit (neural-symbolic edit), a novel Transformer-based code repair method.

  • Given only the source code that contains bugs, NSEdit predicts an editing sequence that can fix the bugs.
  • The edit grammar is formulated as a regular language, and the Transformer uses it as a neural-symbolic scripting interface to generate editing programs.
  • We modify the Transformer and add a pointer network to select the edit locations.

Reading the bibliography…