Dynamic Key-Value Memory Networks for Knowledge Tracing

Jiani Zhang, Xingjian Shi, Irwin King, Dit-Yan Yeung · DOI

TL;DR

This paper introduces Dynamic Key-Value Memory Networks (DKVMN), a novel approach to Knowledge Tracing (KT) that enhances student modeling by explicitly separating concept representations (keys) from student mastery levels (values). DKVMN outperforms existing methods like DKT and MANN by accurately tracing individual concept mastery and automatically discovering underlying exercise concepts, leading to more personalized and effective learning experiences.

What Problem Does This Paper Address?

Knowledge Tracing (KT) is a crucial task in educational technology, aiming to understand and predict a student's mastery of specific concepts based on their performance in a sequence of learning activities. The ultimate goal is to personalize learning, offering targeted practice and feedback. However, existing KT models face limitations: Bayesian Knowledge Tracing (BKT) models concepts in isolation, failing to capture inter-concept relationships, while Deep Knowledge Tracing (DKT) uses a single hidden state to represent a student's entire knowledge, making it difficult to pinpoint mastery of individual concepts or discover which concepts an exercise actually requires. This leaves a gap in accurately modeling student knowledge at a granular, concept-specific level and in automatically identifying the underlying concepts of learning materials.

Methods

The core innovation is the Dynamic Key-Value Memory Network (DKVMN). Unlike standard Memory-Augmented Neural Networks (MANNs) that use a single or two static memory matrices, DKVMN employs a key-value memory structure.

  • Keys (Static Matrix): This matrix stores representations of the underlying knowledge concepts. These "keys" are learned during training and remain fixed during testing, analogous to immutable objects in a dictionary.
  • Values (Dynamic Matrix): This matrix stores the student's mastery levels for each corresponding concept. These "values" are updated dynamically as the student interacts with exercises, akin to mutable values in a dictionary.

When a student attempts an exercise, the model first uses the exercise's representation to compute a correlation weight with the concept keys. This weight determines which concept states (values) are relevant. The model then reads the relevant concept states from the value matrix to predict the student's performance. After the exercise, the value matrix is updated based on the student's correctness, reflecting changes in their mastery of the relevant concepts. This separation allows DKVMN to:

  1. Explicitly model concepts: The key matrix learns representations of concepts.
  2. Trace individual concept mastery: The value matrix directly stores and updates mastery levels for each concept.
  3. Automatically discover concepts: By analyzing the correlation weights between exercises and keys, the model can infer which concepts an exercise targets.

The model is trained end-to-end using a standard cross-entropy loss.

Datasets

The paper evaluates DKVMN on four datasets:

  • Synthetic-5: A synthetic dataset designed to simulate student learning with 5 hidden concepts and varying difficulty levels. This dataset is used to evaluate the model's ability to discover concepts when ground truth is known.
  • ASSISTments2009: A real-world dataset from the ASSISTments online tutoring platform.
  • ASSISTments2015: Another dataset from ASSISTments, with a focus on a large number of records.
  • Statics2011: A dataset from a college-level engineering statics course, notable for having a large number of exercise tags and a relatively small number of students.

Key Insights and Ideas

  • Decoupling Concepts and Mastery: The key insight is that separating the representation of a concept (key) from the student's current understanding of that concept (value) is crucial for effective knowledge tracing. This allows for a more nuanced understanding of both the learning material and the student's progress.
  • Automatic Concept Discovery: DKVMN's ability to learn concept representations and then correlate exercises with these concepts offers a powerful way to automatically discover the underlying skills or knowledge required for an exercise, a task traditionally requiring human annotation.
  • Granular Knowledge State: By maintaining a dynamic value matrix for each concept, DKVMN provides a detailed view of a student's mastery across multiple concepts, unlike holistic representations in DKT.
  • Efficiency with Fewer Parameters: DKVMN achieves superior performance with significantly fewer parameters compared to DKT, suggesting a more efficient model architecture for knowledge tracing.

Key Results

  • Superior Prediction Accuracy: DKVMN consistently outperforms state-of-the-art models like DKT and MANN across all four datasets, achieving higher AUC scores. For example, on the Statics2011 dataset, DKVMN achieved an AUC of 82.8%, significantly better than DKT (80.2%) and MANN (77.6%).
  • Parameter Efficiency: DKVMN requires substantially fewer parameters than DKT to achieve comparable or better performance. For instance, on Statics2011, DKVMN achieved its best AUC with only 197 thousand parameters, while DKT needed 1 million parameters for a slightly lower AUC.
  • Robustness to Overfitting: Unlike DKT, which shows a significant gap between training and validation AUC, DKVMN exhibits minimal overfitting, with validation AUC increasing smoothly alongside training AUC.
  • Effective Concept Discovery: Experiments on the Synthetic-5 dataset showed a perfect clustering of exercises into their ground-truth concepts when using DKVMN, with an adjusted mutual information of 1.0. Similar strong results were observed on real-world datasets.
  • Knowledge State Depiction: The paper demonstrates DKVMN's capability to visualize a student's changing mastery levels across different concepts over time, providing valuable insights into their learning progress.

Limitations and Future Work

  • Limitations: The paper does not explicitly detail limitations beyond the inherent challenges of modeling human learning. The performance on datasets with very few exercises per student might still be a challenge, though the results on Statics2011 suggest robustness.
  • Future Work: The authors propose incorporating content information into exercise and concept embeddings to further enhance representations. They also suggest exploring hierarchical key-value memory networks to model the hierarchical relationships between concepts, which is a natural extension for more complex knowledge structures.

Summary updated

BibTeX
@inproceedings{zhang2017dynamic,
  author = {Jiani Zhang and Xingjian Shi and Irwin King and Dit-Yan Yeung},
  title = {{Dynamic Key-Value Memory Networks for Knowledge Tracing}},
  booktitle = {The Web Conference},
  year = {2017},
  doi = {10.1145/3038912.3052580},
}
Figure