Solving Proof Block Problems Using Large Language Models

Seth Poulsen, Sami Sarsa, James Prather, Juho Leinonen, Brett A. Becker, Arto Hellas, Paul Denny, Brent N. Reeves

Research output: Chapter in Book/Report/Conference proceedingConference article in proceedingsScientificpeer-review

7 Citations (Scopus)
20 Downloads (Pure)

Abstract

Large language models (LLMs) have recently taken many fields, including computer science, by storm. Most recent work on LLMs in computing education has shown that they are capable of solving most introductory programming (CS1) exercises, exam questions, Parsons problems, and several other types of exercises and questions. Some work has investigated the ability of LLMs to solve CS2 problems as well. However, it remains unclear how well LLMs fare against more advanced upper-division coursework, such as proofs in algorithms courses. After all, while known to be proficient in many programming tasks, LLMs have been shown to have more difficulties in forming mathematical proofs. In this paper, we investigate the ability of LLMs to solve mathematical proofs by using Proof Blocks, a tool previously shown to efficaciously teach proofs to students. Our results show that GPT-3.5 is almost completely unable to provide correct solutions (11.4%), while GPT-4 shows a significant increase in correctness (64.8%). However, even given this improvement, current models still struggle to correctly order lines in a proof. It remains an open question whether this is a temporary situation or if LLMs will continue to struggle to solve these types of exercises in the future.

Original languageEnglish
Title of host publicationSIGCSE 2024 - Proceedings of the 55th ACM Technical Symposium on Computer Science Education
PublisherACM
Pages1063-1069
Number of pages7
ISBN (Electronic)979-8-4007-0423-9
DOIs
Publication statusPublished - 7 Mar 2024
MoE publication typeA4 Conference publication
EventACM Technical Symposium on Computer Science Education - Portland, United States
Duration: 20 Mar 202423 Mar 2024
Conference number: 55

Conference

ConferenceACM Technical Symposium on Computer Science Education
Abbreviated titleSIGCSE
Country/TerritoryUnited States
CityPortland
Period20/03/202423/03/2024

Keywords

  • ai
  • algorithms
  • artificial intelligence
  • chatgpt
  • code generation
  • generative ai
  • gpt-3
  • gpt-4
  • large language models
  • openai
  • proof blocks
  • proofs

Fingerprint

Dive into the research topics of 'Solving Proof Block Problems Using Large Language Models'. Together they form a unique fingerprint.

Cite this