Skip to content
mentoor

Topic 4 of 6 · 4 min read

MEASURE: testing and tracking AI risks

Goal: Choose metrics and test methods for three mapped risks and state the threshold that would block release.

MEASURE turns each mapped risk into a test with a number or a clear pass/fail rule, so the team knows if the risk is real, how large it is and whether it is getting worse. If MAP says what could go wrong, MEASURE finds out how often it does.

Check yourself · 1 of 3

Why should the release-blocking threshold be written before the test is run?

Choose one answer

Why it matters

"We tested it and it seems fine" is not evidence. AI systems give different answers to similar inputs, and failures cluster in places the team did not think to look. Measured results let a leader decide to ship, wait or stop, and let a later reviewer see what the decision rested on.

How to do it

  1. Start from the mapped risks. Pick the ones that matter most. Do not test everything the model can do.
  2. Choose a metric per risk. For invented facts: the share of test answers with a claim not found in the source. For fairness: the gap in error rate between groups. For prompt injection: the share of attack attempts that change the system's behaviour.
  3. Choose the method. Test sets drawn from real use; red-teaming, where people try to break the system; human review with a rubric; automated checks. A model grading a model can help, but it needs spot checks by people.
  4. Set a threshold before you look. Write down the result that blocks release. Setting it after the result tempts you to move it.
  5. Use independent reviewers where you can. People who did not build the system find different problems.
  6. Track after launch. Test data goes stale. Keep measuring on live samples and rerun tests when the model, prompt or data changes.
  7. Record limits. Say what the tests did not cover.

Before and after

Before: "We ran 20 prompts and the answers looked good."

After: "Risk: invented policy terms. Test: 200 real support questions, each answer checked by two reviewers against the policy pages. Metric: answers with an unsupported claim. Block release above 2 percent. Result: 3 percent. Release blocked; retrieval fixed; retest next week."

What goes wrong

  • The test set is made by the builders and looks like the examples they already tuned for.
  • A single average hides a group where the system fails badly.
  • A model is the only grader, and its errors go unseen.
  • The metrics are measured once at launch and never again.

Examples

Three risks, three measures

Invented policy terms: 200 real questions, two human reviewers, block above 2 percent unsupported claims. Unequal service: compare the rate of wrong answers for questions in English and in Spanish, block if the gap is more than 5 points. Prompt injection: 50 attack pages, block if any one makes the assistant reveal its instructions.

Threshold set after the fact

A team sees 6 percent errors, then decides 6 percent is acceptable and writes the threshold to match. The record now shows a rule that was shaped by the result. Fix: set the threshold in the plan, and record any change with who approved it and why.

Key points

  • Each mapped risk needs a metric, a method and a threshold, not a general impression.
  • Write the release-blocking threshold before running the test so it cannot drift to fit the result.
  • Red-teaming and independent reviewers find problems that the builders' own tests miss.
  • Averages can hide failure in one group, so results should be broken down by group where fairness matters.
  • Measurement continues after launch, and tests are rerun when the model, prompt or data changes.

Common mistakes

  • Testing with prompts the builders wrote and tuned for.
  • Reporting one average and never splitting results by group.
  • Using a model as the only grader without checking a sample by hand.
  • Measuring once at launch and never again.

Check yourself · 2 of 3

A summariser is mapped with the risk 'adds facts that are not in the source'. Which measure fits best?

Choose one answer

Check yourself · 3 of 3

A fairness test shows 95 percent accuracy overall. What should the team do before concluding the system is fair?

Choose one answer

Practice items, not counted towards your mastery.

Start here

Where to go in your country