[Paper Review] Application of Deep Self-Attention in Knowledge Tracing
This paper proposes Deep Self-Attentive Knowledge Tracing (DSAKT), a transformer-based model that enhances knowledge tracing by applying a dual-multihead attention mechanism in the decoder to better capture long-range dependencies in student learning sequences. On the PTA dataset, DSAKT improves AUC by an average of 2.1% over SAKT and DKT, demonstrating superior performance on dense, programming-focused learning data with repeated attempts.
The development of intelligent tutoring system has greatly influenced the way students learn and practice, which increases their learning efficiency. The intelligent tutoring system must model learners' mastery of the knowledge before providing feedback and advices to learners, so one class of algorithm called "knowledge tracing" is surely important. This paper proposed Deep Self-Attentive Knowledge Tracing (DSAKT) based on the data of PTA, an online assessment system used by students in many universities in China, to help these students learn more efficiently. Experimentation on the data of PTA shows that DSAKT outperforms the other models for knowledge tracing an improvement of AUC by 2.1% on average, and this model also has a good performance on the ASSIST dataset.
Motivation & Objective
- To improve knowledge tracing accuracy in intelligent tutoring systems for programming education.
- To address the limitations of RNN-based models like DKT and attention-based models like SAKT on dense, repeated-practice data from PTA.
- To model student mastery of knowledge concepts more effectively in scenarios with 'wrong before right' response patterns common in programming exercises.
- To leverage self-attention mechanisms for better sequence modeling and faster training compared to RNNs.
Proposed method
- DSAKT uses an encoder-decoder transformer architecture with shared weights in the decoder’s multi-head attention layers to preserve relation modeling across the sequence.
- Input representations combine exercise IDs and response labels via a learnable embedding, with response bias used to separate response signals from knowledge concepts.
- The encoder processes student interaction sequences using multi-head self-attention and feed-forward networks with residual connections and layer normalization.
- The decoder applies multi-head attention twice with shared weights: first on the decoder input, then on encoder outputs, enabling context-aware prediction.
- A final prediction layer applies a sigmoid-activated linear transformation to output the probability of correct response to the next exercise.
- Model training minimizes binary cross-entropy loss between ground-truth responses and predicted probabilities using the Adam optimizer with Noam learning rate scheduling.
Experimental results
Research questions
- RQ1Can a self-attention-based model outperform RNN-based and standard attention-based models in knowledge tracing on dense, programming-focused learning data?
- RQ2How does applying shared weights in a dual-attention decoder improve modeling of student knowledge progression in repeated practice scenarios?
- RQ3To what extent does the proposed DSAKT model generalize across datasets with varying sparsity, such as PTA and ASSIST datasets?
- RQ4Does the use of multi-head attention with residual connections and layer normalization improve AUC performance compared to DKT and SAKT?
Key findings
- DSAKT achieves an average AUC improvement of 2.1% over SAKT on the PTA dataset, with gains ranging from 1.37% to 3.10% across individual PTA datasets.
- On Pintia 3, DSAKT reaches an AUC of 0.764, significantly outperforming SAKT (0.741) and DKT (0.737).
- DSAKT achieves higher AUC than SAKT on both ASSIST2009 (0.769 vs. 0.761) and ASSIST2012 (0.748 vs. 0.737), demonstrating generalization across sparser datasets.
- The model is approximately one order of magnitude faster than RNN-based DKT due to the parallelizable nature of self-attention layers.
- Visualizations of attention weights show that the model effectively learns to attend to relevant knowledge concepts and prior interactions, especially in 'wrong before right' sequences.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.