mlsanityData to 14 Oct 2026

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

arXiv 2203.03771 ↗First posted 7 Mar 2022cs.LG cs.PLcited by 11

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Builds on 30 of its 58 references that are in the map. First posted on arXiv 7 Mar 2022.

Builds on

30 of 58 references.

References · 30

  1. 2017Attention Is All You Needcited by 60,361
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  3. 2021Program Synthesis with Large Language Modelscited by 3,637
  4. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
  5. 2017FiLM: Visual Reasoning with a General Conditioning Layercited by 2,333
  6. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
  7. 2021Measuring Coding Challenge Competence With APPScited by 902
  8. 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 886
  9. 2016Training Deep Nets with Sublinear Memory Costcited by 848
  10. 2015Gated Graph Sequence Neural Networkscited by 796
  11. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
  12. 2014Neural Turing Machinescited by 644
18 more
  1. 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 272
  2. 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 221
  3. 2017Learning to Represent Programs with Graphscited by 220
  4. 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 200
  5. 2015Neural GPUs Learn Algorithmscited by 121
  6. 2014Learning to Executecited by 106
  7. 2015Neural Programmer-Interpreterscited by 101
  8. 2018DeepBugs: A Learning Approach to Name-based Bug Detectioncited by 65
  9. 2021Self-Supervised Bug Detection and Repaircited by 59
  10. 2019Neural Program Repair by Jointly Learning to Localize and Repaircited by 40
  11. 2019How Often Do Single-Statement Bugs Occur? The ManySStuBs4J Datasetcited by 36
  12. 2020Learning to Execute Programs with Instruction Pointer Attention Graph Neural Networkscited by 35
  13. 2016Programming with a Differentiable Forth Interpretercited by 33
  14. 2016Differentiable Programs with Neural Librariescited by 30
  15. 2020Representing Partial Programs with Blended Abstract Semanticscited by 14
  16. 2021Learning to Combine Per-Example Solutions for Neural Program Synthesiscited by 8
  17. 2018Comparing the Max and Noisy-Or Pooling Functions in Multiple Instance Learning for Weakly Supervised Sequence Learning Taskscited by 3
  18. 2021Beep: Fine-grained Fix Localization by Learning to Predict Buggy Code Elementscited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2022: 1; 2023: 4; 2024: 3; 2025: 1; 2026: 2.

11 papers.