How to Teach Foundational Math in the AI Era: A Learner-Centric System Design

    Large language models now solve difficult math problems, but solving ability is not teaching ability. This article explains why generative chat alone fails in learning scenarios and lays out a practical system architecture: a knowledge graph, a tagged question bank, a learner model, a scheduling engine, and a pre-reviewed content layer. It covers adaptive diagnosis, mastery-based progression, practice and feedback loops, spaced repetition, the right role for generative AI, key metrics, and a phased rollout plan.

    1. Reframing the Problem: A Model That Solves Problems Is Not a Model That Teaches

    Over the past two years, general-purpose large models have repeatedly reset public expectations on hard math benchmarks. Many people have drawn a simple inference from this: if a model can produce answers and derivations, then dropping it into a learning scenario solves the foundational math problem. That inference does not hold up in engineering terms. Solving ability and teaching ability optimize different objective functions. The first maximizes the probability of producing a correct result for a given problem. The second maximizes the amount of knowledge a student acquires per unit of time, given their current cognitive state.

    Conflating the two leads directly to three typical failures:

    • Answer dependency: students receive conclusions rather than transferable problem-solving patterns, and the approach collapses as soon as a problem is varied.
    • Cognitive mismatch: the model cannot reliably identify which prerequisite knowledge the learner is missing, so the difficulty of the explanation is disconnected from the learner’s actual level.
    • Missing feedback: nothing measurable is left behind when the conversation ends, progress cannot be tracked, and review timing is left to guesswork.

    The practical path is therefore not to hand learning over to a free-form conversational agent, but to build a system that is centered on a learner model, structured around a knowledge skeleton, and closed by frequent assessment as a feedback loop. Generative capability can serve as an optional “explanation polishing layer,” but it must never be the backbone.

    2. Core Design Principle: Move Explanation Out of the Center

    The conventional approach invests most of the engineering effort in “generating better explanations.” This is a common directional mistake. Explanation is only one part of the scaffolding; beyond the scaffolding sit diagnosis, orchestration, review, and evaluation. The pragmatic move is to make explanations pre-reviewed chunks segmented by knowledge point, delivered to the learner at the right moment, and to spend the saved engineering budget on other critical parts of the system.

    This yields three direct benefits: content quality is controllable and regression-testable; system behavior is predictable and easy to debug; and engineering complexity drops sharply, with no need to get stuck in the swamp of multi-turn dialogue state management.

    To be clear, explanation is not unimportant. It simply should not appear in the form of “generated from scratch in real time.” Pre-authored content combined with retrieval and templated organization already covers the vast majority of explanation needs at the foundational math stage.

    3. System Architecture: Five Independently Evolving Modules

    A maintainable learning system should be split into the following modules, communicating through explicit data contracts:

    1. Knowledge graph: defines concepts, dependencies, and prerequisites as a directed acyclic graph.
    2. Question bank and tagging system: every item is tagged with the knowledge points it assesses, difficulty, question type, and common error types.
    3. Learner model: records mastery probability per knowledge point, time of most recent attempt, and consecutive correct answers.
    4. Scheduling engine: decides what to present next, including explanations, worked examples, quizzes, and review.
    5. Content layer: pre-authored explanation segments and worked solutions, with an optional hook into generative capability for paraphrasing and follow-up questions.

    The value of modularity is that replacing any one stage leaves the others untouched. Switching the review algorithm from simple intervals to a half-life regression model, for example, requires no change to the question bank structure.

    4. Diagnosis First: Locating Knowledge Gaps with the Minimum Necessary Items

    The quality of a learning path depends on how accurately the initial state is estimated. The goal of the diagnostic stage is not to “administer a test,” but to narrow the learner’s position on the knowledge graph down to a credible interval using as few items as possible. The common engineering approach is adaptive item selection: prefer items that best discriminate among the current candidate knowledge points; a correct answer moves toward higher-order branches, while an incorrect one falls back to prerequisite nodes.

    A simplified scoring function for item selection can be written as:

    1. def next_item(candidates, mastery, history):
    2. # Goal: probe the knowledge points whose mastery is closest to the
    3. # threshold and that carry the most information
    4. def score(k):
    5. p = mastery.get(k, 0.5)
    6. uncertainty = 1.0 - abs(p - 0.5) * 2 # closer to 0.5 means more uncertain
    7. novelty = 1.0 if k not in history else 0.3
    8. prereq_ok = all(mastery.get(q, 0) >= 0.8 for q in prereqs[k])
    9. return (prereq_ok, uncertainty * 0.6 + novelty * 0.4)
    10. return max(candidates, key=score)

    Diagnostic results should be written into the learner model, not merely rendered into a report. An assessment that does not persist state has no value for downstream scheduling.

    5. Mastery-Based Progression: Individual Mastery as the Only Gate

    The most common mistake in course progression is releasing all learners at the group’s average pace. Foundational math has an extremely long dependency chain, and a vague prerequisite concept keeps compounding costs in every later chapter. The correct strategy is mastery-based learning: a later topic unlocks only when the individual learner has reached the configured threshold on the prerequisites.

    Threshold design must avoid two extremes. Set too high, learners linger on easy items and burn out. Set too low, they are released too early and end up with a hollow structure: able to work problems but not understanding the principles. In practice, three signals are usually combined: recent accuracy, the distribution of item difficulty, and transfer performance in new contexts.

    1. {
    2. "topic": "Solving linear equations by transposing terms",
    3. "mastery": 0.86,
    4. "recent_accuracy": 0.9,
    5. "difficulty_coverage": ["L1", "L2", "L3"],
    6. "transfer_check": "passed",
    7. "unlocked": ["Systems of two linear equations"]
    8. }

    6. Practice and Feedback Loop: Difficulty Ladders and Targeted Remediation

    After an explanation, the system must switch immediately to active problem solving, and item difficulty should form a continuous ladder covering all the question types a learner can reasonably be expected to master in later assessments. The key to ladder design is that each step delivers a clear increment in capability, avoiding the inefficiency of “many repetitions at the same level.”

    The signals for the feedback loop are plain: whether the answer is correct, at which step the work deviated, and whether a recorded common error type was triggered. Based on error-type tags, the system can assign targeted remediation rather than generically serving ten more problems. Remediation tasks should be short, focused on a single sub-skill, and return the learner to the main track immediately after completion.

    7. Spaced Repetition: Turning Short-Term Correctness into Long-Term Memory

    Even when a knowledge point is well mastered at the moment, the forgetting curve keeps eroding the result. The system needs to maintain a review plan per knowledge point and adjust the next review time dynamically from attempt history: a wrong answer pulls it significantly earlier, while a correct and fluent answer gradually stretches the interval.

    1. def schedule(mastery, ease, interval_days, correct):
    2. if not correct:
    3. return {"interval": 1, "ease": max(1.3, ease - 0.2)}
    4. interval = max(1, round(interval_days * ease))
    5. return {"interval": min(interval, 180), "ease": ease + 0.05}

    Review items should favor variants over the original problems, to test retrieval and transfer rather than recognition. Total daily review volume should also be capped so that review does not crowd out the time budget for new material.

    8. Where Generative Capability Actually Belongs

    A pre-authored content system does not exclude generative models; it draws boundaries around them. Suitable uses include rewriting the same explanation in different styles, generating analogies from the learner’s specific wrong step, mapping abstract definitions onto engineering scenarios the learner already knows, and drafting additional variant exercises (to be reviewed before entering the bank). Unsuitable uses are making it the authority on knowledge-point determination, unlock decisions, and scoring; those responsibilities require determinism and reproducibility.

    If a cloud model service is used, the engineering concerns stay at the level of general capability categories: model inference services, object storage for content assets, a message queue for asynchronous grading, and logging plus monitoring and alerting to track learning outcomes and system health. Baidu AI Cloud’s general practice in these scenarios follows the same layered thinking of “data and scheduling as the core, model capability as a replaceable component,” which avoids tight coupling to any single model’s strength.

    9. Metrics and Iteration

    A learning system without measurement cannot improve. At minimum, track four categories of metrics: average time to mastery per knowledge point, review retention (first-attempt accuracy after the interval), accuracy on transfer items, and newly mastered knowledge points per unit of time. Together these show whether the system is genuinely building capability rather than just improving a feel for answering questions. When metrics look abnormal, check first whether knowledge graph dependencies are missing, whether question bank tags are too noisy, and whether thresholds are poorly set, rather than suspecting that the explanation copy is not vivid enough.

    10. Suggested Rollout Path

    Phase one: build the knowledge graph and tag the question bank, even at limited scale. Phase two: implement diagnosis and mastery-based unlocking, and get state persistence working end to end. Phase three: add spaced repetition and targeted remediation. Phase four: introduce generative content enhancement and multimodal explanation. In this order, each phase produces independently verifiable value, and limited engineering resources are not consumed by the least certain part, conversational interaction.