An unexpectedly high score is sufficient justification to look further into what the model may have been trained on. But it will not indicate specific test examples. One may be able to search appropriate corpora to determine if any test examples or answers appear there. Alternatively, one may be able to show statistically that a model is biased towards the particular ordering of questions in some test set. Of course, this may be innocent if there are good reasons to expect that ordering. And neither approach addresses the extent to which knowledge of the test set would inflate a score. Oren and colleagues
Suppose a test of knowledge of various works of art in a museum is published with 40 questions, with answers. Some model achieves 36 correct. It is subsequently brought to the attention of some interested parties that various questions can be found on the Internet. At this point it is worth separating four possible claims: (i) some of the questions are publicly available; (ii) some text from those questions is present in some corpus which the model was trained on; (iii) some information about those specific questions has been memorized by the model; and (iv) this has led to an improved result. Establishing (i) does not imply any of (ii), (iii) or (iv).
Search training data for the evaluation example
A developer with access to verified training records can search them for words from an evaluation example. But there are many things one may find: a unique part of the question; common instructions such as "choose the best answer"; the passage which the question refers to, and which may be common to several evaluations; the correct answer to the question; details of how to arrive at the answer. All are of different significance. As noted above, "choose the best answer..." may well be found preceding many, many unrelated questions.
For professional and academic exams, the GPT-4 Technical Report describes a search of normalized pretraining text for three randomly selected 50-character substrings per evaluation example, using the full example when shorter. The authors searched questions or their context, excluded answers and in some cases excluded multiple-choice options. One matching substring flagged the example. That rule identifies text overlap under the stated search procedure. GPT-4 Technical Report, Appendix C
So returning to the example above, one may well find the first sentence of the description of the work of art quoted in the question. That will be found in the description itself, but one would want to search further to see if the actual question, or the two dates in the order chosen by the question-setter, and the answer derived from them, were also present. On the other hand, there may be "help" material giving the answer, but phrased very differently, and so not found. So this search will both fail to detect some instances, and detect "false positives", as the report points out.
Equally important is what corpus is searched. Finding the relevant text on the public Internet only entitles one to say that it was found on the World Wide Web (or whatever subset was searched). One would want some information about that text actually being included in training data. Presumably the date it first appeared on the Web would show that it could have been included, but say nothing about whether it was crawled, passed various selection criteria, and so on.
Published ordering of examples
A language model assigns probabilities to token sequences. Whether the evaluator can access those scores depends on the interface. So Oren et al. compared the probability assigned to the full sequence of examples making up some evaluation, in the order published, to the probability of various permutations of those examples. Subject to certain assumptions, if there was significant preference for the original order, this would be evidence to reject the null hypothesis that there was no relationship between the evaluation and the model. Obviously one requires some means of obtaining the probability of strings of text, which may not be possible with a "chat" model. Oren and colleagues, methods
If one assumed that, once the set of questions to include had been decided, their ordering was chosen randomly, then no amount of knowledge of the contents of the museum would enable one to predict that the 19th question would follow the 18th. So if the model knew the answer to the 18th and 19th questions, there would be nothing special about that combination. So demonstrating a preference for the order as published would indicate that it knew something more.
However, if instead the order of the questions followed the order around the museum, from archaeological finds to contemporary art, then someone familiar with the layout of the museum, but not having seen the test, might well expect successive questions to relate to similar eras, types of art, wings of the building, and so on. So there would be no surprise to find some preference for the order published, and shuffling the questions would destroy this property. The set of correct answers would of course be unchanged, but the significance of finding a preference for the original order very different.
The necessary assumption is that the set of examples is exchangeable. In this context, that any permutation of their order would give the same probability distribution. If one knew that the order published was the result of an actual randomization, one could be fairly confident. A statement that the order is "unlikely" to be significant may be much less satisfactory, for example if the questions are drawn from a variety of sources. The researchers also use a negative-control model to check for alternative explanations. Such a control cannot establish how an existing dataset was generated. Oren and colleagues, section 6
Which claim does the observation support?
| Information | Implication | Unknown |
|---|---|---|
| Question and answer found in data known to be used for training | This text was included in training | Whether it influenced the answer given |
| Significant preference for order, known to have been randomly chosen | Reject the null hypothesis of no relationship with this evaluation | What proportion of questions was affected, and extent |
| Correct answer to question, and to a re-worded version | Model can answer this question (in at least 2 forms) | If as a result of training on this, or other information |
| No substrings of question found and no significant preference for order | No evidence of this type | May have been trained on other questions, answers, descriptions, and so on |
Care should also be taken over interpretation of p-values. This only indicates the frequency of obtaining a result as extreme or more, given various assumptions, including the null hypothesis being true. It is not a probability that the setter of the evaluation has "cheated" in some way, nor a measure of how many questions may have been learned. If a large number of evaluations were tried, it would be important to know how this was taken into account. This point is made in the paper. Oren and colleagues, study limitations
How much did exposure change the score?
Return to our hypothetical evaluation. If 4 question and answer combinations are found in training data, and all answered correctly by the model, then excluding those four items from the scoring denominator leaves 32/36, 88.9%, compared to 36/40, 90%. So one knows exactly the effect on the overall percentage of excluding these 4 known examples. One does not know how the model would have done on all 40, had it not been trained on these. It may well be that these 4 are trivial given general knowledge, and the model would have got them right anyway. Equally, they may depend on some very specific detail, such as an item number, only given immediately prior to the answer, so that training on them could make a big difference. So one would want to examine these 4 questions in more detail before concluding that the 1.1 percentage-point difference measures the causal benefit of training exposure.
Ideally one would want to compare results on a similar set of questions, some of which the model had definitely been trained on and some not. The developer of the model could train a model on a chosen set of examples, and assess the effect, given a particular scheme. The provider of an evaluation could create a completely new set, and test a current version of some model on that, making clear how it had been created. This would give some indication of how well the model does on unseen questions, although the degree of similarity of difficulty to the original evaluation is hard to judge.
So for the example of the museum, one might obtain details of recent acquisitions, and fix a set of descriptions available to the reader. Determine what questions can be answered solely with reference to these, and which require other information. Determine if the model being tested has access to the descriptions. Note that looking these up as required would be reasonable, equivalent to an open book test. So one would want to distinguish this from a model answering without access. Lumping these together as "contaminated" loses information.
In summary, it seems important to be clear about what one is claiming. A match with some corpus, preference for some order as tested, result on a set of new questions. And, if known, the effect this may have on accuracy. Then the reader can decide how much weight to place on suspicion that a model has been trained on some evaluation, and any quantification of its effect.