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

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

计算机科学 > 机器学习

arXiv:2203.03771 (cs)
[提交于 2022年3月30日]

标题:Static Prediction of Runtime Errors by Learning to Execute Programs with External Resource Descriptions

作者:David Bieber, Rishab Goel, Daniel Zheng, Hugo Larochelle, Daniel Tarlow
查看论文《Static Prediction of Runtime Errors by Learning to Execute Programs with External Resource Descriptions》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:The execution behavior of a program often depends on external resources, such as program inputs or file contents, and so cannot be run in isolation. Nevertheless, software developers benefit from fast iteration loops where automated tools identify errors as early as possible, even before programs can be compiled and run. This presents an interesting machine learning challenge: can we predict runtime errors in a "static" setting, where program execution is not possible? Here, we introduce a real-world dataset and task for predicting runtime errors, which we show is difficult for generic models like Transformers. We approach this task by developing an interpreter-inspired architecture with an inductive bias towards mimicking program executions, which models exception handling and "learns to execute" descriptions of the contents of external resources. Surprisingly, we show that the model can also predict the location of the error, despite being trained only on labels indicating the presence/absence and kind of error. In total, we present a practical and difficult-yet-approachable challenge problem related to learning program execution and we demonstrate promising new capabilities of interpreter-inspired machine learning models for code.
评论: 20 pages, 7 figures
主题: 机器学习 (cs.LG); 程序设计语言 (cs.PL)
引用方式: arXiv:2203.03771 [cs.LG]
  (或者 arXiv:2203.03771v1 [cs.LG] 对于此版本)
  https://doi.org/10.48550/arXiv.2203.03771

提交历史

来自:David Bieber
[v1] 2022年3月30日 星期三 00:00:00 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

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

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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