ai.si
Field notes

Measuring AI progress

How Can Two Benchmark Averages Rank the Same Models Differently?

Bottom line

Weighting every question equally gives larger subjects more influence. Weighting subjects equally gives each subject the same vote. Recompute the ranking with weights that reflect the work you expect.

Three aligned layers labeled tasks, scoring rule and comparison feed a single reported result.

A score inherits its meaning from the tasks, the scoring rule and the comparison used to produce it.

Two people can tally the same correct and incorrect responses and come to opposite conclusions about which model is best. It can happen when one gives every question equal weight and the other gives every subject equal weight. Equal numbers of questions per subject remove this discrepancy. To interpret a published mean, ask what you would pick at random: one question from the whole file, or a subject followed by a question within that subject?

MMLU is a useful example. It consists of questions in 57 different subjects. When the model answers each question, the relevant section of code records this as 1 (for a correct answer) or 0, building up a list of 1s and 0s for each subject. At the end of the run over all 57 subjects, all these lists are combined into one long list, of which the mean is calculated and reported. So subjects with longer lists of answers contribute more to the final figure. Alternatively, one can take the mean score achieved in each subject, and average those 57 figures. See the paper on MMLU, and the code used by the authors to evaluate models.

Two methods of totalling 1,000 questions

In this invented archive evaluation, 900 questions require information from one item and 100 require reconciling two inconsistent descriptions. Each acceptable answer earns one point.

Question type Number of questions System 1 System 2
Report info from 1 item 900 810 (90%) 675 (75%)
Reconcile 2 items 100 50 (50%) 75 (75%)
Total 1000 860 (86%) 750 (75%)
Equal weight for each type Two categories 70% 75%

Taking the total line, any one question picked at random would have a 90% chance of being to report information from one item. System 1 would be expected to answer 135 more of these correctly than System 2, but would answer 25 fewer of the other kind, so overall 110 more out of 1000, an eleven percentage-point lead in accuracy. All the individual questions are weighted equally, so the weight attached to "report from 1 item" simply reflects the proportion of all questions of that type.

On the other hand, if you flipped a coin to decide which type of question to pick, and then picked one at random of that type, you would expect system 1 to be correct 90% of the time for one set of questions, 50% for the other, an overall average of 70%; system 2 would be 75% on either. System 2 leads by five percentage points on this measure. Both of these statements can be verified directly from the table above. The only difference is the method of selecting an example question, implicit in each type of total.

The first total is a micro-average over questions. The second is a macro-average across groups. You need to know what constitutes a group and how each is scored. It gives no indication whether groups correspond to subjects, languages, individuals, collections, levels, or whatever. So it is always worth checking how the average is defined.

Where does the ranking switch?

What proportion of each type would give the systems equal total scores? Let w be the proportion of "report from 1 item" questions. Then system 1's total score would be 0.90w + 0.50(1-w) = 0.50 + 0.40w. System 2, fortuitously, has the same percentage on each type of question, so its total would always be 0.75. So the two are equal when 0.50 + 0.40w = 0.75, ie w = 0.625. So if more than 62.5% of the questions were "report from 1 item", system 1 would score higher; if less, system 2. For the goal of maximizing accuracy, if about 90% of archive enquiries were of this kind, system 1 would be preferred; on the other hand, if about 50% of enquiries required reconciling two items, system 2. In each case, exactly the same figures for performance on the individual types of task.

If all that was known was that the proportion would lie between 55% and 70%, then the corresponding total scores for system 1 would be 72% to 78%, against 75% for system 2. So it is not possible to say which system would be better. In these circumstances it may be much more valuable to determine, on some reasonable sample of actual enquiries, what proportion fall into each category, than to put more questions to either system.

This only varies one parameter, the relative proportions of questions. It says nothing about the range of variation to be expected in the percentages on the individual categories of question, if more questions were put. This is a sensitivity analysis for the mix, not a confidence interval for the score. Precise weights still leave uncertainty if the per-category scores are poorly measured.

What is the most appropriate figure?

To maximize correctly answered enquiries, weight the categories in proportion to the requests actually received, assuming the test questions represent them. Define the unit as one enquiry. If there were a variable number of questions to elicit a complete answer to 1 enquiry, then weighting all questions equally would give more weight to enquiries requiring many questions. So this total might be a good guide to performance per question, but be a poor guide to performance per enquiry.

An encyclopedia editor might regard reconciliation and retrieval as equally important competencies. That editorial decision can justify giving them equal weight even if one task occurs less frequently in ordinary work. Label subject-balanced accuracy clearly so readers can distinguish it from accuracy on the actual queue.

There may also be differing degrees of seriousness attached to giving a wrong answer. For example, the result of an erroneous reconciliation might be incorporated into the permanent record about an item. The archivists may therefore wish to ensure a certain minimum level of performance on this type of question, or have all such answers checked by an expert. The model may therefore score very highly overall but fail to meet this requirement. Show the individual category scores alongside the total. Minimum acceptable performance, request frequency and the cost of an error each encode a different decision.

The HELM project goes further still, reporting a number of different characteristics of model performance, including accuracy, calibration, robustness, efficiency and others as relevant. So it allows the various compromises to be assessed. Of course, it does not indicate how much more important one may consider a correct answer to be than a quick answer, or a well-calibrated one, for any particular purpose. That will depend on what units and criteria are relevant. See Liang et al.

Examine the components of the total

As well as changing the relative weights given to different groups of questions, the total can be affected by omitting some of the questions. For example, if system 2 failed to give any answer to 20 of the "reconcile" questions, one method would be to leave these out, so calculating a percentage on 80 questions only. This compares system 2's answers to a different set of questions from those put to system 1. Another would be to regard failure to answer as equivalent to a wrong answer, and include these 20 as 0s. This is arguably a fairer assessment of the whole process of putting a question to the system and obtaining an answer. Whichever method is adopted, it is important to state how non-answers have been treated, what weights have then been applied, and if different, why.

A similar effect can arise simply by subdividing one of the categories. For example, if the 900 "report information" questions comprised two sub-classes, to report title and to report date. Then, calculating an average equally weighted over the three resulting categories, two thirds of the total weight would be attached to these various types of "report" question, as opposed to one half previously. Assuming the percentage correct on each sub-class was the same as before for all 900, system 1 would now score about 76.7% compared with 75% for system 2. Merely introducing a further level of classification has changed which system appears to be better, on an equal weight per task basis. So the choice of classification scheme is significant.

As a useful check, see if one system does better than the other on all sub-classes. If so, it must also do better with any weighting scheme, as long as all weights are positive (or zero) and add up to 1. So if the other system appears to be better overall, there must be some discrepancy in the questions included under each heading for the two systems, different weights applied, a mistake in working out one or more of the percentages, or the "overall" figures calculated in some entirely different way. In the example above it can be seen that it is possible for either system to be better overall, since each does better than the other on one class of question. So it may be worth checking this, rather than assuming there must be some subtle effect due to taking averages.

For each class, ask for the number correct, the total number of questions and the aggregation rule. Verify the published figure, then calculate the result under the weights appropriate to your decision. If one model leads for every plausible weighting, that ranking is robust to the weighting assumptions you tested. If the lead changes sign, report the boundary and the class scores. Another reader can apply the same evidence to a different mix.

References

All field notes