NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Deep Knowledge Tracing

Chris Piech, Jonathan Bassen, Jonathan Huang, Surya Ganguli, Mehran Sahami, Leonidas J. Guibas, Jascha Sohl-Dickstein

TL;DR

This paper introduces Deep Knowledge Tracing (DKT), the first application of Recurrent Neural Networks (RNNs) to model student learning over time. By moving away from hand-coded models like Bayesian Knowledge Tracing, DKT achieves a massive 25% improvement in predicting student performance and can autonomously discover the underlying structure of educational content without expert labels.

What Problem Does This Paper Address?

In computer-supported education, "Knowledge Tracing" is the task of modeling a student’s mastery of various topics as they interact with coursework. If a system can accurately predict whether a student will get the next question right, it can suggest better resources, skip content that is too easy, or provide extra help on difficult concepts.

For decades, the gold standard was Bayesian Knowledge Tracing (BKT). However, BKT has several "old school" limitations:

  1. Expert Dependency: It requires human experts to label every exercise with a specific "concept" or "skill."
  2. Simplistic States: It assumes knowledge is a binary "learned" or "not learned" state.
  3. Limited Memory: It usually relies on first-order Markov models, which struggle to capture complex, long-term learning dynamics.

The authors sought to determine if deep learning—specifically RNNs—could learn these complex patterns directly from raw student data.

Methods

The authors propose using Long Short-Term Memory (LSTM) networks to represent the latent knowledge state of a student.

RNN Model Architecture
  • Input Encoding: To feed student interactions into the RNN, they represent each interaction as a tuple: {which exercise was answered, was it correct?}. For a dataset with $M$ unique exercises, they use a one-hot encoding of length $2M$ (one slot for "correct" and one for "incorrect" for every exercise).
  • The Model: The RNN takes this sequence of interactions and maintains a "hidden state" that evolves over time. This hidden state acts as a high-dimensional, continuous representation of the student's current knowledge.
  • Output: Unlike traditional models that predict only the next specific exercise, DKT outputs a vector representing the student's predicted probability of correctly answering every possible exercise in the system.
  • Compressed Sensing: For systems with thousands of exercises where one-hot encoding becomes too large, the authors suggest using random manifold projections to compress the input space.

Datasets

The model was evaluated on three distinct types of data:

  1. Simulated Data: Virtual students "learning" virtual concepts, used to see if the model could match a theoretical "Oracle" that knows the exact generation parameters.
  2. Khan Academy Data: A massive real-world dataset containing 1.4 million exercises completed by nearly 48,000 students across 69 math topics.
  3. Assistments Benchmark: A public dataset from 2009-2010 used as the standard "proving ground" for knowledge tracing algorithms.

Key Insights and Ideas

  • No Labels Needed: Perhaps the most striking finding is that DKT doesn't need humans to categorize exercises. By looking at how student performance on one exercise correlates with others over time, the model "discovers" the latent structure of the curriculum (e.g., it learns that "Square Roots" and "Exponents" are related).
  • Beyond Binary Knowledge: Because the RNN uses a continuous hidden state, it can capture nuances in learning that a binary "yes/no" mastery model cannot.
  • Influence Discovery: The authors developed a way to measure "exercise influence." By querying the model, they can see which exercises, when mastered, provide the biggest boost to a student's overall knowledge state. This allows for the automatic discovery of prerequisites.
  • Curriculum Optimization: The model can be used to test different teaching strategies. For example, it showed that "blocking" (practicing the same skill repeatedly) often leads to higher predicted mastery than "mixing" topics in certain contexts.

Key Results

Dataset Overview and AUC Results
  • Massive Performance Jump: On the Assistments benchmark, DKT achieved an AUC of 0.86, a 25% gain over the previous state-of-the-art (0.69).
  • Khan Academy Success: On real-world math data, DKT hit an AUC of 0.85, significantly outperforming BKT (0.68).
  • Matching the Oracle: In simulated tests, the RNN performed as well as an "Oracle" model that had perfect knowledge of the underlying data-generation process, proving it can perfectly recover latent concepts from raw behavior.

Limitations and Future Work

  • Data Requirements: RNNs are data-hungry. While DKT excels on large-scale platforms like Khan Academy, it might struggle in small classroom settings with limited data traces.
  • Feature Set: This initial version of DKT only looked at exercise ID and correctness. The authors note that future versions could incorporate "time taken" to answer, hints used, or even the specific text of a student's response.
  • Black Box Nature: While the authors showed ways to visualize the model's "knowledge," RNNs are still less interpretable than simple BKT models, which some educators might find challenging to trust.
  • Closing the Loop: The paper suggests using DKT for curriculum planning, but the authors emphasize the need for future "in-the-wild" controlled experiments to see if these AI-optimized curricula actually result in faster human learning.

Summary updated

BibTeX
@inproceedings{piech2015deep,
  author = {Chris Piech and Jonathan Bassen and Jonathan Huang and Surya Ganguli and Mehran Sahami and Leonidas J. Guibas and Jascha Sohl-Dickstein},
  title = {{Deep Knowledge Tracing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2015},
  url = {https://openreview.net/forum?id=H14Axt-_-B},
}
Figure