University of Guelph
Evaluating Source Code Embeddings from LLMs for Educational Downstream Tasks
Abstract
dc:description.abstractRecent advances in Deep Learning (DL) have transformed natural language processing by enabling models to capture complex linguistic patterns. These techniques extend naturally to source code, which shares similarities with natural language but also exhibits strict syntactic and semantic constraints. This thesis investigates the effectiveness of different source code embedding strategies for three educational tasks: code correctness, code summarization, and code similarity. We introduce a set of systematic evaluation frameworks and propose a fine-tuning approach for a pre-trained, code-centric large language model to generate context-aware C++ embeddings. Experimental results demonstrate that while modern embeddings capture meaningful semantic and functional information and perform well on summarization and similarity tasks, they struggle to encode fine-grained structural details required for reliable correctness assessment. These findings highlight key limitations of current embedding approaches and identify important challenges for automated grading and other educational applications that depend on precise structural understanding of source code.
Degree
thesis:*- Name thesis:degree_name
- Master of Science
- Department thesis:degree_department
- School of Computer Science
- Grantor dc:publisher
- University of Guelph
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Pais, Neil Allister
- Advisor dc:contributor.advisor
-
- Chaturvedi, Ritu
Subjects
dc:subject × 3Rights
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/10214/29424