Examination of Code generated by Large Language Models

Robin Beer, Alexander Feix, Tim Guttzeit, Tamara Muras, Vincent Müller +3 more
8/29/2024
cs.SEcs.AI

No confident code implementation found for this paper.

Abstract

Large language models (LLMs), such as ChatGPT and Copilot, are transforming software development by automating code generation and, arguably, enable rapid prototyping, support education, and boost productivity. Therefore, correctness and quality of the generated code should be on par with manually written code. To assess the current state of LLMs in generating correct code of high quality, we conducted controlled experiments with ChatGPT and Copilot: we let the LLMs generate simple algorithms in Java and Python along with the corresponding unit tests and assessed the correctness and the quality (coverage) of the generated (test) codes. We observed significant differences between the LLMs, between the languages, between algorithm and test codes, and over time. The present paper reports these results together with the experimental methods allowing repeated and comparable assessments for more algorithms, languages, and LLMs over time.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{beer2024examination,
  title  = {Examination of Code generated by Large Language Models},
  author = {Robin Beer and Alexander Feix and Tim Guttzeit and Tamara Muras and Vincent Müller and Maurice Rauscher and Florian Schäffler and Welf Löwe},
  year   = {2024},
  eprint = {2408.16601},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.16601v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.16601.svg)](https://codeofpaper.com/paper/2408.16601)

Discussion