Enhancing Robustness of AI Offensive Code Generators via Data Augmentation
Improta, Cristina, Liguori, Pietro, Natella, Roberto, Cukic, Bojan, Cotroneo, Domenico
–arXiv.org Artificial Intelligence
In this work, we present a method to add perturbations to the code descriptions to create new inputs in natural language (NL) from well-intentioned developers that diverge from the original ones due to the use of new words or because they miss part of them. The goal is to analyze how and to what extent perturbations affect the performance of AI code generators in the context of security-oriented code. First, we show that perturbed descriptions preserve the semantics of the original, non-perturbed ones. Then, we use the method to assess the robustness of three state-of-the-art code generators against the newly perturbed inputs, showing that the performance of these AI-based solutions is highly affected by perturbations in the NL descriptions. To enhance their robustness, we use the method to perform data augmentation, i.e., to increase the variability and diversity of the NL descriptions in the training data, proving its effectiveness against both perturbed and non-perturbed code descriptions.
arXiv.org Artificial Intelligence
Oct-1-2023
- Country:
- Asia > China
- Hong Kong (0.04)
- Europe
- North America
- Canada > British Columbia
- Dominican Republic (0.04)
- United States
- California > San Diego County
- San Diego (0.04)
- Illinois (0.04)
- Massachusetts > Suffolk County
- Boston (0.04)
- Minnesota > Hennepin County
- Minneapolis (0.14)
- New Mexico > Santa Fe County
- Santa Fe (0.04)
- North Carolina > Mecklenburg County
- Charlotte (0.04)
- California > San Diego County
- Oceania > Australia
- Asia > China
- Genre:
- Research Report > New Finding (0.46)
- Industry:
- Education > Educational Setting (0.68)
- Information Technology > Security & Privacy (1.00)
- Technology: