English

Can NMT Understand Me? Towards Perturbation-based Evaluation of NMT Models for Code Generation

Computation and Language 2022-03-31 v2 Machine Learning Software Engineering

Abstract

Neural Machine Translation (NMT) has reached a level of maturity to be recognized as the premier method for the translation between different languages and aroused interest in different research areas, including software engineering. A key step to validate the robustness of the NMT models consists in evaluating the performance of the models on adversarial inputs, i.e., inputs obtained from the original ones by adding small amounts of perturbation. However, when dealing with the specific task of the code generation (i.e., the generation of code starting from a description in natural language), it has not yet been defined an approach to validate the robustness of the NMT models. In this work, we address the problem by identifying a set of perturbations and metrics tailored for the robustness assessment of such models. We present a preliminary experimental evaluation, showing what type of perturbations affect the model the most and deriving useful insights for future directions.

Keywords

Cite

@article{arxiv.2203.15319,
  title  = {Can NMT Understand Me? Towards Perturbation-based Evaluation of NMT Models for Code Generation},
  author = {Pietro Liguori and Cristina Improta and Simona De Vivo and Roberto Natella and Bojan Cukic and Domenico Cotroneo},
  journal= {arXiv preprint arXiv:2203.15319},
  year   = {2022}
}

Comments

Paper accepted for publication in the proceedings of The 1st Intl. Workshop on Natural Language-based Software Engineering (NLBSE) to be held with ICSE 2022

R2 v1 2026-06-24T10:29:37.745Z