paper-with-me

Papers

A Comprehensive Framework for Evaluating API-oriented Code Generation in Large Language Models

2024-09-23 · Yixi Wu, Pengfei He, Zehao Wang, Shaowei Wang, Yuan Tian, Tse-Hsun Chen

Large language models (LLMs) like GitHub Copilot and ChatGPT have emerged as powerful tools for code generation, significantly enhancing productivity and accelerating software development. However, existing benchmarks primarily focus on general code generation without considering API-oriented code generation, i.e., generating code that invokes APIs from specific libraries. Given the growing demand for API-oriented code generation, there is a pressing need for a systematic and automated approach to evaluate LLM on API-oriented code generation. To address this gap, we propose AutoAPIEval, a lightweight and automated framework designed to evaluate the capabilities of LLMs in API-oriented code generation. Our framework works with any library that provides API documentation and focuses on two unit tasks: API recommendation and code example generation, along with four metrics to evaluate the generated APIs and code examples, such as the proportion of incorrect API recommendations for Task 1, and the proportion of code examples where no specific API is invoked and uncompilable/unexecutable code examples for Task 2. In addition, we conducted a case study on three LLMs (ChatGPT, MagiCoder, and DeepSeek Coder) and Java Runtime Environment 8 to demonstrate the framework's effectiveness. Our findings reveal substantial variability in LLM performance across tasks, with ChatGPT adhering better to instructions, while sharing similar effectiveness in code example generation with its counterparts (i.e., MagiCoder and DeekSeek Coder). We also identify key factors associated with code quality, such as API popularity and model confidence, and build classifiers that achieve high accuracy in detecting incorrect API recommendations and erroneous code examples. Retrieval-augmented generation enhances the quality of code generated by LLMs, though its effectiveness varies across different LLMs.

📄 PDF Abstract BibTeX arXiv:2409.15228

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationRetrieval-augmented GenerationTask 2

Methods 이 논문이 사용한 방법론

Library 설명 없음
Focus 설명 없음

Similar Papers 제목 키워드 기반

Propose, Assess, Search: Harnessing LLMs for Goal-Oriented Planning in Instructional Videos

2024-09-30 · Md Mohaiminul Islam, Tushar Nagarajan, Huiyu Wang, Fu-Jen Chu 외

Goal-oriented planning, or anticipating a series of actions that transition an agent from its current state to a predefined objective, is crucial for developing intelligent assistants aiding users in daily procedural tas…

OOP: Object-Oriented Programming Evaluation Benchmark for Large Language Models

2024-01-12 · Shuai Wang, Liang Ding, Li Shen, Yong Luo 외

Advancing automated programming necessitates robust and comprehensive code generation benchmarks, yet current evaluation frameworks largely neglect object-oriented programming (OOP) in favor of functional programming (FP…

Code GenerationHumanEvalmbpp

Relevance of Unsupervised Metrics in Task-Oriented Dialogue for Evaluating Natural Language Generation

2017-06-29 · ICLR 2018 1 · Shikhar Sharma, Layla El Asri, Hannes Schulz, Jeremie Zumer

Automated metrics such as BLEU are widely used in the machine translation literature. They have also been used recently in the dialogue community for evaluating dialogue response generation. However, previous work in dia…

Dialogue GenerationDiversityMachine TranslationResponse Generation+3

VHDL-Eval: A Framework for Evaluating Large Language Models in VHDL Code Generation

2024-06-06 · Prashanth Vijayaraghavan, Luyao Shi, Stefano Ambrogio, Charles Mackin 외

With the unprecedented advancements in Large Language Models (LLMs), their application domains have expanded to include code generation tasks across various programming languages. While significant progress has been made…

Code GenerationIn-Context Learningparameter-efficient fine-tuning

CodeVisionary: An Agent-based Framework for Evaluating Large Language Models in Code Generation

2025-04-18 · Xinchen Wang, Pengfei Gao, Chao Peng, Ruida Hu 외

Large language models (LLMs) have demonstrated strong capabilities in code generation, underscoring the critical need for rigorous and comprehensive evaluation. Existing evaluation approaches fall into three categories, …

Code Generation