Guardado en:
Detalles Bibliográficos
Autores principales: Dai, Jianbo, Lu, Jianqiao, Feng, Yunlong, Zeng, Guangtao, Ruan, Rongju, Cheng, Ming, Huang, Dong, Tan, Haochen, Guo, Zhijiang
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:https://arxiv.org/abs/2405.11430
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866913993456615424
author Dai, Jianbo
Lu, Jianqiao
Feng, Yunlong
Zeng, Guangtao
Ruan, Rongju
Cheng, Ming
Huang, Dong
Tan, Haochen
Guo, Zhijiang
author_facet Dai, Jianbo
Lu, Jianqiao
Feng, Yunlong
Zeng, Guangtao
Ruan, Rongju
Cheng, Ming
Huang, Dong
Tan, Haochen
Guo, Zhijiang
contents Recent advancements in large language models (LLMs) have greatly improved code generation, specifically at the function level. For instance, GPT-4o has achieved a 91.0\% pass rate on HumanEval. However, this draws into question the adequacy of existing benchmarks in thoroughly assessing function-level code generation capabilities. Our study analyzed two common benchmarks, HumanEval and MBPP, and found that these might not thoroughly evaluate LLMs' code generation capacities due to limitations in quality, difficulty, and granularity. To resolve this, we introduce the Mostly Hard Python Problems (MHPP) dataset, consisting of 210 unique human-curated problems. By focusing on the combination of natural language and code reasoning, MHPP gauges LLMs' abilities to comprehend specifications and restrictions, engage in multi-step reasoning, and apply coding knowledge effectively. Initial evaluations of 26 LLMs using MHPP showed many high-performing models on HumanEval failed to achieve similar success on MHPP. Moreover, MHPP highlighted various previously undiscovered limitations within various LLMs, leading us to believe that it could pave the way for a better understanding of LLMs' capabilities and limitations. MHPP, evaluation pipeline, and leaderboard can be found in https://github.com/SparksofAGI/MHPP.
format Preprint
id arxiv_https___arxiv_org_abs_2405_11430
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle MHPP: Exploring the Capabilities and Limitations of Language Models Beyond Basic Code Generation
Dai, Jianbo
Lu, Jianqiao
Feng, Yunlong
Zeng, Guangtao
Ruan, Rongju
Cheng, Ming
Huang, Dong
Tan, Haochen
Guo, Zhijiang
Computation and Language
Recent advancements in large language models (LLMs) have greatly improved code generation, specifically at the function level. For instance, GPT-4o has achieved a 91.0\% pass rate on HumanEval. However, this draws into question the adequacy of existing benchmarks in thoroughly assessing function-level code generation capabilities. Our study analyzed two common benchmarks, HumanEval and MBPP, and found that these might not thoroughly evaluate LLMs' code generation capacities due to limitations in quality, difficulty, and granularity. To resolve this, we introduce the Mostly Hard Python Problems (MHPP) dataset, consisting of 210 unique human-curated problems. By focusing on the combination of natural language and code reasoning, MHPP gauges LLMs' abilities to comprehend specifications and restrictions, engage in multi-step reasoning, and apply coding knowledge effectively. Initial evaluations of 26 LLMs using MHPP showed many high-performing models on HumanEval failed to achieve similar success on MHPP. Moreover, MHPP highlighted various previously undiscovered limitations within various LLMs, leading us to believe that it could pave the way for a better understanding of LLMs' capabilities and limitations. MHPP, evaluation pipeline, and leaderboard can be found in https://github.com/SparksofAGI/MHPP.
title MHPP: Exploring the Capabilities and Limitations of Language Models Beyond Basic Code Generation
topic Computation and Language
url https://arxiv.org/abs/2405.11430