Knowledge Tracing Machines: Factorization Machines for Knowledge Tracing

Jill-Jênn Vie, Hisashi Kashima

Overview

Knowledge Tracing Machines (KTMs) provide a powerful, unifying framework for predicting student performance by applying Factorization Machines to educational data mining. By representing students, questions, and skills as sparse vectors, KTMs not only recover classic models like Item Response Theory (IRT) and Performance Factor Analysis (PFA) as special cases but also outperform state-of-the-art deep learning methods while remaining significantly faster to train.

Addressing the Sparsity and Context Challenge

In online learning environments, educators must accurately assess student mastery to provide personalized instruction—a task known as Knowledge Tracing (KT). Traditional models often struggle with two primary challenges:

  1. Sparsity: Students typically interact with only a tiny fraction of available content.
  2. Side Information: Most models ignore valuable context, such as which teacher assigned a task, the device used, or the specific difficulty of an individual item.

KTMs address these "siloed" approaches by incorporating diverse features into a single, efficient framework that bridges temporal models, factor analysis, and deep learning.

Methodology

KTMs leverage the architecture of Factorization Machines (FMs) to predict the probability of a correct answer. The model combines a global bias, linear weights for individual features (e.g., student proficiency, skill difficulty), and pairwise interactions. In this "secret sauce," every feature is assigned a latent embedding vector; the dot product of these vectors captures how features interact, such as how a student's specific strengths align with a question's requirements.

Figure 1: KTMs encode users, items, and skills into a sparse vector for prediction.

This approach serves as a "grand unified theory." By selecting specific features or setting the embedding dimension ($d$) to zero, KTMs can replicate existing models:

  • IRT: Using student and item IDs with $d=0$.
  • PFA: Using skills and success/failure counts with $d=0$.
  • MIRT: Using student and item IDs with $d > 0$.

Key Insights and Results

The researchers evaluated KTMs across six diverse datasets, including Assistments and Berkeley CS course data. Several critical findings emerged:

  • Item Bias is Crucial: Adding a bias for specific items (individual questions) provides a significant accuracy boost over models that only consider general skills. Not all questions covering the same skill are created equal.
  • Features Over Dimensions: One of the most surprising findings was that adding side information (like success/failure counters) improved performance much more effectively than simply increasing the size of the latent embedding vectors.
  • Efficiency: KTMs are remarkably fast. On the Assistments dataset, a KTM achieved better results than Deep Knowledge Tracing (DKT) in just 4.5 minutes on a standard CPU, compared to the hour required for the deep learning model.
Figure 2: Performance analysis showing the impact of data features and latent dimensions on model accuracy.

As shown in the performance analysis, the inclusion of "extra" side information (the dashed brown line in the "Effect of data" plot) leads to the highest accuracy. Conversely, the "Effect of dimension" plot shows that increasing $d$ beyond a certain point yields negligible gains, reinforcing the importance of feature engineering over model complexity.

Conclusion and Future Directions

KTMs offer a robust, efficient, and interpretable alternative to complex deep learning models in educational settings. While currently focused on pairwise interactions and binary outcomes, future work may explore Higher-Order Factorization Machines to capture more complex relationships or Ordinal Regression to handle partial credit and graded outcomes.

Summary updated

BibTeX
@inproceedings{vie2019knowledge,
  author = {Jill-Jênn Vie and Hisashi Kashima},
  title = {{Knowledge Tracing Machines: Factorization Machines for Knowledge Tracing}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.3301750},
}
Figure