@inproceedings{8a1cd20e1eb54c59adbcbbaf8aee200e,
title = "Improving LLM Classification of Logical Errors by Integrating Error Relationship into Prompts",
abstract = "LLMs trained in the understanding of programming syntax are now providing effective assistance to developers and are being used in programming education such as in generation of coding problem examples or providing code explanations. A key aspect of programming education is understanding and dealing with error message. However, {\textquoteleft}logical errors{\textquoteright} in which the program operates against the programmer{\textquoteright}s intentions do not receive error messages from the compiler. In this study, building on existing research on programming errors, we first define the types of logical errors that can occur in programming in general. Based on the definition, we propose an effective approach for detecting logical errors with LLMs that makes use of relations among error types in the Chain-of-Thought and Tree-of-Thought prompts. The experimental results indicate that when such logical error descriptions in the prompt are used, the average classification performance is about 21\% higher than the ones without them. We also conducted an experiment for exploiting the relations among errors in generating a new logical error dataset using LLMs. As there is very limited dataset for logical errors such benchmark dataset can be very useful for various programming related applications. We expect that our work can assist novice programmers in identifying the causes of code errors and correct them more effectively.",
keywords = "LLMs, Logical Error, Programming Education",
author = "Yanggyu Lee and Suchae Jeong and Jihie Kim",
note = "Publisher Copyright: {\textcopyright} The Author(s), under exclusive license to Springer Nature Switzerland AG 2024.; 20th International Conference on Generative Intelligence and Intelligent Tutoring Systems, ITS 2024 ; Conference date: 10-06-2024 Through 13-06-2024",
year = "2024",
doi = "10.1007/978-3-031-63028-6\_8",
language = "English",
isbn = "9783031630279",
series = "Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)",
publisher = "Springer Science and Business Media Deutschland GmbH",
pages = "91--103",
editor = "Angelo Sifaleras and Fuhua Lin",
booktitle = "Generative Intelligence and Intelligent Tutoring Systems - 20th International Conference, ITS 2024, Proceedings",
address = "Germany",
}