Improving Knowledge Tracing via Pre-training Question Embeddings

Yunfei Liu, Yang Yang, Xianyu Chen, Jian Shen, Haifeng Zhang, Yong Yu

Introduction

Knowledge Tracing (KT) is a fundamental task in intelligent tutoring systems, aimed at predicting a student's future performance based on their historical learning interactions. While deep learning models like Deep Knowledge Tracing (DKT) have significantly advanced the field, they often struggle with the trade-off between granularity and data sparsity.

The Granularity Gap

Most existing KT models operate at the "skill level," grouping diverse questions under broad categories like "Multiplication." However, this approach ignores the inherent differences in difficulty and context between specific questions. For instance, the skill "Addition" ($s_1$) might encompass simple problems like "2+3" ($q_2$) and more complex ones like "99+999" ($q_1$).

Bipartite graph representation of skills and questions.

Directly modeling at the question level is challenging because student-question interaction data is extremely sparse; most students only encounter a small fraction of the total question pool. This "sparsity vs. granularity" trade-off often leads to model failure when using raw question IDs.

Methodology: The PEBG Framework

To address these challenges, we propose PEBG (Pre-training Embeddings via Bipartite Graph), a framework that learns dense question representations before the main KT task. By separating the "learning what a question is" phase from the "learning how students learn" phase, the model avoids overfitting on sparse interaction data.

The complete PEBG pre-training architecture.

The PEBG architecture utilizes three primary components to enrich embeddings:

  1. Bipartite Graph Constraints: Questions and skills are modeled as nodes in a bipartite graph. The model optimizes for explicit skill-question relations, as well as implicit similarities between questions sharing skills and skills appearing in the same questions.
  2. Difficulty Constraints: To capture the "hardness" of a question, an auxiliary task predicts the question's difficulty (derived from training set success rates) based on its embedding. This ensures that difficulty is treated as a distinct, complementary signal to graph structure.
  3. Product-based Neural Network (PNN) Layer: A product layer captures high-order interactions between question features, skill features, and side attributes (e.g., response time), moving beyond simple concatenation to capture complex feature relationships.

Experimental Results

The PEBG framework was evaluated on three benchmark datasets: ASSIST09, ASSIST12, and EdNet. By replacing one-hot encodings with pre-trained PEBG embeddings, standard KT models saw significant performance improvements across the board.

On the ASSIST09 dataset, PEBG combined with DKT achieved an AUC of 0.8287, representing a 9.18% improvement over the baseline DKT (0.7356). Across all datasets, the method yielded an average AUC boost of 8.6%. Visualization using t-SNE confirmed that PEBG embeddings naturally cluster by skill, whereas standard question-level embeddings often appear as random noise.

Conclusion

PEBG demonstrates that pre-training question embeddings using graph structures and difficulty signals can effectively bridge the gap between coarse skill-level mastery and fine-grained question-level prediction. While the current model uses static difficulty and basic attributes, future work may involve incorporating natural language features from question text to further enrich the representations.

Summary updated

BibTeX
@inproceedings{liu2020improving,
  author = {Yunfei Liu and Yang Yang and Xianyu Chen and Jian Shen and Haifeng Zhang and Yong Yu},
  title = {{Improving Knowledge Tracing via Pre-training Question Embeddings}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.24963/ijcai.2020/219},
}
Figure