Multi-factor Memory Attentive Model for Knowledge Tracing

Congjie Liu, Xiaoguang LiACML 2021

Introduction

Knowledge Tracing (KT) serves as the foundational technology for intelligent tutoring systems, enabling the tracking of a student's evolving knowledge state through their interactions with learning materials. While deep learning advancements like Deep Knowledge Tracing (DKT) and Dynamic Key-Value Memory Networks (DKVMN) have significantly improved prediction accuracy, they often suffer from a critical limitation: they treat all exercises associated with a specific concept as identical.

In practice, exercises vary significantly in difficulty and their ability to distinguish between students of different mastery levels. Furthermore, standard recurrent models often struggle to maintain clear historical context over long sequences. The Multi-factor Memory Attentive Model (MMAKT) addresses these gaps by merging the interpretability of cognitive diagnosis with the predictive power of deep learning.

The MMAKT Framework

The MMAKT architecture is designed to capture both the static characteristics of exercises and the dynamic evolution of student proficiency. It consists of three primary stages: a multi-factor memory layer, a historical attention mechanism, and a final prediction layer.

The overall architecture of the MMAKT model, illustrating the flow from the Multi-factor DKVMN layer through historical attention to final prediction.

Multi-factor DKVMN Layer

Unlike traditional memory networks that rely solely on concept IDs, the Multi-factor DKVMN layer constructs rich exercise vectors by incorporating four distinct cognitive factors:

  • Knowledge Relevancy ($c_i$): The degree to which an exercise relates to specific underlying concepts.
  • Concept Difficulty ($b_i$): The inherent complexity of the concepts being tested.
  • Exercise Discrimination ($dis_i$): The effectiveness of the exercise in separating high-performing students from low-performing ones.
  • Student Proficiency ($m_i$): The student's current mastery level, which is dynamically updated in the memory network.
Detail of the multi-factor interaction mechanism, showing how student proficiency and exercise characteristics are combined to model the student's response.

This layer implements a "reasonable interaction" logic where a student's performance is modeled as a function of their proficiency minus the question's difficulty, scaled by the question's discrimination. This approach makes the model's internal states more interpretable and aligned with educational theory.

Historical Attention Layer

To overcome the limitations of recurrent neural networks (RNNs), which can "blur" information in latent states over time, MMAKT utilizes a multi-head self-attention mechanism. This layer explicitly calculates the relationship between the current exercise and the student's entire practice history. By doing so, the model can pinpoint specific past successes or failures that are most relevant to the current task, effectively "remembering" the most pertinent context for prediction.

Experimental Evaluation

The model was rigorously evaluated against four real-world datasets: ASSISTments 2009, 2015, 2017, and Statics2011. These datasets represent a wide range of student populations and interaction scales.

Key Results

MMAKT consistently outperformed baseline models such as DKT, DKVMN, and SAKT across all benchmarks. For instance, on the ASSIST2009 dataset, MMAKT achieved an AUC of 0.7644, a notable improvement over DKT (0.7364) and DKVMN (0.7459).

Beyond raw accuracy, the model demonstrated superior stability during training and provided valuable insights through parameter visualization. It correctly identified that student proficiency should increase following correct answers and decrease after errors, confirming that the model's internal updates reflect real-world learning dynamics.

Conclusion and Future Work

MMAKT successfully bridges the gap between cognitive diagnosis and dynamic knowledge tracing. By accounting for exercise-level factors like difficulty and discrimination, it provides a more nuanced and accurate prediction of student performance.

Future research will focus on incorporating prerequisite relationships between concepts and accounting for temporal factors, such as the "forgetting curve," by integrating the time intervals between student interactions. Additionally, exploring factors that measure learning effectiveness—rather than just correctness—could further enhance the model's utility in personalized learning environments.

Summary updated

BibTeX
@inproceedings{liu2021multi,
  author = {Congjie Liu and Xiaoguang Li},
  title = {{Multi-factor Memory Attentive Model for Knowledge Tracing}},
  booktitle = {ACML},
  year = {2021},
}
Figure