TL;DR
This paper introduces LOKT, a novel approach to knowledge tracing using Large Language Models (LLMs) that significantly improves efficiency and accuracy. By converting learner option choices into textual "option weights," LOKT compresses historical interaction data, enabling LLMs to perform knowledge tracing with much shorter prompts and lower costs, especially in data-scarce "cold-start" scenarios.
What Problem Does This Paper Address?
Knowledge Tracing (KT) is crucial for understanding and predicting a learner's mastery of educational concepts over time. While Large Language Models (LLMs) show promise for KT due to their strong reasoning and generalization abilities, existing LLM-based methods face significant challenges. Specifically, in-context learning (ICL) approaches, which rely on providing example learner histories within prompts, struggle with scalability and high computational costs. This is because including full interaction histories quickly exhausts the limited token budgets of LLMs, especially for long learning sequences. This limitation hinders their effectiveness in real-world educational settings where data might be scarce (cold-start) or where efficiency is paramount.
Methods
The core innovation of this paper is LOKT (LLM-based Option weighted Knowledge Tracing). LOKT addresses the limitations of ICL by introducing a new way to represent learner interaction history: Textual Categorical Option Weights (TCOW).
Here's how it works:
- Continuous Option Weights: First, the system calculates continuous option weights for each choice a learner makes on a question. This involves measuring learner proficiency and how strongly each option choice correlates with that proficiency, considering question difficulty.
- Textual Categorical Option Weights (TCOW): These continuous weights are then transformed into semantic textual categories like "Proficient," "Partial," "Limited," and "Inadequate." This transformation is key because LLMs can interpret these human-readable labels much more effectively than raw numerical values.
- Structured Prompts: LOKT then constructs prompts for the LLM that include these TCOW values alongside other essential information like question IDs, KC IDs, and correctness sequences. This allows the LLM to "understand" the learner's state and reasoning behind their choices without needing the entire, lengthy interaction history.
This approach effectively compresses the learner's history into a compact, semantically rich representation, maintaining a fixed prompt length regardless of the number of interactions.
Datasets
The authors evaluated LOKT on five public multiple-choice question (MCQ) datasets:
- Eedi B
- Eedi A
- EdNet
- Assistment09
- DBE-KT22
These datasets vary in the number of options per question (from 4 to a maximum of 7).
Key Insights and Ideas
- Semantic Labels Trump Raw Numbers: LLMs struggle to interpret raw numerical option weights. Converting these weights into human-understandable textual categories (TCOW) significantly boosts performance by providing semantically rich signals.
- Compression is Key for Scalability: The TCOW approach effectively compresses long interaction histories into short, stable prompts. This is crucial for LLM-based KT, as it bypasses token limits and drastically reduces inference costs.
- Cold-Start Advantage: LOKT shows remarkable performance in cold-start scenarios, where data is scarce. This is attributed to its ability to extract more nuanced insights from limited interactions compared to traditional methods or simpler LLM-based approaches.
- LLM Size Matters: The benefits of LOKT become even more pronounced with larger LLMs, suggesting that these models can better leverage the structured, semantic information provided by TCOW.
Key Results
- Superior Accuracy: LOKT consistently outperformed both traditional KT models and existing LLM-based KT baselines (like CLST and Neshaei et al.) across all five datasets in cold-start settings, achieving the highest accuracy and F1 scores. For example, on the DBE-KT22 dataset at a low few-shot ratio (0.001), LOKT achieved an accuracy of 0.737, significantly higher than baselines.
- Cost Efficiency: LOKT demonstrated significantly lower inference costs compared to ICL-based LLM methods. While ICL costs increase linearly with the number of few-shot examples, LOKT's cost remained stable due to its compact prompts.
- Scalability: LOKT maintained performance under a fixed token budget (2000 tokens), outperforming other methods that struggled with limited context.
- Robustness: LOKT showed robust performance across different few-shot ratios and even in warm-start settings, indicating its generalizability.
Limitations and Future Work
The authors acknowledge two main limitations:
- Lack of Human Evaluation: The study did not include human evaluation of LLM predictions, which could provide deeper qualitative validation of interpretability and real-world applicability.
- Statistical Assumptions: The calculation of option weights relies on statistical assumptions that might not perfectly align with all data distributions, potentially impacting performance in certain scenarios.
Future work could involve incorporating expert assessments and conducting broader experiments to address these limitations. The authors also suggest exploring more advanced semantic alignment strategies for TCOW and investigating the impact of LLM parameter size further.
Summary updated