Documentdetail
ID kaart

oai:arXiv.org:2408.14504

Onderwerp
Computer Science - Software Engine... Computer Science - Artificial Inte... Computer Science - Programming Lan...
Auteur
Chon, Heejae Lee, Seonghyeon Yeo, Jinyoung Lee, Dongha
Categorie

Computer Science

Jaar

2024

vermelding datum

04-09-2024

Trefwoorden
language similarity functional correctness diversity lms generated
Metriek

Beschrijving

Language models (LMs) have exhibited impressive abilities in generating codes from natural language requirements.

In this work, we highlight the diversity of code generated by LMs as a critical criterion for evaluating their code generation capabilities, in addition to functional correctness.

Despite its practical implications, there is a lack of studies focused on assessing the diversity of generated code, which overlooks its importance in the development of code LMs.

We propose a systematic approach to evaluate the diversity of generated code, utilizing various metrics for inter-code similarity as well as functional correctness.

Specifically, we introduce a pairwise code similarity measure that leverages large LMs' capabilities in code understanding and reasoning, demonstrating the highest correlation with human judgment.

We extensively investigate the impact of various factors on the quality of generated code, including model sizes, temperatures, training approaches, prompting strategies, and the difficulty of input problems.

Our consistent observation of a positive correlation between the test pass score and the inter-code similarity score indicates that current LMs tend to produce functionally correct code with limited diversity.

;Comment: 15pages, 6 figures, 8 tables

Chon, Heejae,Lee, Seonghyeon,Yeo, Jinyoung,Lee, Dongha, 2024, Is Functional Correctness Enough to Evaluate Code Language Models? Exploring Diversity of Generated Codes

Document

Openen

Delen

Bron

Artikelen aanbevolen door ES/IODE AI

Comparison between Dual-Energy CT and Quantitative Susceptibility Mapping in Assessing Brain Iron Deposition in Parkinson Disease
nigra substantia healthy depositions p < 05 nucleus brain susceptibility ct bilateral dual-energy iron quantitative mapping values magnetic globus pallidus
Integration of human papillomavirus associated anal cancer screening into HIV care and treatment program in Pakistan: perceptions of policymakers, managers, and care providers
hpv hiv msm transgender women anal cancer screening integration pakistan system managers pakistan informants anal screening cancer lack healthcare hiv