ai.si
Field notes

Measuring AI progress

Is a Two-Point Benchmark Lead Meaningful?

Bottom line

A two-point lead can come from a few one-sided wins or many disagreements that nearly cancel. Use paired answers and the question-sampling method to judge how stable the lead might be on fresh items.

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.

Suppose model A was correct on 70% of questions and model B on 68%. On those recorded answers A leads by two percentage points. How precisely that lead estimates performance on fresh questions depends on which items the models disagreed about and how the questions were selected. On the other hand, model A may be right on 20 further questions, and still be right on all questions where B was right; or right on 160 more, but wrong on 140. Clearly these are very different amounts of uncertainty. So it would be helpful to know the results per question, for both models, before asserting that one model will continue to be better. See Evan Miller’s paper on evaluation uncertainty.

What parameter are we trying to measure? We may simply be interested in how many answers each model got right, against some "gold standard", from the particular set of answers and questions available to them. In that case, the number of correct answers tells us all we want to know. But if we wish to make statements about the number of correct answers to some other set of questions (and answers), we need to think about the population that those questions were drawn from, the aspects of the process which may differ from run to run, and the relevance of this process and set of questions to our target application.

Two experiments with identical headline scores

Consider 2 experiments. In each, models A and B are given 1000 questions, generated independently. They are each asked to answer, with 1 mark awarded if correct, 0 otherwise. Assume both models follow the reference instructions and may use any resources as specified. Treat the returned answers as fixed. The following counts are illustrative.

Answers to each question Exp 1 Exp 2
Correct for both 680 540
Correct for A only 20 160
Correct for B only 0 140
Incorrect for both 300 160

As expected, model A is correct on 700 and 700 questions in experiments 1 and 2 respectively; B on 680 in each case. So in both experiments A is 2 percentage points better than B, a relative gain of 20/680, or about 2.9% more correct answers.

There are only 20 questions in experiment 1 on which one model differs from the other, and all of these favour A. In experiment 2, there are 300 such questions; A would be preferred on 160 of these, but B on 140. So there will be some users for whom B would have provided a better answer. The spread of outcomes for individual questions may be very significant, irrespective of any statistical considerations.

Estimate the uncertainty in the paired difference

So for each of the 1000 questions, record 1 if A only got it right, -1 if B only got it right, 0 otherwise. The mean of these 1000 numbers will be the difference between the proportions correct. So in experiment 2, the total will be 160-140=20, and the mean 20/1000 = 0.02. Experiment 1 gives the same. As before, this is just the difference in the proportion of correct answers, but now we have 1000 numbers from which to calculate a measure of the variability of this estimate.

Taking the sample standard deviation and dividing by the square root of 1,000 gives the estimated standard error of the mean, assuming independent sampling of the questions. For experiment 1 this is 0.0044, or 0.44 percentage points. Experiment 2 gives 0.0173, or 1.73 percentage points. Intuitively, with many questions on which either model may be uniquely right or wrong, we would expect a fairly different overall total if asked a different set of questions. Note that this is with no change to the overall proportion correct, and no change to n.

An approximate 95% confidence interval adds and subtracts 1.96 standard errors from the paired mean. In experiment 1 the interval for A minus B is 1.1 to 2.9 percentage points. In experiment 2 it runs from −1.4 to +5.4 points. The latter interval is compatible with small advantages in either direction. Of course, this doesn't imply there is no difference between the models. These are just rough calculations assuming normally distributed statistics, independently generated questions, and so on. Miller’s paired analysis

The standard deviation can be calculated more simply. Since all values will be 1, -1 or 0, all squares will be 1 or 0. Hence the sum of the squares will be 20 and 300. Subtract 1,000 times the square of the mean and divide by 999 to give the sample variance. Take its square root, then divide by the square root of 1,000 to obtain the standard error of the mean. This will be a small fraction of 1, that is, of one correct answer. Multiply by 100 for percentage points.

Separate error bars

If the vendor has provided an error bar for model A's result of 70%, and one for B's result of 68%, these will be useful, but they don't address the question of agreement or disagreement between the models' answers. Both experiments could give the same error bars (using, say, the binomial distribution) about 70% and 68%, and yet very different error bars about the difference. The overlap alone cannot recover the paired uncertainty in their difference.

Similar considerations apply if the vendor has performed some form of bootstrap. Have they sampled with replacement the indices identifying each question, and taken both models' answers to each sampled question? Or have they sampled separate sets of indices for each model? In the latter case they will have generated a totally different experiment. So ask how each sample was constructed. Increasing the number of iterations can smooth the estimate, but cannot restore a pairing discarded by the resampling procedure.

Also, as noted by Peyrard et al., if we sum various measures over a common set of test texts, we can get a deceptively high mean if there are one or a small number of very high values. They suggest alternative ways of combining the values over the common set. Here all "successes" are equal to 1. Choosing a different aggregation rule can change the quantity being measured. Estimating uncertainty in our paired accuracy difference is a separate operation. Peyrard and colleagues

Independence of questions

Of course the 1000 indices identifying questions may not all be independent observations. For example, there may be 10 questions per passage in a reading comprehension test. If a model has made some fundamental error about, for example, who is speaking, it may well get several of those 10 questions wrong. So there may be substantial correlation of results within passages. If the passages were the independently selected units, preserve their clusters when estimating uncertainty. Miller, clustered questions

On the other hand, if we ask the same question on several occasions, and get varying answers, this tells us about the variability from run to run. But 1000 answers to the same question doesn't tell us much about the range of questions that might be asked by real users. Equally, 1 answer to each of a number of questions may adequately describe the outcome of that particular test, but tell us nothing about the variability of the answer if repeated. So we need to be clear whether we require more questions, or more answers to each question.

We should also be aware of other changes which may have been made at the same time as changing model. For example a change of instructions, allowing more space for the answer, different method of assessing the answer. Any of these may legitimately be incorporated into a "new model". The above calculation will indicate the difference between 2 sets of procedures, but say nothing as to which aspect or aspects are responsible. So if authors wish to attribute the change to the model itself, they need to show results varying only that aspect.

Relevant to our decision?

It may well be worthwhile changing to model A if we can expect 20 more passable answers per 1000 questions. On the other hand, if the quality of the review is highly dependent on picking up certain types of anomalies, we may wish to look more closely at the 140 questions on which only B was successful, to see if any features are in common. No amount of statistical information about the overall mean will inform us of the importance of such questions.

Nor will a narrow CI assure us that the questions likely to be put to us in the future will be similar in nature to those in our test set. For example, all may have required looking up information in a single reference, whereas users may wish us to reconcile discrepancies between 2 sources. We can be very precise about our result, but it will say nothing about this other ability. So we should always try to state the population to which we believe the result applies.

So at minimum we might report "Given 1000 questions, model A answered 70% correctly, model B 68%." and give an error bar on that difference if known, details of any grouping of related questions, and the class of questions to which we wish to generalize. Failing that, we can at least report the difference observed, making clear that we know nothing about its variability. At least the reader is not left assuming that the position in some published table of results is decisive.

References

All field notes