# The same sentence pair on both sides of a language test

A language model practices deciding whether two English sentences mean the same thing. Later it gets the same pair in Spanish. That may be a good test of handling another language. It isn’t a clean test of handling an unfamiliar pair.

We tried making a test from rows in seven languages, including English. Choosing rows one by one put a version of every test pair on the practice side as well. When we kept the language versions of each pair together, the two sides shared no pairs. We counted the overlap without training a model.

The practice side of a split is usually called training. The test side is held back. To tell whether a pair has crossed between them, you need an ID that follows the original pair when the language changes. The published collection already provides one.

## What the two published sets contain

PAWS-X gives each pair of sentences one ID across all seven language versions. A row holds that pair in a single language. In the Hugging Face copy we checked, the validation set, used for development checks, contained 14,000 rows covering 2,000 pair IDs. The separate test set contained another 14,000 rows and 2,000 IDs. These two published sets had no IDs in common. [Dataset version we checked](https://huggingface.co/datasets/google-research-datasets/paws-x/tree/4cd8187c404bda33cb1f62b49b001115862acf37) · [Original PAWS-X release notes](https://github.com/google-research-datasets/paws/tree/master/pawsx)

## Choosing individual rows or whole pairs

For our experiment we left the published test set alone. From the validation set we made a new practice group and a new test group, aiming to reserve about 20% for testing. Choosing language rows individually gave us 2,848 test rows. Every one shared its original pair ID with a row in the practice group.

Choosing whole pairs gave us 2,835 test rows, and none shared an ID with the practice group. Two further runs showed the same pattern. The overlap tells us which test rows are versions of familiar material. It doesn’t tell us how a model would answer them.

## Count the pairs your test has already encountered

For each test row, check whether its pair ID is present in training. Report the number with a match out of the total tested. If the aim is to test unfamiliar pairs, assign all versions of a pair to training or all to testing, then recount both the overlap and the resulting test size. If you deliberately test a new language on familiar pairs, report that overlap so readers know what was tested.

Results from different translations of one pair are related. See [how that affects uncertainty in a seven-language comparison](https://sapien1.com/research/compare-translated-benchmark-results).

## Related research

- [Why counting language versions separately made a small lead look more certain](https://sapien1.com/research/compare-translated-benchmark-results)
- [One changed ID put the test answer in the instructions](https://sapien1.com/research/check-few-shot-prompt-overlap)

[Language tests](https://sapien1.com/research#language)
