Neuro-Symbolic Execution of Generic Source Code

Yaojie Hu, Jin Tian
3/23/2023
cs.AIcs.LG

No confident code implementation found for this paper.

Abstract

Can a Python program be executed statement-by-statement by neural networks composed according to the source code? We formulate the Neuro-Symbolic Execution Problem and introduce Neural Interpretation (NI), the first neural model for the execution of generic source code that allows missing definitions. NI preserves source code structure, where every variable has a vector encoding, and every function executes a neural network. NI is a novel neural model of computers with a compiler architecture that can assemble neural layers "programmed" by source code. NI is the first neural model capable of executing Py150 dataset programs, including library functions without concrete inputs, and it can be trained with flexible code understanding objectives. We demonstrate white-box execution without concrete inputs for variable misuse localization and repair.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{hu2023neurosymbolic,
  title  = {Neuro-Symbolic Execution of Generic Source Code},
  author = {Yaojie Hu and Jin Tian},
  year   = {2023},
  eprint = {2304.00989},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.00989v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.00989.svg)](https://codeofpaper.com/paper/2304.00989)

Discussion