跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 程序设计语言

arXiv:2304.10500 (cs)
[提交于 2023年3月15日]

标题:Transformer Models for Type Inference in the Simply Typed Lambda Calculus: A Case Study in Deep Learning for Code

作者:Brando Miranda, Avi Shinnar, Vasily Pestun, Barry Trager
查看论文《Transformer Models for Type Inference in the Simply Typed Lambda Calculus: A Case Study in Deep Learning for Code》的 PDF
查看中文 PDF 查看原文 PDF EasyResearch 阅读
摘要:Despite a growing body of work at the intersection of deep learning and formal languages, there has been relatively little systematic exploration of transformer models for reasoning about typed lambda calculi. This is an interesting area of inquiry for two reasons. First, typed lambda calculi are the lingua franc of programming languages. A set of heuristics that relate various typed lambda calculi to effective neural architectures would provide a systematic method for mapping language features (e.g., polymorphism, subtyping, inheritance, etc.) to architecture choices. Second, transformer models are widely used in deep learning architectures applied to code, but the design and hyperparameter space for them is large and relatively unexplored in programming language applications. Therefore, we suggest a benchmark that allows us to explore exactly this through perhaps the simplest and most fundamental property of a programming language: the relationship between terms and types. Consequently, we begin this inquiry of transformer architectures for typed lambda calculi by exploring the effect of transformer warm-up and optimizer selection in the task of type inference: i.e., predicting the types of lambda calculus terms using only transformers. We find that the optimization landscape is difficult even in this simple setting. One particular experimental finding is that optimization by Adafactor converges much faster compared to the optimization by Adam and RAdam. We conjecture that such different performance of optimizers might be related to the difficulties of generalization over formally generated dataset.
评论: 22 pages
主题: 程序设计语言 (cs.PL); 人工智能 (cs.AI); 机器学习 (cs.LG); 计算机科学中的逻辑 (cs.LO); 符号计算 (cs.SC)
引用方式: arXiv:2304.10500 [cs.PL]
  (或者 arXiv:2304.10500v1 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2304.10500

提交历史

来自:Brando Miranda
[v1] 2023年3月15日 星期三 17:44:39 UTC
全文链接:

访问论文:

  • 查看中文 PDF
  • 查看原文 PDF
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.PL
< 上一篇   |   下一篇 >
最新 | 近期 | 2023-03
切换浏览方式为:
cs
cs.AI
cs.LG
cs.LO
cs.SC

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站