Automated Assessment of Student Self-Explanation in Code Comprehension Using Pre-Trained Language Models

Abstract

Assessing students' responses, especially natural language responses, is a major challenge in education. In general, in education contexts, automatically evaluating what learners do or say is important as it enables personalized instruction, e.g., based on what the learner knows tailored tasks and feedback are given to the learner. Recently, deep learning techniques led to state-of-the-art methods in NLP such as transformer-based methods which resulted in significant performance improvements for many NLP tasks such as text classification and question answering. However, there is not much work exploring such methods for assessing students' free answers, particularly in the context of code comprehension, which brings additional challenges as the student explanations include code references as well. This paper explores the potential of applying automated assessments methods using transformers to code comprehension. We fine-tuned pre-trained transformer models, including BERT, RoBERTa, CodeBERT, and SciBERT, to see how well they can automatically judge students' responses to code comprehension tasks. Our results demonstrate that these models can significantly enhance the accuracy and reliability of automated assessments, offering insights into how the latest NLP techniques can be leveraged in computer science education to support personalized learning experiences.

Cite

Text

Chapagain and Rus. "Automated Assessment of Student Self-Explanation in Code Comprehension Using Pre-Trained Language Models." AAAI Conference on Artificial Intelligence, 2025. doi:10.1609/AAAI.V39I28.35169

Markdown

[Chapagain and Rus. "Automated Assessment of Student Self-Explanation in Code Comprehension Using Pre-Trained Language Models." AAAI Conference on Artificial Intelligence, 2025.](https://mlanthology.org/aaai/2025/chapagain2025aaai-automated/) doi:10.1609/AAAI.V39I28.35169

BibTeX

@inproceedings{chapagain2025aaai-automated,
  title     = {{Automated Assessment of Student Self-Explanation in Code Comprehension Using Pre-Trained Language Models}},
  author    = {Chapagain, Jeevan and Rus, Vasile},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year      = {2025},
  pages     = {28996-29003},
  doi       = {10.1609/AAAI.V39I28.35169},
  url       = {https://mlanthology.org/aaai/2025/chapagain2025aaai-automated/}
}