Latent Predictor Networks for Code Generation

Wang Ling, Edward Grefenstette, Karl Moritz Hermann, Tomáš Kočiský, Andrew Senior +2 more
3/22/2016
cs.CLcs.NE

Official code: google-deepmind/card2code (246 stars, last commit 2017-12-08).

Abstract

Many language generation tasks require the production of text conditioned on both structured and unstructured inputs. We present a novel neural network architecture which generates an output sequence conditioned on an arbitrary number of input functions. Crucially, our approach allows both the choice of conditioning context and the granularity of generation, for example characters or tokens, to be marginalised, thus permitting scalable and effective training. Using this framework, we address the problem of generating programming code from a mixed natural language and structured specification. We create two new data sets for this paradigm derived from the collectible trading card games Magic the Gathering and Hearthstone. On these, and a third preexisting corpus, we demonstrate that marginalising multiple predictors allows our model to outperform strong benchmarks.

View on arXivView PDF

Code Implementations(1)

A code generation dataset for generating the code that implements Hearthstone and Magic The Gathering card effects.

24635Nov 10, 20168 years agoNOASSERTION

Similar Papers

Cite this paper

@article{ling2016latent,
  title  = {Latent Predictor Networks for Code Generation},
  author = {Wang Ling and Edward Grefenstette and Karl Moritz Hermann and Tomáš Kočiský and Andrew Senior and Fumin Wang and Phil Blunsom},
  year   = {2016},
  eprint = {1603.06744},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1603.06744}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1603.06744.svg)](https://codeofpaper.com/paper/1603.06744)

Discussion