2022

Compilable Neural Code Generation with Compiler Feedback

Wang, Xin, Wang, Yasheng, Wan, Yao et al.

Understand

Automatically generating compilable programs with (or without) natural language descriptions has always been a touchstone problem for computational linguistics and automated software engineering.

  • Existing deep-learning approaches model code generation as text generation, either constrained by grammar structures in decoder, or driven by pre-trained language models on large-scale code corpus (e.g., CodeGPT, PLBART, and CodeT5).
  • However, few of them account for compilability of the generated programs.
  • To improve compilability of the generated programs, this paper proposes COMPCODER, a three-stage pipeline utilizing compiler feedback for compilable code generation, including language model fine-tuning, compilability reinforcement, and compilability discrimination.

Reading the bibliography…