paper-with-me

홈 › Papers

CodeBLEU: a Method for Automatic Evaluation of Code Synthesis

2020-09-22 · Shuo Ren, Daya Guo, Shuai Lu, Long Zhou, Shujie Liu, Duyu Tang, Neel Sundaresan, Ming Zhou, Ambrosio Blanco, Shuai Ma

Evaluation metrics play a vital role in the growth of an area as it defines the standard of distinguishing between good and bad models. In the area of code synthesis, the commonly used evaluation metric is BLEU or perfect accuracy, but they are not suitable enough to evaluate codes, because BLEU is originally designed to evaluate the natural language, neglecting important syntactic and semantic features of codes, and perfect accuracy is too strict thus it underestimates different outputs with the same semantic logic. To remedy this, we introduce a new automatic evaluation metric, dubbed CodeBLEU. It absorbs the strength of BLEU in the n-gram match and further injects code syntax via abstract syntax trees (AST) and code semantics via data-flow. We conduct experiments by evaluating the correlation coefficient between CodeBLEU and quality scores assigned by the programmers on three code synthesis tasks, i.e., text-to-code, code translation, and code refinement. Experimental results show that our proposed CodeBLEU can achieve a better correlation with programmer assigned scores compared with BLEU and accuracy.

📄 PDF Abstract BibTeX arXiv:2009.10297

Code (3)

THUDM/CodeGeeX mindspore
codefuse-ai/codefuse-evaluation pytorch
k4black/codebleu

Tasks

Code TranslationTranslation

Similar Papers 제목 키워드 기반

Out of the BLEU: how should we assess quality of the Code Generation models?

2022-08-05 · Mikhail Evtikhiev, Egor Bogomolov, Yaroslav Sokolov, Timofey Bryksin

In recent years, researchers have created and introduced a significant number of various code generation models. As human evaluation of every new model version is unfeasible, the community adopted automatic evaluation me…

Code GenerationMachine Translation

CodeRosetta: Pushing the Boundaries of Unsupervised Code Translation for Parallel Programming

2024-10-27 · Ali TehraniJamsaz, Arijit Bhattacharjee, Le Chen, Nesreen K. Ahmed 외

Recent advancements in Large Language Models (LLMs) have renewed interest in automatic programming language translation. Encoder-decoder transformer models, in particular, have shown promise in translating between differ…

Code TranslationDecoderTranslation

GeoAnalystBench: A GeoAI benchmark for assessing large language models for spatial analysis workflow and code generation

2025-09-07 · Qianheng Zhang, Song Gao, Chen Wei, Yibo Zhao 외 arxiv

Recent advances in large language models (LLMs) have fueled growing interest in automating geospatial analysis and GIS workflows, yet their actual capabilities remain uncertain. In this work, we call for rigorous evaluat…

Semantic SimilaritySpatial ReasoningCode Generation

Execution-based Evaluation for Data Science Code Generation Models

2022-11-17 · JunJie Huang, Chenglong Wang, Jipeng Zhang, Cong Yan 외

Code generation models can benefit data scientists' productivity by automatically generating code from context and text descriptions. An important measure of the modeling progress is whether a model can generate code tha…

Code GenerationFormModel Selection

Enhancing Cross-Language Code Translation via Task-Specific Embedding Alignment in Retrieval-Augmented Generation

2024-12-06 · Manish Bhattarai, Minh Vu, Javier E. Santos, Ismael Boureima 외

We introduce a novel method to enhance cross-language code translation from Fortran to C++ by integrating task-specific embedding alignment into a Retrieval-Augmented Generation (RAG) framework. Unlike conventional retri…

Code GenerationCode TranslationContrastive LearningLanguage Modeling+5