用于代码生成的潜在预测器网络
Latent Predictor Networks for Code Generation
摘要:
许多语言生成任务需要在结构化和非结构化输入的条件下生成文本。我们提出了一种新的神经网络架构,它产生一个输出序列的任意数量的输入函数的条件。至关重要的是,我们的方法允许条件上下文的选择和生成的粒度,例如字符或令牌,被边缘化,从而允许可扩展和有效的训练。使用这个框架,我们解决的问题,从一个混合的自然语言和结构化规范生成编程代码。我们创建了两个新的数据集,这个范例来自收集交易卡游戏魔术的聚会和炉石传说。在这些和第三个预先存在的语料库中,我们证明了边缘化多个预测因子可以使我们的模型优于强大的基准。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。