Enhancing Knowledge Tracing through Leakage-Free and Recency-Aware Embeddings

Yahya Badran, Christine Preisach
8/23/2025
cs.CYcs.AIcs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Knowledge Tracing (KT) aims to predict a student's future performance based on their sequence of interactions with learning content. Many KT models rely on knowledge concepts (KCs), which represent the skills required for each item. However, some of these models are vulnerable to label leakage, in which input data inadvertently reveal the correct answer, particularly in datasets with multiple KCs per question. We propose a straightforward yet effective solution to prevent label leakage by masking ground-truth labels during input embedding construction in cases susceptible to leakage. To accomplish this, we introduce a dedicated MASK label, inspired by masked language modeling (e.g., BERT), to replace ground-truth labels. In addition, we introduce Recency Encoding, which encodes the step-wise distance between the current item and its most recent previous occurrence. This distance is important for modeling learning dynamics such as forgetting, which is a fundamental aspect of human learning, yet it is often overlooked in existing models. Recency Encoding demonstrates improved performance over traditional positional encodings on multiple KT benchmarks. We show that incorporating our embeddings into KT models like DKT, DKT+, AKT, and SAKT consistently improves prediction accuracy across multiple benchmarks. The approach is both efficient and widely applicable.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{badran2025enhancing,
  title  = {Enhancing Knowledge Tracing through Leakage-Free and Recency-Aware Embeddings},
  author = {Yahya Badran and Christine Preisach},
  year   = {2025},
  eprint = {2508.17092},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.17092v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.17092.svg)](https://codeofpaper.com/paper/2508.17092)

Discussion