Please use this identifier to cite or link to this item: http://bura.brunel.ac.uk/handle/2438/29885
Title: A Preliminary Analysis on the Code Generation Capabilities of GPT-3.5 and Bard AI Models for Java Functions
Authors: Destefanis, G
Bartolucci, S
Ortu, M
Keywords: software engineering (cs.SE);computation and language (cs.CL)
Issue Date: 16-May-2023
Publisher: Cornell University
Citation: Destefanis, G., Bartolucci, S. and Ortu, M. (2023) 'A Preliminary Analysis on the Code Generation Capabilities of GPT-3.5 and Bard AI Models for Java Functions', arXiv:2305.09402v1 [cs.SE], pp. 1 - 11. doi: 10.48550/arXiv.2305.09402.
Abstract: This paper evaluates the capability of two state-of-the-art artificial intelligence (AI) models, GPT-3.5 and Bard, in generating Java code given a function description. We sourced the descriptions from CodingBat.com, a popular online platform that provides practice problems to learn programming. We compared the Java code generated by both models based on correctness, verified through the platform's own test cases. The results indicate clear differences in the capabilities of the two models. GPT-3.5 demonstrated superior performance, generating correct code for approximately 90.6% of the function descriptions, whereas Bard produced correct code for 53.1% of the functions. While both models exhibited strengths and weaknesses, these findings suggest potential avenues for the development and refinement of more advanced AI-assisted code generation tools. The study underlines the potential of AI in automating and supporting aspects of software development, although further research is required to fully realize this potential.
Description: The preprint version archived on this insttutional repository is available online at: https://arxiv.org/abs/2305.09402 . It has not been certified by peer review.
URI: https://bura.brunel.ac.uk/handle/2438/29885
DOI: https://doi.org/10.48550/arXiv.2305.09402
Other Identifiers: ORCiD: Giuseppe Destefanis https://orcid.org/0000-0003-3982-6355
arXiv:2305.09402v1 [cs.SE]
Appears in Collections:Dept of Computer Science Research Papers

Files in This Item:
File Description SizeFormat 
Preprint.pdfCopyright © 2023 The Author(s). This work is licensed under a Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/).354.65 kBAdobe PDFView/Open


This item is licensed under a Creative Commons License Creative Commons