计算机科学 > 计算与语言
[提交于 2021年12月10日]
标题:Towards Neural Functional Program Evaluation
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:This paper explores the capabilities of current transformer-based language models for program evaluation of simple functional programming languages. We introduce a new program generation mechanism that allows control over syntactic sugar for semantically equivalent programs. T5 experiments reveal that neural functional program evaluation performs surprisingly well, achieving high 90% exact program match scores for most in-distribution and out-of-distribution tests. Using pretrained T5 weights has significant advantages over random initialization. We present and evaluate on three datasets to study generalization abilities that are specific to functional programs based on: type, function composition, and reduction steps. Code and data are publicly available at https://github.com/ElementAI/neural-interpreters.
提交历史
来自:Torsten Scholak[v1] 2021年12月10日 星期五 00:00:00 UTC