FirstBadStep: an explainable step-grading API for worked math and code solutions
An API for teachers that finds the exact step where a student made a mistake in a math or code solution.
An API for tutoring and grading platforms that checks a worked math or code solution step by step, pinpoints the first faulty step, and returns a short written critique — using a verifier trained on ~1% of the step labels a traditional process reward model needs.
Concept
Step-level feedback is the highest-value feature in math and coding education ("which step went wrong?"), but it has been impractical: discriminative process reward models need dense per-step human labels and return only an opaque scalar. FirstBadStep packages the generative process verifier of [0] as a grading endpoint. Input: a worked solution (student-submitted or model-generated), optionally pre-segmented into steps. Output: per-step verdicts, the index of the first faulty step (the ProcessBench task), and a short written critique of that step produced by the verifier's own verification chain-of-thought — an artifact discriminative PRMs structurally cannot produce. A second mode scores N candidate solutions for best-of-N selection or reward-guided search in production deployments. A "verification depth" knob lets customers trade latency and cost for accuracy, since verification quality scales with compute. Following the caution in [3], the critique is presented as a generated explanation of the verdict — not as a window into the model's "thinking" — which keeps the product honest and defensible for classroom use.
Why now
Paper [0] shows a long-CoT verifier fine-tuned on just 1% of PRM800K's process labels beats LLM-as-a-Judge and discriminative verifiers on ProcessBench (first-error detection), MATH-500, and AIME'24 under best-of-N and reward-guided search; out-of-domain it beats discriminative PRMs trained on the full PRM800K by 8% on a GPQA-Diamond subset and 4.5% on LiveCodeBench; and under matched token budgets it scales verification compute better than LLM-as-a-Judge (+7.2% on a ProcessBench subset). Older corpus papers [6] and [8] established both the value of process verification and the annotation wall that blocked products like this — the new results remove the wall (two orders of magnitude fewer labels) while improving out-of-domain robustness, which is what grading arbitrary school subjects requires. Paper [3] supplies the framing discipline: sell the critique as explanation, not as authentic reasoning.
Written by GLM · 2 Dec 2026
AI assessment
An exceptionally well-supported, focused API play that leverages a breakthrough in data-efficient process verification to solve a high-value problem in EdTech.
- Evidence strength 5/5
- The idea is directly supported by Paper [3], which demonstrates that a long-CoT verifier (ThinkPRM) can outperform discriminative PRMs using only 1% of the labels, specifically on the ProcessBench task of first-error detection.
- Market pull 5/5
- The named beneficiaries (Khan Academy, Photomath) have a clear, urgent need for step-level feedback to move beyond simple 'correct/incorrect' outcomes, which is a primary pain point in EdTech.
- Novelty & moat 3/5
- While similar to 'Olympiad Sparring Partner' and 'SnapGrade Math', this idea focuses specifically on the API-first delivery of a high-efficiency generative verifier, filling a gap for a plug-and-play grading infrastructure rather than a full student-facing app.
- Feasibility 5/5
- The core technology is demonstrated in the research; building an API wrapper around a fine-tuned reasoning model is a straightforward engineering task for a small team.
- Wedge clarity 5/5
- The 'first faulty step' detection is a sharp, specific entry point that provides immediate, high-value utility to existing tutoring platforms.
- Simplicity / focus 5/5
- The product is focused on a single function (step-grading API) with a clear input/output, avoiding the 'platform' trap.
Scored by Gemma 4 · 2 Dec 2026. Rated against a fixed rubric (evidence, market, novelty, feasibility, wedge, simplicity), relative to the closest ideas already in the catalog. A prior estimate to compare ideas before real-world signal arrives.
Act on this idea
Ideas only matter if someone runs with them. Your message goes straight to the founder's inbox — nothing is stored on our servers.
Who benefits
- Khan Academyorganization
Runs math practice at massive scale; first-faulty-step detection with a written critique powers immediate, specific feedback on student work without human graders.
- Photomath (Google)company
Its core promise is step-by-step math help; a verifier that pinpoints the first wrong step in a student's own attempt extends it from 'show the solution' to 'grade my work'.
- Mathpixcompany
Already converts handwritten math into digital steps; adding step verification turns its pipeline into an end-to-end homework checker rather than just a digitizer.
- Gradescope (Turnitin)company
Automates STEM grading workflows; step-level checking with a first-error location reduces instructor effort on partial-credit grading.
Research it builds on
- Rewarding Progress: Scaling Automated Process Verifiers for LLM ReasoningAmrith Setlur, Chirag Nagpal, Fisch, Adam et al. · 2024 · 266 citationsAll ideas from this paper →
- RM-R1: Reward Modeling as ReasoningAll ideas from this paper →
- Process Reward Models That ThinkKhalifa, Muhammad, Rishabh Agarwal, Lajanugen Logeswaran et al. · 2026 · 191 citationsAll ideas from this paper →
- Position: Stop Anthropomorphizing Intermediate Tokens as Reasoning/Thinking Traces!All ideas from this paper →