Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
ChatGPT's Learning Curve: Generating and Enhancing Python Code through Iterative Error Feedback
KTH, School of Electrical Engineering and Computer Science (EECS).
KTH, School of Electrical Engineering and Computer Science (EECS).
2024 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesisAlternative title
ChatGPT’s inlärningskurva : Generera och förbättra Python-kod genom iterativ feedback (Swedish)
Abstract [en]

This study evaluates the effectiveness of ChatGPT-4, a multimodal large language model developed by OpenAI, in solving programming tasks graded by the automated system Kattis. Drawing from a dataset of 64 programming tasks of varying difficulty, we assessed ChatGPT-4's performance across three coding attempts per task, reflecting on its ability to process feedback and improve its solutions. Our results indicate that ChatGPT-4 is proficient at addressing lower complexity challenges, achieving a high success rate in tasks with difficulty ratings up to 2.7, but its performance declines with more complex problems. We observed that while ChatGPT-4 can often generate syntactically correct code on its initial attempt, it struggles with logical errors and complex problem-solving, particularly when facing tasks requiring a deeper understanding of programming concepts. Future research could further explore the impact of programming language choice and the adaptation of AI coding tools to different educational settings and requirements.

Abstract [sv]

Denna studie undersöker hur effektiv ChatGPT-4, en Large Language Model utvecklad av OpenAI, är på att lösa programmeringsuppgifter rättade av det automatiska rättningssystmet Kattis. Av ett urval av 64 programmeringsuppgifter av varierande svårighetsgrad utvärderades ChatGPT-4’s förmåga att skriva kod när den fick feedback och möjligheten att korrigera koden, vilket ger en insikt i hur väl modellen processar feedback och förbättrar sina lösningar. Resultatet indikerar att ChatGPT-4 är högfungerande beträffande att lösa programmeringsuppgifter av låg komplexitet, med en hög framgång för uppgifter upp till svårighetsgraden 2.7, men att förmågan minskar då komplexiteten ökar. Det observerades att ChatGPT-4 ofta genererar syntaktiskt korrekt kod på chatbotens första försök, men att den har svårigheter för logik och komplex problemlösning, särskilt gällande uppgifter som kräver en djupare förståelse för programmering. Framtida forskning kan undersöka vidare hur programmeringsspråket kan påverka, samt anpassningen av AI inom en utbildningskontext.

Place, publisher, year, edition, pages
2024. , p. 13
Series
TRITA-EECS-EX ; 2024:230
Keywords [en]
ChatGPT-4, Programming Education, Automated Code Grading, Kattis, AI in Education, Code Complexity, Feedback Mechanisms, Educational Technology, Error Analysis, Language Model
Keywords [sv]
ChatGPT-4, Programmeringsutbildning, Automatiserad kodbedömning, Kattis, AI i utbildning, Kodkomplexitet, Feedbackmekanismer, Utbildningsteknik, Felanalys, Språkmodeller
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-349950OAI: oai:DiVA.org:kth-349950DiVA, id: diva2:1881803
Supervisors
Examiners
Available from: 2024-08-08 Created: 2024-07-03 Last updated: 2024-08-08Bibliographically approved

Open Access in DiVA

fulltext(2230 kB)415 downloads
File information
File name FULLTEXT01.pdfFile size 2230 kBChecksum SHA-512
325944515cad640d7ce67210273e4b2407f1f365e11cf419c50bea13dc9b143fc149b0a5a15de7c85943f72b4c20b0279c219de34a473136c2b4db189bd01224
Type fulltextMimetype application/pdf

By organisation
School of Electrical Engineering and Computer Science (EECS)
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 416 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 393 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf