TL;DR
This paper introduces RAG-KT, a novel framework that uses retrieval-augmented generation with Large Language Models (LLMs) to improve knowledge tracing (KT) accuracy and interpretability, especially across different educational platforms. By building a unified knowledge base and employing multi-view retrieval, RAG-KT provides grounded, explainable predictions that overcome the limitations of traditional and existing LLM-based KT methods.
What Problem Does This Paper Address?
Knowledge Tracing (KT) is crucial for understanding student learning, but current methods face significant challenges. Traditional deep learning (DL) models are often platform-specific and lack interpretability. While LLMs offer promise for explainability, they can be ungrounded or prone to hallucinations when used directly for KT. A major hurdle is the "cross-platform shift" – educational data often comes from diverse sources with different underlying distributions, which severely degrades the generalization of existing KT models. This paper aims to bridge this gap by developing a KT system that is robust, interpretable, and generalizable across different platforms.
Methods
The core of RAG-KT is a three-stage process:
- Multi-source Heterogeneous Knowledge Base Construction: This involves building a unified knowledge graph (G) and interaction repository (R) that integrates data from multiple platforms. A key innovation is the introduction of "Question Group" (QG) nodes, which act as an abstraction layer to align semantically similar questions across different platforms, mitigating identifier inconsistencies. The graph includes nodes for Knowledge Concepts (K), Question Groups (QG), Questions (Q), Students (S), Ability Levels (A), and Difficulty Levels (D).
- Multi-view Fusion Retrieval: For each prediction, RAG-KT retrieves relevant context from the knowledge base. This retrieval is guided by three "views" or subgraphs:
- KC Interest Subgraph: Focuses on the target knowledge concept and its related concepts, question groups, and difficulty levels to define a shared semantic scope for comparing student behaviors.
- Structural Path Subgraph: Captures prerequisite and associative relationships around the target concept, reflecting how well a student's learned concepts align structurally with the target.
-
Ability Subgraph: Leverages student ability levels and their relationships to concepts. These views are used to compute similarity scores between the target student and similar students. The retrieved information from these similar students is then used to form a structured, context-grounded prompt.
-
Explainable Analysis Report Generation: A frozen LLM is used to perform zero-shot prediction and generate an interpretable, data-driven analysis report. The prompt is carefully structured to guide the LLM, incorporating student and question metadata, individual performance, peer aggregates, and historical trends.
Datasets
The paper evaluates RAG-KT on three widely used public KT datasets:
- ASSIST09 and ASSIST12 (from the ASSISTments platform)
- DBE-KT22 (from an online course)
Additionally, the Eedi dataset is used to assess performance in a fully cold-start setting, where students and questions are entirely unseen.
Key Insights and Ideas
- Question Groups as a Unifying Abstraction: The introduction of Question Groups is a clever way to bridge platform-specific question identifiers by grouping semantically similar questions based on concept and difficulty. This is crucial for cross-platform generalization.
- Multi-view Retrieval for Grounded Predictions: Instead of relying solely on the LLM's internal knowledge, RAG-KT grounds its predictions by retrieving diverse contextual information from multiple perspectives (behavior, structure, ability). This significantly enhances accuracy and interpretability.
- LLMs as Explainable Reasoning Engines: By framing KT as a structured prompt-based task for LLMs, the paper leverages their natural language capabilities to generate human-readable diagnostic reports, moving beyond simple accuracy scores.
- Robustness to Cross-Platform Shifts: The experimental results strongly suggest that RAG-KT is significantly more robust to distribution shifts between platforms compared to traditional and other LLM-based methods.
Key Results
- RAG-KT consistently outperforms all baseline models (traditional DL-based and LLM-based) across three benchmark datasets in terms of accuracy (ACC), AUC, and F1 scores.
- The RAG-KT framework, particularly with the DeepSeek-R1 LLM backbone, achieved the highest scores on all datasets, demonstrating strong robustness and generalization.
- In cold-start scenarios (Eedi dataset), RAG-KT significantly outperforms other methods, highlighting its ability to handle unseen students and questions by leveraging its structured knowledge base and retrieval mechanism.
- Ablation studies confirm the importance of each component: removing similar students, question groups, or retrieval subgraphs leads to substantial performance drops.
- The generated reports are highly rated for explainability, readability, educational usefulness, and rigor, as evaluated by both LLM-based scoring and expert human judgment.
Limitations and Future Work
- Inference Latency and Cost: RAG-KT incurs higher inference latency and API costs compared to lightweight DL models due to its multi-step retrieval and LLM generation process.
- Semantic Alignment Challenges: In scenarios with extremely sparse data or poorly defined concept taxonomies, semantic alignment might be difficult, potentially impacting retrieval quality.
Future work suggested includes distilling RAG-KT into smaller, local models to improve efficiency and exploring ways to balance performance and latency.
Summary updated