Code Vectors: Understanding Programs Through Embedded Abstracted Symbolic Traces

Jordan Henkel, Shuvendu K. Lahiri, Ben Liblit, Thomas Reps
3/18/2018
cs.SE

Official code: jjhenkel/code-vectors-artifact (22 stars, Python, MIT, last commit 2020-06-05).

Abstract

With the rise of machine learning, there is a great deal of interest in treating programs as data to be fed to learning algorithms. However, programs do not start off in a form that is immediately amenable to most off-the-shelf learning techniques.

Show full abstract

Instead, it is necessary to transform the program to a suitable representation before a learning technique can be applied. In this paper, we use abstractions of traces obtained from symbolic execution of a program as a representation for learning word embeddings. We trained a variety of word embeddings under hundreds of parameterizations, and evaluated each learned embedding on a suite of different tasks. In our evaluation, we obtain 93% top-1 accuracy on a benchmark consisting of over 19,000 API-usage analogies extracted from the Linux kernel. In addition, we show that embeddings learned from (mainly) semantic abstractions provide nearly triple the accuracy of those learned from (mainly) syntactic abstractions.

View on arXivView PDF

Code Implementations(1)

MIT

Artifacts and other data for "Code Vectors: Understanding Programs Through Embedded Abstraced Symbolic Traces"

229Python, MakefileFeb 21, 20186 years agoMIT

Similar Papers

Cite this paper

@article{henkel2018code,
  title  = {Code Vectors: Understanding Programs Through Embedded Abstracted Symbolic Traces},
  author = {Jordan Henkel and Shuvendu K. Lahiri and Ben Liblit and Thomas Reps},
  year   = {2018},
  eprint = {1803.06686},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1803.06686}
}

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/1803.06686.svg)](https://codeofpaper.com/paper/1803.06686)

Discussion