Inspiration

AI can solve algebra problems almost instantly, but solving a problem is not the same as understanding why a student got it wrong.

A student may receive the correct answer, read a perfect explanation, and still repeat the same mistake on the next problem.

That made us ask a different question:

What if we debugged human reasoning the same way developers debug software?

When a program fails, developers do not only inspect the final output. They trace the execution and look for the first point where the system diverged from what should have happened.

ReasonTrace applies that idea to learning.

Instead of asking only:

"Is the final answer correct?"

ReasonTrace asks:

"Where did the reasoning first become invalid, why did it happen, and can we prove the misconception has actually been fixed?"

That became the core idea behind ReasonTrace:

Find the first wrong step. Fix the misconception. Prove it's gone.

What it does

ReasonTrace is an AI learning debugger for algebra reasoning.

Students submit their step-by-step solution to an algebra problem. ReasonTrace analyzes the reasoning process rather than looking only at the final answer.

The system then:

  1. Traces the reasoning step by step.
  2. Finds the first invalid transformation, or "first break."
  3. Diagnoses the likely misconception behind the mistake.
  4. Generates a targeted challenge instead of immediately revealing the answer.
  5. Collects new evidence through follow-up problems.
  6. Stores misconception and learning evidence over time.
  7. Uses teach-back and transfer problems to check whether the student actually understands the concept.

For example, if a student makes a mistake while solving an equation, ReasonTrace does not simply say:

"The answer is wrong."

It tries to determine whether the real issue is equation balance, sign manipulation, distribution, factoring, or another underlying concept.

The goal is not to fix one answer.

The goal is to fix the reasoning pattern that produced the wrong answer.

How we built it

ReasonTrace uses a hybrid approach that combines deterministic mathematical checking with AI-powered diagnosis and teaching.

1. Deterministic Checker

For supported algebra transformations, ReasonTrace first uses deterministic verification.

This is important because we do not want an LLM to guess whether a mathematical step is valid when the system can verify it directly.

The checker analyzes adjacent reasoning steps and identifies the earliest point where the transformation becomes invalid.

2. Diagnoser

Once a first break is detected, the diagnosis layer analyzes the error and identifies the likely misconception behind it.

Instead of treating every wrong answer as an isolated mistake, ReasonTrace models mistakes as concepts that can appear again across different problems.

3. Challenge Generation

ReasonTrace then creates a targeted challenge designed around the suspected misconception.

The purpose of the challenge is not simply to give students more practice. It is to gather evidence about whether the diagnosis was correct.

4. Evidence

ReasonTrace treats learning as something that should be supported by evidence.

Follow-up interactions can include:

  • Near-transfer problems
  • Far-transfer problems
  • Trap questions
  • Student explanations
  • Teach-back

This allows the system to distinguish between a student who copied a correction and a student who can successfully apply the concept somewhere new.

5. Persistence

Learning evidence and misconception state are persisted so ReasonTrace can track understanding beyond a single conversation.

This transforms the experience from a one-shot AI response into an evolving model of the student's reasoning.

Challenges we ran into

One of the biggest challenges was deciding where AI should and should not be trusted.

It would have been much easier to send the entire student solution to an LLM and ask whether it was correct.

But that creates a serious problem: a language model can sound confident even when its mathematical judgment is uncertain.

We therefore separated the system into different responsibilities.

Where a mathematical transformation can be verified deterministically, ReasonTrace uses the checker.

AI is used where it provides the most value: interpreting mistakes, generating diagnostic challenges, and helping students explain their thinking.

Another challenge was designing the system around the first wrong step.

Once one step becomes invalid, later steps may also be wrong simply because they depend on the earlier mistake. Reporting every later error would create noise.

ReasonTrace therefore focuses on locating the earliest meaningful break in the reasoning chain.

The third major challenge was defining what it means for a misconception to be "fixed."

A student saying "I understand" is not enough.

That led us to build an evidence-oriented workflow using transfer questions and teach-back rather than relying only on self-reported understanding.

Accomplishments that we're proud of

We are especially proud that ReasonTrace is more than a chatbot wrapped around an LLM.

The project has an actual reasoning-verification pipeline:

Checker → Diagnoser → Challenge → Evidence → Persist → Teach-back

We built a deterministic path for supported algebra reasoning and connected it to a persistent learning workflow.

We are also proud of the project's central product idea:

debug the reasoning, not just the answer.

This gives ReasonTrace a clear role that is different from traditional AI tutors and answer-generation tools.

What we learned

Building ReasonTrace changed the way we think about AI in education.

The most powerful role for AI is not always answering questions.

Sometimes the better role is to create the right challenge, reveal a hidden misconception, and help the learner generate evidence of understanding.

We also learned that deterministic systems and generative AI do not need to compete.

They can complement each other.

Deterministic logic can provide reliability where rules are clear, while AI can handle interpretation, explanation, and adaptive interaction.

Finally, we learned that educational AI needs a stronger definition of success.

A correct answer is an output.

Transferable understanding is the outcome.

What's next for ReasonTrace

ReasonTrace currently focuses on building a strong reasoning-debugging loop for algebra.

Next, we want to expand it in several directions:

  • Support more algebraic transformations and problem types.
  • Improve misconception classification and confidence scoring.
  • Build richer student misconception histories.
  • Generate adaptive near-transfer and far-transfer challenges.
  • Add stronger mastery and regression testing.
  • Visualize how a student's reasoning changes over time.
  • Expand the reasoning-debugging model beyond mathematics.

Our long-term vision is larger than algebra.

Programming, physics, logic, and other subjects also involve multi-step reasoning.

We believe the same principle can apply to all of them:

Don't just evaluate the final answer. Trace the reasoning that produced it.

Built With

Share this project:

Updates

Submission history