Bayesian Knowledge Tracing

Machine Learning
Introduced by
Albert Corbett & John Anderson
Year
1994
Type
Two-state hidden Markov model of latent skill mastery from response sequences
Family
Student modeling / knowledge tracing

What does it do?

Bayesian knowledge tracing (BKT) estimates, after each attempt a student makes, the probability that the student has mastered a given skill.

Introduced by Corbett and Anderson for intelligent tutoring systems, it is a two-state hidden Markov model in which the latent variable is whether the skill is learned, and observed correct or incorrect responses update that state by Bayesian inference. Its four parameters per skill (initial knowledge, learning, slip, and guess) determine how strongly each response shifts the mastery estimate.

The intuition behind the method

A tutoring system cannot observe a student's knowledge directly, so it must infer mastery from behaviour, and behaviour is noisy. A student who knows a skill can still slip and make a careless error; a student who does not know it can still guess correctly. BKT therefore tracks a probability of mastery rather than a yes/no label. A correct answer raises that probability, and by more when guessing is unlikely; a wrong answer lowers it, and by more when slipping is unlikely. The model also allows practice to move a student from 'not learned' to 'learned' between problems. When the mastery probability crosses a chosen threshold, the tutor can treat the skill as mastered.

History

Knowledge tracing was introduced by Albert Corbett and John Anderson in 1994, in work on modelling the acquisition of procedural knowledge. It framed mastery as a hidden two-state process updated by Bayes' rule, and it became a widely used student model in intelligent tutoring systems. Baker, Corbett and Aleven later estimated slip and guess probabilities contextually, so that they can vary across situations rather than being fixed for a skill. Neural alternatives to BKT have since been developed, and they are often compared against it as an interpretable baseline.

When to use it

Use Bayesian knowledge tracing when a learning system must decide, skill by skill, whether a student has mastered material, as in mastery learning within intelligent tutoring systems or adaptive practice platforms. It suits well-defined procedural skills observed through sequences of binary-scored attempts, each tagged with the skill it exercises. It is a poor choice when skills are strongly interdependent, when responses carry partial credit or are open-ended, or when the goal is fine-grained diagnosis of specific misconceptions; richer student models may serve those cases better. Because its parameters can be unidentifiable without constraints, and because it assumes independent skills and no forgetting, its outputs should be checked against those assumptions before they drive decisions.

Limitations and considerations

  • Assumes that skills are independent and that a learned skill is never forgotten, so the estimate does not decay with time away from practice.
  • Relies on further structural assumptions: responses are conditionally independent given the latent mastery state, and the slip, guess and learn rates are constant for a skill across opportunities.
  • Parameters can be unidentifiable: several parameter sets can fit the response data equally well, including degenerate solutions in which the model explains answers through slip and guess rather than learning.
  • The classic model does not use item difficulty, problem context, or individual differences unless it is extended.
  • The standard form handles binary scores only; partial credit, response time and richer interaction data require extensions.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Interpretable: each skill has four named parameters and an explicit mastery probability that practitioners can inspect and reason about.
  • Cheap to update: after each response, the estimate changes through a single Bayesian step and a learn-rate transition, which suits real-time tutoring.
  • Supports mastery-learning policies directly, since the per-skill mastery probability can be compared against a threshold.
  • Serves as a long-standing baseline in knowledge-tracing research, against which newer models are commonly compared.

Applications

  • Driving mastery decisions in intelligent tutoring systems and cognitive tutors.
  • Sequencing practice in adaptive learning platforms until skills reach a mastery threshold.
  • Estimating per-skill mastery for learning dashboards and teacher reports.
  • Serving as a baseline in educational data mining studies of student modelling.
  • Informing remediation decisions based on the inferred knowledge state.

How it works

How it works

1

Each skill is described by four probabilities: the prior probability that the skill is already known (initial knowledge), the probability of moving from unlearned to learned after an opportunity to practise (learn rate), the probability that a student who knows the skill answers incorrectly (slip), and the probability that a student who does not know it answers correctly (guess). These are typically estimated per skill from response data.

Formula
\{p(L_0),\,p(T),\,p(S),\,p(G)\}:\ \text{init, learn, slip, guess}
2

Given the current probability of mastery, the model predicts the chance of a correct response by combining two routes: a student who has mastered the skill answers correctly unless they slip, and a student who has not answers correctly only if they guess. This links the unobservable knowledge state to the observable correct or incorrect outcome.

Formula
p(\text{correct}_t) = p(L_t)(1-p(S)) + (1-p(L_t))\,p(G)
3

After a response is observed, Bayes' rule updates the probability of mastery. Applying Bayes' rule to the observation model above gives two cases, where P(L) is the prior mastery probability. For a correct response: P(L | correct) = P(L)(1 - p(S)) / [P(L)(1 - p(S)) + (1 - P(L)) p(G)]. For an incorrect response: P(L | incorrect) = P(L) p(S) / [P(L) p(S) + (1 - P(L))(1 - p(G))]. A correct answer raises the mastery probability only when guess is less than one minus slip; otherwise it lowers it. An incorrect answer lowers the mastery probability when slip is less than one minus guess.

Formula
p(L_t\mid \text{obs}) = \dfrac{p(L_t)\,p(\text{obs}\mid L_t)}{p(L_t)\,p(\text{obs}\mid L_t)+(1-p(L_t))\,p(\text{obs}\mid \neg L_t)}
4

Because students can learn between attempts, the posterior mastery probability is advanced by the learn rate: the probability mass still in the 'not learned' state can move to 'learned' before the next opportunity. Repeating this update and transition over a sequence of responses produces a mastery estimate that evolves with practice.

Formula
p(L_{t+1}) = p(L_t\mid \text{obs}) + \bigl(1-p(L_t\mid \text{obs})\bigr)\,p(T)

Common pitfalls

  • Accepting fitted parameters in degenerate regions. When guess exceeds one minus slip, a correct answer lowers the mastery estimate instead of raising it, so the estimate no longer means what the model intends.
  • Assigning one skill tag to items that draw on several skills, which violates the model's independence assumption and can distort each skill's estimate.
  • Ignoring identifiability and reporting one of several equivalent fits as if it were the definitive estimate.
  • Applying the no-forgetting assumption to skills that clearly decay, which overstates retained mastery.
  • Treating the mastery threshold as a fixed rule. The threshold is a policy choice: calibrate it against observed predictive accuracy, and remember that the mastery value is an estimated probability, not a verified state.

Frequently asked questions

How does Bayesian knowledge tracing relate to hidden Markov models?

BKT is a particular hidden Markov model. The hidden state is binary (skill not learned or learned), the transition allows only the move from unlearned to learned (governed by the learn rate; the classic version has no forgetting), and the observation probabilities are governed by slip and guess. Recognising BKT as an HMM clarifies why standard HMM fitting by expectation-maximisation and the same identifiability concerns apply. See the related Hidden Markov Model entry.

What are the slip and guess parameters and why do they matter?

Slip is the probability that a student who has mastered the skill still answers incorrectly, a careless error. Guess is the probability that a student who has not mastered it answers correctly anyway. They model the noisy link between knowledge and behaviour. If they are large, observations carry little information about mastery and the estimates degenerate. Constraining them to plausible ranges keeps the model interpretable, and contextual estimation, as studied by Baker and colleagues, lets them vary by situation to improve accuracy.

How does BKT differ from Deep Knowledge Tracing?

BKT is a compact, interpretable hidden Markov model with four parameters per skill and explicit assumptions. Neural models of knowledge tracing instead predict the next response from the full interaction sequence, which can capture dependencies between skills and richer patterns, at the cost of interpretability. Such models may achieve higher predictive accuracy on large datasets, but BKT's transparency and modest data requirements keep it in wide use, and the two are often benchmarked against each other.

Related methods

Sources

  1. Corbett, A. T., & Anderson, J. R. (1994). Knowledge tracing: Modeling the acquisition of procedural knowledge. User Modeling and User-Adapted Interaction, 4(4), 253–278.

    Open DOI reference
  2. Baker, R. S. J. d., Corbett, A. T., & Aleven, V. (2008). More accurate student modeling through contextual estimation of slip and guess probabilities in Bayesian knowledge tracing. In Intelligent Tutoring Systems (ITS 2008), LNCS 5091, 406–415.

    Open DOI reference