Abstract
This study investigates the potential of Large Language Models (LLMs) to serve as general-purpose engines for Knowledge Tracing (KT)—the task of predicting a student's future performance based on their historical learning trajectory. By evaluating models like GPT-3, GPT-2, and BERT across three benchmark datasets, the researchers compare LLM performance against traditional Bayesian and specialized deep learning architectures. The findings reveal that while zero-shot prompting is ineffective, fine-tuned LLMs can match the performance of traditional Bayesian Knowledge Tracing (BKT). However, specialized models like Deep Knowledge Tracing (DKT) continue to maintain a performance advantage, highlighting a gap between general-purpose pattern matching and domain-specific architectures.
Introduction
Intelligent Tutoring Systems (ITS) rely on the ability to accurately model a student's mastery of specific skills to provide personalized educational experiences. This challenge, known as Knowledge Tracing (KT), has historically been addressed through two primary lenses: Markovian models like Bayesian Knowledge Tracing (BKT), which treat mastery as a hidden state, and deep learning models like Deep Knowledge Tracing (DKT), which utilize Recurrent Neural Networks (RNNs) to process sequences of student interactions.
With the rise of Large Language Models, a new question emerges: Can we leverage the massive-scale pattern recognition capabilities of LLMs to perform KT without the need for bespoke educational architectures? This paper explores whether LLMs can "read" a sequence of student successes and failures as a specialized language, potentially offering a more flexible and scalable approach to adaptive learning.
Methodology
The researchers evaluated two primary strategies for applying LLMs to the KT problem:
1. Zero-Shot Prompting
Using GPT-3.5, the researchers attempted to predict whether a student's next answer would be "CORRECT" or "WRONG" based solely on a natural language description of their history. This approach required no task-specific training, relying entirely on the model's pre-existing reasoning capabilities.
2. Fine-Tuning
The team fine-tuned BERT, GPT-2, and GPT-3 (specifically the Babbage-002 variant) on student interaction data. To optimize performance, they employed two distinct prompt styles:
- Minimal Prompt: Included the question ID and the total count of prior correct and incorrect answers.
- Extended Prompt: Added "skill-specific" history, providing the model with context on how many times the student had succeeded or failed on that specific type of problem.
To assist the models in processing numerical data, the researchers utilized a digit-spacing technique (e.g., representing "342" as "3 4 2"), which has been shown to improve LLM performance on mathematical and counting tasks.
Datasets
The study utilized three standard benchmarks from the Educational Data Mining (EDM) community:
- Statics: 189k entries from an engineering statics course.
- ASSISTments 2009: A math tutoring dataset containing 278k entries.
- ASSISTments 2017: The largest dataset in the study, comprising 934k entries.
Key Insights and Results
The Emergence of Performance with Scale
One of the most significant findings was that student modeling appears to be an emergent property of scale. Smaller models like BERT and GPT-2 were largely ineffective, often producing static or unusable outputs. Only the larger GPT-3 model demonstrated the ability to internalize the underlying patterns of student learning after fine-tuning.
Zero-Shot Limitations
Zero-shot prompting failed to outperform even basic baselines. This suggests that student interaction data constitutes a "specialized sub-language" that LLMs must be exposed to through fine-tuning to recognize the mathematical and linguistic structures inherent in learning trajectories.
Comparative Performance
Fine-tuned GPT-3 (using the Extended Prompt) consistently outperformed naive baselines and performed on par with or slightly better than BKT. For instance, on the Statics dataset, GPT-3 achieved an AUC of 0.70, compared to 0.67 for BKT. However, a significant gap remains between LLMs and state-of-the-art specialized models. DKT (AUC 0.83) and SAKT (AUC 0.82) significantly outperformed the LLM approach, though the gap narrowed as the training dataset size increased.
Discussion and Limitations
While LLMs offer a promising new avenue for KT, they introduce several trade-offs:
- The "Black Box" Problem: Unlike BKT, which provides a clear probability of skill mastery, LLMs provide a binary prediction or a probability score without an interpretable pedagogical rationale. This lack of transparency makes it difficult for educators to diagnose exactly why a student is struggling.
- Computational and Environmental Cost: LLMs are significantly more resource-intensive than specialized models. The researchers noted that a single LLM interaction consumes approximately 1 Wh of energy, orders of magnitude more than traditional KT models.
- Data Sensitivity: LLMs showed a high sensitivity to the volume of data, suggesting that while they are powerful, they require massive educational datasets to approach the efficiency of specialized architectures.
Conclusion and Future Work
This research demonstrates that fine-tuned LLMs can effectively model student performance, matching the capabilities of traditional Bayesian models. While they do not yet reach the state-of-the-art performance of specialized deep learning models, their ability to integrate complex features via natural language prompts suggests significant potential. Future research may explore Chain-of-Thought (CoT) prompting to improve reasoning or the use of larger context windows to process raw chronological interaction sequences rather than summarized counts.
Summary updated