Skip to content

Systems and records

Train and evaluation package lineage: what exact-match checks miss

By SourceX Editorial · Updated

10 sections

Short answer

Train and evaluation package lineage means each package arrives with its own manifest: parent snapshot, split rule, file hashes, a row key and a recorded overlap test against its sibling. A checksum alone proves nothing about separation. On Banking77 at a pinned commit, exact matching found no test question in the training file; normalizing case and punctuation found 25. CLINC150 holds identical queries in train and test under different labels.

Evaluation split

Train evaluation package

This page covers train and evaluation package lineage: what exact-match checks miss.Illustrative

Key takeaways

  • A checksum proves bytes, not separation: CLINC150's train, validation and test packages sit in one file with one hash.
  • Exact matching found no Banking77 test question in its training file; normalizing case, punctuation and whitespace found 25 of 3,080.
  • CLINC150 has identical queries in train and test under different labels, the finding that should block acceptance outright.
  • A split rule is lineage only when the files carry its field; CLINC150 describes a worker-level split but ships no worker field.
  • Give each package its own manifest: role, parent snapshot, file hashes, row key, content digest, overlap result and access group.

What does train and evaluation package lineage need to prove?

Train and evaluation package lineage has to prove three things before a buyer accepts a delivery: each package is the exact version its manifest names, the evaluation package is disjoint from the training package under a stated row key, and each package is stored, licensed and read only for its own intended use. A file that loads and a hash that matches settle the first point and nothing else.

The decision here is narrow. A delivery engineer either accepts a training package and an evaluation package as separate, traceable deliveries, quarantines some rows, or sends the pair back. The evidence that supports that call is a manifest per package, a recorded overlap test between the two with its key and normalization rule, and a label comparison on every row they share.

To show what those checks find on real files, we ran them on two public intent-classification datasets at pinned commits. Neither is a SourceX dataset. Both are widely used customer-service style benchmarks whose train and test files anyone can download and recount with the script described in the methods note.

Why a valid checksum says nothing about separation

A checksum proves that bytes did not change between two points; it cannot show that a test question is absent from the training file, or that two copies of one question carry the same label. Separation is a property of what two packages contain, so it has to be tested on their contents.

Published research shows the cost of skipping that test. Lewis, Stenetorp and Riedel, in a paper posted to arXiv in 2020 and published at EACL 2021, report that 30% of test-set questions in the open-domain question answering benchmarks they examined had a near-duplicate paraphrase in the matching training set, and that simple nearest-neighbor models outperformed a BART closed-book model. Kapoor and Narayanan, writing in Patterns in 2023, found leakage affecting at least 294 papers across 17 disciplines and proposed a taxonomy of leakage types and model info sheets to mitigate it.

In a business delivery the shared parent is the usual cause. Both packages are cut from one export, so a duplicated ticket, a customer who asked the same thing twice or a template reply can land on both sides. A third case is worse than overlap: when the same text sits in both packages under different labels, the evaluation row scores a model against an answer its training file contradicts.

The test: Banking77 and CLINC150 at pinned commits

One script was applied to two public datasets. Banking77, in PolyAI's task-specific-datasets repository at commit 57ec275 (April 29, 2022), holds online banking queries labeled with 77 intents; its README declares 10,003 training and 3,080 test examples, and the repository's LICENSE file is Creative Commons Attribution 4.0. CLINC150, in Clinc's oos-eval repository at commit 828f809 (May 31, 2021), has 150 in-scope intents with 100 training, 20 validation and 30 test queries each, plus 100 training, 100 validation and 1,000 test out-of-scope queries, under Creative Commons Attribution 3.0.

For CLINC150 the training package is train plus out-of-scope train (15,100 rows), the validation package is val plus out-of-scope val (3,100 rows) and the evaluation package is test plus out-of-scope test (5,500 rows). Banking77's two packages are its two CSV files. Every counted row total matched the README declarations.

Each row received two keys. The exact key is the text as parsed. The normalized key applies Unicode NFKC, casefolds, replaces every run of characters that are not letters or digits with a single space and trims both ends, so case, punctuation, hyphens and stray line breaks no longer hide a match. An evaluation row counts as seen when its key occurs anywhere in the reference package; it agrees when its label is one of the labels that package gives the key, and conflicts otherwise.

What exact matching found, and what normalization added

Exact matching made Banking77 look clean: none of its 3,080 test questions appears verbatim in the training file. After normalization, 25 test rows (0.81%) match a training row, all with the same label. Seven differ only in case or whitespace, including questions stored with a leading line break; 18 differ in punctuation or hyphenation, most of them top-up written with and without the hyphen.

CLINC150 already lowercases its text, yet exact matching still found 2 evaluation rows that also appear in the training package, and both carry a different label there. Three validation rows appear in training, two with a conflicting label. With normalization the evaluation package shares 19 rows with training (0.35% of 5,500; 17 agree, 2 conflict), the validation package shares 16 rows with training (0.52% of 3,100; 14 agree, 2 conflict) and the evaluation package shares 5 rows with validation (4 agree, 1 conflicts).

Normalization also exposes copies inside a single package: 31 extra copies in Banking77's training file and 4 in its test file, and 28 in CLINC150's training package, where extra copies means rows minus distinct keys. Banking77 also has one normalized key with two different labels inside its training file and one inside its test file.

The full test matrix, with every count produced by the script:

What exact matching found, and what normalization added
Check, as scriptedBanking77 at 57ec275CLINC150 at 828f809What it means for acceptance
Rows counted against README10,003 and 3,080: match15,100, 3,100 and 5,500: matchCounts are necessary, not sufficient
Row ID, manifest or checksum file shippedNone foundNone foundLineage rests on repository, commit and file hash
Evaluation rows found in training, exact key0 of 3,0802 of 5,500, both with a different labelAn exact-only check passes Banking77
Evaluation rows found in training, normalized key25 of 3,080, all labels agree19 of 5,500: 17 agree, 2 conflictSurface variants cross the split
Validation rows found in training, normalized keyNo validation package16 of 3,100: 14 agree, 2 conflictTuning data shares rows with training
Extra copies inside a package, normalized key31 in train, 4 in test28 in train, 0 in validation, 1 in testCopies add weight and can hide conflicts
Documented split rule testable from the filesNo rule stated in the READMEWorker-level split described, no worker fieldA grouping rule needs its field delivered

Same question, different answer: conflicts that should block acceptance

A label conflict across packages should block acceptance outright, because no model can be right on both rows. In CLINC150 the query where did you grow up is labeled how_old_are_you in training and where_are_you_from in test, and what's your designation is what_is_your_name in training and user_name in test. The validation package labels what is on my to do list as reminder where training says todo_list, and turn up your volume as change_volume where training says whisper_mode. Under the normalized key one more appears: what is on my to-do list is todo_list in test and reminder in validation.

The files cannot say which label is right. Some conflicts may be annotation slips; others may reflect intents that overlap by design. Either way the evaluation row measures agreement with one annotator's choice, and a model that learned the training label is marked wrong. The fix belongs with whoever produced the data: adjudicate the label, then remove or relabel the row in one package and record the change in both manifests.

Overlap with agreeing labels is a softer problem. Banking77's 25 normalized matches can lift a test score only slightly at 0.81% of the test file, but that share describes this release, not the next one. That is why the overlap result belongs in the manifest of every version rather than in a one-time review.

When a split rule is documented but cannot be tested

A documented split rule counts as lineage only when the delivered files carry the field the rule uses. The CLINC150 paper says all duplicate queries were removed and replaced, and that all queries from a given crowd worker were placed in a single split so that similar queries from one worker would not end up in both train and test. The released JSON holds only text and label, so a buyer cannot test the worker rule, and the identical queries above show that exact duplicates remain across splits in the released file.

The same paper says all end-of-sentence punctuation was removed. In the released file, 93 of the 23,700 rows still end in a period, exclamation mark or question mark: 65 in train, 6 in validation and 22 in test. That is harmless for most models, but it shows that the files, not the paper, are what a buyer has to test.

Banking77 states no split rule in its README, ships no row identifiers and stores 12 questions with leading or trailing whitespace, 9 in train and 3 in test. Neither repository contains a manifest or checksum file. CLINC150's three packages also live in one file and therefore share one file hash, so even a perfect checksum cannot tell its training package from its test package; only the JSON key does.

The manifest pair: fields that keep two packages separately traceable

Give each package its own manifest that names its role, its parent snapshot and its sibling, so either one can be verified alone and the pair can be verified together. The row key and the content digest do the work a file hash cannot: the digest is the SHA-256 of the sorted 16-hex row keys joined by newlines (no trailing newline), so it changes when any row's normalized text changes and stays the same when rows are only reordered.

We generated a manifest for each package of both datasets with the same script. The values below are the computed Banking77 evaluation manifest; its training sibling carries file hash b06e26ac67551395 and content digest 188bdaa989ee1cfd, first 16 hex characters of each. In a commercial delivery the parent snapshot would be the supplier's export identifier, and the permitted-use field would come from the signed scope.

Manifest fields for an evaluation package, with Banking77 values:

The manifest pair: fields that keep two packages separately traceable
FieldWhat it pinsBanking77 evaluation package, computed 2026-10-28
Role and permitted useEvaluation only, never merged into trainingEvaluation; Creative Commons Attribution 4.0 per the repository LICENSE
Parent snapshotThe source version both packages were cut fromPolyAI-LDN/task-specific-datasets at commit 57ec275
Files and SHA-256The bytes deliveredbanking_data/test.csv, d12d6e3bc4c31039 (first 16 hex)
Rows declared and countedTruncation or padding3,080 declared, 3,080 counted, 77 labels
Row key ruleHow rows are matched across packagesSHA-256 of the normalized text, first 16 hex characters
Content digestRow text regardless of order (labels excluded)8bd6c64b60eee343 (first 16 hex)
Sibling overlap resultSeparation from the training packageExact 0; normalized 25 of 3,080; 0 label conflicts
Access groupWho and what may read itEvaluation team and scoring jobs only (illustrative)
Two manifest cards, training and evaluation, cut from one parent snapshot and joined by an overlap gate that shows Banking77's evaluation rows found in training: 0 by exact key and 25 of 3,080 by normalized key, with 0 label conflicts.
The manifest pair and its overlap gate, with Banking77 values computed at commit 57ec275 on 2026-10-28.

Access by intended use: keeping evaluation rows out of training jobs

Separate manifests mean little if a training job can read the evaluation package, so the access rule belongs in the manifest and in the storage permissions. Keep the evaluation package in its own location, grant read access to the evaluation team and its scoring jobs, deny it to the service accounts that assemble training sets, and log every read.

Public benchmarks show a lighter version of the same idea. GPQA's repository ships its data as a password-protected zip, with the password printed in the README, and embeds a canary string so that leakage into a training corpus can be spotted later. That deters crawlers, not people. A licensed delivery needs the stronger pair: permitted use written per package, and permissions that enforce it.

SourceX's live pages show where this request fits. Its illustrative sample manifest, built for a fictional company, records the source system, date range, record counts, the fields removed and the company's approval of scope and terms before delivery, and its request page asks buyers for scope, volume, language, format, timing and licensing. A buyer that needs separate training and evaluation packages can add the intended use of each and the acceptance test it will run; this page describes no SourceX delivery formats, timing or tooling beyond those pages.

The acceptance decision: accept, quarantine or return the pair

Decide with rules written before the delivery arrives. Accept the pair when both manifests verify, counts match, and the overlap test under the agreed key shows no label conflicts and an overlap at or below the threshold the buyer set for that task. Quarantine the overlapping rows when labels agree but overlap exceeds the threshold. Return the pair when any cross-package label conflict appears, when the two manifests name different parent snapshots, or when a split rule depends on a field the files do not carry.

Under those rules, Banking77 at this commit would pass on conflicts and on any threshold of 1% or more, while CLINC150 would go back before anyone set a threshold: under the normalized key it has 2 conflicting rows between test and training, 2 between validation and training and 1 between test and validation. The reproducibility checklist below turns the rules into steps a delivery engineer can run on every version:

  • Record the repository or export identifier, commit or version, and date for each package.
  • Hash every file with SHA-256 and compare it with the manifest before parsing anything.
  • Count rows per package against the declared counts and stop on any difference.
  • Write down the row key rule, including the Unicode form, case, punctuation and whitespace handling.
  • Run exact and normalized overlap between every pair: training, validation and evaluation.
  • List every shared key with both labels, and block on any cross-package label conflict.
  • Count extra copies and multi-label keys inside each package.
  • Confirm each documented split rule has a field in the files that lets you test it.
  • Compute a content digest over sorted row keys and store it in both manifests.
  • Confirm permitted use and access group per package, and that training jobs cannot read the evaluation location.

Methods note and limits: what the script counted and cannot see

The script (split_lineage_check.py, with text_hygiene.py and peek_matches.py for the breakdowns) reads only the data files from clones of PolyAI-LDN/task-specific-datasets at commit 57ec275d8078af65b7731c2a98be812d844a6d6b and clinc/oos-eval at commit 828f8093932c8fe6ca7936c3d2e52903b1c523de, run on 2026-10-28; commit dates in the text are the committers' local dates (UTC+1 and UTC-4). CSV files are opened as UTF-8 with any byte-order mark stripped (neither file has one). Keys, packages and the seen, agree and conflict rules are as defined above; a seen row is counted once however many reference rows share its key. Shares divide seen rows by all rows in the evaluation package and are rounded to two decimals, with no value on a .5 tie. Case-or-whitespace matches are rows equal after casefolding and collapsing whitespace; the rest needed the full normalization. Edge whitespace means the text differs from its stripped form; punctuation endings mean the last character after trailing whitespace is a period, exclamation mark or question mark. Manifest or checksum files are any file whose lower-cased name contains manifest, checksum, md5, sha1, sha256 or sha512, outside the .git folder, and a row identifier is any column or element besides the text and the label.

Limits: the normalized key catches surface variants, not paraphrases, so the near-duplicate paraphrases Lewis and colleagues describe would need a semantic scan with a stated model and threshold. Without source-record or worker identifiers the script cannot detect grouped leakage, and it judges labels only where two copies disagree, not whether either is correct. These are public research benchmarks rather than business deliveries, and the counts are not a verdict on their research use. The next evidence a buyer should ask for is source-record identifiers, an adjudicated label for every conflict, and a paraphrase scan report attached to the evaluation manifest.

Frequently asked questions

What is train and evaluation package lineage?

It is the record that ties each delivered package to its source version, its split rule and its intended use, and shows that the training and evaluation packages were tested against each other. In practice that means one manifest per package plus a recorded overlap result under a written row key.

Is a matching checksum enough to accept an evaluation set?

No. A checksum shows that the bytes match what the supplier hashed. It cannot show that test rows are absent from training or that shared rows carry the same label; CLINC150's train, validation and test packages even share one file and one hash.

How much train and test overlap is acceptable?

There is no universal figure. Set a threshold per task before the delivery, measure it under a written key and normalization rule, and treat any shared row with conflicting labels as a blocker whatever the share. Banking77's normalized overlap was 0.81% of its test file with no conflicts.

Why store the evaluation package separately from training data?

Because a manifest cannot stop a training job from reading a file it has access to. Separate storage, read access limited to the evaluation team and its scoring jobs, and logged reads make the permitted-use field enforceable instead of advisory.

What should a dataset request say about evaluation data?

Name the intended use of each package, the row key and normalization you will test with, your overlap threshold and who may read the evaluation package. Sending those with the request lets the supplier cut and document the packages to match before delivery.

Sources

  • PolyAI's task-specific-datasets README, at commit 57ec275, describes Banking77 as online banking queries annotated with intents and declares 10,003 training examples, 3,080 test examples and 77 intents. Source
  • The task-specific-datasets repository is licensed under Creative Commons Attribution 4.0. Source
  • Clinc's oos-eval README, at commit 828f809, declares 150 in-scope intents with 100 training, 20 validation and 30 test queries each, plus 100 training, 100 validation and 1,000 test out-of-scope queries. Source
  • The oos-eval repository is licensed under Creative Commons Attribution 3.0 Unported. Source
  • The CLINC150 paper (EMNLP 2019) says queries were downcased, end-of-sentence punctuation and duplicate queries were removed, and all queries from one crowd worker were placed in a single split; the dataset has 23,700 queries. Source
  • GPQA's repository distributes its data in a password-protected zip, with the password in the README, and embeds a canary string to detect training-corpus leakage. Source
  • Lewis, Stenetorp and Riedel report that 30% of test questions in the open-domain QA benchmarks they studied have near-duplicate paraphrases in the training sets, and that nearest-neighbor models outperform a BART closed-book model. Source
  • Kapoor and Narayanan (Patterns, 2023) find leakage affecting at least 294 papers across 17 disciplines and propose a taxonomy of leakage types and model info sheets to mitigate it. Source

Tell us what data you need

Share scope, volume, format, timing and licensing needs. Datasets are sourced on request.

See if your company qualifies