AI-Powered Personalized Learning: Knowledge Tracing, LLMs, and Adaptive Practice
This article explains how adaptive learning systems move beyond static question banks by combining knowledge graphs, knowledge tracing, and large language models to diagnose weaknesses and select practice. It compares BKT and DKT, includes a BKT update example, and discusses LLM-generated explanations, learning path planning, edge-cloud architecture, data-loop metrics, exam alignment, and practical boundaries.
Why Working Through Question Sets Has Limits
Many learners have had this experience: they finish a set of practice questions with a good accuracy rate, but days later they still make mistakes on similar questions. The problem is often not the number of questions completed, but that the practice does not target the learner’s actual weaknesses. Traditional question-drilling models only provide a score after a test, so feedback is delayed. The same set of questions can also vary greatly in difficulty for learners with different foundations: those with weaker foundations struggle, while those with stronger foundations may feel that their time is being wasted.
AI adaptive learning systems attempt to change this process by shifting from “learners finding questions” to “the system selecting questions based on the learner’s state.” The key to this approach is to first determine what the learner currently understands, and then decide what to practice next.
Core Technical Architecture
A usable personalized learning system usually contains three coordinated parts: a knowledge graph describes the structure of knowledge, knowledge tracing estimates mastery of each concept, and a large language model understands the causes of errors and generates explanations. A path planning module then converts the results from these three parts into concrete practice arrangements.
1. Knowledge Graph: Turning a Subject into a Computable Structure
A knowledge graph breaks a subject into fine-grained concepts and labels relationships such as prerequisites, successors, and associations. For example, with quadratic equations, learners usually need to master factoring and linear equations in one variable first. With these relationships, the system can determine whether an error occurs in the current concept or in one of its prerequisite concepts.
The quality of the graph depends on manual annotation and expert review. If concepts are divided too coarsely, diagnostic results will be vague. If they are divided too finely, each concept will have too few response samples, making statistical results unreliable.
2. Knowledge Tracing: Estimating Mastery Probability for Each Concept
Knowledge Tracing continuously estimates a learner’s mastery probability for each concept based on historical answer records. There are two common approaches. Bayesian Knowledge Tracing (BKT) sets a hidden “mastered” state for each concept and uses several parameters to describe the learning process: the probability of answering incorrectly when the concept has been mastered (slip rate), the probability of answering correctly when the concept has not been mastered (guess rate), and the probability of moving from unmastered to mastered after one practice item (transit rate). After each answer, the system updates the mastery probability using Bayes’ theorem.
The code below demonstrates a single update and weakness screening. The parameters need to be fitted with historical data; the default values in the example are only for demonstration.
def bkt_update(p_known, is_correct, p_slip=0.1, p_guess=0.2, p_transit=0.15):"""p_known is the mastery probability before the answer; returns the mastery probability after the answer.p_slip is the probability of answering incorrectly when the learner has mastered the concept,p_guess is the probability of answering correctly when the learner has not mastered it,and p_transit is the probability of moving from unmastered to mastered after one practice item."""if is_correct:p_obs = p_known * (1 - p_slip) + (1 - p_known) * p_guessposterior = p_known * (1 - p_slip) / p_obselse:p_obs = p_known * p_slip + (1 - p_known) * (1 - p_guess)posterior = p_known * p_slip / p_obsreturn posterior + (1 - posterior) * p_transitdef diagnose_weakness(user_id, answer_log, threshold=0.6, prior=0.3):"""answer_log is a list of answer records; each record contains user_id, concept_id,is_correct, and timestamp fields. Returns concepts whose mastery probability is below the threshold."""mastery = {}records = sorted((r for r in answer_log if r["user_id"] == user_id),key=lambda r: r["timestamp"],)for r in records:cid = r["concept_id"]mastery[cid] = bkt_update(mastery.get(cid, prior), r["is_correct"])return [cid for cid, p in mastery.items() if p < threshold]
Deep Knowledge Tracing (DKT) uses recurrent neural networks or Transformers to process an entire answer sequence. It can capture more complex dependencies among concepts, but it requires a large amount of data for training, and its results are harder to interpret. The trade-offs between the two approaches are as follows.
| Dimension | BKT | DKT |
|---|---|---|
| Data requirements | Fits with a small number of responses | Requires large-scale response sequences |
| Interpretability | Parameter meanings are clear | Weaker; requires additional explanation tools |
| Representational power | Assumes concepts are independent | Can model complex dependencies among concepts |
| Suitable scenarios | New courses and scenarios with limited data | Platforms with large item banks and user bases |
3. Large Language Models: Understanding Errors and Generating Explanations
Traditional item banks rely on keyword matching and can only find questions with similar text. Large language models can read a learner’s incorrect answer, infer possible misconceptions, and generate step-by-step explanations. They can also handle open-ended questions and cross-disciplinary integrated questions.
LLM output is not always correct, so two layers of constraints are needed. First, explanations should be checked against reference answers and the knowledge graph. Second, mastery judgments should be based on the results of the knowledge tracing model, not solely on subjective LLM evaluations.
4. Learning Path Planning
After weaknesses are diagnosed, the system must decide whether to review prerequisite knowledge first or continue with subsequent content. Rule-based methods are the easiest to deploy: when the mastery probability of a prerequisite concept is below a threshold, prioritize practice for that concept. More complex approaches use reinforcement learning or multi-objective optimization to balance learning efficiency and learner confidence. Items that are too easy waste time, while items that are too hard can undermine motivation.
New users have no historical data, so the system usually uses a placement test to estimate initial mastery, then switches to personalized recommendations after enough answers have been collected.
Edge-Cloud Collaboration: Consistency and Boundaries
In actual deployments on educational terminals, screen sizes, hardware configurations, and eye-comfort features vary greatly across products. A common approach to edge-cloud collaboration is to place the diagnostic engine, model inference, item bank, and knowledge graph in the cloud, while the terminal mainly handles interaction and data collection. This helps reduce experience gaps caused by device differences.
Responsibilities can be divided as follows:
- Cloud: Handles the diagnostic engine, model inference, maintenance of the item bank and knowledge graph, and version management.
- Terminal: Handles page display and answering interaction, collects behavioral data such as response time, and caches some content locally.
- Consistency assurance: All terminals call the same version of the knowledge graph and the same diagnostic logic, and ensure consistent results through unified interface specifications and version numbers.
It should be noted that this architecture has clear boundaries. On weak networks, cloud responses will slow down. In offline scenarios, terminals usually can only use cached item banks and lightweight knowledge tracing models, and cannot run full LLM capabilities. Therefore, the design should specify which functions must be online and which functions can degrade offline.
For cloud service selection, mainstream cloud platforms can be chosen for their elastic compute, object storage, and model inference services. However, performance metrics need to be measured in practice rather than relying on marketing data. Teams should conduct stress tests at the target concurrency level, record response time and throughput, and agree on a service-level agreement (SLA) with the service provider based on those results.
Data Loop and Exam Alignment
Mature systems rely on a continuous data loop. The table below lists the input, output, acceptance metric, and rollback method for each stage.
| Stage | Input | Output | Acceptance metric | Rollback on failure |
|---|---|---|---|---|
| Data collection | Answer time, correctness rate, dwell time | Cleaned answer logs | Field missing rate, duplicate record rate | Discard abnormal records and continue using the previous data definitions |
| Diagnostic analysis | Answer logs, knowledge graph | Mastery probabilities and weakness list | Predictive metric for subsequent quiz results, such as AUC | Roll back to the previous model parameters |
| Personalized recommendation | Weaknesses, item difficulty | Exercise list and micro-lesson list | Change in correctness rate after recommendation, task completion rate | Switch to rule-based recommendation |
| Effect feedback | New round of answer data | Updated learner profile | Holdout test performance, A/B test results | Pause automatic updates and switch to manual review |
Diagnostic results should align with actual exam standards. Concept labels and item difficulty should be annotated with reference to exam syllabi and official sample questions, and spot-checked by subject experts. Exam standards may differ by region, so separate aligned datasets need to be built, avoiding applying one region’s standards to another.
Effect Boundaries and Implementation Recommendations
The effectiveness of personalized learning depends on three factors: data quality, model calibration, and learners’ actual behavior. If learners do not practice according to the recommended content, even an accurate diagnosis will have limited impact.
