paper-with-me

Papers

Testing LLMs on Code Generation with Varying Levels of Prompt Specificity

2023-11-10 · Lincoln Murr, Morgan Grainger, David Gao

Large language models (LLMs) have demonstrated unparalleled prowess in mimicking human-like text generation and processing. Among the myriad of applications that benefit from LLMs, automated code generation is increasingly promising. The potential to transform natural language prompts into executable code promises a major shift in software development practices and paves the way for significant reductions in manual coding efforts and the likelihood of human-induced errors. This paper reports the results of a study that evaluates the performance of various LLMs, such as Bard, ChatGPT-3.5, ChatGPT-4, and Claude-2, in generating Python for coding problems. We focus on how levels of prompt specificity impact the accuracy, time efficiency, and space efficiency of the generated code. A benchmark of 104 coding problems, each with four types of prompts with varying degrees of tests and specificity, was employed to examine these aspects comprehensively. Our results indicate significant variations in performance across different LLMs and prompt types, and its key contribution is to reveal the ideal prompting strategy for creating accurate Python functions. This study lays the groundwork for further research in LLM capabilities and suggests practical implications for utilizing LLMs in automated code generation tasks and test-driven development.

📄 PDF Abstract BibTeX arXiv:2311.07599

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationSpecificitytest driven developmentText Generation

Methods 이 논문이 사용한 방법론

Focus 설명 없음

Similar Papers 제목 키워드 기반

CodeIF: Benchmarking the Instruction-Following Capabilities of Large Language Models for Code Generation

2025-02-26 · Kaiwen Yan, Hongcheng Guo, Xuanqing Shi, Jingyi Xu 외

With the rapid advancement of Large Language Models (LLMs), the demand for robust instruction-following capabilities in code generation tasks has grown significantly. Code generation not only facilitates faster prototypi…

BenchmarkingCode GenerationInstruction Following

LLM4DS: Evaluating Large Language Models for Data Science Code Generation

2024-11-16 · Nathalia Nascimento, Everton Guimaraes, Sai Sanjna Chintakunta, Santhosh Anitha Boominathan

The adoption of Large Language Models (LLMs) for code generation in data science offers substantial potential for enhancing tasks such as data manipulation, statistical analysis, and visualization. However, the effective…

Code GenerationModel Selection

(Security) Assertions by Large Language Models

2023-06-24 · Rahul Kande, Hammond Pearce, Benjamin Tan, Brendan Dolan-Gavitt 외

The security of computer systems typically relies on a hardware root of trust. As vulnerabilities in hardware can have severe implications on a system, there is a need for techniques to support security verification acti…

Code Generation

FineCops-Ref: A new Dataset and Task for Fine-Grained Compositional Referring Expression Comprehension

2024-09-23 · Junzhuo Liu, Xuzheng Yang, Weiwei Li, Peng Wang

Referring Expression Comprehension (REC) is a crucial cross-modal task that objectively evaluates the capabilities of language understanding, image comprehension, and language-to-image grounding. Consequently, it serves …

Image ComprehensionReferring ExpressionReferring Expression ComprehensionVisual Reasoning

MarioGPT: Open-Ended Text2Level Generation through Large Language Models

2023-02-12 · NeurIPS 2023 11 · Shyam Sudhakaran, Miguel González-Duque, Claire Glanois, Matthias Freiberger 외

Procedural Content Generation (PCG) is a technique to generate complex and diverse environments in an automated way. However, while generating content with PCG methods is often straightforward, generating meaningful cont…