---
title: "Corpus Complexity Matters in Pretraining Language Models (2023)"
description: "How corpus complexity shapes language pretraining: a study of readability, vocabulary diversity, and downstream performance."
canonical: "https://research.elamur.ai/free/en/papers/agrawal-2023-corpus-complexity-matters-pretraining-language/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/agrawal-2023-corpus-complexity-matters-pretraining-language/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2023](https://md.research.elamur.ai/free/en/papers/2023/) / Corpus Complexity Matters in Pretraining Language Models

# Corpus Complexity Matters in Pretraining Language Models

Paper · 2023 · Ameeta Agrawal and Suresh Singh

**Authors:** [Ameeta Agrawal](https://md.research.elamur.ai/free/en/authors/ameeta-agrawal/) and [Suresh Singh](https://md.research.elamur.ai/free/en/authors/suresh-singh/) · **Year:** 2023 · **Venue:** Proceedings of the Fourth Workshop on Simple and Efficient Natural Language Processing (SustaiNLP) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the Fourth Workshop on Simple and Efficient Natural Language Processing (SustaiNLP) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2023.sustainlp-1.20/)
- [PDF](https://aclanthology.org/2023.sustainlp-1.20.pdf)
- [DOI 10.18653/v1/2023.sustainlp-1.20](https://doi.org/10.18653/v1/2023.sustainlp-1.20)

## What it is about

How corpus complexity shapes language pretraining: a study of readability, vocabulary diversity, and downstream performance. · about 34 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

When the amount of training text is limited, which text should be chosen? “Corpus Complexity Matters in Pretraining Language Models” examines whether the composition of a corpus can improve later performance without relying on a large increase in its size. Ameeta Agrawal and Suresh Singh focus on complexity: differences in vocabulary, word frequencies, and reading difficulty. Their central question is whether a collection containing more varied and demanding language provides a better foundation for [language models](https://md.research.elamur.ai/free/en/topics/language-models/) than a similarly sized collection of easier or less varied text.

The authors construct five corpora from English Wikipedia and BookCorpus. These include Wikipedia alone, randomly sampled books, books selected for easier reading, books selected for harder reading, and a mixed collection called wikibooks. The mixed collection covers a broad readability range while placing greater emphasis on difficult material. The intended comparison holds the corpus budget approximately constant, although the actual token totals differ. Document selection uses Flesch reading ease, a score derived from sentence length and syllables per word. The completed collections are then described through vocabulary size, [type–token ratio](https://md.research.elamur.ai/free/en/concepts/type-token-ratio/), and unigram entropy, which measures uncertainty in the distribution of individual words.

Each collection supports a separate instance of [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/) trained from scratch. The authors examine checkpoints after 10K, 20K, and 30K pretraining steps, then adapt each checkpoint to tasks from [GLUE](https://md.research.elamur.ai/free/en/papers/wang-2018-glue-multi-task-benchmark-analysis/). Wikibooks achieves the strongest average downstream performance at every checkpoint. It also has the largest vocabulary and highest type–token ratio, although Wikipedia has the highest unigram entropy. At the other end, books-easy has the weakest average performance and the lowest values on all the reported vocabulary-based complexity measures. Longer training does not consistently help: the average scores for books-easy and books-small move in the opposite direction from the improving collections.

The paper also asks whether these findings reflect alignment between training material and later tasks. It measures how much downstream vocabulary appears in each pretraining corpus and compares their word-frequency distributions. Wikibooks has the greatest vocabulary coverage across the downstream datasets. The authors report associations between corpus complexity, corpus–task similarity, and task performance, with similarity becoming more closely associated with performance as training proceeds. These results support a practical hypothesis: under the studied conditions, a broad mixture weighted towards difficult text can be more useful than a narrow collection selected for ease, difficulty alone, or random inclusion. They do not establish that harder writing always produces better systems, that readability captures every important property of training data, or that the same recipe transfers unchanged to other languages and architectures.

### Ideas worth borrowing

Treat the corpus budget as a design constraint. A fixed or approximately fixed allowance of text turns data selection into a question about information value. Instead of asking only whether more material helps, an experiment can ask which material makes the available training opportunity most useful. This is applicable to expensive annotation, limited training runs, and collections that must fit within storage or processing constraints. The important discipline is to state the budget clearly and preserve enough control that a composition effect is not confused with a size effect.

Preserve a range while favoring useful difficulty. The successful collection does not consist exclusively of the hardest books. It includes easier material and draws from different sources, while concentrating much of its content toward greater reading difficulty. This suggests a reusable sampling principle: retain coverage across the distribution instead of reducing a heterogeneous population to an extreme slice. In other settings, the relevant range might concern sentence structure, document genre, or vocabulary familiarity. The paper supports testing such mixtures; it does not supply a universal proportion.

Use inexpensive measurements to guide expensive experiments. Computing reading ease is much cheaper than repeatedly pretraining a system to discover whether a corpus is useful. The authors use that score to construct candidates and reserve training for evaluating those candidates. The broader lesson is to give a cheap proxy a limited job: organizing the search space. Readability need not be a complete theory of linguistic difficulty to help produce meaningfully different collections. Similar separation can help with document triage, candidate rule selection, or choosing material for human review.

Measure different properties separately. Vocabulary size, type–token ratio, unigram entropy, and reading ease describe related but nonidentical aspects of text. Their rankings need not agree. Wikipedia’s entropy exceeds that of wikibooks even though wikibooks performs better downstream. Reporting several measurements makes such disagreements visible and prevents a convenient score from becoming an unsupported definition of quality. This approach applies wherever a broad concept, such as diversity or difficulty, is represented through several imperfect indicators.

Distinguish coverage from distributional similarity. A training corpus can contain the words needed by a task without using them at similar frequencies. Conversely, similar distributions of common words do not guarantee coverage of rarer task vocabulary. The paper therefore uses both a vocabulary coverage measure and a comparison of word-frequency distributions. This distinction is useful in domain adaptation, dictionary evidence gathering, and retrieval collections, where the presence of relevant material and its statistical prominence answer different questions.

Evaluate the training trajectory and the task portfolio. A single checkpoint can conceal that a corpus helps early learning but becomes less useful later, while an aggregate score can conceal uneven behavior across tasks. The paper examines multiple checkpoints and relates similarity to performance for individual datasets as well as overall performance. The general principle is to evaluate a data decision at the points and on the tasks where it will matter. More training, more lexical variety, and better average performance should remain separate observations until their relationships have been checked.

### How Mova uses it

Mova is a transparent language system implemented in Rust. Its native language path turns text into dependency structure, frames, and a world representation; its learning and corpus tools operate under explicit review and assessment boundaries. That architecture differs from the BERT pretraining experiment studied here. The useful transfers concern corpus construction, statistical description, and evaluation design. The status marks below describe proposed connections to existing mechanisms. They do not establish an implementation of this paper’s method or a measured benefit in Mova.

Idea: Compare corpus choices under a declared resource budget. Where: Method and Constructing Corpora with Varying Complexity. Area: data and experimental design. Mova: частково є (tools/enrich/README.md, tools/dictindex/README.md). Mova already bounds enrichment packets and incremental index imports, but those operational limits do not demonstrate a controlled comparison of learning corpora. A proposed experiment could allocate comparable amounts of admissible text to alternative source-selection policies and evaluate the resulting native learners. Why Mova: this would show whether better selection makes limited parsing, review, and learning resources more productive. The effect is unknown until measured.

Idea: Retain a broad difficulty range while favoring demanding text. Where: Constructing Corpora with Varying Complexity and Figure 1. Area: corpus sampling. Mova: нове. The digest does not establish this sampling policy. Mova could compare a broad mixture weighted towards difficult documents with a random collection and collections concentrated at either readability extreme. The proposal should apply only within sources already eligible for the intended learning path. Why Mova: varied language might expose gaps that a narrow stream of simple sentences leaves hidden. The paper’s downstream result makes this a plausible experiment, rather than evidence that Mova would benefit.

Idea: Keep selection difficulty distinct from teaching order. Where: Related Work and Constructing Corpora with Varying Complexity. Area: data and curriculum design. Mova: частково є (tools/enrich/README.md; docs/architecture.md, the students). Mova has lesson and study workflows, whereas the paper changes corpus membership instead of testing a progression from easy lessons to hard ones. Mova could record these as separate experimental decisions. Why Mova: a gain from choosing different documents should not be credited to a curriculum unless presentation order was independently tested. Neither an appropriate ordering policy nor its benefit follows from this paper.

Idea: Use a cheap document score to organize candidate material. Where: Constructing Corpora with Varying Complexity, the Flesch reading-ease calculation. Area: data processing. Mova: нове. A readability profiler could precede more expensive native analysis or reviewed enrichment, recording a score and the counts that produced it. Its first role would be to create sampling strata, rather than determine truth, licensing, or admission. Why Mova: inexpensive profiling could help distribute bounded review effort across material that differs in surface difficulty. A readability-based selection component is not established by the digest.

Idea: Inspect the distribution of a score rather than only its average. Where: Figure 1 and Discussion. Area: statistics and corpus diagnostics. Mova: нове. Mova could retain a readability distribution for each candidate corpus and compare where its mass lies, including whether easier material remains represented. Why Mova: collections with similar summary values can offer different coverage, and a single average would hide the breadth that motivates wikibooks. The proposed diagnostic would describe source composition; it would not itself demonstrate better language understanding.

Idea: Normalize the amount of material used for document scoring. Where: Downstream Datasets and Implementation, the note on computing book readability. Area: measurement design. Mova: нове. The authors score a selected span of sentences from each book to address differences in document length. Mova could test an explicit, reproducible span policy when comparing long books with shorter articles. Why Mova: selection should reflect comparable evidence rather than an undocumented difference in how much of each source was inspected. The appropriate span policy for Mova remains unknown.

Idea: Track vocabulary size as a coverage diagnostic. Where: Corpus Complexity and Table 1. Area: lexicon and data statistics. Mova: частково є (tools/dictindex/README.md). The occurrence index already maintains language-specific frequencies and evidence-bearing lexical records. A corpus-comparison report could expose distinct word-type totals using a declared tokenization and normalization policy. Why Mova: vocabulary coverage can reveal whether additional material contributes lexical evidence beyond what an existing collection already contains. A higher total would remain a descriptive observation, not an admission criterion for the free dictionary.

Idea: Compare type–token ratios only with attention to corpus length. Where: Corpus Complexity. Area: statistics. Mova: нове. A proposed corpus profiler could report lexical diversity alongside the token count and the tokenization policy, keeping differently sized samples visibly separate. Why Mova: a diversity score can mislead when one source has merely been sampled more heavily than another. The paper explicitly treats comparable size as important to interpreting this measure; it does not establish a length-independent diversity estimator for Mova.

Idea: Describe word-frequency concentration through unigram entropy. Where: Corpus Complexity and Table 1. Area: statistics and mathematics. Mova: частково є (tools/dictindex/README.md, occurrence frequencies). Existing frequency counts provide relevant ingredients, but the digest does not establish an entropy-based corpus-selection policy. Mova could calculate entropy as an additional report field for an admissible source collection. Why Mova: it would distinguish a vocabulary containing many rarely observed words from one whose probability mass is distributed differently. Whether that distinction predicts native learning performance is unverified.

Idea: Preserve disagreements between complexity measures. Where: Table 1 and Discussion. Area: statistics and interpretation. Mova: нове. A proposed report could show vocabulary size, lexical diversity, entropy, and readability together rather than compressing them into an unexplained quality rank. Why Mova: the paper’s strongest downstream collection does not lead every descriptive measure, so a single score could discard useful candidates. This proposal fits transparent analysis, but no such combined complexity report is established by the digest.

Idea: Measure target vocabulary coverage directionally. Where: Text Similarity and Figure 3. Area: lexical coverage and evaluation. Mova: частково є (tools/dictindex/README.md). Mova’s index can retrieve source-grounded lexical examples. An additional comparison could ask what share of an allowed development corpus’s vocabulary is represented in a candidate learning corpus, keeping the development vocabulary as the denominator. Why Mova: this identifies missing evidence relevant to a declared use without pretending that overlap is symmetric. Frozen assessment content must remain outside corpus admission and training.

Idea: Compare frequency distributions as well as word presence. Where: Text Similarity and Appendix A. Area: statistics and domain comparison. Mova: частково є (tools/dictindex/README.md, language and feature counts). Mova could test Jensen–Shannon divergence between consistently prepared development and candidate-corpus distributions. Why Mova: presence-only coverage cannot show whether the available evidence is dominated by different vocabulary. The paper motivates the comparison, but a useful smoothing policy, implementation, and predictive result for Mova are unknown.

Idea: Separate corpus description from evidence of learning. Where: Method and Discussion. Area: evaluation. Mova: вже є (tools/enrich/README.md; README.md, Principles). Mova already distinguishes staged proposals from admitted knowledge and warns that additional frames alone do not establish improvement. Complexity measurements could enter that same boundary: they describe the input until a controlled before-and-after evaluation supports a learning claim. Why Mova: this prevents attractive source statistics from being mistaken for demonstrated understanding.

Idea: Use a random selection baseline. Where: Constructing Corpora with Varying Complexity, books-small. Area: experimental controls. Mova: частково є (README.md, Principles; tools/enrich/README.md). Mova already uses controls and bounded studies, but the digest does not establish a random corpus baseline for readability selection. A proposed comparison could sample eligible sources without using their complexity score. Why Mova: it tests whether deliberate selection adds value beyond simply changing which documents are available.

Idea: Include selections from both readability extremes. Where: Constructing Corpora with Varying Complexity, books-easy and books-hard. Area: experimental controls. Mova: нове. Mova could test easy-only and hard-only collections beside a broad mixture, using the same admissibility rules. Why Mova: an apparently successful mixed corpus does not reveal whether its value comes from difficult text, retained easy material, or their combination. Such controls would make a future corpus policy easier to explain and revise.

Idea: Separate source mixing from difficulty selection. Where: Constructing Corpora with Varying Complexity and Table 1. Area: causal experimental design. Mova: нове. The paper changes source composition and readability together in wikibooks. A Mova experiment could vary those decisions separately where the available data permits it. Why Mova: this would help determine whether a gain comes from combining source families or from emphasizing a readability range. This is a proposed strengthening of the design, not a controlled result reported by the authors.

Idea: Hold the learner configuration stable during corpus comparisons. Where: Downstream Datasets and Implementation. Area: evaluation and reproducibility. Mova: вже є (README.md, Principles; docs/architecture.md, gated learning changes). Mova’s deterministic and regression-gated practice already supports controlled comparisons. A corpus experiment should preserve the relevant parser, rules, parameters, and scoring procedure while changing the admitted material. Why Mova: otherwise an apparent data benefit may be caused by a simultaneous implementation change. The paper’s results do not supply a Mova-specific effect size.

Idea: Evaluate several points along learning. Where: Downstream Datasets and Implementation and Figure 2. Area: training evaluation. Mova: частково є (docs/architecture.md, teacher loop; tools/enrich/README.md, bounded improvement). Mova already has repeated learning and study workflows. A proposed corpus study could save comparable learning states and examine performance throughout the run. Why Mova: the paper shows that an initially useful corpus need not yield steadily improving downstream scores with continued training. The corresponding trajectory in Mova remains unknown.

Idea: Keep a portfolio of downstream tasks. Where: Downstream Datasets and Implementation. Area: evaluation coverage. Mova: вже є (docs/architecture.md, the students; README.md, Measured). Mova already evaluates different readers, schools, and quantitative tasks instead of relying on a single task family. Corpus complexity experiments could use that portfolio while preserving each benchmark’s access restrictions. Why Mova: broader vocabulary might help one native capability while harming another, so a single score would give an incomplete account.

Idea: Make aggregate weighting explicit. Where: Figure 2, the unweighted GLUE average. Area: statistics and reporting. Mova: частково є (docs/architecture.md, student reports; tools/enrich/README.md, same-question comparisons). A proposed corpus report could state whether tasks receive equal influence and retain their separate results. Why Mova: a choice of aggregation expresses what kinds of competence the experiment values. The digest establishes detailed reports, but not this particular cross-task complexity comparison.

Idea: Relate corpus–task similarity to task-specific outcomes. Where: Figure 3 and Appendix A. Area: statistical analysis. Mova: нове. Mova could examine whether development tasks with stronger vocabulary coverage or smaller distributional distance also show better learning outcomes across candidate corpora. Why Mova: the analysis would test whether lexical alignment predicts useful native performance instead of assuming that it does. Such an association would remain observational and would need enough independent corpus choices to be interpretable.

Idea: Check agreement between rankings. Where: Figure 4, Kendall’s Tau analysis. Area: statistics. Mova: нове. Mova could compare how candidate corpora rank by complexity, similarity, and held-out performance. Why Mova: rank agreement offers a readable diagnostic when measurements have different units. It would complement actual task scores rather than replace them, and strong agreement over a small candidate set would not establish a general selection law.

Idea: Treat vocabulary overlap as a screening signal. Where: Discussion, analysis of pretraining–downstream similarity. Area: efficient data selection. Mova: частково є (tools/enrich/README.md, lexical retrieval of related lessons). Mova already uses lexical overlap for retrieving potentially related material while withholding stronger conclusions about missing topics. A separate corpus screen could use overlap to prioritize candidates for fuller evaluation. Why Mova: this reuses a cheap signal while preserving the distinction between finding relevant-looking text and proving that learning from it helps.

Idea: Require downstream evidence before extending a selection rule to new settings. Where: Conclusions and Limitations. Area: validation and generalization. Mova: вже є (README.md, Limits and Principles; docs/architecture.md, regression-gated extensions). Mova already distinguishes measured scope from direction. A readability policy supported for one English reader should therefore be retested before use with another language, a dictionary evidence stream, or a different learner. Why Mova: the paper’s own limitations make clear that corpus complexity is a context-dependent hypothesis, rather than a universally validated rule.

### The problem and its context

The paper starts from a familiar approach to improving language systems: provide more text during pretraining. More material can expose a learner to additional vocabulary, constructions, and uses of language, but processing it requires computation. The authors place their study against work on larger training collections, including [scaling laws](https://md.research.elamur.ai/free/en/concepts/scaling-laws/) and systems using extensive textual resources. Their question is not whether scale can help. It is whether some of the desired benefit can instead come from choosing a better composition within a limited corpus allowance.

That distinction matters because corpus size is an incomplete description of a learning resource. Collections with similar token counts can differ in repeated vocabulary, sentence structure, and the kinds of writing they contain. An easy-reading collection may repeat a relatively restricted vocabulary. A mixed collection can introduce more distinct words and different writing patterns without being much larger. These possibilities motivate the study, but the paper does not treat them as self-evident guarantees. It constructs corpora with different measured characteristics and tests what happens after training.

#### Selection by relevance

Earlier work described in the paper often selects data by its relationship to the target task. If the eventual application concerns a specialized domain, material from that domain can be a sensible pretraining choice. The authors cite [SciBERT](https://md.research.elamur.ai/free/en/papers/beltagy-2019-scibert-pretrained-language-model-scientific/) and [BioBERT](https://md.research.elamur.ai/free/en/papers/lee-2019-biobert-pre-trained-biomedical-language/) as examples of the value of specialized source material. They also discuss studies comparing pretraining and downstream vocabularies, along with approaches using similarity and diversity measurements to choose transfer data.

This history makes similarity a central alternative explanation for a corpus’s success. A collection might look advantageous because it is linguistically varied, because it better matches the eventual tasks, or because those properties occur together. The authors therefore include both complexity and corpus–task similarity in their analysis. They do not assume that selecting difficult text is independent of selecting relevant vocabulary.

The paper’s account of earlier findings is also deliberately qualified. Similar domains often help, but the relationship has exceptions. It describes a comparison in which a forums corpus of 0.6B tokens supported better outcomes than a tweets corpus of 0.9B tokens on tasks related to both sources. That work also compared against a generic BERT trained with 3.3B tokens. These are background findings reported by the authors, rather than results of the present experiment. Their role is to show why size and apparent source matching cannot be treated as sufficient explanations.

The discussion of [Don’t Stop Pretraining](https://md.research.elamur.ai/free/en/papers/gururangan-2020-don-t-stop-pretraining-adapt/) makes a related point. Vocabulary overlap can help describe the distance between source and target material, and closer material can be beneficial. Yet the paper notes that this does not hold without exception. Corpus selection therefore needs empirical evaluation, even when a relevance measure seems intuitively appropriate.

#### Engineering the data itself

A second line of earlier work changes how training data is prepared. The paper groups this work around corpus ordering, preprocessing, and filtering. These interventions act on the learning resource instead of requiring a different task or architecture. Some alter presentation order; some alter the text representation; others remove material judged undesirable or unhelpful.

Agrawal and Singh place complexity-based selection alongside these approaches. Their intervention changes which documents make up the corpus. It does not introduce a new language architecture, and it does not test a schedule that gradually moves from easy documents to hard ones. The distinction between membership and order is important: a collection containing a broad difficulty range is not automatically a curriculum.

The paper also distinguishes its objective from narrowly specialized adaptation. It seeks benefits on general language-understanding tasks instead of constructing a corpus for a single professional domain. This motivates the combination of books and Wikipedia, the use of a multitask benchmark, and the interest in vocabulary breadth. Nonetheless, “general” remains bounded by the actual evaluation portfolio. The study cannot turn a selected benchmark into evidence about every form of language competence.

#### What complexity means here

The authors acknowledge that complexity is difficult to define in a way that works across all writing. Their motivating contrast between children’s books and college textbooks is easy to understand, but comparisons across genres are less straightforward. Literary complexity, conceptual difficulty, and unusual vocabulary can occur in different combinations.

The experiment therefore relies on operational definitions. Document reading difficulty is approximated through Flesch reading ease. Corpus-level lexical characteristics are described through type counts, type–token ratio, and entropy. These measurements make the study reproducible in principle, but they also narrow the interpretation. The paper investigates what happens when corpora differ along these measurable dimensions. It does not solve the broader problem of defining linguistic or intellectual complexity.

This is why the distinction between a selection score and an explanatory account matters throughout the study. Reading ease helps the authors build different candidate corpora. Vocabulary statistics describe what those choices produce. Downstream evaluation determines whether the resulting training resource is useful under the chosen setup. Each stage answers a different question, and the paper’s contribution lies partly in connecting them without making corpus size the only variable of interest.

### The method, step by step

The experimental method has a straightforward structure. Begin with existing text sources, score their documents for reading ease, and assemble collections with different complexity profiles under an approximately comparable size budget. Describe those collections, train the same kind of learner on each, and compare their usefulness for downstream tasks. Finally, examine whether complexity and source–task similarity move together with performance.

From document selection to downstream comparison The steps in order.

#### Define the text collections

The authors denote a pretraining corpus by C. Its total token count is |C|, and its vocabulary is V_C. The vocabulary contains the distinct tokens observed in the collection. A downstream dataset is D, with total token count |D| and vocabulary V_D.

A token is an occurrence in the text, whereas a type is a distinct item in the vocabulary. Repeating an already observed word increases the token count without introducing another type. This distinction is fundamental to the experiment: similarly sized collections can have different vocabulary breadth.

Text preparation uses NLTK for [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/). This matters because vocabulary size and word distributions depend on what is counted as a token. The paper’s statistical comparisons should therefore be understood relative to its text-processing procedure. Its NLTK counts describe the corpora; they should not be silently equated with every internal representation used during BERT training.

#### Measure lexical breadth and concentration

The simplest complexity indicator is the number of types. A collection with more distinct tokens exposes the learner to a broader observed vocabulary. This says nothing by itself about whether those tokens are useful, correctly written, or semantically diverse. It is a coverage measure, not a complete quality assessment.

The type–token ratio relates vocabulary breadth to the amount of text:

```
TTR(C) = |V_C| / |C|
```

Here TTR(C) is the type–token ratio of corpus C. The numerator |V_C| counts distinct tokens, while the denominator |C| counts all token occurrences. The table in the paper expresses this measure as a percentage. The authors note that it is sensitive to text length and justify its use through the broadly comparable sizes of their collections.

The next indicator is unigram entropy:

```
H(C) = −Σᵢ₌₁^|V_C| p(wᵢ) log₂ p(wᵢ)
```

H(C) is the entropy of the word distribution in corpus C. The summation covers every type wᵢ in vocabulary V_C. The quantity p(wᵢ) is that type’s probability, estimated from its occurrences in the corpus, and log₂ is the base-two logarithm. The negative sign gives the conventional non-negative entropy quantity.

Entropy considers how probability is distributed, rather than just how many distinct words exist. A corpus can acquire additional rare words while still placing much of its probability on often repeated vocabulary. Another corpus can distribute its probability differently in spite of having fewer types. This is why entropy can rank the collections differently from vocabulary size.

The measure is a unigram statistic: it considers individual word frequencies. It does not directly represent word order, dependency structure, or relationships between events. Calling it a complexity measure is an operational choice in the study, not a claim that the number contains all the information needed to judge difficult language.

#### Score reading difficulty at document level

Corpus-level statistics describe a completed collection, but the authors need a score that can guide which documents enter it. They choose Flesch reading ease:

```
FRE(dᵢ) = 206.835 − 1.015 (#w / #s) − 84.6 (#l / #w)
```

FRE(dᵢ) is the reading-ease score for document dᵢ. The symbols #w, #s, and #l denote its word count, sentence count, and syllable count. The ratio #w / #s represents average sentence length. The ratio #l / #w represents syllables per word.

The direction of the score is easy to reverse accidentally. A higher FRE value indicates easier reading under this measure. A lower value indicates greater difficulty. Accordingly, the collection called books-hard is selected from low-scoring books, while books-easy comes from high-scoring books.

The authors use the Readability package to obtain these scores. They interpret sentence length and word length as rough indicators of syntactic and semantic difficulty. Those are proxies. A syllable count does not determine how much background knowledge a reader needs, and a sentence-length average does not identify which constructions create difficulty.

Books and Wikipedia articles differ in length. To account for that difference when scoring books, the authors select a sequential span of 1000 sentences with a random component to its selection. The paper describes this procedure briefly. It does not establish that the selected span is a complete representation of every book’s readability variation, but it makes clear that the authors do not simply treat all document lengths as equivalent during scoring.

#### Assemble the corpus comparisons

The starting sources are wiki-103, drawn from English Wikipedia, and BookCorpus. The paper associates wiki-103 with [Pointer Sentinel Mixture Models](https://md.research.elamur.ai/free/en/papers/merity-2016-pointer-sentinel-mixture-models/) and BookCorpus with [Aligning Books and Movies](https://md.research.elamur.ai/free/en/papers/zhu-2015-aligning-books-movies-towards-story/). These are the existing resources from which the study constructs its experimental collections.

Wiki retains the original wiki-103 material. Books-small is a random sample of books chosen to obtain a broadly similar token budget. These provide useful reference points: an established Wikipedia collection and a books collection whose membership does not depend on the difficulty score.

The readability-selected book collections then test contrasting choices. Books-easy combines books towards the easier end of the score range. Books-hard combines books towards the more difficult end. Their names describe selection relative to the book source; they do not imply that their complete distributions occupy the extremes of all English writing.

Wikibooks tests a different hypothesis. The authors first include Wikipedia articles and books spanning different reading-ease levels. They then fill the remaining allowance mainly with more difficult material. The resulting collection aims for breadth with an emphasis, rather than uniform coverage or exclusive selection of the hardest documents.

This procedure is important to interpret accurately. Wikibooks changes both source mixture and readability composition. Its success would therefore support the complete construction strategy under the experiment, but would not independently identify the contribution of every ingredient.

#### Measure alignment with downstream text

The first similarity measurement is vocabulary overlap ratio:

```
VOR(C, D) = |V_C ∩ V_D| / |V_D|
```

VOR(C, D) measures the fraction of the downstream vocabulary covered by the pretraining vocabulary. V_C ∩ V_D is the set of types shared by C and D. The denominator |V_D| is the number of distinct types in the downstream dataset.

The denominator makes the measure directional. It asks how much of the task’s vocabulary is available in the source, rather than how similar the collections are under a symmetric set comparison. It also treats presence as the relevant evidence: a word’s occurrence establishes coverage without describing whether it is common or rare.

The second comparison uses Jensen–Shannon divergence:

```
D_JS(P ∥ Q) = α₁ D_KL(P ∥ M) + α₂ D_KL(Q ∥ M)
```

D_JS is Jensen–Shannon divergence. P and Q are the probability distributions representing the compared text collections. D_KL is Kullback–Leibler divergence. The weights α₁ and α₂ determine how the component comparisons contribute, and the authors set each to 0.5.

The shared distribution M is defined separately:

```
M = α₁P + α₂Q
```

M is the weighted mixture of P and Q. The same α₁ and α₂ appear in the Jensen–Shannon formula. Comparing each source distribution against this mixture produces a distributional distance, so smaller divergence corresponds to closer alignment.

The paper gives Kullback–Leibler divergence as:

```
D_KL(P ∥ Q) = Σᵢ pᵢ log(pᵢ / qᵢ)
```

The values pᵢ and qᵢ are the probabilities assigned to item i by P and Q. The summation combines their contributions across the distribution. The paper does not fully specify every implementation choice needed for reproducing this text comparison, including the handling of vocabulary support. Those details should not be inferred from the formula alone.

#### Train, adapt, and analyze

For each corpus, the authors pretrain an uncased BERT-base from scratch. The configuration uses 12 transformer layers, a batch size of 8, and a maximum input length of 512. Other settings are described as defaults. The implementation uses the HuggingFace [Transformers](https://md.research.elamur.ai/free/en/papers/wolf-2020-transformers-state-art-natural-language/) library.

Pretraining stops after at most 30K steps. Checkpoints at 10K, 20K, and 30K are separately subjected to [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) on each downstream dataset for two epochs. This permits a comparison of corpus choices at different stages of learning rather than only at the final checkpoint.

The downstream portfolio includes CoLA and MNLI, alongside MRPC and QNLI. It also includes QQP and RTE, together with SST-2 and STS-B. The paper presents their unweighted average as its main performance overview.

The analysis then connects the stages of the experiment. Corpus statistics describe the selected input. Vocabulary overlap and divergence describe its relationship to downstream training data. Performance describes the outcome after pretraining and task adaptation. Pearson correlations examine similarity–performance associations for individual datasets, while Kendall’s Tau compares rankings among complexity, similarity, and performance measurements.

### Experiments and results

The most important performance finding is consistent across the saved checkpoints: wikibooks has the highest average GLUE result. The exact performance values are not stated in the paper’s prose or numerical table, so the result should be reported as an ordering and trajectory rather than assigned reconstructed scores. The corpus statistics, in contrast, are explicitly tabulated and permit exact numerical comparison.

#### What the collections contain

The actual token totals show why “equal budget” needs qualification. Wiki contains 104M tokens, while books-easy contains 120M. Books-hard contains 111M, and books-small contains 116M. Wikibooks contains 109M. These collections occupy a broadly similar size range, but they are not exactly matched.

This matters in both directions. Books-easy does not perform poorly simply because it has the smallest reported token total; it has the largest. Wikibooks does not lead because it contains the most tokens. At the same time, unequal totals mean that the experiment should not be described as a perfectly controlled token-for-token comparison.

Vocabulary size differs substantially across the collections. The broad, difficulty-weighted mixture contains the most types, while the easy-book selection contains the fewest. The random book sample and hard-book selection sit between these extremes.

Pretraining corpus vocabulary size, distinct types Wikibooks contains the broadest observed vocabulary among the compared collections.

**The numbers**

| System or setting | types, thousands |
| --- | --- |
| wiki | 267 |
| books-easy | 258 |
| books-hard | 417 |
| books-small | 346 |
| wikibooks (this paper) | 436 |

The chart expresses the table’s K-denominated type counts in thousands. These are corpus descriptions, not downstream scores. A larger vocabulary is the favored setting for lexical breadth in this comparison, but the chart alone cannot establish that every additional type improves learning.

The type–token ratio gives the same ordering at the extremes. Wiki has a reported TTR of 0.26%, and books-easy has 0.22%. Books-hard reaches 0.38%, while books-small has 0.29%. Wikibooks has the highest reported value, 0.40%.

Because the token totals are only approximately matched, the paper’s own caution about length sensitivity remains relevant. Nonetheless, the successful collection combines a comparatively broad vocabulary with a high reported share of distinct types. The easy-book collection combines the weakest downstream average with the lowest lexical-diversity measurements.

Entropy adds a useful complication:

Pretraining corpus unigram entropy Wikipedia has the highest entropy, so entropy alone does not reproduce the downstream ordering.

**The numbers**

| System or setting | bits per word |
| --- | --- |
| wiki (this paper) | 7.375 |
| books-easy | 6.294 |
| books-hard | 6.826 |
| books-small | 6.483 |
| wikibooks | 7.179 |

Here the star marks the highest setting for this descriptive metric. It does not identify the best downstream system. The disagreement between the entropy leader and the performance leader is part of the result: complexity cannot be reduced to whichever reported measure is most convenient.

The authors observe that none of their corpora has entropy below six bits per word and relate this to prior information-theoretic work. Within this study, however, the important comparison is among the actual collections. Entropy helps characterize them, but does not uniquely identify the winning corpus.

#### What reading-ease selection produces

Figure 1 shows different readability distributions rather than only corpus averages. The book-only collections occupy comparatively restricted portions of the range and tend toward easier material. Wiki is concentrated more toward moderate and difficult text. Wikibooks has the widest spread, with substantial emphasis on the difficult region while retaining easier material.

This is the operational evidence that the sampling procedure creates the kind of mixture the authors intended. It connects the document score used for selection to the eventual distribution of selected text. It does not prove that reading ease measures every useful source difference.

The position of books-hard is especially informative. Although it selects the more difficult books, it does not become equivalent to wikibooks. Difficulty within a source and breadth across a mixed collection are different properties. The successful recipe includes both a range and a bias towards harder material.

#### Downstream performance over training

Figure 2 compares average GLUE performance after 10K, 20K, and 30K steps. Wikibooks leads at each checkpoint. The authors interpret this consistency as evidence that its advantage is not restricted to a particular stopping point in the tested schedule.

The trajectories also differ. Wiki, books-hard, and wikibooks improve as training proceeds. Books-easy and books-small instead show declining average results across the plotted checkpoints. This does not mean that every individual downstream task necessarily declines. The stated observation concerns the aggregate shown in the figure.

The practical implication is narrower and more useful than a general warning against longer training. Under the studied setup, the benefit of additional pretraining depends on the corpus. A collection that supports weaker later outcomes cannot automatically be repaired by spending more steps on the same material.

The paper describes the overall gains as significant, but does not supply exact task-score values, uncertainty intervals, or a statistical testing procedure in the numerical account. The reliable report is therefore that wikibooks consistently leads the plotted average, while the strength and variability of its advantage are not numerically recoverable from the stated results.

#### Similarity to downstream datasets

The vocabulary-overlap analysis uses the downstream training sets. Wikibooks has the highest overlap with every downstream dataset in the comparison. This fits the idea that a larger source vocabulary can cover more of the words appearing in later tasks.

Coverage is useful evidence, but its meaning remains specific. It shows shared types under the chosen tokenization. It does not establish that their meanings, syntactic roles, or contextual uses are matched. Nor does it establish that the pretraining corpus contains the information needed to solve every task example.

Figure 3 relates this overlap to performance across corpus choices. The authors report moderate to strong Pearson associations for most datasets, becoming stronger as pretraining advances. Appendix A provides corresponding analysis using Jensen–Shannon divergence and reports a similar overall pattern.

Figure 4 adds Kendall’s Tau comparisons among complexity, similarity, and performance. The authors particularly emphasize the relationship between the 30K performance ranking and vocabulary overlap, alongside the association between overlap and the complexity measurements.

Together, these findings support a chain of related observations: the broader collection covers downstream vocabulary more fully, and collections with better alignment tend to perform better. They do not isolate an independent causal effect for each link. Complexity, source mixture, and vocabulary alignment vary together in this design.

### What the ablations show

The paper offers controlled corpus comparisons and correlational analyses instead of a component-by-component ablation of the wikibooks construction procedure. It does not report removing each ingredient from an otherwise unchanged mixture. Its comparisons are still informative, provided each is interpreted at the scope it actually tests.

#### Random books against selected books

Books-small provides a random-selection reference within BookCorpus. Books-easy and books-hard instead use readability to determine membership. These comparisons ask whether a deliberate choice along the difficulty dimension behaves differently from selecting a similarly sized book collection without that criterion.

The reported trajectories favor the more difficult book selection over the easy and random selections as training proceeds. This is consistent with the paper’s view that corpus composition matters. It does not establish that random sampling is generally poor: the result concerns this source, these sampled collections, and the stated training procedure.

The comparison also preserves some source commonality. Since the book variants come from BookCorpus, they reduce the risk of interpreting every difference as a Wikipedia-versus-books effect. They do not eliminate variation in topic, genre, vocabulary, or document characteristics that accompanies readability selection.

#### Hard material against a broad mixture

Books-hard tests a simple interpretation of the hypothesis: choose harder books. Wikibooks tests a richer construction that includes different sources and readability levels, while favoring difficult material. Wikibooks performs best across the checkpoints.

The comparison shows that the successful setting is not adequately summarized as selecting only the hardest books. It leaves open which part of the mixture matters most. The authors do not report a version that holds source proportions constant while changing only readability coverage, or a version that preserves readability while changing only the source mixture.

A useful conclusion is therefore about the complete candidate: the particular mixed strategy works best among the tested corpora. A stronger conclusion about the necessity of easy documents, the ideal source balance, or the optimal difficulty distribution would require additional comparisons.

#### The complexity indicators against one another

Vocabulary size and type–token ratio identify wikibooks as the leading collection for lexical breadth. Entropy favors wiki. This disagreement prevents a simple story in which every measure orders the collections identically.

The downstream advantage of wikibooks therefore cannot be explained as a direct monotonic response to entropy alone. Nor does the agreement of vocabulary size and performance prove that adding arbitrary types would improve the result. The measurements describe naturally co-varying properties of the selected text.

This analysis is valuable because it reveals where an operational definition stops being an explanation. The paper gives evidence that its selection procedure yields a useful corpus, but its statistics do not establish a unique mechanism of benefit.

#### Early and later checkpoints

Comparing 10K, 20K, and 30K checkpoints tests whether the corpus ordering persists through training and whether more steps help each collection. Wikibooks remains the strongest average performer, while not all collections improve.

This strengthens confidence in the observed ordering within the tested schedule. It also shows that training duration interacts with the source material. However, the schedule ends at 30K, so the analysis does not establish how the collections would behave under much longer training or under different optimization settings.

#### Coverage and distributional distance

The use of vocabulary overlap and Jensen–Shannon divergence checks the relationship to downstream text from different perspectives. One measures coverage of target types; the other compares probability distributions. The reported agreement in their broad implications makes the similarity interpretation less dependent on a single definition.

These analyses remain correlational. A corpus that is more varied can also be closer to the downstream vocabulary, so the study cannot fully separate diversity as an independent benefit from diversity as a route to better task alignment. The results motivate both explanations without determining their individual contributions.

### Limitations

#### Limits stated by the authors

The authors explicitly identify computational constraints as a reason for the scale of their experiment. Their systems and training collections are relatively small compared with the larger settings motivating the study. They therefore do not claim that the same relationships necessarily hold when architecture size or corpus scale increases.

The language scope is also explicit: the experiment concerns English. Reading-ease scores, syllable counting, vocabulary distributions, and source composition can behave differently in other languages. The paper does not test a multilingual extension, and its English result should not be treated as evidence that an unchanged selection recipe will transfer.

The source domains are broad books and Wikipedia material. The authors identify specialized domains, including medical writing, as requiring further investigation. A corpus that supports general benchmark tasks may need a different balance of vocabulary and document types from a corpus intended for a specialized application.

The conclusion also places generative language systems outside the demonstrated result. The authors name that extension as a future direction. Their experiment uses BERT-based pretraining and downstream adaptation, so it does not establish an improvement in open-ended generation, conversational behavior, or other untested uses.

#### Limits visible in the experimental design

The token budget is approximate. The corpora are similar in scale but have different reported totals. Since corpus length affects both exposure and some descriptive statistics, this weakens any claim that the study has completely isolated composition from size. It does not erase the findings, especially because the largest collection is not the best performer, but it remains a qualification.

The selected variables also move together. Wikibooks combines source families, spans a broad difficulty range, emphasizes harder material, and has strong vocabulary coverage. The experiment does not independently manipulate all those properties. Its result supports the full construction strategy more directly than any particular explanation for why that strategy works.

Reading ease is a restricted proxy. It depends on sentence length and syllables per word, while the paper’s motivating concept of complexity includes richer linguistic and semantic properties. Difficult vocabulary can increase a score’s indication of difficulty without guaranteeing valuable learning content. Conversely, short and familiar wording can express demanding reasoning. The study does not directly measure all those possibilities.

The lexical statistics are similarly limited. Type counts depend on tokenization and text normalization. Type–token ratio depends on sample length. Unigram entropy ignores order and structure. Vocabulary overlap does not distinguish different senses of a shared word. Jensen–Shannon divergence compares distributions without establishing that the underlying contexts express equivalent knowledge.

These are not reasons to reject the measurements. They explain the kind of evidence each provides. A sound interpretation treats them as observable properties associated with the reported outcomes, rather than substitutes for an analysis of what the learner has represented.

The corpus-construction recipe is not fully parameterized in the methodological account. The authors explain that they include a range of material before filling the remaining allowance mostly with difficult text, but do not specify an exact mixture schedule that would uniquely reconstruct wikibooks. The description supports understanding the strategy more fully than reproducing every selection decision.

Training configuration is only partly explicit. Architecture, batch size, maximum sequence length, checkpoint schedule, and fine-tuning duration are stated, while other settings are left as defaults. Defaults depend on implementation context. The paper does not provide a complete configuration record within its methodological description.

The reported downstream results also have limited numerical detail. The figures convey the main rankings and trajectories, but the article does not provide a table of exact task scores or average-score values. It would therefore be inappropriate to assign precise gains, calculate performance differences, or estimate uncertainty from the prose.

Repeated-run variability is not quantified in the reported account. The paper does not provide seed-to-seed intervals or describe a statistical significance test for its principal performance comparison. Its consistency across checkpoints is useful evidence, but checkpoints from a training trajectory are not replacements for independently repeated experiments.

The correlation analyses involve the same small set of candidate corpora. Strong associations can be informative within that comparison while remaining sensitive to which candidates were constructed. They should not be read as a general law that every increase in a complexity indicator produces a predictable gain.

An unweighted average also expresses a particular evaluation choice. It gives each included task equal influence in the aggregate instead of weighting by dataset size or application importance. That can be a reasonable summary, but it does not establish that the winning corpus is best for every downstream objective.

Finally, computational efficiency is a motivation more than a fully measured outcome. The paper seeks better use of a limited text budget, but it does not supply a detailed accounting of selection overhead, total training cost, or energy use. It supports investigating corpus composition as an efficiency strategy; it does not establish a universal cost reduction relative to large-scale alternatives.

### What came after

The authors identify generative language modeling as a natural next test. That extension would ask whether the same broad, difficulty-weighted corpus strategy helps when the training and evaluation setting changes from the BERT-based setup studied here. The paper does not report that experiment, and no subsequent study is established here as having validated it.

The unresolved questions are concrete. Does the mixed strategy remain useful with larger training collections? Does it transfer beyond English? Does specialized writing require a different balance between broad coverage and domain relevance? Can source mixture and readability be varied independently enough to identify which ingredient matters?

The paper’s demonstrated contribution is the earlier step: constructing contrasting corpora with simple measurements, evaluating them under shared learner settings, and showing that the strongest tested collection combines breadth with an emphasis on difficult text. Its correlations offer hypotheses about vocabulary coverage and task alignment. Those hypotheses provide a basis for further experiments, while the observed result remains tied to the sources, training schedule, and downstream portfolio that the authors actually studied.

## Cite

Cite as Ameeta Agrawal and Suresh Singh. 2023. Corpus Complexity Matters in Pretraining Language Models. Proceedings of the Fourth Workshop on Simple and Efficient Natural Language Processing (SustaiNLP).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2023.sustainlp-1.20](https://doi.org/10.18653/v1/2023.sustainlp-1.20)

```bibtex
@inproceedings{agrawal2023corpus,
  title = {{Corpus Complexity Matters in Pretraining Language Models}},
  author = {Ameeta Agrawal and Suresh Singh},
  booktitle = {Proceedings of the Fourth Workshop on Simple and Efficient Natural Language Processing (SustaiNLP)},
  year = {2023},
  doi = {10.18653/v1/2023.sustainlp-1.20},
  url = {https://doi.org/10.18653/v1/2023.sustainlp-1.20}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
