# One changed ID put the test answer in the instructions

A few answered questions can show a language model how to respond to the next one. If an example repeats the question at the bottom of the page, though, the instructions have already given away the answer.

We built a small test with a copied question. Two ways of choosing examples both left the copy out at first. When we changed its ID and kept every word the same, both put the answered question on the page. We inspected those instructions without sending them to a model.

Our collection held four records. Each had a question, an answer and an ID. Two records were identical down to the ID. One was the question to be asked. The other was a copy. The two remaining records held unrelated questions.

We asked for two examples from this collection. The default method picked them at random, using seed 0 so we could repeat its choices. The other method, called first-N, took the first eligible records. With two identical copies of the test record, both methods picked the two unrelated questions.

We gave the copy a fresh ID and ran the same selections again. Both still supplied two examples, but one was now the test question with its answer. Below it appeared the same question, this time waiting for an answer.

Why did the copy become eligible? We used EleutherAI’s LM Evaluation Harness v0.4.13, a tool that assembles tests for language models. We told it to draw the examples and the test question from the same part of the collection, known as a split. In that setup, the tool gives the record under test to the code that chooses examples. It excludes records that match the whole test record. A new ID was enough to let our copy through that check. [How the tool builds the prompt](https://github.com/EleutherAI/lm-evaluation-harness/blob/ddd67220430a2470529f25fd5c05a576ca1057a0/lm_eval/api/task.py#L981-L1009) · [How it compares records](https://github.com/EleutherAI/lm-evaluation-harness/blob/ddd67220430a2470529f25fd5c05a576ca1057a0/lm_eval/api/samplers.py#L56-L114)

To spot a repeat like this, read the finished instructions, or prompt. Compare the examples’ questions and answers with the question being tested. Our duplicate’s new ID looked different, and the example count was right. Only the words gave it away. The four invented records show what reached the prompt in this run. They tell us nothing about how a model would have answered.

## Related research

- [The same sentence pair on both sides of a language test](https://sapien1.com/research/keep-translations-together-in-a-data-split)
- [What changed when the reader had to answer without the passage?](https://sapien1.com/research/does-the-model-use-the-passage)

[Testing models](https://sapien1.com/research#evaluations)
