Back to Search Start Over

Syntax-Guided Program Reduction for Understanding Neural Code Intelligence Models

Authors :
Rabin, Md Rafiqul Islam
Hussain, Aftab
Alipour, Mohammad Amin
Publication Year :
2022

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. 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.<br />Comment: The 6th ACM SIGPLAN International Symposium on Machine Programming (MAPS'22); Related to arXiv:2202.06474

Details

Database :
arXiv
Publication Type :
Report
Accession number :
edsarx.2205.14374
Document Type :
Working Paper
Full Text :
https://doi.org/10.1145/3520312.3534869