DyGKT: Dynamic Graph Learning for Knowledge Tracing

Ke Cheng, Linzhi Peng, Pengyang Wang, Junchen Ye, Leilei Sun, Bowen Du

Abstract

Knowledge Tracing (KT) is the task of modeling student mastery of concepts over time. While traditional methods treat this as a sequence modeling problem, they often fail to capture the complex temporal and structural dynamics of real-world learning. We propose DyGKT, a Continuous-Time Dynamic Graph (CTDG) framework that models student-question interactions as an evolving graph. By incorporating a dual-time encoding strategy and a multiset indicator for repeat behaviors, DyGKT effectively addresses challenges such as growing data scales and varying time semantics. Experimental results across five real-world datasets demonstrate that DyGKT significantly outperforms state-of-the-art baselines in both transductive and inductive performance prediction.

The Dynamics of Learning

Traditional Knowledge Tracing models, such as Deep Knowledge Tracing (DKT), typically rely on Recurrent Neural Networks (RNNs) or Transformers to process fixed-length sequences of student interactions. However, these approaches overlook three fundamental dynamics inherent in educational data:

  1. Growing Scale: Learning logs are not static; they grow indefinitely as students continue to interact with the system, making fixed-length windows problematic.
  2. Varying Time Semantics: The time elapsed between questions carries different cognitive meanings. A short interval might represent active thinking or a brief break, while a long interval (e.g., two weeks) likely involves forgetting.
  3. Evolving Relationships: Students frequently revisit questions or concepts. Distinguishing between a first-time success and a success achieved after multiple failed attempts is crucial for accurate mastery estimation.
The three dynamics of real-world knowledge tracing: growing scale, varying time intervals, and evolving structure.

The DyGKT Methodology

To address these challenges, DyGKT utilizes a Continuous-Time Dynamic Graph (CTDG) where students and questions are represented as nodes, and each answer is a timed link. The framework introduces several innovative modules:

  • Dual Time Encoder: Instead of simple temporal decay, DyGKT employs two separate neural networks (MLPs) to encode time intervals. A predefined threshold (e.g., 24 hours) separates short-term "thinking" patterns from long-term "forgetting" effects, allowing the model to more accurately reflect human memory processes.
  • Multiset Indicator: This module explicitly identifies repeat interactions. By flagging whether a student has encountered a specific question or concept before, the model captures the structural "repeat behavior" vital for understanding a student's struggle or mastery.
  • Dynamic Subgraph Extraction: For each prediction, the model extracts the most recent "first-hop" neighbors to build a contextual representation of the current state.
  • Continuous-Time GRU: Gated Recurrent Units are used to update the latent states of students and questions dynamically as new interactions occur.

Experimental Results

DyGKT was evaluated on five diverse datasets: ASSISTment12, ASSISTment17, Slepemapy.cz, Junyi, and EdNet-KT1. The model consistently achieved state-of-the-art results in terms of Area Under the Curve (AUC). For example, on the ASSISTment17 dataset, DyGKT reached an AUC of 0.8021, a substantial improvement over DKT's 0.7098.

Beyond accuracy, DyGKT demonstrated exceptional inductive performance, successfully predicting student success on questions not seen during the training phase. This suggests the model learns generalized representations of concept difficulty and student mastery rather than just memorizing question IDs. Furthermore, DyGKT is highly parameter-efficient; for the Assist17 dataset, it requires only 0.292 MB of parameters, compared to 12.45 MB for some competing models like IEKT.

Conclusion

DyGKT represents a shift from sequence-based to graph-based knowledge tracing. By modeling learning as a continuous, evolving process and explicitly accounting for temporal semantics and repeat behaviors, it provides a more robust and scalable solution for personalized education systems. Future research will focus on incorporating more complex structural patterns and adaptive temporal thresholds tailored to individual students.

Summary updated

BibTeX
@inproceedings{cheng2024dygkt,
  author = {Ke Cheng and Linzhi Peng and Pengyang Wang and Junchen Ye and Leilei Sun and Bowen Du},
  title = {{DyGKT: Dynamic Graph Learning for Knowledge Tracing}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2024},
  doi = {10.1145/3637528.3671773},
}
Figure