Skip to content

Privacy and preparation

Dataset contamination report template: what an enterprise dataset should disclose

By SourceX Editorial · Updated

9 sections

Short answer

A contamination report for an enterprise dataset should state how the data was split (by account, case, time and task family), which overlap checks were run against which comparison sets and at what thresholds, what was found and removed, who has accessed the evaluation portion, and which leakage risks remain unresolved. Without those disclosures, a buyer cannot tell whether a held-out score measures skill or recall.

Evaluation split

Dataset contamination report

This page covers dataset contamination report template: what an enterprise dataset should disclose.Illustrative

Key takeaways

  • Business records leak through groups: the same account, thread, template or incident appears across splits unless you split on that unit.
  • The overlap methodology should name every comparison set, normalization step, method, threshold and action taken on matches.
  • Derivatives such as knowledge-base articles, attachments and quoted replies can reveal answers that text overlap scans miss.
  • Access history matters: a test split shared with annotators or pasted into hosted tools is no longer held out from everyone.
  • A candid unresolved risks table is more useful to a buyer than a claim of zero contamination.

What should a contamination report for an enterprise dataset disclose?

It should disclose how the dataset was split, which units were kept apart (companies, customers, cases, time windows, task families), what overlap checks were run against which comparison sets and at what thresholds, what those checks found and removed, who has had access to the evaluation portion, and a table of the leakage risks that remain unresolved. A buyer should be able to judge from the report alone whether a score on the held-out portion means what it appears to mean.

Enterprise records leak differently from web text. The same customer appears in hundreds of tickets, one contract template generates thousands of near-identical documents, and a single incident spawns an email thread, a knowledge-base article and a post-mortem that all state the answer. A random row-level split puts pieces of each into both training and test, and the evaluation then rewards recall of a customer rather than skill at the task.

A dataset contamination report template turns those risks into a fixed set of disclosures. The two parts that carry most of the weight are the documented overlap methodology, which says exactly how overlap was searched for, and the unresolved risks table, which says what the search could not rule out.

Which split unit keeps one company's answers out of its own test set?

Split on the unit whose members share answers. For most business records that is the company or customer account, then the case or thread, then time. Task family is the fourth unit when you need to know whether a model generalizes to work it has never seen at all.

The scikit-learn documentation states the underlying principle well. When the process generating data yields groups of dependent samples, the usual independence assumption breaks, and to measure generalization to unseen groups every sample in the validation fold must come from groups not represented at all in the paired training fold. Its example uses patients; in business data the group is the account, the case or the contract family. The same documentation warns that time series are autocorrelated and that shuffled splits on such data give poor estimates of generalization error, which is the case for anything a business records day by day.

Which split unit keeps one company's answers out of its own test set?
Split unitLeak it preventsWhen it is the right unitWhat it costs
Company or accountCustomer-specific facts, names and habits recalled across splitsAny set where one customer contributes many recordsFewer distinct groups; class balance harder to hold
Case or threadEarlier messages in a thread giving away the resolutionTickets, claims, email threads, work ordersMust reconstruct thread ids that exports often drop
Time windowLater records describing outcomes of earlier ones; policy changesAny set used to predict or act on future recordsTest set reflects a later period, which may differ
Task familyMemorized procedures for a known task typeClaims of generalization to new kinds of workHardest split; scores drop and need careful framing
Template or source documentBoilerplate shared by many recordsContracts, forms, generated notices, macrosRequires template detection before splitting

What should the documented overlap methodology include?

It should state, for every check, what was compared with what, how text was normalized, which method and threshold were used, and what happened to matches. Without that, a sentence such as the test set was deduplicated gives a buyer nothing to verify.

Three families of checks are well documented in public tooling. Exact n-gram overlap is the oldest: EleutherAI's evaluation harness follows the GPT-3 paper, which marked a test document as contaminated if any n-gram overlapped with a training document, using n between 8 and 13 depending on the dataset; the harness uses 13 throughout for simplicity. Exact substring deduplication, released by Google researchers with their paper on deduplicating training data, finds long repeated spans across documents. Near-duplicate detection with MinHash and locality-sensitive hashing, as implemented in the datasketch library, estimates Jaccard similarity between documents so that lightly edited copies are caught.

Each method misses something. N-gram and substring checks miss paraphrases and translations; MinHash at a loose threshold flags templated documents that share boilerplate but differ in the facts that matter. The methodology section should say which misses were accepted and carry them into the unresolved risks table.

What should the documented overlap methodology include?
Methodology fieldWhat to stateIllustrative entry
Comparison setsWhich pairs were checked: train vs test, test vs public sources, test vs derivativestrain vs test; test vs supplier knowledge base export
NormalizationLowercasing, whitespace, signature and boilerplate stripping, de-identification tokenslowercase, strip signatures, collapse placeholder tokens
Exact overlapMethod, n or span length, unit of comparison13-gram overlap per document
Near-duplicateMethod, shingle size, similarity thresholdMinHash LSH, 5-word shingles, Jaccard 0.8
Group checkConfirmation that no split unit appears on both sideszero account ids shared between train and test
Temporal checkCutoff date per split and records straddling ittrain before cutoff, test after; straddling threads moved to test
Action on matchRemoved, moved, kept and flagged, with countsmatches moved to train; counts in appendix
Manual reviewSample size reviewed by a person and what they looked forillustrative 200 flagged pairs read by two reviewers

Can attachments and derived records hand the model a held-out answer?

Often, yes, and text overlap checks rarely catch it. The answer to a test item can sit in a different record type from the item itself, written in different words.

Look for derivatives before you trust a clean overlap scan. Each of these can turn a held-out ticket into an open-book question, and none of them would trip a 13-gram match against the ticket text.

  • Knowledge-base articles or macros written from resolved tickets that are now in the test set.
  • Attachments, such as invoices, screenshots or logs, that carry the resolution and were split separately from their parent record.
  • Quoted replies in later emails that restate an earlier thread's outcome.
  • Summaries, post-mortems or weekly reports that describe the case after the fact.
  • Structured fields such as a final status, refund amount or closure code that leak into the input of a test item.
  • Model-generated annotations or synthetic variants derived from test items and then added to training.

Which risks belong in the unresolved risks table?

End every report with the risks the checks could not rule out, each with the evidence for it, the likely effect on scores, the mitigation taken and the person responsible. An empty table is not credible for enterprise records; a candid one is what lets a buyer decide how far to trust a held-out score. The rows below are illustrative of the kinds of entries such a table holds.

Which risks belong in the unresolved risks table?
Unresolved riskEvidenceLikely effect on scoresMitigation and owner
Paraphrased knowledge-base content in trainTopic overlap seen in manual review; no exact matchesInflates scores on common issue typesReport scores with and without those topics; data lead
Shared templates across accountsNear-duplicate clusters spanning splitsRewards template recall over reasoningTemplate-family split for a subset; dataset engineer
Public exposure of similar casesSome issue types discussed in public forumsModels may know answers from pretrainingFlag affected items; report a post-cutoff subset; evaluation lead
Thread ids missing in part of the exportShare of records without parent idsSome threads may straddle splitsHeuristic threading plus manual sample; dataset engineer
Access to test split by annotatorsAccess log shows named reviewersTest items may appear in guideline examplesExclude reviewed items from guideline docs; project manager
Translation or de-identification artifactsPlaceholders differ between splitsOverlap checks under-count matchesNormalize placeholders and rerun checks; dataset engineer

Who has seen the evaluation split since it was cut?

Disclose it. Access history is part of contamination, because a test set shared with an annotation vendor, pasted into a hosted model during review, or used to write labeling guidelines is no longer held out from everyone.

Public benchmarks have developed two habits worth copying. BIG-bench put a canary string in every task file, with instructions not to edit it, so that leaked task text can be found in scraped training corpora. LiveCodeBench tags problems with their release dates and lets users score only problems released inside a chosen window; its authors report results only on problems released after August 2023 for models they suspected of contamination. For a private enterprise set, the equivalents are a unique marker in the evaluation files, a log of every party and system that touched the split, and the cut date, so a buyer can choose a window that postdates a model's training data.

How would an illustrative field-service work order report read?

This example is illustrative; the counts and percentages are invented to show how the report reads. A supplier offers several years of work orders, technician notes and attached parts invoices from a field-service platform, with a held-out portion meant to test whether a model can predict the repair from the problem description.

The first split was random by work order. The group check found that most customer sites appeared on both sides, and the near-duplicate scan flagged repeat visits to the same equipment with almost identical notes. The supplier re-split by customer site and set a time cutoff, moving straddling repeat visits into the later period. The overlap check between test descriptions and training notes dropped to a small share of flagged pairs, and manual review of a sample found them to be shared boilerplate rather than shared answers.

Two risks stayed open. The parts invoices attached to each work order name the replaced part, which is the answer; the supplier removed invoices from test inputs and recorded that in the methodology. And roughly a fifth of the test period's work orders came from a new equipment model with few training examples, which the report lists as a distribution shift rather than contamination, with scores shown for that slice separately.

When is overlap acceptable, and when should the work stop for review?

Overlap is acceptable when the purpose of the set requires it and the report says so: a retrieval evaluation in which the answer must be found in a known corpus, or an in-distribution regression set meant to catch a drop on familiar work. The disclosure then changes from no overlap to the overlap that exists and why it is intended.

Stop, or narrow the claim, when the group or temporal check fails on a large share of records and the identifiers needed to fix it are missing, when the evaluation answer is derivable from a field you cannot remove without breaking the task, or when the access log shows the test split has been handled by the party being evaluated. Those cases need a dataset engineer and an evaluation lead to agree on a smaller, cleaner set or on a weaker, clearly labeled claim.

Where does the report go when a dataset is licensed?

A contamination report belongs in the delivery package next to the data dictionary and the datasheet. Gebru and colleagues proposed in Datasheets for Datasets that every dataset carry documentation of its motivation, composition and collection process; the contamination report is the part of that documentation that tells an evaluation team which scores they can trust.

Buying through SourceX means writing the requirements down before any record exists: the request-data form takes the scope, volume, language, format, timing and licensing needs, and SourceX then sources the dataset from U.S. businesses instead of shipping something it already held. List the split units, the overlap methodology and the unresolved risks table there as deliverables. Ask, too, how placeholders are assigned, because SourceX does the de-identification and the buyer will need those tokens normalized before rerunning any overlap check through approved processing routes.

Frequently asked questions

What is a dataset contamination report?

It is a document shipped with a dataset that discloses how training and evaluation portions were separated, what overlap checks were run and found, who has accessed the evaluation portion, and which leakage risks remain. It lets a buyer judge whether held-out scores are trustworthy.

Is a random split enough for business records?

Usually not. Business records come in groups that share answers, such as all tickets from one customer or all messages in one thread. Splitting by account, case and time keeps those groups on one side, which a random row-level split does not.

Which overlap check should a report use?

More than one. Exact n-gram or substring checks catch copied text, and MinHash-style near-duplicate checks catch edited copies, but neither catches paraphrases or derivatives such as knowledge-base articles. State each method, threshold and comparison set, and carry the gaps into the unresolved risks table.

Does de-identification affect contamination checks?

It can. If names and numbers are replaced with different placeholders in each split, exact overlap checks under-count matches. Normalize placeholders to a common token before scanning, and say in the methodology that you did.

What is the difference between contamination and distribution shift?

Contamination means the evaluation answer is available to the model through training data or prior exposure. Distribution shift means the evaluation records differ from training records, for example a new product line. Report them separately, because one inflates scores and the other usually lowers them.

Sources

  • scikit-learn's documentation explains that grouped data needs group-aware splits so validation groups are absent from training, and that shuffled splits mislead on time series. Source
  • EleutherAI's harness follows the GPT-3 definition of contamination as n-gram overlap (n of 8 to 13) and uses 13-grams. Source
  • Google researchers released exact-substring deduplication code with their paper on deduplicating language model training data. Source
  • datasketch implements MinHash for estimating Jaccard similarity and MinHash LSH for threshold-based near-duplicate search. Source
  • BIG-bench task files carry a canary string intended to keep benchmark tasks out of web-scraped training data. Source
  • LiveCodeBench filters problems by release date to detect and avoid contamination and reports post-August 2023 results for suspected models. Source
  • Datasheets for Datasets proposes that every dataset ship with documentation of its motivation, composition and collection process. 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