Home / Insights / AI assessment engine

How do you know if a quiz question is any good? We built a system to find out

Writing quiz questions with an LLM is easy. Knowing which ones are any good is the hard part. Here's how we handled both for a 12-week video course.

Published 2026-11-28 · 7 min read

Picture a 12-week course, chopped into videos of 4 to 8 minutes each. That's a lot of videos. Each one needs questions, otherwise you have no idea whether anyone understood it. And not just one kind of question: single-answer MCQs, multi-select MSQs, numerical answers, and longer case studies.

One professor can't write, test and maintain all of that by hand. So we automated it. Generating the questions turned out to be the easy half of the job.

Generating questions is the easy part

We use an LLM with retrieval over the course material: lecture transcripts, slides and readings. It maps each video to its learning objectives and drafts candidate questions, along with answer keys, distractors and rubrics. Retrieval matters here. It ties every question to a specific chunk of the course, so the model doesn't wander off into things the lectures never covered.

Each item gets tagged with a concept and a cognitive level (recall, application, synthesis). We can also ask for a target difficulty, like "multi-step reasoning across two lectures".

That gets you a question bank in an afternoon. The trouble is that a lot of those questions are bad, and you can't tell which ones by reading them.

A pass rate lies to you

The obvious way to judge a question is the percentage of students who got it right. We aim for questions that land around 45 to 70% for an average student. Above about 90% it tells you nothing. Below about 20% it's usually testing trivia or hiding an ambiguous answer key.

What a pass rate tells you
Share of average students who answer correctly
0%20%45%70%90%100%
Under 20%: usually broken or ambiguous45–70%: targetOver 90%: too easy

But raw pass rate is misleading. If only your strongest students happened to attempt a hard question, it looks easy. The number is mixing up how hard the question is with how good the people answering it are.

Item Response Theory exists to pull those two apart. The classic version is a small formula:

P(correct) = 1 / (1 + exp(-a * (theta - b)))

theta : the student's ability
b     : how hard the question is
a     : discrimination, how sharply it separates strong from weak

We estimate b and a for every question. Discrimination is the one people forget about, and it's the most useful. If strong students and weak students do about equally well on a question, a is near zero and the question is noise. If strong students do worse, a goes negative and the key is almost certainly wrong. We flag both. MSQs with partial credit need a polytomous model rather than plain right-or-wrong.

Item characteristic curves
Chance of a correct answer by student ability. Illustrative parameters.
45–70% target band0%25%50%75%100%-3-2-10123Student ability (θ)
Good item: a=2, b=0Hard item: a=1.5, b=1.5Weak item: a=0.3, b=0

Fake students as a bouncer

Before any real student sees a question, we run it past simulated weak, average and strong students. If all three pass, it's too easy. If even the strong one fails, it's ambiguous or broken. Only items where the strong persona passes and the weak one fails go on to live calibration.

The personas are a fast, cheap first filter. Real student responses make the final call.

Making the first few responses count

New questions start with almost no data, and calibrating from scratch needs a lot of responses. So we use a contextual bandit to decide who sees what. A new candidate goes to students whose estimated ability suits its predicted difficulty, which means each response teaches us more than a random one would. The goal is a usable estimate from tens of responses instead of hundreds.

The same signal feeds back into generation. A question that lands in the target band with good discrimination is a reward. One that's trivial or confusing is a penalty. Over time that tunes the prompts and concept mixes toward the kinds of questions that work for this particular course.

With so little data per question, raw estimates are noisy. We lean on informative priors and shrinkage, and we report ranges instead of single numbers.

The question pipeline
Every item passes each stage before it counts toward a grade
  1. GenerateLLM plus retrieval over the course
  2. Persona screenWeak, average and strong simulated students
  3. Live calibrationIRT estimates of a and b
  4. Bandit routingEach response teaches the most
  5. Eval gateDiscrimination threshold, professor approval
  6. Drift checkRe-estimated every cohort in MLflow

The unglamorous part: MLOps

None of the above is worth much if you can't trust it next semester. So most of the boring engineering goes into keeping the system honest.

Every question, prompt template, model version and set of IRT parameters is versioned in MLflow, so any score can be traced back to what produced it. A question only reaches students if it passes the persona screen and clears the discrimination threshold, and those thresholds are configurable per course. Difficulty and discrimination get re-estimated every cohort, because they drift: a lecture changes, and last year's good question quietly stops working. Drifting items get flagged for review or retired.

And a person stays in the loop. The professor approves items and rubrics, case-study grading stays rubric-based with review, and every decision is logged.

Beyond one course

The pattern itself isn't specific to one course. Anywhere you have to generate a lot of items and then measure which ones work, such as training quizzes, certification banks or onboarding assessments, the same loop applies. If a question bank is your bottleneck, tell us about it.

Start with a five-day Health Check or Cost Audit.

Fixed scope, fixed fee, a scored report and a 90-day plan. We reply within 48 hours and sign an NDA before you share anything sensitive.

Book an MLOps Health CheckGet an LLM Cost AuditContact usFree readiness score
Get your readiness score