计算机科学 > 软件工程
[提交于 2020年4月15日 (v1),最后修订于 2021年3月18日 (此版本, v2)]
标题:Evaluation of Generalizability of Neural Program Analyzers under Semantic-Preserving Transformations
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:The abundance of publicly available source code repositories, in conjunction with the advances in neural networks, has enabled data-driven approaches to program analysis. These approaches, called neural program analyzers, use neural networks to extract patterns in the programs for tasks ranging from development productivity to program reasoning. Despite the growing popularity of neural program analyzers, the extent to which their results are generalizable is unknown. In this paper, we perform a large-scale evaluation of the generalizability of two popular neural program analyzers using seven semantically-equivalent transformations of programs. Our results caution that in many cases the neural program analyzers fail to generalize well, sometimes to programs with negligible textual differences. The results provide the initial stepping stones for quantifying robustness in neural program analyzers.