Abstract
Large Language Models (LLMs) have recently emerged as promising tools for knowledge tracing (KT) due to their strong reasoning and generalization abilities. While recent LLM-based KT methods have proposed new prompt formats, they struggle to represent the full interaction histories of example learners within a single prompt during in-context learning (ICL), resulting in limited scalability and high computational cost under token constraints. In this work, we present LLM-based Option-weighted Knowledge Tracing (LOKT), a simple yet effective framework that encodes the interaction histories of example learners in context as textual categorical option weights (TCOW). TCOW are semantic labels (e.g., "inadequate") assigned to the options selected by learners when answering questions, enhancing the interpretability of LLMs. Experiments on multiple-choice datasets show that LOKT outperforms existing non-LLM and LLM-based KT models in both cold-start and warm-start settings. Moreover, LOKT enables scalable and cost-efficient inference, achieving strong performance even under strict token constraints.
Introduction
Knowledge Tracing (KT) is a fundamental task in personalized education, aiming to predict a student's future performance based on their historical interactions. While traditional deep learning models excel with large datasets, they often struggle with the "cold-start" problem—situations where data for new students or courses is sparse.
Recent approaches leverage the In-Context Learning (ICL) capabilities of Large Language Models (LLMs) to address this. However, standard ICL methods suffer from a "token hog" problem: as the number of context examples increases, the prompt length grows linearly, leading to high inference costs and eventually exceeding the model's token limit. Furthermore, raw binary "correct/wrong" feedback often lacks the nuance required for deep knowledge state estimation.
The LOKT Framework
To overcome these challenges, we propose LOKT (LLM-based Option-weighted Knowledge Tracing). The core innovation is the use of Textual Categorical Option Weights (TCOW), which transform raw interaction data into concise, semantically rich labels.
Methodology
The LOKT pipeline consists of three main stages:
- Continuous Weight Calculation: The system analyzes peer performance data to determine how strongly each multiple-choice option correlates with overall proficiency. Options chosen by high-performing students receive positive weights, while those chosen by low-performing students receive negative weights.
- Semantic Mapping (TCOW): Since LLMs process text more effectively than raw numbers, these continuous weights are mapped to four semantic categories: Proficient, Partial, Limited, and Inadequate.
- Encapsulated Prompting: Instead of listing full question texts and responses for every context example, LOKT provides a structured sequence of these TCOW labels. This "encapsulates" the knowledge state, maintaining a fixed prompt length regardless of the number of historical interactions summarized.
Experimental Evaluation
We evaluated LOKT on five diverse multiple-choice datasets: Eedi A & B, EdNet, Assistment09, and DBE-KT22. These datasets represent various educational contexts and levels of data sparsity.
Key Results
- Superior Cold-Start Performance: In extreme cold-start scenarios (0.1% training data), LOKT consistently outperformed both traditional neural KT models (e.g., DKT, SAKT) and standard LLM-based ICL methods.
- Efficiency and Scalability: Unlike standard ICL, where costs scale with the number of examples, LOKT maintains a stable, low token count. This allows for high-accuracy predictions even under strict token budgets.
Discussion and Conclusion
LOKT demonstrates that "words beat numbers" for LLM reasoning in educational contexts. By providing semantic context (e.g., identifying a "near-miss" vs. a "random guess"), the model gains a deeper understanding of the student's knowledge state.
While the current framework relies on statistical correlations from peer data, future work will explore human-expert validation of these semantic labels and extend the approach to open-ended question formats. LOKT offers a scalable, cost-effective path for deploying advanced AI in real-world educational platforms.
Summary updated