Interpretable Knowledge Tracing via Response Influence-based Counterfactual Reasoning

Jiajun Cui, Minghe Yu, Bo Jiang, Aimin Zhou, Jianyong Wang, Wei Zhang

TL;DR

RCKT (Response influence-based Counterfactual Knowledge Tracing) makes deep learning models for education interpretable by asking "what if?" It uses counterfactual reasoning to quantify how much each of a student's past answers influences the prediction of their future performance. By doing so, it achieves state-of-the-art accuracy while providing educators with a transparent "why" behind every prediction.

What Problem Does This Paper Address?

Knowledge Tracing (KT) is the engine behind intelligent tutoring systems; it monitors a student’s history to predict whether they will get the next question right. While Deep Learning Knowledge Tracing (DLKT) models are highly accurate, they are notorious "black boxes." An educator might see a model predict a 70% failure rate for a student but have no idea which specific past mistakes led to that conclusion.

Existing attempts at "interpretable KT" usually focus on psychological traits (like student ability or question difficulty) or use attention mechanisms. However, attention weights often fail to reflect the true importance of an input, and psychological latent traits can be difficult to validate. The authors identify a gap: we need to understand the influence of specific historical responses on future outcomes to make these models truly trustworthy for classroom use.

Methods

The authors introduce RCKT, a framework that treats interpretability as a causal inference problem through three main pillars:

  1. Counterfactual Reasoning: To measure the influence of a past response, the model performs an intervention. It asks: If the student had answered this specific past question incorrectly instead of correctly, how much would our prediction for the current question drop? This "probability drop" is defined as the response influence.
  2. Monotonicity-based Construction: Simply flipping a bit in a sequence can create "unrealistic" data. RCKT uses the monotonicity assumption (higher proficiency leads to a higher probability of correct answers) to maintain sequence integrity. When a correct answer is flipped to incorrect, the model "masks" subsequent correct answers (since they might now be incorrect) but retains incorrect ones (as they would likely remain incorrect).
  3. Response Influence Approximation: Calculating counterfactuals for every step in a sequence is computationally expensive ($O(t^2)$ complexity). The authors propose a clever "backward" approximation inspired by Bayes' theorem. Instead of re-running the model $t$ times, they estimate the "forward" influence using a bi-directional encoder in a single pass, bringing the complexity down to $O(t)$.

The framework is "backbone-agnostic," meaning it can be wrapped around existing DLKT models like DKT (RNN-based) or AKT (Transformer-based).

Datasets

The model was evaluated on four widely-used public benchmarks:

  • ASSIST09 & ASSIST12: Math tutoring data from the ASSISTments platform.
  • Slepemapy: Data from an adaptive geography learning system.
  • Eedi: A large-scale dataset from a math competitive platform (NeurIPS 2020 Education Challenge).

Key Insights and Ideas

  • Causality over Correlation: Unlike attention mechanisms that just look for patterns, counterfactual reasoning looks for impact. This provides a much more robust explanation for why a model makes a specific prediction.
  • The Efficiency Hack: The transition from $O(t^2)$ to $O(t)$ via backward influence is a major contribution. It makes counterfactual-based interpretability practical for real-time tutoring systems where low latency is required.
  • Capturing the "Forgetting Curve": Qualitative analysis showed that RCKT naturally assigns higher influence to more recent responses and responses on related topics. This aligns with pedagogical theories like the forgetting curve and concept-specific mastery.
  • Performance without Sacrifice: Usually, adding interpretability layers hurts accuracy. RCKT actually improved performance, likely because the counterfactual optimization acts as a powerful regularizer during training.

Key Results

  • State-of-the-Art Accuracy: RCKT-AKT (using the AKT backbone) outperformed all six baselines across all datasets. It achieved an AUC improvement of up to 1.19% over the best-performing baseline on ASSIST09.
  • Speedup: The Response Influence Approximation increased inference speed by approximately 20 times compared to the naive counterfactual approach, validating the theoretical complexity reduction.
  • Joint Training Benefit: Ablation studies showed that "joint training"—optimizing the response probability generator alongside the counterfactual influence—is critical for both accuracy and the stability of the explanations.

Limitations and Future Work

  • Binary Constraints: The current model focuses on binary (correct/incorrect) responses. It does not yet account for partial credit or multi-choice option analysis, which could provide even deeper insights.
  • The Monotonicity Heuristic: While the monotonicity assumption is standard in cognitive diagnosis, student learning isn't always linear. Sudden "aha!" moments or external distractions might violate this assumption, which the model currently doesn't handle.
  • Intervention Complexity: The paper only explores flipping single responses. Future work could look at "group influences"—how a specific cluster of lessons or a week of study influenced a final exam score.

Summary updated

BibTeX
@inproceedings{cui2024interpretable,
  author = {Jiajun Cui and Minghe Yu and Bo Jiang and Aimin Zhou and Jianyong Wang and Wei Zhang},
  title = {{Interpretable Knowledge Tracing via Response Influence-based Counterfactual Reasoning}},
  booktitle = {ICDE},
  year = {2024},
  doi = {10.1109/icde60146.2024.00090},
}
Figure