Abstract
The knowledge tracing (KT) problem is an extremely important topic in personalized education, which aims to predict whether students can correctly answer the next question based on their past question-answer records. Prior work on this task mainly focused on learning the sequence of behaviors based on the IDs or textual information. However, these studies usually fail to capture students' sufficient behavioral patterns without reasoning with rich world knowledge about questions. In this paper, we propose a large language models (LLMs)-based framework for KT, named LLM-KT, to integrate the strengths of LLMs and traditional sequence interaction models. For task-level alignment, we design Plug-and-Play instruction to align LLMs with KT, leveraging LLMs' rich knowledge and powerful reasoning capacity. For modality-level alignment, we design the plug-in context and sequence to integrate multiple modalities learned by traditional methods. To capture the long context of history records, we present a plug-in context to flexibly insert the compressed context embedding into LLMs using question-specific and concept-specific tokens. Furthermore, we introduce a plug-in sequence to enhance LLMs with sequence interaction behavior representation learned by traditional sequence models using a sequence adapter. Extensive experiments show that LLM-KT obtains state-of-the-art performance on four typical datasets by comparing it with approximately 20 strong baselines.
Introduction
Knowledge Tracing (KT) serves as the core engine for personalized learning platforms, predicting a student's future performance based on their historical interactions. Traditionally, researchers have faced a trade-off between two paradigms. Traditional deep learning models (e.g., DKT, AKT) excel at identifying patterns in sequences of Question IDs but lack semantic understanding of question content. Conversely, Large Language Models (LLMs) possess vast world knowledge and reasoning capabilities but struggle with long sequences of abstract IDs and the computational overhead of processing extensive textual histories.
LLM-KT addresses this "modality gap" by bridging the gap between the behavioral pattern recognition of traditional models and the reasoning power of LLMs.
Methodology: The LLM-KT Framework
The core of LLM-KT is a three-pronged "Plug-and-Play" approach designed to align disparate data modalities into a unified LLM workspace. This framework allows the model to leverage both the "memory" of sequence models and the "reasoning" of LLMs.
Plug-and-Play Components
- Plug-and-Play Instruction: Instead of raw text, the framework uses a template with specialized tokens for question and concept embeddings, allowing the LLM to process compressed, high-dimensional data.
- Plug-in Context: To incorporate rich question text without exceeding token limits, a Context Encoder (e.g., BERT) transforms text into vectors. A Context Adapter (MLP) then maps these into the LLM's native embedding space.
- Plug-in Sequence: Behavioral patterns are captured by a Sequence Encoder (a traditional KT model like AKT). A Sequence Adapter translates these patterns into the LLM's space, providing the model with a pre-digested history of student behavior.
- Parameter-Efficient Fine-Tuning: The system utilizes LoRA (Low-Rank Adaptation), updating only a small fraction of the LLM's parameters to maintain computational feasibility.
Experimental Evaluation
The model was evaluated on four major KT benchmarks: ASSISTments2009, ASSISTments2015, Junyi Academy, and the NeurIPS 2020 Education Challenge (Nips2020).
Key Results
LLM-KT achieved State-of-the-Art (SOTA) results across all four datasets, outperforming approximately 20 baseline models. Notably, on the Nips2020 dataset, LLM-KT improved AUC by 5.08% and Accuracy by 10.06% over the strongest LLM-only baseline.
As shown in the figure above, LLM-KT demonstrates significant resilience to sequence length. While traditional models like DKT often see performance degradation as student history grows, LLM-KT's performance generally improves or remains stable as more history (up to 100 interactions) is provided. This suggests the "plug-in" architecture successfully mitigates the "lost in the middle" problem common in long-context LLM applications.
Discussion and Insights
Several key insights emerged from the development of LLM-KT:
- Semantic Integration: Simply adding context (textual) and sequence (behavioral) embeddings performed better than concatenation, suggesting these modalities provide complementary information within the same semantic space.
- LLMs as Reasoning Engines: The LLM acts as a final arbiter, using internal logic to weigh a student's past behavior against the specific difficulty and semantic content of the target question.
- Handling Noise: While performance is generally robust, the Junyi dataset showed that "noise" in long-term, fragmented histories can still pose challenges, indicating a need for future work in automated history filtering.
Conclusion
LLM-KT represents a significant step forward in Knowledge Tracing by successfully aligning the reasoning capabilities of LLMs with the sequential pattern recognition of traditional KT models. Through its modular plug-and-play architecture, it achieves superior performance while effectively managing the complexities of multi-modal educational data.
Summary updated