Abstract
The Self-Attentive Knowledge Tracing (SAKT) model applies the Transformer’s self-attention mechanism to predict student performance. By identifying and "attending" to only the most relevant past learning activities, SAKT outperforms traditional Recurrent Neural Network (RNN) models in accuracy—especially on sparse datasets—while being up to an order of magnitude faster to train.
1. Introduction
Knowledge Tracing (KT) is the task of modeling a student’s mastery of specific concepts over time to predict how they will perform on future exercises. Historically, this was done with Bayesian models, but recently, Deep Knowledge Tracing (DKT) using RNNs became the standard. However, RNN-based models have two major flaws: data sparsity and computational bottlenecks. In the real world, students often interact with only a few concepts. RNNs try to summarize an entire history into a single hidden vector, which often fails to generalize well when data is thin. Furthermore, RNNs process data sequentially, making them slow to train on large-scale datasets.
2. Methodology
The authors propose SAKT, which abandons the sequential nature of RNNs in favor of a purely attention-based mechanism derived from the Transformer architecture. Instead of a hidden state that evolves over time, SAKT uses a "Query" (the exercise the student is about to attempt) to search through "Keys" and "Values" (the student's history of past exercises and their correctness).
Key technical components include:
- Self-Attention Layer: Allows the model to assign higher weights to past activities conceptually related to the current one.
- Embeddings & Position Encoding: Captures the temporal evolution of knowledge.
- Causality Masking: Prevents "cheating" by ensuring predictions only use past information.
- Residual Connections & Layer Normalization: Stabilizes training and allows feature propagation.
3. Experimental Setup
The model was evaluated on five diverse datasets: Synthetic data, three versions of the ASSISTment dataset (2009, 2015, and Challenge), and STATICS2011. These datasets vary significantly in density; for instance, ASSIST2015 is highly sparse (0.05), while ASSIST-Chall is relatively dense (0.81).
4. Results and Discussion
SAKT outperformed state-of-the-art models (DKT, DKT+, DKVMN) across almost all datasets, achieving an average AUC improvement of 4.43%. On the highly sparse ASSIST2015 dataset, SAKT improved the AUC by a staggering 15.87% over the next best model. Additionally, SAKT is significantly faster, training roughly 32x to 46x faster than RNN-based alternatives due to parallelization.
Beyond performance, SAKT offers interpretability. By examining attention weights, researchers can identify which skills the model considers prerequisites or highly relevant to others.
Traditional models often over-emphasize the most recent interaction. SAKT proves that identifying conceptually relevant past interactions is more effective for prediction than simply looking at the most recent ones.
5. Conclusion
While SAKT shows significant promise, the authors noted that the architecture is relatively shallow, and deeper models did not yield significant gains on current KT datasets. Future work could incorporate additional features like time spent or hints requested. Despite these limitations, SAKT represents a major step forward in efficient and accurate knowledge tracing.
Summary updated