Litcius/Paper detail

On Evaluating the Efficiency of Source Code Generated by LLMs

Changan Niu, Ting Zhang, Chuanyi Li, Bin Luo, Vincent Ng

202423 citationsDOIOpen Access PDF

Abstract

Recent years have seen the remarkable capabilities of large language models (LLMs) for code generation. Different from existing work that evaluate the correctness of the code generated by LLMs, we propose to further evaluate its efficiency. More efficient code can lead to higher performance and execution efficiency of programs and software completed by LLM-assisted programming. First, we evaluate the efficiency of the code generated by LLMs on two benchmarks, HumanEval and MBPP. Then, we choose a set of programming problems from the online judge platform LeetCode to conduct a more difficult evaluation. Finally, we explore several prompts that would enable LLMs to generate more efficient code.

Topics & Concepts

Computer scienceCorrectnessCode (set theory)Set (abstract data type)Programming languageSoftware Testing and Debugging TechniquesTopic ModelingNatural Language Processing Techniques
On Evaluating the Efficiency of Source Code Generated by LLMs | Litcius