EAKT: Embedding Cognitive Framework with Attention for Interpretable Knowledge Tracing

Yanjun Pu, Wenjun Wu, Tianhao Peng, Fang Liu, Yu Liang, Xin Yu, Ruibo Chen, Pu FengResearch 2022

Abstract

Recently, deep neural network-based cognitive models such as deep knowledge tracing have been introduced into the field of learning analytics and educational data mining. Despite an accurate predictive performance of such models, it is challenging to interpret their behaviors and obtain an intuitive insight into latent student learning status. To address these challenges, this paper proposes a new learner modeling framework named the EAKT, which embeds a structured cognitive model into a transformer. In this way, the EKAT not only can achieve an excellent prediction result of learning outcome but also can depict students’ knowledge state on a multi-dimensional knowledge component (KC) level. By performing the fine-grained analysis of the student learning process, the proposed framework provides better explanatory learner models for designing and implementing intelligent tutoring systems. The proposed EAKT is verified by experiments. The experimental results show that the EAKT can accurately trace changes in the students’ knowledge state and predict the future performance of student learning.

Introduction

In the field of Intelligent Tutoring Systems (ITS), Knowledge Tracing (KT) serves as the core engine for predicting student performance. However, the field currently faces a dichotomy: high-accuracy "black-box" models like Deep Knowledge Tracing (DKT) lack interpretability, while transparent structured models often struggle with complex, large-scale data.

EAKT (Embedding Attention for Knowledge Tracing) bridges this gap by integrating the Automatic Temporal Cognitive (ATC) model—a psychometrically rooted framework—directly into a Transformer architecture. This approach achieves state-of-the-art prediction accuracy while providing a clear, multi-dimensional view of a student's evolving mastery of specific skills.

Methods

The EAKT framework is structured into three primary layers: Input Embedding with a Q-Matrix, Knowledge State Updating via Self-Attention, and Prediction within a Cognitive Framework.

The EAKT architecture integrating Q-matrix embedding, self-attention, and a cognitive framework.

Key Innovations

  • Learnable Q-matrix: Rather than using a static mapping between questions and Knowledge Components (KCs), EAKT employs a fully connected layer initialized by a Q-matrix. This allows the model to refine skill-to-question mappings based on observed student performance during training.
  • Cognitive Embedding: Student interactions are transformed into multi-dimensional KC vectors. The model specifically calculates the "difference" between a student’s current mastery level and the requirements of a specific question.
  • Modified Sigmoid Function: Standard neural networks typically use a generic sigmoid function. EAKT introduces a modified version ($\phi'$) adjusted with hyperparameters ($m$ and $k$). This ensures that when a student’s mastery aligns with a question's requirements, the probability of a correct answer is mathematically consistent with cognitive theory.
Comparison between the standard sigmoid function and the modified cognitive activation function.
  • Self-Attention Mechanism: By leveraging the Transformer's self-attention, the model weighs the relevance of past interactions to capture long-term learning dependencies more effectively than traditional Recurrent Neural Networks (RNNs).

Experimental Setup and Datasets

The researchers evaluated EAKT using four distinct datasets to test both predictive accuracy and interpretability:

  1. ASSISTments 2009: A benchmark with 325k interactions from 4,151 students.
  2. ASSISTments 2015: A larger dataset focusing on 100 skills.
  3. ASSISTments 2017: A dense dataset with nearly 1 million interactions.
  4. Simu (Simulated Dataset): A simulator built using the ATC model to generate "ground-truth" knowledge states. This allowed the authors to verify if EAKT's internal representation of student mastery matched reality.

Key Results and Insights

Superior Accuracy and Fidelity

EAKT outperformed both DKT (RNN-based) and SAKT (standard Transformer-based) across most benchmarks. On the ASSIST2009 dataset, EAKT achieved an AUC of 84.0%, significantly higher than DKT (81.4%) and SAKT (79.9%). Furthermore, in simulations, EAKT achieved a Word Rotator’s Similarity (WRS.A) of 0.950, indicating that its internal representation of student knowledge is nearly identical to the ground truth.

The Value of Cognitive Constraints

The study demonstrated that forcing a neural network to operate within a cognitive framework (the ATC model) does not sacrifice performance. Instead, these constraints help the model generalize better. Validation of the modified sigmoid function showed that versions using the standard sigmoid performed worse in similarity metrics, proving that custom cognitive activation is essential for true interpretability.

Refining the Q-Matrix

The discovery that a "trainable" Q-matrix improves accuracy suggests that expert-defined skill mappings are often imperfect and can be optimized by observing actual student behavior.

Conclusion and Future Work

While EAKT successfully addresses the interpretability-accuracy trade-off, some challenges remain. The model's computational demand for very long exercise sequences is high, and it currently relies on expert labels or matrix factorization for initial Q-matrix setup. Future research will explore "cold-start" scenarios where no initial Q-matrix exists and further refine how the model accounts for the difficulty coefficients of individual questions within complex multi-skill scenarios.

Summary updated

BibTeX
@inproceedings{pu2022eakt,
  author = {Yanjun Pu and Wenjun Wu and Tianhao Peng and Fang Liu and Yu Liang and Xin Yu and Ruibo Chen and Pu Feng},
  title = {{EAKT: Embedding Cognitive Framework with Attention for Interpretable Knowledge Tracing}},
  booktitle = {Research},
  year = {2022},
  doi = {10.21203/rs.3.rs-1719423/v1},
}
Figure