Syntax-Guided Program Reduction for Understanding Neural Code Intelligence Models

Md Rafiqul Islam Rabin, Aftab Hussain, Mohammad Amin Alipour
5/28/2022
26 citations
cs.SEcs.LGcs.PL

Official code: mdrafiqulrabin/CI-DD-Perses (2 stars, Python, MIT, last commit 2022-10-04).

Abstract

Neural code intelligence (CI) models are opaque black-boxes and offer little insight on the features they use in making predictions. This opacity may lead to distrust in their prediction and hamper their wider adoption in safety-critical applications.

Show full abstract

Recently, input program reduction techniques have been proposed to identify key features in the input programs to improve the transparency of CI models. However, this approach is syntax-unaware and does not consider the grammar of the programming language. In this paper, we apply a syntax-guided program reduction technique that considers the grammar of the input programs during reduction. Our experiments on multiple models across different types of input programs show that the syntax-guided program reduction technique is faster and provides smaller sets of key tokens in reduced programs. We also show that the key tokens could be used in generating adversarial examples for up to 65% of the input programs.

View on arXivView PDF

Code Implementations(1)

MIT

MAPS(Co-PLDI)'22: DD/Perses with CI

23Python, ShellMay 4, 20224 years agoMIT

Similar Papers

Cite this paper

@article{rabin2022syntaxguided,
  title  = {Syntax-Guided Program Reduction for Understanding Neural Code Intelligence Models},
  author = {Md Rafiqul Islam Rabin and Aftab Hussain and Mohammad Amin Alipour},
  year   = {2022},
  eprint = {2205.14374},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.14374}
}

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

Discussion