paper-with-me

Papers

Evaluation of the Code Generation Capabilities of ChatGPT 4: A Comparative Analysis in 19 Programming Languages

2025-01-04 · L. C. Gilbert

This bachelor's thesis examines the capabilities of ChatGPT 4 in code generation across 19 programming languages. The study analyzed solution rates across three difficulty levels, types of errors encountered, and code quality in terms of runtime and memory efficiency through a quantitative experiment. A total of 188 programming problems were selected from the LeetCode platform, and ChatGPT 4 was given three attempts to produce a correct solution with feedback. ChatGPT 4 successfully solved 39.67% of all tasks, with success rates decreasing significantly as problem complexity increased. Notably, the model faced considerable challenges with hard problems across all languages. ChatGPT 4 demonstrated higher competence in widely used languages, likely due to a larger volume and higher quality of training data. The solution rates also revealed a preference for languages with low abstraction levels and static typing. For popular languages, the most frequent error was "Wrong Answer," whereas for less popular languages, compiler and runtime errors prevailed, suggesting frequent misunderstandings and confusion regarding the structural characteristics of these languages. The model exhibited above-average runtime efficiency in all programming languages, showing a tendency toward statically typed and low-abstraction languages. Memory efficiency results varied significantly, with above-average performance in 14 languages and below-average performance in five languages. A slight preference for low-abstraction languages and a leaning toward dynamically typed languages in terms of memory efficiency were observed. Future research should include a larger number of tasks, iterations, and less popular languages. Additionally, ChatGPT 4's abilities in code interpretation and summarization, debugging, and the development of complex, practical code could be analyzed further.

📄 PDF Abstract BibTeX arXiv:2501.02338

Code (1)

dieserlaurenz/leetcode-gym 공식 구현

Tasks

Code Generation

Similar Papers 제목 키워드 기반

Assessing the Promise and Pitfalls of ChatGPT for Automated Code Generation

2023-11-05 · Muhammad Fawad Akbar Khan, Max Ramsdell, Erik Falor, Hamid Karimi

This paper presents a comprehensive evaluation of the code generation capabilities of ChatGPT, a prominent large language model, compared to human programmers. A novel dataset of 131 code-generation prompts across 5 cate…

Code GenerationLanguage ModelingLanguage ModellingLarge Language Model

Cross-Language Assessment of Mathematical Capability of ChatGPT

2024-05-18 · Gargi Sathe, Aneesh Shamraj, Aditya Surve, Nahush Patil 외

This paper presents an evaluation of the mathematical capability of ChatGPT across diverse languages like Hindi, Gujarati, and Marathi. ChatGPT, based on GPT-3.5 by OpenAI, has garnered significant attention for its natu…

Natural Language Understanding

Evaluation empirique de la sécurisation et de l'alignement de ChatGPT et Gemini: analyse comparative des vulnérabilités par expérimentations de jailbreaks

2025-06-10 · Rafaël Nouailles

Large Language models (LLMs) are transforming digital usage, particularly in text generation, image creation, information retrieval and code development. ChatGPT, launched by OpenAI in November 2022, quickly became a ref…

Information RetrievalMisinformationRetrievalText Generation

Ocassionally Secure: A Comparative Analysis of Code Generation Assistants

2024-02-01 · Ran Elgedawy, John Sadik, Senjuti Dutta, Anuj Gautam 외

$ $Large Language Models (LLMs) are being increasingly utilized in various applications, with code generations being a notable example. While previous research has shown that LLMs have the capability to generate both sec…

Code Generation

The Limits of ChatGPT in Extracting Aspect-Category-Opinion-Sentiment Quadruples: A Comparative Analysis

2023-10-10 · Xiancai Xu, Jia-Dong Zhang, Rongchang Xiao, Lei Xiong

Recently, ChatGPT has attracted great attention from both industry and academia due to its surprising abilities in natural language understanding and generation. We are particularly curious about whether it can achieve p…

Aspect-Based Sentiment AnalysisIn-Context LearningNatural Language UnderstandingSentiment Analysis