mlsanityData to 7 Oct 2026

A Preliminary Analysis on the Code Generation Capabilities of GPT-3.5 and Bard AI Models for Java Functions

arXiv 2305.09402 ↗First posted 16 May 2023cs.SE cs.CLcited by 8

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 5 of its 10 references that are in the map. First posted on arXiv 16 May 2023.

Builds on

5 of 10 references.

References · 5

  1. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
  2. 2023A Survey of Large Language Modelscited by 2,537
  3. 2023Mathematical Capabilities of ChatGPTcited by 263
  4. 2023Can ChatGPT Forecast Stock Price Movements? Return Predictability and Large Language Modelscited by 125
  5. 2023Evaluation of ChatGPT Model for Vulnerability Detectioncited by 33

Built on by

Cited by year

Citing papers per year: 2023: 4; 2024: 4.

8 papers.