Skip to content

Corpus composition tables: what they say and what they hide

THE ARGUMENT

A composition table answers which sources a corpus contains, not which of your tasks it covers. The most useful move at procurement time is to break those percentages down by intended use and look for empty cells, rather than inferring capability from a total.

On this page

Suppose a supplier sends one page: a pie chart with web text at forty-five percent, books at twenty, code at fifteen, papers at twelve, and a remainder; beneath it, a single line with the total token count. You are asked whether that mix can support retrieval over your support knowledge base. The chart cannot answer it, and not because it lacks detail. It answers where the bytes came from. What you need to know is whether the corpus holds documents that can be chunked, that contain the answers, and that carry source and timestamp metadata. Queries come from your users, and the question set for evaluation is something you build separately; it is not inside the corpus.

Four things a pie chart cannot tell you

Set the scene. You are buying a corpus for retrieval augmentation. The vendor gives you source shares. You have no raw samples, only this page. There are exactly four questions you can usefully ask, and none of them is on the chart.

First, what is the denominator? A vendor may report raw crawled volume, usable volume after cleaning, or the training volume after applying sampling weights. These are three different things, and The Pile's published table is a clean example of the third (next section). Second, what is the granularity? Web text is one bucket that may contain news articles, forum threads, product pages, and navigation debris at the same time. Those four have entirely different value, and fusing them into one forty-five percent figure destroys the information.

Third, do item counts scale with length? A subset may hold one percent of items and ten percent of tokens because each item is long. Short-text sources go the other way: many items, little volume. Reading only percentages will systematically understate the long-form sources. Fourth, and most important, source and task are not the same coordinate system. The chart sorts text by origin; your need sorts it by what the model must learn to do. There is no conversion formula between the two. You build the mapping yourself.

The first three are arithmetic and can be settled with a follow-up email. The fourth is conceptual, and no vendor can answer it for you, because the vendor does not know your task.

How The Pile writes its composition table

The Pile is the most useful reference of its kind: 22 constituent datasets, 825.18 GiB of raw text (825 GiB in the abstract, 800GB in the title), with a published Table 1 listing Weight, Epochs and Effective Size for every component.[1][2] What makes it worth studying is not scale but verifiability. Each component has a name, a documented construction method and a stated filtering rule, instead of a vague label like web text.

The trick is to read the two numbers correctly. Table 1 defines Raw Size as the size "before any up- or down-sampling", and Effective Size as the approximate bytes each component occupies in one full epoch of the Pile after those weights and epochs are applied. It is not a post-deduplication volume.[2] The paper says it raises the weights of higher-quality components, with Wikipedia seen up to three times per full epoch. So PubMed Central goes from 90.27 GiB raw to 180.55 GiB effective (2.0 epochs), Wikipedia from 6.38 GiB to 19.13 GiB (3.0 epochs), while Pile-CC stays at 227.12 GiB (1.0 epoch). The totals are 825.18 GiB raw and 1254.20 GiB effective: the effective figure is larger because of upsampling, not because anything was removed.[2]

The practical lesson for procurement: one corpus supports at least three sets of percentages, by raw bytes, by effective training bytes, and by item count. The Pile's three differ because epochs and item lengths vary across components; a vendor who gives one percentage has not told you which denominator it uses. One more point gets skipped: a corpus like this is not a random sample of the internet. The 22 components were hand-picked and individually curated, and the mixture is a decision made by the builders. The correct reading of web text at forty-five percent is we put forty-five percent web text in this corpus, not the internet is forty-five percent web text. You are evaluating a decision, not an objective ratio.

The counting method has a stance: Wikipedia is about 0.8% of raw bytes but carries a 1.53% weight in the final mixture; change the denominator and the same component moves from marginal to visible.[2] Nobody is lying. So the first question about any composition table is what the denominator is and whether epochs were applied, which is far more useful than arguing about decimal places.

Translating source columns into task columns

Before mapping sources to tasks, separate three uses. They require different structures, and mixing them up produces wrong conclusions such as "a retrieval corpus must ship with gold answers".

UseWhat the corpus must containWhat the table can verifyWhat needs a separate check
Continued pretrainingContinuous text, domain coverage, usable licenceRaw/effective volume, token countsDuplication, quality, fit to training objective
Instruction tuning (SFT)Paired instruction-response or question-answer itemsShare of paired items (template item 9)Answer correctness, coverage, privacy and licensing
Retrieval augmentation (RAG)Chunkable documents, source IDs, collection windowSource mix, volume, refresh dateAnswer coverage after chunking and recall on a query set; no Q-A pairs needed in the corpus
SourceTasks it is usually claimed to supportSignal it can provideWhat it cannot provide
General web crawlOpen-domain QA, factual continuationBreadth, colloquial and long-tail phrasing, recent pagesVerified answers; clean paragraph boundaries
Papers and abstractsTerm explanation, technical QADense terminology, citation structure, careful wordingShort user-style queries; follow-up turns
Code repositoriesCode completion, error diagnosisSyntax and API co-occurrence, comment-to-implementation linksRequirement descriptions; business context
BooksLong-form coherence, narrative generationLong-distance reference, chapter structureFreshness; real user voice
Technical forumsTroubleshooting, proceduresNatural question-answer structureCorrectness of answers; uniform formatting
EmailBusiness communication, summarizationReal recipient and thread structureLicensing clarity; highest privacy risk

The second table above is my own source mapping, not a finding from the paper; it helps you point at the empty cell when a source list arrives. Use it with restraint. "Forums support troubleshooting" is an assumption, not a measurement: many replies are "me too" or "just reinstall", and those items make a source look substantial in tokens while being thin in usable signal. Every cell needs a second coefficient, the share of that source that actually has the required structure, and only sampling can estimate it. Most importantly, do not conflate RAG with paired training. A retrieval index holds documents; queries come from users and the evaluation question set is built separately. What the corpus needs is chunk boundaries, source identifiers and timestamps, not a gold answer next to every item. Making paired structure a precondition for retrieval rules out perfectly usable document corpora and hides the metric that matters: after chunking, can the answer still be retrieved?

Four audit steps that turn percentages into comparable numbers

  • 1. Ask for absolute numbers, not percentages: raw volume, effective training volume after weighting if applicable, token count and item count per subset, each with its unit and tokenizer named. Mark anything missing as not provided rather than inferring it from the others.
  • 2. Sample. Draw raw items at random from each subset, not summaries or curated examples, and label each one yourself: what this item could support, what it could not. Let the proportion you need to estimate and the error you can tolerate set the sample size; run a small pilot before scaling up. No fixed item count works as a universal rule.
  • 3. Build the coverage matrix. Rows are your tasks, columns are subsets, and each cell holds the share of sampled items that are usable. Mark the zero cells: those are your real gaps. Keep the task list short: your most expensive task, your least certain one, and one you do not actually plan to do, kept in purely to check whether the vendor is padding volume.
  • 4. Write the conclusion as one executable sentence: on task X this corpus yields N usable items per thousand, and against our minimum sample requirement the shortfall is a factor of M. Keep the units consistent: an item-count density needs a minimum measured in items. If you only have token counts, convert them into estimated chunks using the median item length before comparing. That sentence enters a price negotiation; "broad coverage and high quality" does not.

Step three is easy to turn into ceremony: eight tasks times twenty subsets gives a hundred and sixty cells that nobody reads. A practical shortcut is to cut to three rows, namely your most expensive task, your least certain task, and one task you do not actually plan to do, kept in purely to check whether the vendor is padding volume.

A request template you can send today

Corpus composition supplement (one row per subset)
1. Subset name and a one-line description of its origin
2. Raw volume in GB, and whether upsampling is included
3. Effective training volume in GB, with the epochs or sampling weight applied
4. Token count, with the tokenizer named
5. Item count; median and 90th percentile item length, with units stated
6. Collection window; identifier of the crawl snapshot
7. Filtering rule in one line; dedup rule and dedup rate
8. Known licence limits or non-commercial portions
9. Share of items with question-answer or instruction-response structure (write 0 if none; needed for SFT or paired training only)
10. Which subsets changed versus the previous version, and by how much

Item nine is critical, but only for one use. For instruction tuning or paired training you need instruction-response pairs, and general web body text contains almost none, so a corpus that is forty-five percent web text can support continued pretraining but not paired training. For retrieval augmentation the opposite holds: the corpus is supposed to be documents and needs no built-in question-answer pairs. Ask instead about answer coverage after chunking, source and licensing metadata, and refresh cadence; you build the query set yourself. Putting both requirements on the same line is the most common mistake in a procurement spec.

Item ten guards against version confusion. Composition tables drift. A vendor swaps a crawl snapshot and the mixture changes, while the marketing page still describes the previous one. Asking for a diff is easier to satisfy than asking for a complete table, and it is usually enough.

What a composition table cannot prove

The second limit is time. A composition table is a snapshot of one moment, while the corpus keeps growing, changing its cleaning rules, and removing pages with licensing problems. The same corpus three months later may have a different mixture. So the table needs a version and a date, and at acceptance you recompute the percentages on the delivered artifact instead of quoting the marketing page.

The last limit is the deflating one: even with mapping and sampling done, what you hold is a table about text shape, not about capability. Matching shapes do not guarantee a capability appears. Mismatched shapes almost guarantee it does not. That asymmetry is exactly why this tool belongs at the exclusion end.

Next time a composition table arrives, do one thing first: confirm the denominator, whether raw bytes, effective training bytes or item counts. Then divide absolute numbers in that same unit by the minimum sample size your task needs, keeping the units consistent, converting tokens into items or chunks via median length if tokens are all you have. See which subset cannot supply even a single pass. No model, no GPU. The answer is usually not that total volume is too small, but that one cell is zero, and that cell is your most expensive task.

References

  1. The Pile: An 800GB Dataset of Diverse Text for Language Modeling
  2. The Pile full HTML (section 2, Table 1: raw size, weight, epochs, effective size)

Read next

All articles

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…