Does BLEU Score Work for Code Migration?
Not on the map. Why?
Abstract (arXiv)
Statistical machine translation (SMT) is a fast-growing sub-field of computational linguistics. Until now, the most popular automatic metric to measure the quality of SMT is BiLingual Evaluation Understudy (BLEU) score. Lately, SMT along with the BLEU metric has been applied to a Software Engineering task named code migration. (In)Validating the use of BLEU score could advance the research and development of SMT-based code migration tools. Unfortunately, there is no study to approve or disapprove the use of BLEU score for source code. In this paper, we conducted an empirical study on BLEU score to (in)validate its suitability for the code migration task due to its inability to reflect the semantics of source code. In our work, we use human judgment as the ground truth to measure the semantic correctness of the migrated code. Our empirical study demonstrates that BLEU does not reflect translation quality due to its weak correlation with the semantic correctness of translated code. We provided counter-examples to show that BLEU is ineffective in comparing the translation quality between SMT-based models. Due to BLEU's ineffectiveness for code migration task, we propose an alternative metric RUBY, which considers lexical, syntactical, and semantic representations of source code. We verified that RUBY achieves a higher correlation coefficient with the semantic correctness of migrated code, 0.775 in comparison with 0.583 of BLEU score. We also confirmed the effectiveness of RUBY in reflecting the changes in translation quality of SMT-based translation models. With its advantages, RUBY can be used to evaluate SMT-based code migration models.
Key facts. Cited by 49 papers in the map (data through 14 Oct 2026). First posted on arXiv 12 Jun 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 3; 2022: 6; 2023: 9; 2024: 12; 2025: 15; 2026: 4.
49 papers.
Sort:
By area:
- 2022GitHub Copilot AI pair programmer: Asset or Liability?cited by 152
- 2025Are VLMs Ready for Autonomous Driving? An Empirical Study from the Reliability, Data, and Metric Perspectivescited by 122
- 2022Out of the BLEU: how should we assess quality of the Code Generation models?cited by 65
- 2023CodeTransOcean: A Comprehensive Multilingual Benchmark for Code Translationcited by 57
- 2023ICE-Score: Instructing Large Language Models to Evaluate Codecited by 52
- 2024CodeJudge: Evaluating Code Generation with Large Language Modelscited by 44
- 2023Data Contamination Through the Lens of Timecited by 40
- 2024Code Comprehension then Auditing for Unsupervised LLM Evaluationcited by 32
- 2024Consistent Autoformalization for Constructing Mathematical Librariescited by 21
- 2024Benchmarks and Metrics for Evaluations of Code Generation: A Critical Reviewcited by 20
- 2024NaturalCodeBench: Examining Coding Performance Mismatch on HumanEval and Natural User Promptscited by 19
- 2025Don't Judge Code by Its Cover: Exploring Biases in LLM Judges for Code Evaluationcited by 18
37 more
- 2021Shellcode_IA32: A Dataset for Automatic Shellcode Generationcited by 16
- 2024Improving Retrieval-augmented Text-to-SQL with AST-based Ranking and Schema Pruningcited by 16
- 2022Beyond the C: Retargetable Decompilation using Neural Machine Translationcited by 15
- 2022Who Evaluates the Evaluators? On Automatic Metrics for Assessing AI-based Offensive Code Generatorscited by 11
- 2024RAMBO: Enhancing RAG-based Repository-Level Method Body Completioncited by 10
- 2021Toward Code Generation: A Survey and Lessons from Semantic Parsingcited by 8
- 2024CRScore: Grounding Automated Evaluation of Code Review Comments in Code Claims and Smellscited by 8
- 2021NeurIPS 2020 NLC2CMD Competition: Translating Natural Language to Bash Commandscited by 7
- 2023Assessing Evaluation Metrics for Neural Test Oracle Generationcited by 7
- 2023Automating the Correctness Assessment of AI-generated Code for Security Contextscited by 6
- 2024On the Limitations of Embedding Based Methods for Measuring Functional Correctness for Code Generationcited by 6
- 2025Beyond Gold Standards: Epistemic Ensemble of LLM Judges for Formal Mathematical Reasoningcited by 6
- 2025MASA: LLM-Driven Multi-Agent Systems for Autoformalizationcited by 6
- 2024Enhancing Source Code Security with LLMs: Demystifying The Challenges and Generating Reliable Repairscited by 4
- 2023NL2CMD: An Updated Workflow for Natural Language to Bash Commands Translationcited by 3
- 2023Neural Machine Translation for Code Generationcited by 3
- 2025Deep-Bench: Deep Learning Benchmark Dataset for Code Generationcited by 3
- 2022Can NMT Understand Me? Towards Perturbation-based Evaluation of NMT Models for Code Generationcited by 2
- 2023InstructPipe: Generating Visual Blocks Pipelines with Human Instructions and LLMscited by 2
- 2024NoviCode: Generating Programs from Natural Language Utterances by Novicescited by 2
- 2025Fast, Fine-Grained Equivalence Checking for Neural Decompilerscited by 2
- 2025Measuring LLM Code Generation Stability via Structural Entropycited by 2
- 2025David vs. Goliath: A comparative study of different-sized LLMs for code generation in the domain of automotive scenario generationcited by 1
- 2025MATCH: Task-Driven Code Evaluation through Contrastive Learningcited by 1
- 2025Physics-Based Benchmarking Metrics for Multimodal Synthetic Imagescited by 1
- 2025Modeling Romanized Hindi and Bengali: Dataset Creation and Multilingual LLM Integrationcited by 1
- 2025Benchmarking Code LLM-as-a-Judge via Constrained Perturbation and Calibrationcited by 1
- 2026Beyond BLEU: A Semantic Evaluation Method for Code Translationcited by 1
- 2022Can We Generate Shellcodes via Natural Language? An Empirical Studycited by 0
- 2023Leveraging Deep Learning for Abstractive Code Summarization of Unofficial Documentationcited by 0
- 2024Can Neural Decompilation Assist Vulnerability Prediction on Binary Code?cited by 0
- 2025Learning Bug Context for PyTorch-to-JAX Translation with LLMscited by 0
- 2025Excision Score: Evaluating Edits with Surgical Precisioncited by 0
- 2025Asm2SrcEval: Evaluating Large Language Models for Assembly-to-Source Code Translationcited by 0
- 2026Leveraging Generative AI for Enhancing Domain-Driven Software Designcited by 0
- 2026Can Code Evaluation Metrics Detect Code Plagiarism?cited by 0
- 2026Beyond Text Matching: Towards Reference-Free Evaluation for Human-Oriented Binary Reverse Engineeringcited by 0
- 2026Beyond Text Matching: Towards Reference-Free Evaluation for Human-Oriented Binary Reverse Engineering7 Aug 2026
- 2026Beyond BLEU: A Semantic Evaluation Method for Code Translation6 May 2026
- 2026Can Code Evaluation Metrics Detect Code Plagiarism?28 Apr 2026
- 2026Leveraging Generative AI for Enhancing Domain-Driven Software Design28 Jan 2026
- 2025Benchmarking Code LLM-as-a-Judge via Constrained Perturbation and Calibration23 Dec 2025
- 2025Asm2SrcEval: Evaluating Large Language Models for Assembly-to-Source Code Translation28 Nov 2025
- 2025Modeling Romanized Hindi and Bengali: Dataset Creation and Multilingual LLM Integration27 Nov 2025
- 2025Physics-Based Benchmarking Metrics for Multimodal Synthetic Images19 Nov 2025
- 2025MATCH: Task-Driven Code Evaluation through Contrastive Learning27 Oct 2025
- 2025Excision Score: Evaluating Edits with Surgical Precision24 Oct 2025
- 2025David vs. Goliath: A comparative study of different-sized LLMs for code generation in the domain of automotive scenario generation15 Oct 2025
- 2025Learning Bug Context for PyTorch-to-JAX Translation with LLMs10 Oct 2025
37 more
- 2025MASA: LLM-Driven Multi-Agent Systems for Autoformalization10 Oct 2025
- 2025Measuring LLM Code Generation Stability via Structural Entropy19 Aug 2025
- 2025Beyond Gold Standards: Epistemic Ensemble of LLM Judges for Formal Mathematical Reasoning12 Jun 2025
- 2025Don't Judge Code by Its Cover: Exploring Biases in LLM Judges for Code Evaluation22 May 2025
- 2025Deep-Bench: Deep Learning Benchmark Dataset for Code Generation26 Feb 2025
- 2025Fast, Fine-Grained Equivalence Checking for Neural Decompilers8 Jan 2025
- 2025Are VLMs Ready for Autonomous Driving? An Empirical Study from the Reliability, Data, and Metric Perspectives7 Jan 2025
- 2024Can Neural Decompilation Assist Vulnerability Prediction on Binary Code?10 Dec 2024
- 2024Consistent Autoformalization for Constructing Mathematical Libraries5 Oct 2024
- 2024Code Comprehension then Auditing for Unsupervised LLM Evaluation4 Oct 2024
- 2024CodeJudge: Evaluating Code Generation with Large Language Models3 Oct 2024
- 2024CRScore: Grounding Automated Evaluation of Code Review Comments in Code Claims and Smells29 Sep 2024
- 2024RAMBO: Enhancing RAG-based Repository-Level Method Body Completion23 Sep 2024
- 2024Enhancing Source Code Security with LLMs: Demystifying The Challenges and Generating Reliable Repairs1 Sep 2024
- 2024NoviCode: Generating Programs from Natural Language Utterances by Novices15 Jul 2024
- 2024Improving Retrieval-augmented Text-to-SQL with AST-based Ranking and Schema Pruning3 Jul 2024
- 2024Benchmarks and Metrics for Evaluations of Code Generation: A Critical Review18 Jun 2024
- 2024NaturalCodeBench: Examining Coding Performance Mismatch on HumanEval and Natural User Prompts7 May 2024
- 2024On the Limitations of Embedding Based Methods for Measuring Functional Correctness for Code Generation26 Apr 2024
- 2023InstructPipe: Generating Visual Blocks Pipelines with Human Instructions and LLMs15 Dec 2023
- 2023Automating the Correctness Assessment of AI-generated Code for Security Contexts28 Oct 2023
- 2023Leveraging Deep Learning for Abstractive Code Summarization of Unofficial Documentation23 Oct 2023
- 2023Data Contamination Through the Lens of Time16 Oct 2023
- 2023Assessing Evaluation Metrics for Neural Test Oracle Generation11 Oct 2023
- 2023CodeTransOcean: A Comprehensive Multilingual Benchmark for Code Translation8 Oct 2023
- 2023Neural Machine Translation for Code Generation22 May 2023
- 2023ICE-Score: Instructing Large Language Models to Evaluate Code27 Apr 2023
- 2023NL2CMD: An Updated Workflow for Natural Language to Bash Commands Translation15 Feb 2023
- 2022Beyond the C: Retargetable Decompilation using Neural Machine Translation17 Dec 2022
- 2022Who Evaluates the Evaluators? On Automatic Metrics for Assessing AI-based Offensive Code Generators12 Dec 2022
- 2022Out of the BLEU: how should we assess quality of the Code Generation models?5 Aug 2022
- 2022GitHub Copilot AI pair programmer: Asset or Liability?30 Jun 2022
- 2022Can NMT Understand Me? Towards Perturbation-based Evaluation of NMT Models for Code Generation29 Mar 2022
- 2022Can We Generate Shellcodes via Natural Language? An Empirical Study8 Feb 2022
- 2021Shellcode_IA32: A Dataset for Automatic Shellcode Generation27 Apr 2021
- 2021Toward Code Generation: A Survey and Lessons from Semantic Parsing26 Apr 2021
- 2021NeurIPS 2020 NLC2CMD Competition: Translating Natural Language to Bash Commands3 Mar 2021
- 2025MASA: LLM-Driven Multi-Agent Systems for Autoformalization10 Oct 2025
- 2022GitHub Copilot AI pair programmer: Asset or Liability?cited by 152
- 2022Out of the BLEU: how should we assess quality of the Code Generation models?cited by 65
- 2023CodeTransOcean: A Comprehensive Multilingual Benchmark for Code Translationcited by 57
- 2023ICE-Score: Instructing Large Language Models to Evaluate Codecited by 52
- 2024CodeJudge: Evaluating Code Generation with Large Language Modelscited by 44
- 2023Data Contamination Through the Lens of Timecited by 40
- 2024Code Comprehension then Auditing for Unsupervised LLM Evaluationcited by 32
- 2024Consistent Autoformalization for Constructing Mathematical Librariescited by 21
- 2024Benchmarks and Metrics for Evaluations of Code Generation: A Critical Reviewcited by 20
- 2024NaturalCodeBench: Examining Coding Performance Mismatch on HumanEval and Natural User Promptscited by 19
- 2025Don't Judge Code by Its Cover: Exploring Biases in LLM Judges for Code Evaluationcited by 18
- 2021Shellcode_IA32: A Dataset for Automatic Shellcode Generationcited by 16
12 most cited of 45 All 45 (JSON)
- 2026Beyond Text Matching: Towards Reference-Free Evaluation for Human-Oriented Binary Reverse Engineering7 Aug 2026
- 2026Beyond BLEU: A Semantic Evaluation Method for Code Translation6 May 2026
- 2026Can Code Evaluation Metrics Detect Code Plagiarism?28 Apr 2026
- 2026Leveraging Generative AI for Enhancing Domain-Driven Software Design28 Jan 2026
- 2025Benchmarking Code LLM-as-a-Judge via Constrained Perturbation and Calibration23 Dec 2025
- 2025Asm2SrcEval: Evaluating Large Language Models for Assembly-to-Source Code Translation28 Nov 2025
- 2025Modeling Romanized Hindi and Bengali: Dataset Creation and Multilingual LLM Integration27 Nov 2025
- 2025Physics-Based Benchmarking Metrics for Multimodal Synthetic Images19 Nov 2025
- 2025MATCH: Task-Driven Code Evaluation through Contrastive Learning27 Oct 2025
- 2025Excision Score: Evaluating Edits with Surgical Precision24 Oct 2025
- 2025David vs. Goliath: A comparative study of different-sized LLMs for code generation in the domain of automotive scenario generation15 Oct 2025
- 2025Learning Bug Context for PyTorch-to-JAX Translation with LLMs10 Oct 2025
12 newest of 45 All 45 (JSON)