Confusion Matrix Recall: Reading Recall in an LLM Evaluation Pack

How to read recall from a confusion matrix in an LLM evaluation: why accuracy hides missed positives, per-class recall, and what a reviewer should check.

Confusion Matrix Recall: Reading Recall in an LLM Evaluation Pack
Written by TechnoLynx Published on 11 Jul 2026

A model can post a high accuracy figure and still find almost none of the cases you care about. Accuracy counts every correct “no”, and an imbalanced evaluation set is mostly “no”. Confusion matrix recall gets around this. Recall is TP / (TP + FN), the share of real positives the model actually found, and true negatives never enter the calculation. In an LLM evaluation pack, recall tells you how much the model missed. Accuracy on its own cannot tell you that on an imbalanced task.

Where Recall Sits in the Confusion Matrix

A confusion matrix is a cross-table of the true classification against the predicted one. Correct predictions sit on the main diagonal. Recall uses only the real positives: the true positives the model caught and the false negatives it labelled negative when they were actually positive. Each false negative lowers recall, because false negatives sit in the denominator.

Before you read any cell, check which axis is which. In scikit-learn, each row is the true class and each column the predicted class. The scikit-learn documentation itself warns that other references swap the axes, and the LLM4SCREENLIT paper (2025) lays out its matrix with predictions as rows. The step-by-step calculation, and how recall trades off against precision, are covered in our guide to reading the confusion matrix behind precision and recall.

Why Can a 96% Accurate Model Miss Every Positive?

On an imbalanced set, a model that predicts the majority class every time scores well on accuracy without detecting anything. Google’s Machine Learning Crash Course gives the textbook case: if one class appears 1% of the time, a model that always predicts negative scores 99% accuracy and is useless. In the same situation, recall measures exactly what that model fails to do, which is find the positives.

Worked Example: 99% Accuracy, Zero Recall

SpecStory’s code-review guide offers a case that is easy to check by hand. Take a change of 200 lines with 2 buggy lines, and a reviewer that posts no comments at all:

Cell Count
True positives (bugs flagged) 0
False negatives (bugs missed) 2
False positives (clean lines flagged) 0
True negatives (clean lines left alone) 198

Accuracy is (0 + 198) / 200 = 0.99. Recall is 0 / (0 + 2) = 0. Both figures come from the same four cells. Recall exposes that the reviewer found nothing.

The Same Failure in Published LLM Evaluations

In the LLM4SCREENLIT reanalysis of LLMs screening literature for systematic reviews (2025), gemma:7b scored 96.17% accuracy but found none of the relevant studies (TP = 0), and models that found at least some relevant papers had lower accuracy. The authors conclude that optimising on accuracy would select worse or completely ineffective LLMs.

In one study the paper reanalyses, the model with the best accuracy (Claude 3.7 Sonnet, 94.4%) loses 63.3% of the relevant evidence. The model with the best Matthews correlation coefficient (MCC), GPT-4.1 mini, still loses 43.9%. Only a cost-weighted MCC (WMCC) picks GPT-4o, which keeps 94.2% of the evidence. These are the paper’s figures for literature screening. What carries over to other tasks is the lesson: the metric a vendor chooses to lead with can decide which model wins.

How Is Recall Reported per Class When There Are More than Two Labels?

With more than two labels, recall is computed separately for each class, and then averaged to give an overall figure. Each category gets its own confusion matrix, and the metric definitions stay the same. In scikit-learn, setting average=None returns one recall per class instead of an average.

When class imbalance is severe, the choice between macro and micro averaging changes the final recall significantly.

Averaging How it is computed What it does to a weak minority class
Macro Recall per class, then the unweighted mean Counts it as much as any large class
Weighted Recall per class, then the mean weighted by support Shrinks its influence; weighted recall equals accuracy
Micro Global TP and FN totals across classes Gives the same figure as accuracy for plain multiclass data
Balanced accuracy The macro mean of per-class recall Gives every class the same weight, so rare classes stay visible

Worked Example: One Model, Three Different “recall” Figures

Here is the scikit-learn documentation’s example report for a five-sample, three-class problem. Per-class recall is 1.00 for class 0, 0.00 for class 1 and 0.50 for class 2. Accuracy is 0.60, macro-average recall is 0.50 and weighted-average recall is 0.60. The macro figure is just the mean of the three class recalls: (1.00 + 0.00 + 0.50) / 3 = 0.50. The weighted figure equals accuracy, as the definition says it must. A vendor could truthfully report “recall 0.60” for this model, even though one class is never found at all. That is why a pack should show the per-class row before any average.

LLM raters show the same need for per-class detail. A 2026 audit of multimodal LLMs scoring clinical drawings on a 0 to 5 ordinal scale found that GPT-5 reached 92% within-one-level accuracy, close to the best supervised model. Its 6×6 confusion matrix, though, put 57 samples in the (true 0 → predicted 1) cell, nearly 60% of all true-0 drawings. The aggregate metrics did not show this endpoint error. The audit’s authors also found that few-shot prompting improved aggregate error by 17% while the endpoint compression persisted.

When Does an LLM Evaluation Produce a Confusion Matrix at All?

An LLM evaluation produces a confusion matrix when the model’s output is mapped to a fixed set of labels and compared with reference labels. Screening is one example: include and exclude decisions are scored against human labels. Outside that setup, how far recall applies depends on the task.

  • Binary decisions against a gold standard. Include/exclude screening fits here. In a study of LLMs acting as judges, recall rose with human alignment while precision showed no trend, and less aligned judges were short on precision rather than recall.
  • Ordinal or multi-level scores. These produce a k×k matrix, but each error has a distance. The clinical rater audit reported mean absolute error and within-one accuracy, and added sensitivity and specificity only after thresholding the scores into screening categories.
  • Free-form or structured extraction. In the LLM4SCREENLIT paper, moving from binary screening to data extraction needs a different evaluation design, not just a new reading of the same metrics.
  • No gold standard. Standard confusion-matrix metrics assume a gold standard exists, while kappa assumes none does, so mixing the two on one matrix is inappropriate.

Two further cases distort a matrix that does exist. A benchmark that only counts which known bugs a tool caught reports recall and leaves precision out. And recall needs a complete list of the real positives, which no team can be sure it has. Null or unclassifiable outputs, whether from the model or from an API outage, directly affect the confusion matrix. Their rate and cause should be reported, and in screening they should be treated as positives that need human review.

Recall also tells you nothing about false positives. In the study where cost-weighted MCC picked GPT-4o, gpt-4.1-nano had higher recall than GPT-4o (0.981 against 0.942) but produced 7,598 false positives against 1,743. Reporting recall alongside precision fixes that blind spot. In binary classification, the recall of the negative class is the specificity. The companion piece on what confusion matrix precision measures covers the false-positive side.

What Should a Procurement Reviewer Check in a Vendor’s LLM Evaluation Pack?

A reviewer should check whether the recall figures can be recomputed from raw counts, and whether those counts reflect the buyer’s own cost of a miss. Across the 29 LLM screening papers the LLM4SCREENLIT authors reviewed, only 24% reported full confusion matrices, and none of the five that claimed workload savings priced the cost of false negatives.

Reviewer Checklist for Recall Evidence

Check Why it matters
Complete TP/FP/TN/FN counts for every model, dataset and prompt Lets anyone recompute recall, MCC or a cost-benefit analysis
Raw counts, not only percentages Without raw counts, a full cost-benefit analysis is impossible
Per-class recall shown before any average, with the averaging method named Averaging choice changes the figure under imbalance
Missed positives (1 − recall) reported and discussed Missed positives can be lost for good
A chance-corrected metric (MCC) alongside recall; no accuracy-only headline The paper recommends rejecting accuracy-only reporting
A declared FN:FP cost ratio, with its reasoning The weight should come from stakeholder consultation and a sensitivity analysis; w = 10 is the paper’s default for systematic-review screening
Confidence intervals for sample-based validation, with the method stated A validation sample yields an estimate, not the full-population figure
The number of positives behind each recall figure Recall’s effective sample size is the number of real positives, which can be very small
Null-output rate, its cause and the handling rule Null outputs change the matrix

Confusion-matrix metrics computed on small groups are jagged and unstable, so a small change in sample size can move the figure a lot. The interval check needs care too: when a vendor has labelled the entire population, sampling error does not apply. Confidence intervals matter when a validation subset is used to decide whether to deploy on the rest.

Several published frameworks also address this evidence. Article 15(3) of the EU AI Act requires that the levels of accuracy and the relevant accuracy metrics of high-risk AI systems be declared in the instructions of use. ISO/IEC TS 4213:2022 specifies methodologies for measuring the classification performance of machine learning models. NIST’s AI Risk Management Framework (AI 100-1) warns that measurement approaches can be oversimplified, gamed or lack critical nuance. Our article on why model accuracy is not a regulator defence looks at the per-decision trail that also has to exist.

TechnoLynx builds this kind of approval evidence as an engineering deliverable: task-specific LLM evaluations whose confusion matrices, per-class recall and cost assumptions a buyer, auditor or model-risk committee can read and sign. That work sits within TechnoLynx’s generative and agentic AI engineering. It is engineering evidence, not certification. A reviewer who only needs to score an existing pack may find our guide on how to score LLM evaluation results for a non-technical procurement reviewer enough.

FAQ

What Does a 2x2 Confusion Matrix Represent?

A 2x2 confusion matrix counts the four outcomes of a binary classifier against the true labels: true positives, false positives (Type I errors), false negatives (Type II errors) and true negatives.

How Do You Visualise a Confusion Matrix?

Confusion matrices are often drawn as heatmaps, which make it quick to spot the classes a model confuses. Normalising each row by its true class makes per-class recall readable directly from the diagonal when rows are the true class.