Skip to main content
QUICK REVIEW

[Paper Review] From Prediction to Application: Language Model-based Code Knowledge Tracing with Domain Adaptive Pre-Training and Automatic Feedback System with Pedagogical Prompting for Comprehensive Programming Education

Unggi Lee, Jiyeong Bae|arXiv (Cornell University)|Jan 1, 2024
Intelligent Tutoring Systems and Adaptive LearningComputer Science1 citations
TL;DR

This paper introduces CodeLKT, a language model-based approach to Code Knowledge Tracing that leverages domain-adaptive and task-adaptive pre-training to improve prediction accuracy in programming education. It integrates a large language model with CodeLKT to generate personalized, pedagogically grounded feedback using structured prompting. The system significantly outperforms existing models and enables actionable, context-aware feedback, bridging the gap between prediction and application in programming learning.

ABSTRACT

Knowledge Tracing (KT) is a critical component in online learning, but traditional approaches face limitations in interpretability and cross-domain adaptability. This paper introduces Language Model-based Code Knowledge Tracing (CodeLKT), an innovative application of Language model-based Knowledge Tracing (LKT) to programming education. CodeLKT leverages pre-trained language models to process learning data, demonstrating superior performance over existing KT and Code KT models. We explore Domain Adaptive Pre-Training (DAPT) and Task Adaptive Pre-Training (TAPT), showing enhanced performance in the coding domain and investigating cross-domain transfer between mathematics and coding. Additionally, we present an theoretically-informed integrated system combining CodeLKT with large language models to generate personalized, in-depth feedback to support students' programming learning. This work advances the field of Code Knowledge Tracing by expanding the knowledge base with language model-based approach and offering practical implications for programming education through data-informed feedback.

Motivation & Objective

  • To address the limitations of traditional Knowledge Tracing (KT) models in capturing semantic nuances and enabling cross-domain transfer in programming education.
  • To improve prediction accuracy in Code Knowledge Tracing (CodeKT) by leveraging pre-trained language models with domain and task-specific adaptation.
  • To close the gap between predictive modeling and practical application by integrating automated, pedagogically informed feedback generation into a unified system.
  • To investigate cross-domain knowledge transfer between mathematics and coding using language models.
  • To develop a feedback system grounded in educational theory that provides context-aware, personalized guidance to students based on their learning history and performance.

Proposed method

  • CodeLKT employs a language model-based architecture to process student coding sequences as natural language, capturing semantic and syntactic patterns in code and responses.
  • Domain Adaptive Pre-Training (DAPT) fine-tunes the base language model on programming-specific corpora to enhance performance in the coding domain.
  • Task Adaptive Pre-Training (TAPT) further adapts the model on CodeKT-specific data to improve task-specific knowledge tracing capabilities.
  • A prompt-based feedback system uses pedagogical prompting templates with structured components (e.g., positive feedback, hints, related past problems) to generate context-aware, student-specific feedback.
  • The feedback system integrates CodeLKT’s prediction output (e.g., correctness probability) with LLMs to generate multi-component feedback, including correctness correction, improvement tips, and next challenges.
  • The system uses a two-stage prompting framework: one for correctness feedback (when answer is submitted) and another for hint feedback (when answer is incorrect), both grounded in programming education theory.

Experimental results

Research questions

  • RQ1How does CodeLKT compare to existing KT and CodeKT models in terms of prediction accuracy on programming learning tasks?
  • RQ2To what extent does Domain Adaptive Pre-Training (DAPT) improve model performance in the coding domain?
  • RQ3Can knowledge be effectively transferred from mathematics to coding via language models, and how does this affect performance?
  • RQ4How effective is Task Adaptive Pre-Training (TAPT) in enhancing CodeKT-specific performance?
  • RQ5Can an LLM-based feedback system generate pedagogically sound, personalized feedback that supports student learning beyond prediction?

Key findings

  • CodeLKT significantly outperforms existing KT and CodeKT models in prediction accuracy, demonstrating superior performance on programming education benchmarks.
  • Domain Adaptive Pre-Training (DAPT) leads to measurable improvements in model performance on coding-specific tasks, confirming the value of domain-specific fine-tuning.
  • Task Adaptive Pre-Training (TAPT) further enhances model performance on CodeKT tasks, indicating that task-specific adaptation is effective for knowledge tracing.
  • Cross-domain transfer from mathematics to coding is feasible using language models, suggesting potential for shared foundation models across STEM domains.
  • The integrated feedback system generates high-quality, personalized feedback that includes correctness correction, improvement tips, and next challenges, with qualitative evidence showing pedagogical soundness and contextual relevance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.