Proceedings of the AAAI Conference on Artificial Intelligence · 2020 · 115 citations · 33 references
ComputingComputer EngineeringComputer ScienceMachine LearningNatural Language ProcessingProgramming LanguagesDeep LearningGenerative ModelingAdversarial ExamplesAdversarial RobustnessIdentifier RenamingRobustness
Automated source code processing is essential in software development, yet state‑of‑the‑art deep learning models are vulnerable to adversarial attacks, a problem exacerbated by the structured nature of programming languages. The authors propose a Metropolis‑Hastings sampling‑based identifier renaming technique, \fullmethod (\method), to generate adversarial examples for deep learning models that process source code. The technique applies Metropolis‑Hastings sampling to systematically rename identifiers in source code, creating adversarial examples that challenge DL models. Evaluation on a functionality classification benchmark shows that \method effectively generates adversarial source code, and adversarial training with these examples improves model robustness and performance.
Automated processing, analysis, and generation of source code are among the key activities in software and system lifecycle. To this end, while deep learning (DL) exhibits a certain level of capability in handling these tasks, the current state-of-the-art DL models still suffer from non-robust issues and can be easily fooled by adversarial attacks.Different from adversarial attacks for image, audio, and natural languages, the structured nature of programming languages brings new challenges. In this paper, we propose a Metropolis-Hastings sampling-based identifier renaming technique, named \fullmethod (\method), which generates adversarial examples for DL models specialized for source code processing. Our in-depth evaluation on a functionality classification benchmark demonstrates the effectiveness of \method in generating adversarial examples of source code. The higher robustness and performance enhanced through our adversarial training with \method further confirms the usefulness of DL models-based method for future fully automated source code processing.
33
Equation of State Calculations by Fast Computing Machines
N. Metropolis, Arianna W. Rosenbluth, M. N. Rosenbluth et al. · The Journal of Chemical Physics · 1953 · 37.1K citations
Monte Carlo sampling methods using Markov chains and their applications
W. Keith Hastings · Biometrika · 1970 · 15.2K citations
Explaining and Harnessing Adversarial Examples
Ian Goodfellow, Jonathon Shlens, Christian Szegedy · arXiv (Cornell University) · 2014 · 8.2K citations · Full text
Intriguing properties of neural networks
Christian Szegedy, Wojciech Zaremba, Ilya Sutskever et al. · arXiv (Cornell University) · 2013 · 5.7K citations · Full text
The Limitations of Deep Learning in Adversarial Settings
Nicolas Papernot, Patrick McDaniel, Somesh Jha et al. · 2016 · 3.9K citations