mlsanityData to 7 Oct 2026

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

arXiv 2203.15319 ↗First posted 29 Mar 2022cs.CL cs.LG cs.SEcited by 2

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 36 of its 59 references that are in the map. First posted on arXiv 29 Mar 2022.

Builds on

36 of 59 references.

References · 36

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
  4. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  5. 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
  6. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  7. 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 376
  8. 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 341
  9. 2017Synthetic and Natural Noise Both Break Neural Machine Translationcited by 304
  10. 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
  11. 2016Counter-fitting Word Vectors to Linguistic Constraintscited by 138
  12. 2019Robust Neural Machine Translation with Doubly Adversarial Inputscited by 105
24 more
  1. 2018NL2Bash: A Corpus and Semantic Parser for Natural Language Interface to the Linux Operating Systemcited by 97
  2. 2017Neural Machine Translation with Extended Contextcited by 95
  3. 2018Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examplescited by 93
  4. 2018TRANX: A Transition-based Neural Abstract Syntax Parser for Semantic Parsing and Code Generationcited by 88
  5. 2018On Adversarial Examples for Character-Level Neural Machine Translationcited by 85
  6. 2016Latent Predictor Networks for Code Generationcited by 73
  7. 2019TreeGen: A Tree-Based Transformer Architecture for Code Generationcited by 58
  8. 2019On Evaluation of Adversarial Perturbations for Sequence-to-Sequence Modelscited by 56
  9. 2018Robust Text-to-SQL Generation with Execution-Guided Decodingcited by 51
  10. 2019Does BLEU Score Work for Code Migration?cited by 49
  11. 2017Exploiting Cross-Sentence Context for Neural Machine Translationcited by 48
  12. 2018Retrieval-Based Neural Code Generationcited by 41
  13. 2020Incorporating External Knowledge through Pre-training for Natural Language to Code Generationcited by 36
  14. 2019Automatic Testing and Improvement of Machine Translationcited by 35
  15. 2020TF-Coder: Program Synthesis for Tensor Manipulationscited by 27
  16. 2017How Robust Are Character-Based Word Embeddings in Tagging and MT Against Wrod Scramlbing or Randdm Nouse?cited by 23
  17. 2021Translation Quality Assessment: A Brief Survey on Manual and Automatic Methodscited by 23
  18. 2021Shellcode_IA32: A Dataset for Automatic Shellcode Generationcited by 16
  19. 2018XNMT: The eXtensible Neural Machine Translation Toolkitcited by 14
  20. 2021On Robustness of Neural Semantic Parserscited by 14
  21. 2021EVIL: Exploiting Software via Natural Languagecited by 11
  22. 2020Relevance Transformer: Generating Concise Code Snippets with Relevance Feedbackcited by 6
  23. 2020Evaluating Neural Machine Comprehension Model Robustness to Noisy Inputs and Adversarial Attackscited by 3
  24. 2022A Survey on Artificial Intelligence for Source Code: A Dialogue Systems Perspectivecited by 3

Built on by

Cited by year

Citing papers per year: 2023: 2.

2 papers.