Type-Driven Neural Programming by Example

Abstract

We propose a method to incorporate programming types into a neural program synthesis approach for programming by example (PBE). We introduce Typed Neuro-Symbolic Program Synthesis (TNSPS), and test it in a functional programming context to empirically verify whether type information helps to improve generalization in neural synthesizers on limited-size datasets. Our TNSPS model builds upon the existing Neuro-Symbolic Program Synthesis (NSPS) model, by incorporating information on types of input-output examples, of grammar production rules, as well as of the next node to expand in the program. Additionally, we introduce a generation method for programs written in a limited subset of the Haskell language. Our experiments show that incorporating type information using TNSPS improves the accuracy of the synthesized programs. This suggests that hybrid approaches that use both neural synthesis and strong type-checking is a fruitful research line.

Cite

Text

Grouwstra and van Krieken. "Type-Driven Neural Programming by Example." NeurIPS 2020 Workshops: CAP, 2020.

Markdown

[Grouwstra and van Krieken. "Type-Driven Neural Programming by Example." NeurIPS 2020 Workshops: CAP, 2020.](https://mlanthology.org/neuripsw/2020/grouwstra2020neuripsw-typedriven/)

BibTeX

@inproceedings{grouwstra2020neuripsw-typedriven,
  title     = {{Type-Driven Neural Programming by Example}},
  author    = {Grouwstra, Kiara and van Krieken, Emile},
  booktitle = {NeurIPS 2020 Workshops: CAP},
  year      = {2020},
  url       = {https://mlanthology.org/neuripsw/2020/grouwstra2020neuripsw-typedriven/}
}