mlsanityData to 7 Oct 2026

Who Evaluates the Evaluators? On Automatic Metrics for Assessing AI-based Offensive Code Generators

arXiv 2212.06008 ↗First posted 12 Dec 2022cs.SE cs.AIcited by 10

Not on the map. Why?

Abstract (arXiv)

AI-based code generators are an emerging solution for automatically writing programs starting from descriptions in natural language, by using deep neural networks (Neural Machine Translation, NMT). In particular, code generators have been used for ethical hacking and offensive security testing by generating proof-of-concept attacks. Unfortunately, the evaluation of code generators still faces several issues. The current practice uses output similarity metrics, i.e., automatic metrics that compute the textual similarity of generated code with ground-truth references. However, it is not clear what metric to use, and which metric is most suitable for specific contexts. This work analyzes a large set of output similarity metrics on offensive code generators. We apply the metrics on two state-of-the-art NMT models using two datasets containing offensive assembly and Python code with their descriptions in the English language. We compare the estimates from the automatic metrics with human evaluation and provide practical insights into their strengths and limitations.

Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Builds on 35 of its 85 references that are in the map. First posted on arXiv 12 Dec 2022.

Builds on

35 of 85 references.

References · 35

  1. 2017Attention Is All You Needcited by 59,932
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  5. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  6. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  7. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  8. 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
  9. 2021Unified Pre-training for Program Understanding and Generationcited by 361
  10. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
  11. 2020The Creation and Detection of Deepfakes: A Surveycited by 246
  12. 2020IntelliCode Compose: Code Generation Using Transformercited by 225
23 more
  1. 2018Dear Sir or Madam, May I introduce the GYAFC Dataset: Corpus, Benchmarks and Metrics for Formality Style Transfercited by 209
  2. 2019SPoC: Search-based Pseudocode to Codecited by 176
  3. 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
  4. 2020PyMT5: multi-mode translation of natural language and Python code with transformerscited by 80
  5. 2016Latent Predictor Networks for Code Generationcited by 73
  6. 2022Out of the BLEU: how should we assess quality of the Code Generation models?cited by 65
  7. 2021CoTexT: Multi-task Learning with Code-Text Transformercited by 61
  8. 2022NatGen: Generative pre-training by "Naturalizing" source codecited by 53
  9. 2019Does BLEU Score Work for Code Migration?cited by 49
  10. 2019JuICe: A Large Scale Distantly Supervised Dataset for Open Domain Context-based Code Generationcited by 49
  11. 2021Applying CodeBERT for Automated Program Repair of Java Simple Bugscited by 44
  12. 2021Multilingual training for Software Engineeringcited by 43
  13. 2022No More Fine-Tuning? An Experimental Evaluation of Prompt Tuning in Code Intelligencecited by 41
  14. 2021The Threat of Offensive AI to Organizationscited by 37
  15. 2022Human Evaluation and Correlation with Automatic Metrics in Consultation Note Generationcited by 33
  16. 2021Translation Quality Assessment: A Brief Survey on Manual and Automatic Methodscited by 23
  17. 2021Shellcode_IA32: A Dataset for Automatic Shellcode Generationcited by 16
  18. 2018XNMT: The eXtensible Neural Machine Translation Toolkitcited by 14
  19. 2021EVIL: Exploiting Software via Natural Languagecited by 11
  20. 2022BashExplainer: Retrieval-Augmented Bash Code Comment Generation based on Fine-tuned CodeBERTcited by 9
  21. 2022DualSC: Automatic Generation and Summarization of Shellcode via Transformer and Dual Learningcited by 8
  22. 2018Human vs Automatic Metrics: on the Importance of Correlation Designcited by 6
  23. 2020Relevance Transformer: Generating Concise Code Snippets with Relevance Feedbackcited by 6

Built on by

Cited by year

Citing papers per year: 2023: 4; 2024: 4; 2025: 2.

10 papers.