Why the same dataset downloads differently twice
“The same data” is a combination of crawl batch, pipeline version, deduplication scope and token counting convention. Change any one and retention rates and token counts change with it, so results stop being comparable. What you can pin is your own copy, not the source.
On this page
In March you downloaded a batch of web text, ran an experiment and wrote down “12 billion tokens, 61.2 on the eval”. In June a colleague tries to reproduce it, pulls from the same link, runs the same script, and gets 11.8 billion tokens and 59.9. The script did not change. The code did not change. The hyperparameters did not change. Whose fault is the 1.3 points? Before answering, admit one thing: you did not download a dataset, you downloaded one crawl at one moment in time.
Start with the difference between two downloads
This is a fictional teaching example, but anyone who has built a web corpus will recognise it. In March you take a subset from a batch of public crawl files, filter it with your own script, deduplicate, tokenise, and end up with 12 billion tokens. In June a colleague reruns the same script and gets 11.8 billion. The raw files differ by a couple of percent, which becomes 200 million tokens, which becomes more than a point on the eval.
There are three sources of the gap, and only the first is “the data really changed”. First, the two runs did not crawl the same web: the new batch has new pages, pages that were edited, pages that were deleted, and whole domains that vanished. Second, your filter script depends on a library version; in June that library had been upgraded, a regex behaved differently, and a different number of lines got dropped. Third, if deduplication ran inside each file, changing the file set changes the denominator, and the duplicate rate moves with it.
A dataset is really a timestamp
Common Crawl is not one monolith. It is published in crawl batches, each covering a time window, each with its own batch identifier and its own set of files. That matters operationally: the question “how many pages does Common Crawl have” has no answer, only “how many pages does this batch have”. Write “trained on Common Crawl” in a paper and the reader cannot tell which year of the internet you used.
The terms of use say the same thing in legal language. Common Crawl grants a limited, non-assignable, non-transferable, non-sublicensable, non-exclusive licence; the crawled content may itself be subject to separate terms from its owners; and Common Crawl explicitly reserves the right to refuse, change, delete or recategorise any crawled content at any time. The source never promises that what you downloaded yesterday will still be there tomorrow.[2]
Dolma's contribution is the other half of the problem. It releases a three-trillion-token English corpus mixing web content, scientific papers, code, public-domain books, social media and encyclopedic material. More importantly, it documents the design principles, the construction details and a summary of the contents, and it open-sources the curation toolkit so the build can be reproduced rather than merely trusted.[1]
Put together, this suggests a working definition: a dataset is at least four things — a crawl batch, a filtering and deduplication pipeline, a tokenisation and counting convention, and a release version label. Dolma uses version labels to cut the artifact into citable units (the v1_5, v1_6 style tags that circulate in practice). Citing “Dolma” without a version is citing a pointer that drifts.[1]
Where the drift comes from
| Drift source | How it shows up | Effect on results | How to pin it |
|---|---|---|---|
| Crawl batch | Same URL changed or gone; new domains enter | Distribution shifts; whole long-tail sites appear or vanish | Write the batch ID and time window into the log and the contract |
| Pipeline | Dependency upgrade, regex rewrite, threshold tweak | Retention rate changes; a different set of rows is dropped | Lock the commit and the container image digest, attach a dependency list |
| Dedup scope | Per-file, per-batch or corpus-wide | Duplicate rate and token count both stop being comparable | State the granularity and whether it crosses batches |
| Tokenisation | Different tokenizer, different treatment of special tokens | Two “3 trillion token” claims cannot be compared | Fix the tokenizer version and publish the counting script |
| Sampling and mixture | Different seed, different weights | The model sees a different distribution | Fix seeds and the sampling script, record the weight table |
The fourth row is the one people skip, and the one most easily exploited in a negotiation. Two vendors both claim three trillion tokens. If one counts with a GPT-style tokenizer and the other with a tokenizer they trained themselves, the numbers can differ by more than ten percent. Nobody is lying; the conventions differ. Either ask for the tokenizer and the counting script, or compare bytes and document counts instead.
Six steps that pin “the same data” down
- Put the source identifier on the first line of the experiment log: crawl batch or dataset version tag, plus the time window. Without this line the other five steps are decoration.
- Freeze the pipeline: record the git commit, the container image digest, and exact dependency versions. “We used library X” is not enough; a major version bump changes filtering behaviour.
- Produce a per-shard manifest: path, sha256, document or line count, token count, byte size. The manifest itself needs a hash, and it ships with the data.
- Fix tokenisation and counting: tokenizer name and version, whether special tokens count, whether documents are truncated. Make it a rerunnable script, not a paragraph of prose.
- Freeze the evaluation set and harness separately: set hash, harness commit, decoding settings. Scores often stop being comparable because the harness changed, not the data.
- Ship a three-line provenance note: where the data came from, what was done to it, when it was built. It has to be readable by someone who did not work on the project.
{
"dataset": "web-subset-a",
"source": {"kind": "crawl-batch", "batch_id": "CC-MAIN-2024-10", "window": "2024-03"},
"build": {"tool": "dedup-pipeline", "commit": "7c1f9ab", "image_digest": "sha256:4d2e...", "built_at": "2024-06-02"},
"tokenizer": {"name": "tokenizer-a", "version": "0.3.1"},
"filters": {"min_doc_tokens": 50, "lang": "en", "dedup": "paragraph-exact, within-batch"},
"shards": [
{"path": "part-0001.jsonl.gz", "sha256": "9f2c...", "docs": 410233, "tokens": 812004411}
],
"totals": {"docs": 410233, "tokens": 812004411},
"eval": {"set_sha256": "c81a..."}
}The point of this manifest is not tidiness; it is executability. At acceptance you can do something very plain: pick one shard, recompute the sha256 and the document count, and reject the delivery if they do not match. That is more effective than reading ten pages of dataset documentation, and far more effective than asking the vendor to promise nothing changed. Trim or extend the fields to your context, but keep sha256, document count, token count and tokenizer.
You can pin the copy, not the source
That second clause is not padding. The Common Crawl terms keep the right to delete or modify crawled content, push all judgment about truthfulness, legality and accuracy onto the user, and require you to indemnify Common Crawl against third-party claims arising from your use, explicitly including use for developing, training or deploying AI systems.[2] The source will not take responsibility for “it downloaded yesterday, it is a 404 today”, and it will not certify that the copy in your hands is compliant.
The engineering conclusion is slightly counter-intuitive: the more you rely on public crawls, the more you should treat the snapshot as an internal asset. Download it, cold-store it, hash it, write the manifest, note the batch — then cite your internal version everywhere instead of the public link. Every time your experiment points at a link that can change, your result becomes unfalsifiable in the bad sense: nobody can reproduce it, including you.
One action for today: open your most recent data experiment and look for crawl batch, script commit, tokenizer version. If you find them, paste them into the manifest template. If you do not, add them before the next run. It costs ten minutes and it is the difference between a number and a claim.
