Uncertainty-aware Knowledge Tracing

Weihua Cheng, Hanwen Du, Chunxiao Li, Ersheng Ni, Liangdi Tan, Tianqi Xu, Yongxin Ni

Abstract

Knowledge Tracing (KT) is crucial in education assessment, which focuses on depicting students' learning states and assessing students' mastery of subjects. With the rise of modern online learning platforms, particularly massive open online courses (MOOCs), an abundance of interaction data has greatly advanced the development of the KT technology. Previous research commonly adopts deterministic representation to capture students' knowledge states, which neglects the uncertainty during student interactions and thus fails to model the true knowledge state in learning process. In light of this, we propose an Uncertainty-Aware Knowledge Tracing model (UKT) which employs stochastic distribution embeddings to represent the uncertainty in student interactions, with a Wasserstein self-attention mechanism designed to capture the transition of state distribution in student learning behaviors. Additionally, we introduce the aleatory uncertainty-aware contrastive learning loss, which strengthens the model's robustness towards different types of uncertainties. Extensive experiments on six real-world datasets demonstrate that UKT not only significantly surpasses existing deep learning-based models in KT prediction, but also shows unique advantages in handling the uncertainty of student interactions.

Introduction

Knowledge Tracing (KT) is the fundamental task of modeling a student's evolving mastery of subjects based on their historical interaction data. While deep learning models like Deep Knowledge Tracing (DKT) and Attentive Knowledge Tracing (AKT) have significantly improved prediction accuracy, they typically rely on deterministic representations. These models map a student's knowledge state to a single point in a high-dimensional space, effectively ignoring the inherent uncertainty in the learning process.

Learning is rarely a linear or perfectly predictable path. Student performance is often influenced by two types of uncertainty: epistemic uncertainty, which stems from a genuine lack of knowledge or varying learning abilities, and aleatory uncertainty, which arises from random noise such as "lucky guesses" on unfamiliar topics or "careless slips" on mastered ones. By treating knowledge as a fixed coordinate, traditional models risk overestimating a student's ability after a lucky guess or underestimating it after a slip. The Uncertainty-Aware Knowledge Tracing (UKT) model addresses this by shifting from deterministic points to stochastic distributions.

Methodology: From Points to Distributions

The primary innovation of UKT is the use of Stochastic Embedding Layers. Instead of fixed vectors, student interactions and Knowledge Components (KCs) are mapped to Gaussian distributions. In this framework, the mean ((\mu)) represents the estimated knowledge level, while the covariance ((\Sigma)) quantifies the associated uncertainty.

Comparison between traditional deterministic knowledge states and the proposed stochastic distribution-based approach.

To process these distributions over time, UKT employs a Wasserstein-Based Self-Attention mechanism. Traditional attention mechanisms rely on dot-products, which are unsuitable for measuring distances between probability distributions. By utilizing the 2-Wasserstein distance—a concept from optimal transport—UKT can effectively track how the "cloud" of a student's knowledge distribution evolves through a sequence of learning behaviors.

Addressing Aleatory Uncertainty

To make the model resilient to random noise, the authors introduced Aleatory Uncertainty-Aware Contrastive Learning. This strategy involves generating "negative samples" by intentionally perturbing student responses—for instance, simulating a "careless error" by flipping a correct response to incorrect.

Visualization of how UKT processes interaction sequences, specifically distinguishing normal responses from 'careless' slips.

By training the model to maximize mutual information between the original sequence and these perturbed views, UKT learns to distinguish between a genuine lack of understanding and a random slip. This "lucky guess filter" ensures that the model's estimation of a student's knowledge state remains robust even in the presence of noisy data.

Experimental Evaluation

UKT was evaluated against several state-of-the-art baselines on six diverse real-world datasets, including ASSISTments (2009 & 2015), Algebra2005, Bridge2006, NIPS34, and POJ.

Key results include:

  • Superior Accuracy: UKT outperformed strong baselines like AKT and simpleKT on 5 out of 6 datasets. Notably, on the Algebra2005 dataset, it achieved a state-of-the-art AUC of 0.9320.
  • Robustness: In stress tests where aleatory uncertainty was intentionally increased, UKT's performance remained significantly more stable than deterministic models. For example, UKT showed only a 0.83% drop in performance compared to a 1.33% drop for AKT under similar noisy conditions.
  • Efficiency: Despite the mathematical complexity of modeling distributions, UKT remains computationally efficient, capable of training on a single GPU in under an hour for most datasets.

Conclusion and Future Work

UKT represents a significant conceptual shift in Knowledge Tracing by acknowledging that a student's state is a region of probability rather than a fixed point. While the model shows exceptional performance, there are opportunities for further refinement. On very large, highly diverse datasets like ASSIST2015, traditional attention structures still hold a slight edge, suggesting that the distribution-based approach could be further optimized for scale. Future research may also explore incorporating multimodal data, such as response times or student notes, to provide an even more granular estimation of learning uncertainty.

Summary updated

BibTeX
@inproceedings{cheng2025uncertainty,
  author = {Weihua Cheng and Hanwen Du and Chunxiao Li and Ersheng Ni and Liangdi Tan and Tianqi Xu and Yongxin Ni},
  title = {{Uncertainty-aware Knowledge Tracing}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=FBRg4OAJVC},
}
Figure