TL;DR
Existing Knowledge Tracing (KT) models struggle because they rely on expensive, error-prone manual tagging of skills and treat questions as abstract numerical IDs, completely ignoring their semantic meaning. To solve this, the authors introduce KCQRL, a framework that leverages Large Language Models (LLMs) to automatically map out step-by-step question solutions and knowledge concepts, combined with a specialized contrastive learning strategy to build rich semantic question embeddings. Plugging these embeddings into 15 different KT models yielded consistent performance boosts across two massive real-world math datasets, especially in data-scarce scenarios.
What Problem Does This Paper Address?
In online learning platforms, Knowledge Tracing (KT) is the engine behind personalization. It models a student’s changing mastery of skills (called Knowledge Concepts, or KCs) over time based on their past performance, allowing the system to predict whether they will get the next question right or wrong.
However, current KT paradigms suffer from two major bottlenecks:
- The Annotation Bottleneck: They require domain experts to manually map thousands of questions to specific KCs. This process is incredibly time-consuming, expensive, and prone to human inconsistency.
- The Semantic Blindspot: Most KT models treat questions and KCs as simple numerical tokens or IDs. They initialize random embeddings for these IDs and force the model to simultaneously learn what a question means and how a student learns from scratch.
Methods
The authors propose KCQRL (Knowledge Concept annotation and Question Representation Learning), a flexible framework that acts as a drop-in upgrade for virtually any existing KT model. It operates in three distinct modules:
- Automated KC Annotation via LLMs: Instead of asking an LLM to blindly tag a question with skills, KCQRL uses Chain-of-Thought (CoT) prompting (via GPT-4o) to first generate a step-by-step solution. The LLM then identifies the necessary KCs based on those explicit steps and maps each solution step to its corresponding KCs.
- Representation Learning via Custom Contrastive Learning (CL): To convert text into meaningful vectors, the framework trains a text encoder (BERT). The goal is to bring the embeddings of questions and solution steps closer to their true KCs while pushing them away from irrelevant ones. Crucially, because different math questions often share highly similar concepts (e.g., "understanding addition" vs. "ability to perform addition"), standard CL would accidentally push these related concepts apart. The authors fix this by clustering KCs beforehand using HDBSCAN and applying a false negative elimination mask during training.
- Integration into KT Models: The learned semantic embeddings are aggregated and used to replace the randomly initialized question embeddings in standard KT models. The downstream KT model can then focus purely on learning student temporal dynamics.
Datasets
The framework was evaluated on two large-scale, real-world math learning datasets that contain actual question text:
- XES3G5M: Contains 5.5 million interactions from 18,066 students across 7,652 unique questions and 865 KCs. The authors translated this dataset from Chinese to English and released the English version with full annotations to the research community.
- Eedi: A prominent English dataset containing 2.3 million interactions from 47,560 students across 4,019 questions and 1,215 KCs.
Key Insights and Ideas
- Grounding Tags in Solutions: Forcing the LLM to generate a step-by-step solution before annotating KCs acts as a powerful regularizer. Important mathematical techniques are often hidden in the text; mapping out the steps ensures the generated KCs are highly granular and accurate.
- Disentangling Semantics from Sequence Modeling: By pre-training question representations independently of student histories, the downstream KT model is relieved of a massive optimization burden.
- The Danger of Naive Contrastive Learning in Education: Standard contrastive learning assumes all other samples in a batch are negative examples. In educational datasets, this assumption breaks down because many questions share latent skills. The inclusion of a false-negative elimination step based on semantic clustering was vital to making the contrastive representations effective.
Key Results
The authors plugged KCQRL into 15 different state-of-the-art KT models (including DKT, AKT, SAINT, and simpleKT) and evaluated them using the Area Under the ROC Curve (AUC):
- Consistent Performance Boosts: KCQRL improved the predictive accuracy of all 15 models across both datasets, yielding relative improvements between 1% and 7%.
- New State-of-the-Art: It pushed the top-performing models to new heights, raising the SOTA AUC on XES3G5M from 82.24 to 83.04, and on Eedi from 75.15 to 78.96.
- Exceptional Cold-Start Performance: The framework shines brightest when data is scarce. When training on just 5% of the available student data, a baseline model like AKT saw a massive +4 AUC improvement when equipped with KCQRL embeddings.
Limitations and Future Work
- Domain Restriction: The framework was exclusively tested on Math datasets. This limitation is primarily driven by the extreme scarcity of public KT datasets that preserve raw question text.
- Subject Expansion: Applying this to non-procedural subjects (like history or literature) where questions don't require multi-step reasoning would mean skipping the solution-step mapping module, though the authors show via ablations that the question-to-KC mapping alone still provides value.
- LLM Dependency for Training: While the runtime inference is fast and independent of the LLM, the initial offline data annotation phase still relies on access to capable models like GPT-4o.
Summary updated