arXiv · 2002.03043
Semantic Robustness of Models of Source Code
Abstract
Deep neural networks are vulnerable to adversarial examples - small input perturbations that result in incorrect predictions. We study this problem for models of source code, where we want the network to be robust to source-code modifications that preserve code functionality. (1) We define a powerful adversary that can employ sequences of parametric, semantics-preserving program transformations; (2) we show how to perform adversarial training to learn models robust to such adversaries; (3) we conduct an evaluation on different languages and architectures, demonstrating significant quantitative gains in robustness.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Goutham Ramakrishnan, Jordan Henkel, Zi Wang, Aws Albarghouthi, Somesh Jha, Thomas Reps. 2020-06-11. Semantic Robustness of Models of Source Code. https://doi.org/10.1109/saner53432.2022.00070
Cite the original work for its findings. Save a collection to share your selection of sources.