From Mastery Profile to Simulated Response: Stochastic Student Knowledge Graphs (SSKG) for Faithful LLM Student Simulation
Organizations: School of Computer and Information Sciences, Nick Howley College of Engineering and Computing Drexel University Philadelphia, PA 19104, USA
Abstract
Large language models (LLMs) are increasingly used to simulate students at different mastery levels to generate synthetic training data and stress-test tutoring systems. Existing approaches primarily leverage an LLM to answer questions or perform tests while instructing it to simulate various skill levels. However, LLMs tend to execute at their full built-in capability regardless of target skill levels. We demonstrate this limitation on SAT questions across five mastery levels, where three LLMs consistently achieve 96.8-100% accuracy. To faithfully simulate student behavior, we propose a Stochastic Student Knowledge Graph (SSKG)-based approach that leverages the strengths of LLM in different ways. Using human-in-the-loop workflows, LLMs extract a Curriculum Knowledge Graph (CKG) from course materials, decompose solution paths into CKG triples, and map incorrect distractors. A student's mastery profile is represented as an SSKG, assigning mastery probabilities to CKG triples. When solving a problem, the SSKG is sampled to determine the outcome, after which an LLM generates a rationale consistent with the sampled result. Compared to seven baselines which fail to separate profiles and maintain 86.5-100% accuracy, our SSKG-based approach achieves 44.1-85.2% accuracy from low to high-mastery profiles, creating a clear monotonic gradient. An ablation study demonstrates that taxonomy awareness contributes most significantly to these fidelity gains, particularly for lower-mastery profiles.
Figures & tables
| Question Stem | Alan drives an average of 100 miles each week. His car can travel an average of 25 miles per gallon of gasoline. Alan would like to reduce his weekly expenditure on gasoline by 4 per gallon, which equation can Alan use to determine how many fewer average miles, , he should drive each week? |
|---|---|
| Choices | (A) (B) (C) (D) |
| Correct answer | D |
| Skill | Linear equations in one variable |
| Difficulty | Hard (College-Board-calibrated) |
| Rationale | Choice D is correct. Since gasoline costs 4/25mm5, so setting equal to 5 gives the number of miles, , by which he must reduce his driving. |
| Id | Abbreviated triple ( subject , predicate , object ) | Type |
|---|---|---|
| T19 | ( Variable , is , A letter representing a changeable number ) | def. |
| T149 | ( Converting units , uses , The identity property of mult. ) | rel. |
| T150 | ( Making unit conversions , has_step_1 , Multiply by a unit fraction ) | proc. |
| T170 | ( Translating a sentence , has_step_1 , Locate the “equals” word ) | proc. |
| T171 | ( Translating a sentence , has_step_2 , Translate the left side ) | proc. |
| T172 | ( Translating a sentence , has_step_3 , Translate the right side ) | proc. |
| Profile | Archetype | Mastery Probability Generation |
|---|---|---|
| P1 | near-expert | all triples |
| P2 | average, inconsistent | all triples |
| P3 | struggling | all triples |
| P4 | prerequisite gap | early, later |
| P5 | strong basics, weak advanced | early, later |
| Arm | Adds |
|---|---|
| a | Single draw per triple, raw taxonomy-blind , guess floor 0.25 on failure. |
| b | Retrieval/execution decomposition: , then ; still taxonomy-blind . |
| c | Taxonomy awareness: definitional per Eq. ( 7 ) ( ); active set in Eq. ( 6 ) drops to procedural/relational/gap steps (definitional failures are narration-only). |
| d | Distractor routing: an execution failure at a mapped triple selects that triple’s specific wrong-answer choice instead of a uniform-random one. |
| ID | Method | What controls ability |
|---|---|---|
| B1 | Vanilla LLM, no student description | nothing |
| B2 | Persona prompt [ 8 , 7 ] | the prompt |
| B3 | Level prompt, 1 to 5 [ 6 ] | the prompt |
| B4a | Skill-list prompt, student voice [ 8 ] | the prompt |
| B4b | Skill-list prompt, teacher predicts student [ 8 ] | the prompt |
| B5 | Persona plus chain-of-thought [ 28 ] | the prompt |
| College Board skill | Profile P4 | Profile P5 |
|---|---|---|
| Linear equations in one variable | not learned (W) | mastered (S) |
| Linear equations in two variables | shaky (S) | not learned (W) |
| Linear functions | shaky (S) | not learned (W) |
| Systems of two linear equations | shaky (S) | not learned (W) |
| Linear inequalities | shaky (S) | not learned (W) |
| Method | P1 | P2 | P3 | P4 | P5 |
|---|---|---|---|---|---|
| B1 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 |
| B2 | 1.000 | 0.997 | 0.968 | 1.000 | 1.000 |
| B3 | 0.987 | 0.984 | 0.897 | n/a | n/a |
| B4a | 1.000 | 0.997 | 0.968 | 0.997 | 0.992 |
| B4b | 1.000 | 0.894 | 0.865 | 0.912 | 0.976 |
| B5 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 |
| Method | 95% CI | |
|---|---|---|
| B1 | 0.000 | [0.000, 0.000] |
| B2 | 0.901 | [0.866, 0.990] |
| B3 | 0.879 | [0.659, 0.950] |
| B4a | 0.901 | [0.866, 0.961] |
| B4b | 0.950 | [0.700, 0.999] |
| B5 | 0.000 | [0.000, 0.000] |
| Method | P4 gap | P5 gap |
|---|---|---|
| B1 | +0.000 | +0.000 |
| B2 | +0.000 | +0.000 |
| B3 | n/a | n/a |
| B4a | 0.003 | +0.010 |
| B4b | +0.010 | +0.030 |
| B5 | +0.000 | +0.000 |
| Profile | Method | Early | Mixed | Later |
|---|---|---|---|---|
| P4 (weak early) | B2 | 100.0% | 100.0% | 100.0% |
| Ours | 39.3% | 39.9% | 75.0% | |
| P5 (weak later) | B2 | 100.0% | 100.0% | 100.0% |
| Ours | 70.0% | 48.3% | 62.5% |
| Step | Change | Main effect |
|---|---|---|
| a b | to pp | mostly P1 |
| b c | to pp | larger for lower mastery |
| c d | pp | diagnosis only |
Large Language Model-Based Role-Play Simulation
Large language model-based role-play simulation creates interactive agents that portray people, characters, or users for training, testing, and research.
See all 111 papers