Elamur Research

Deduplicating Training Data Makes Language Models Better

Paper · 2022 · Katherine Lee, Daphne Ippolito, Andrew Nystrom et al.

Summary

The same passage can enter a training collection through many different pages. A news story can run on several sites, a product description can recur across a catalogue, and a fragment of copied text can sit inside an otherwise original document. A language model sees these copies as repeated training material. When one also appears in an evaluation set, the system can receive credit for predicting wording it has already seen. The authors examine both problems in the English portion of Wiki-40B, the One-Billion Word benchmark (LM1B), C4 and RealNews. They find duplicates in all four training sets and overlap with all four validation sets. In C4, a 61-word passage about weddings occurs 61,036 times in training and 61 times in validation.

The paper develops two ways to find copies at the scale of these collections. The first, EXACTSUBSTR, builds an index called a suffix array over the tokenized text. It uses the index to identify identical passages of at least 50 tokens, so it can remove a repeated passage while retaining surrounding material. The second uses MinHash to find documents that share many short sequences of words, then checks how closely the full texts match. It can remove redundant documents that differ in scattered details. The exact search uses CPUs and is designed to scale efficiently with the amount of text. The authors released their deduplication code and cleaned datasets.

To test the effects on learning, the authors trained decoder-only Transformers on original C4 and on versions cleaned by either method. With original C4, over 1% of the tokens generated without a prompt by the 1.5 billion parameter system belonged to passages copied from training under the paper’s matching rule. The rate fell to about 0.1% with cleaned training data. The cleaned versions generally gave comparable or better perplexity, a measure of how well the system predicts the next token. The paper reports improvements of up to 10% in some evaluations and reductions of up to 19% in dataset size. In the C4 training runs, removing whole near-duplicate documents shortened training when the systems were run for about the same number of passes through their respective datasets.

The evaluation results explain why the placement of copies matters as much as their frequency. In C4, 4.6% of validation examples had an approximate duplicate in training. The system trained on original C4 predicted this overlapping material unusually well, while the systems trained on cleaned C4 performed similarly on validation examples identified as unique. Removing copies across the split makes the score less dependent on previous exposure. The reduction in copied output also addresses one route by which training material can resurface. The authors distinguish that measurable change from the broader question of whether the material that resurfaces is sensitive, harmless or useful.

Deep dive: Deduplicating Training Data Makes Language Models Better

See how removing duplicate training text changes what language models copy, how quickly they train, and how fairly they are evaluated. · about 40 minutes to read

The problem and its context

How a collection comes to repeat itself

A dataset of webpages records what publishers, sites and collection procedures have placed on the public web. The number of pages carrying a passage can reflect how widely a story was syndicated, how a site generates its pages or how frequently a standard notice is attached to a document. When these pages become training examples, each occurrence is another opportunity to learn the same wording. The relevant question is therefore how much distinct text a large corpus contains and how the copies it retains affect what a system learns.

Full documents and passages present different problems. A news article can retain most of its wording when another outlet changes the heading or the opening credit. A page can contain a long passage that occurs elsewhere even though its title and the rest of its body are distinct. A collection of product listings can reuse a template while changing parts of nearly every sentence. A rule that looks only for identical documents will treat all of these as distinct examples. A rule based on a fixed part of a page, such as its opening, can miss a copied body. What the dataset builder chooses to compare determines which repetitions can survive collection.

The authors place this issue in the context of a shift from collections measured in gigabytes to corpora reaching as much as a terabyte. At that scale, inspection by hand becomes costly. Earlier work that the paper discusses had already made a case for examining what large corpora contain, including how the sources and filtering of C4 shape the resulting collection. Deduplication gives the authors a particular property they can measure and intervene on. They can inspect the starting corpus, find copies under defined rules, remove them and observe the consequences of changing the training data. Documenting Large Webtext Corpora

The training collections the paper describes came from different kinds of sources. The GPT-2 family used WebText, assembled from web documents ranked highly on Reddit, and the dataset was unavailable for public inspection. CommonCrawl, which indexes public webpages, was another starting point. GPT-3 used CommonCrawl material with additional book data. GROVER drew on a news-domain subset called RealNews. C4 was built from CommonCrawl for T5, while Wiki-40B used processed Wikipedia text. These examples explain both the attraction of large public sources and the reason dataset inspection depends on access. A study that needs to locate copies across a corpus and rebuild training sets needs the underlying examples. Language Models are Few-Shot Learners · Defending Against Neural Fake News · Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer

What earlier filters could see

Some of the starting corpora had already been cleaned with duplication in mind. C4 used hashes of paragraphs to identify material for removal. A hash gives a text a compact value that can be checked against other values without comparing every paragraph with every other paragraph. The paragraph was the unit of that check. A passage inside a larger paragraph could recur in another paragraph with a different beginning or ending. Changes inside a paragraph could likewise give the whole paragraph a different hash. C4 also applied content filters and excluded duplicate URLs. Those steps addressed particular forms of redundancy or unwanted text, each according to its own rule.

RealNews used a different shortcut. It hashed the first 100 characters of an article and put the value into a Bloom filter, a compact structure for testing whether a value may already have been recorded. It excluded documents when that check found a collision and also excluded duplicate URLs. This gives the procedure a way to detect repeated openings. Syndication creates cases where the opening has changed but most of the text that follows is shared. The limitation comes from the portion of the article used to decide whether another copy is present.

The earlier work discussed in the paper gives examples beyond web crawl processing. A retrospective examination of BookCorpus found substantial duplication of whole documents. A study of datasets for machine learning on source code found that duplication affected performance on code understanding tasks. These observations establish that repetition was already a recognized corpus problem. The question here is how to detect additional kinds of repetition in commonly used text collections and then connect the resulting change in data to behavior during prediction and generation. Aligning Books and Movies · The Adverse Effects of Code Duplication in Machine Learning Models of Code

Why a held-out split can contain familiar text

An evaluation split is normally kept aside so that predictions on its examples can serve as evidence about how well a system handles text outside training. Collection records can be assigned to different splits while their contents overlap. The presence of an evaluation document under a different identifier or URL gives little assurance that its words were held out. If familiar passages are comparatively easy to predict, a score averaged over the whole validation set can give extra weight to the ability to reproduce familiar wording. A comparison used to select architecture or training settings can inherit that preference.

Prior studies had examined a related problem involving downstream tasks. A downstream benchmark is a separate assessment used to test a particular capability after pretraining. A benchmark can circulate online and be swept up by a crawl. The paper describes how the GPT-2 researchers searched after training for overlaps expressed as 8-grams, meaning shared sequences of 8 consecutive units under their matching procedure. An analysis of C4 found up to 14.4% of the test examples for various standard tasks verbatim in the corpus after normalizing punctuation and capitalization. That percentage concerns external tasks in the earlier C4 analysis. The present paper also reports a percentage with the same digits for RealNews, but that measurement concerns RealNews’s own validation split. Documenting Large Webtext Corpora

Other researchers tried to prevent contamination before evaluating. A commonsense reasoning study removed substantially overlapping documents from its CommonCrawl-derived training data. In the analysis the authors describe, the GPT-3 study applied a conservative criterion that checked whether a training example and an evaluation example shared a 13-gram and flagged as many as 90% of tasks for possible contamination. A flag under such a rule indicates potential overlap. The actual evaluation consequence depends on what text is shared and how the task uses it. In this paper the main split comparison takes place within corpora used for language modeling. The held-out task is predicting language from those corpora, with perplexity as the score. That setup lets the authors examine the connection between a known form of overlap and the prediction score directly. A Simple Method for Commonsense Reasoning · Language Models are Few-Shot Learners

The prospect of copied output supplies a separate motivation. Earlier research recovered training material from GPT-2, including examples containing phone numbers and usernames. It established that apparently open-ended output could expose particulars from the underlying corpus. The authors of the deduplication paper ask a complementary question about frequency. They sample ordinary output under a defined generation procedure, measure how much of it matches training passages and test whether changing the frequency of exposure changes the measured copying. Extracting Training Data from Large Language Models

The method, step by step

Choosing what counts as a copy

Consider a set of webpages with different main articles and the same long notice at the bottom. Removing all pages with the notice would discard the articles, so the useful operation is to locate the repeated span and excise copies of that span. Now consider versions of a listing that differ in a product name, a location and a date. The matching stretches between the substitutions may be short, even though the document as a whole is mostly shared. The useful operation here is to compare the whole examples and retain a representative of a group of near copies. The paper provides a search procedure for each case and tests the two resulting training sets separately.

Both procedures start with identifiable examples. What constitutes an example depends on the corpus. In LM1B it is a sentence. In C4 it is a web document. Text is also broken into tokens, the units on which a sequence comparison can operate. The exact search works with bytes representing Byte Pair Encoding, or BPE, tokens. BPE can represent words using smaller units, so the length of an exact match in BPE tokens should be read as a length in that representation. For the candidate search in MinHash the appendix describes splitting text at spaces. The ensuing n-grams are consecutive windows in that space-split representation. Each representation serves a different part of the duplicate definition. Subword tokenization

From original examples to deduplicated training data

The steps in order.

From original examples to deduplicated training dataStep 1: Record the examples and their splits1. Record the examples and their splitsStep 2: Index suffixes to find long exact spans2. Index suffixes to find long exact spansStep 3: Hash word sequences to shortlist similar documents3. Hash word sequences to shortlist similar documentsStep 4: Verify overlap and edit similarity for candidate pairs4. Verify overlap and edit similarity for candidate pairsStep 5: Group documents linked by verified matches5. Group documents linked by verified matchesStep 6: Prefer evaluation copies when matches cross splits6. Prefer evaluation copies when matches cross splitsStep 7: Build separate cleaned training sets for comparison7. Build separate cleaned training sets for comparison

Formally, the paper describes the dataset as a collection of examples.

D = {xᵢ}ᵢ₌₁ᴺ

Here D is the dataset, N is its number of examples, and i indexes them from 1 through N. The braces collect the examples denoted by xᵢ. The notation specifies which examples are present. It allows records with different indices to have the same text.

xᵢ = [xᵢ¹, xᵢ², …, xᵢˢⁱ]

Here xᵢ is the sequence for instance i. The superscripts identify token positions within that example, and sᵢ is the number of tokens in it. Thus xᵢ¹ denotes the initial token, xᵢ² the next token and xᵢˢⁱ the final token, with the ellipsis covering positions between them. The brackets indicate that token order matters.

Finding exact passages inside examples

For exact substring matching, the authors look for a sufficiently long stretch that is identical in different examples. The passage can begin at a different position in each example. Using the paper’s span notation, an eligible match satisfies the following condition.

xᵢᵃ⁻ᵗᵒ⁻⁽ᵃ⁺ᵏ⁾ = xⱼᵇ⁻ᵗᵒ⁻⁽ᵇ⁺ᵏ⁾

Here i and j identify the examples, while a and b denote the respective starting positions. The superscripts denote spans ending at the offsets a + k and b + k, using the paper’s convention for a span of length k. The equals sign requires the token sequences in those spans to agree in order. The paper sets the minimum k to 50 BPE tokens for the experiments. With that rule, the recurrence of a long passage supplies the evidence for removal and the extent of the match identifies the part of the example affected.

Directly searching every pair of examples would be expensive. The suffix array makes it possible to bring occurrences of a passage together without comparing every pair. After joining the example sequences into a corpus sequence, imagine taking the tail that begins at each possible position. A tail extending from a position to the end of the sequence is a suffix. Sort the tails by their contents, using the order of the symbols at the first point where tails differ. The suffix array stores their starting positions in that sorted order. It need not store a separate copy of the text of every tail.

𝒜(𝒮) = arg sort all_suffixes(𝒮)

Here 𝒮 is the concatenated corpus sequence and 𝒜 is its suffix array. The function all_suffixes denotes the suffixes beginning at the possible positions in 𝒮. The operator arg sort returns their original positions in lexicographic order, the same principle by which words sharing a beginning appear together in a dictionary. The order applies to the actual symbol sequence being indexed, which in the implementation is built from the bytes of the BPE representation.

Suppose two positions start the same passage. They may lead on to completely different text after that passage, but the shared opening puts their suffixes in the same block of the sorted array. Every suffix between them in the block starts with that same passage. Consequently a sequential scan can compare neighbors and record groups of occurrences sharing a long enough prefix. In the case where exactly two positions have the relevant prefix, the corresponding array entries are adjacent. With more occurrences, adjacent comparisons recover the shared prefix across the group. The scheme finds a copy even when the examples containing it are unrelated elsewhere or far apart in the input.

Detection returns positions. The deduplication decision uses those positions to remove redundant instances of the matching text. Keeping the operation at span level matters when a duplicated section is only a piece of an example. A training record can survive the operation even though some of its BPE tokens have been deleted. That is why a count of examples can give a different account of the intervention from a count of tokens.

Setting the minimum match length

The important distinction for the threshold is between repetition expected from ordinary usage and repetition indicative of a copied passage. The authors evaluate it by asking how often a span beginning at a sampled position has another exact occurrence.

m(k) = Prᵢ∈[N][∃ j ≠ i : 𝒮[i .. i + k] = 𝒮[j .. j + k]]

Here m(k) is the match probability at length k, and Pr denotes probability over the sampled start i. In this expression [N] denotes the range of positions over which the paper takes that probability. The index j is another start, and ∃ j ≠ i means that at least one such position exists and differs from i. The colon introduces the condition on that position. The two bracketed slices of 𝒮 have length k under the paper’s convention, and the equals sign tests exact agreement. This expression treats a span as having a match whether it occurs again once or has many further copies.

The authors examine how this probability changes with length across their corpora. They describe a bend in the curve at 10 tokens. When they manually checked matches of length 25, they found no false positives in that inspection. They adopted 50 tokens as a conservative operating point. The longer threshold reflects the authors’ preference for strong evidence of copying. The price is that a passage shorter than the cutoff remains outside the exact removal rule, including when the passage is the whole training example. The behavior of the method therefore depends partly on the distribution of example lengths.

Building the exact index at scale

For suffix array construction, the authors use SA-IS as a building block. They run it in parallel on subdivisions of the corpus and combine the resulting sorted lists. Each subdivision is indexed with enough following text to handle matches near an internal partition boundary. During the merge, array entries for positions in this added overlap are filtered so those positions are supplied by the subdivision that owns them. The final ordering uses the suffix text to decide which position comes next.

O(N) work, O(N/K) wall-clock time

Here O denotes an order-of-growth bound, N is the length of the input being partitioned and K is the number of subdivisions built in parallel. These bounds describe the partial construction stage. The first term describes total work across the subdivisions. The second describes the wall-clock scaling of that stage in the parallel setup analyzed by the authors.

For a merge of two sorted arrays, each array has a current position. The merge compares the suffixes named by their current entries, takes the earlier one in lexicographic order and advances within the list it took from. When combining many arrays the authors use a min-heap, which keeps the earliest of the current entries accessible as the candidates change. The merge can itself be divided into jobs. Their boundaries are found by searching the sorted arrays for the positions where each job’s portion should begin and end.

O(N m log(K))

Here O again describes order of growth, N is the dataset length, m is the average length of a matching prefix during comparison, and K is the number of subdivisions. The logarithm log(K) describes how the heap operation grows with the number of lists. The factor m represents the work of examining suffix text to resolve comparisons. The paper calls the overall approach linear for its setting while qualifying the claim for the general case. In particular, merge costs depend on how far comparisons have to read and on how many partial arrays they combine.

The Rust implementation lets the authors index raw bytes and inputs larger than 4GB. It can also stream the array from disk. That matters because the input text must be accessible at arbitrary positions when comparing suffixes, while the array produced by the scan can be much larger than the input it indexes. Disk streaming limits which structure has to remain in memory. The engineering detail makes the difference between an index that is compact relative to a suffix tree and one that still requires substantial storage at C4’s scale.

Finding similar full documents

Approximate matching starts by representing each document as the set of its consecutive 5-grams. Consider listings with the same underlying prose and scattered changes in names or prices. Windows crossing the changes will differ, while windows in untouched portions can still match. A set representation also counts each distinct window once for the purposes of measuring overlap. It records which local sequences occur in a document, leaving their multiplicity to one side. A later comparison of the ordered text then checks how close the documents are as sequences.

Jaccard(dᵢ, dⱼ) = |dᵢ ∩ dⱼ| / |dᵢ ∪ dⱼ|

Here dᵢ and dⱼ are the sets of n-grams associated with documents i and j. The intersection symbol ∩ selects n-grams present in both sets. The union symbol ∪ collects n-grams present in either set. The vertical bars count the distinct elements of the enclosed set, and the slash divides the shared count by the combined count. The Jaccard index is accordingly a measure of the share of distinct n-grams that the documents have in common.

Computing this score for every pair would bring back the original scaling problem. MinHash screens for plausible pairs. In the implementation described in the appendix, the authors first use tabulation hashing on the 5-grams, then compute a series of minima. For each hash function used to build the signature, they take the smallest hashed value among the document’s n-grams. Applying the same functions to every document gives comparable signature entries. When an n-gram that belongs to both documents supplies the minimum, the relevant signature entries agree.

The authors group the signature entries into buckets and combine each bucket’s entries into a value. Agreement in any corresponding bucket makes the two documents a candidate pair. Agreement on a whole bucket is a stronger signal than agreement on an individual entry. Providing many buckets creates more chances for a genuinely similar pair to be noticed despite differences in other parts of its signature. The balance between these effects is set by the number of entries per bucket and the number of buckets.

Pr(dᵢ, dⱼ | Jaccard(dᵢ, dⱼ) = sᵢⱼ) = 1 − (1 − sᵢⱼᵇ)ʳ

Here Pr on the left is the probability of treating the documents represented by dᵢ and dⱼ as a candidate pair. The vertical bar indicates that this probability is conditional on their Jaccard index being sᵢⱼ, the actual similarity for that pair. The exponent b is the number of hash entries per bucket. The exponent r is the number of buckets. In the expression on the right, sᵢⱼᵇ is the probability that a bucket agrees under the formula’s hashing assumptions. Subtracting from 1 gives the probability of disagreement for that bucket. Raising that disagreement probability to r represents disagreement in every bucket, and the outer subtraction from 1 gives the chance of at least one agreement. The main configuration uses b = 20, r = 450 and a signature of size 9,000.

A shared bucket grants admission to the verification stage. The authors compute the actual Jaccard index for a candidate pair and proceed to edit similarity if the score is above 0.8. Edit similarity compares the full token sequences. Since edits can be required in different parts of a document, the measure discounts changes relative to the full length of the longer sequence.

EditSim(xᵢ, xⱼ) = 1 − EditDistance(xᵢ, xⱼ) / max(|xᵢ|, |xⱼ|)

Here xᵢ and xⱼ are the ordered token sequences for the two examples. EditDistance is the number of edits required by the minimum-cost transformation of one sequence into the other, which can involve inserting, deleting or substituting tokens. The vertical bars give sequence lengths, and max selects the greater of those lengths. The slash divides the edit distance by that length. Subtraction from 1 converts a relative editing cost into a similarity, so fewer changes give a higher score. The authors classify a candidate pair as a duplicate when its edit similarity is greater than 0.8 after the overlap check.

The appendix analyzes the verification cost by letting T be the maximum document length in tokens. An edit comparison can cost on the order of T², so the number of candidates admitted has a direct effect on the amount of work.

O(N + b k² T² N) = O(N)

This is the paper’s complexity expression for approximate matching. O signifies order of growth and N here counts documents. The letter b denotes hashes per bucket, k is the signature size in this part of the paper, and T is the maximum token length of a document. The isolated N term accounts for grouping signatures, while the product describes the expensive term as written in the appendix. The final equality expresses the authors’ scaling interpretation for their parameter regime. In practice, verification depends on the number of colliding pairs and the lengths of the documents compared. A group producing many candidates requires more work than a group whose signatures rarely collide.

Turning matches into training data

The authors represent verified near-duplicate relationships as a graph. Each document is a vertex, and each directly verified pair contributes an edge. They then identify connected components, groups of documents linked by paths through the graph. This allows a series of small changes across versions to be treated as one family of examples. Membership in the same family can follow from a chain of matches even if the documents at its ends would not individually pass the pairwise checks. The component is the unit of grouping when redundant examples are removed.

The split policy is shared across the approaches. When duplicate content occurs across training and a held-out split, the authors prioritize keeping the test or validation copy and deleting corresponding training material. A validation passage kept this way can still be scored. Its presence in the held-out data gives the experiment an opportunity to test prediction after the detected training overlap has been removed. With exact matching the deleted training material is a span. With approximate matching it is a redundant example.

For training, the authors use original C4 as the baseline and build separate versions cleaned by exact substring removal and by approximate document removal. They use the T5 codebase and train decoder-only Transformers, which predict subsequent tokens from preceding ones. A common BPE vocabulary has a budget of 50K tokens. The training sequence length is capped at 512 tokens. For documents longer than that, the input is a randomly chosen subsequence of that length. A document in the corpus can therefore contain more text than appears in an individual training input. The training runs last about two epochs, meaning about two passes through the examples of each respective dataset, with the steps adjusted for the dataset size.

The XL system has 1.5B parameters, with 24 layers and 32 attention heads per layer. Its embedding size is 2,048 and the hidden size of each feed-forward block is 5,120. The base system has 110M parameters, 12 layers and 12 heads per layer, with an embedding size of 768 and a feed-forward hidden size of 2,048. The attention key and value dimension is 64 in both sizes. The authors use the Adafactor optimizer with a constant learning rate of 0.01 for base and 0.001 for XL. They repeat base training with three random seeds per C4 condition to see how much the results vary with initialization. These settings make the C4 comparison primarily a comparison of training data within a given size and training procedure.

Experiments and results

What the corpus audit measured

The corpora differ substantially in size, origin and unit of organization. The English portion of Wiki-40B has 2.9M pages averaging 768 BPE tokens. Its creators describe removing redirects, which are pages that send readers to another entry. LM1B has 30M sentences of news commentary, averaging 32 BPE tokens per example. Earlier work cited in the paper had already reported 13.2% overlap between the LM1B test set and its training set. Its role as a sentence-level benchmark makes it a different case from corpora organized into longer articles or pages. One Billion Word Benchmark for Measuring Progress in Statistical Language Modeling

The paper’s dataset description gives C4 as 360M web documents averaging 486 BPE tokens. It gives RealNews as 31M documents, averaging 793 BPE tokens. Both are drawn from CommonCrawl, with RealNews restricted to news domains. The authors audit all four datasets with both detectors. They report the approximate detector’s results as fractions of examples and the exact detector’s results as fractions of tokens belonging to matching spans. This difference is fundamental to the comparison. A small repeated portion of each of many documents can represent a substantial phenomenon at document level while affecting a different share of the token inventory.

Under approximate matching, the reported near-duplicate share is 3.04% of C4 training examples and 13.63% of RealNews training examples. In Wiki-40B it is 0.39% of training examples. The authors observed that many of the Wikipedia matches they inspected were automatically generated pages, including pages recording sports results. In C4 they found general-purpose templates with varying fields. In the news corpora, copies often looked like versions of the same material published with slightly different formatting. An LM1B example in the paper has one version beginning with a place and another with a news agency marker. The text after those openings agrees. The examples illustrate how different collection and publication practices can lead to similar measurements under the same detector.

In C4, 1.8M near-duplicate clusters consisted of a pair of matching examples. The distribution also had a long tail: 280 clusters had over 5,000 examples, and one contained 250,933. A cluster count therefore describes only part of the corpus. It gives the same weight to a pair and to a large connected group. The proportion of examples removed captures another property, and inspection of the large groups helps explain which sources can dominate that proportion. The appendix notes that sites selling many similar products frequently occur among the C4 sources with a high share of near copies. It points to content aggregators as common among the corresponding RealNews sources.

Exact substring removal took out 7.18% of C4 training tokens. One conspicuous match was the 61-word wedding passage with 61,036 verbatim occurrences in training. That example also recurred in validation. It shows how a single fragment can travel across documents and into a held-out split. Across the corpora, the authors report size reductions of up to 19%. Size reduction needs to be read against the intervention that produced it. Span excision can reduce the amount of text while leaving an example to train on. Near-duplicate document removal reduces the number of available examples as well.

How much validation material was already in training

The approximate detector finds a corresponding training example for 4.6% of the C4 validation examples and 14.4% of the RealNews validation examples. The denominator in each case is the collection of validation examples for the named dataset. The measurement asks whether an example has an approximate training copy. It can count a validation example whose text has undergone modest changes since the training version. Exact matching supplies additional evidence of cross-split overlap at the level of passages, as the wedding example shows.

The distinction between detection and impact is important. Finding an approximate duplicate identifies an evaluation item with prior exposure to much of its text. The proportion of such items alone does not specify the change in the overall score. That depends on the prediction advantage due to exposure and on the influence of these examples in the metric. To examine that advantage, the authors score the original validation split and separately score subsets formed according to their duplication status.

What changes in next-token prediction

Perplexity summarizes the probability a system assigns to the observed tokens in running text. A system that assigns higher probabilities to the continuations that actually occur receives lower perplexity. The metric is sensitive to prior exposure because repeated training on a passage can make its actual words easier to anticipate. When the authors report C4 perplexity, they evaluate on the original validation split, on C4 Unique and on C4 Duplicates. The unique subset consists of validation examples without a detected near duplicate in training or validation. The duplicate subset consists of validation examples with a detected near duplicate in training. All training versions can then be compared on the same validation material.

For base, perplexity on original C4 validation was similar across the training conditions. Perplexity was also similar on C4 Unique. On C4 Duplicates, the systems trained on cleaned data had higher perplexity than the one trained on original data. XL showed the same broad pattern. The original training corpus therefore gave the strongest predictions precisely on the subset defined by its relation to the original training data. When the shared material was removed from training, the advantage on that subset diminished. A higher perplexity on those examples is consistent with the experiment successfully removing exposure that had made them especially easy to predict.

The authors also use validation text from LM1B and Wiki-40B to assess C4-trained systems on other corpora. The best cleaned-C4 condition consistently achieved the lowest perplexity there. On Wiki-40B validation the authors describe the XL improvement from deduplication as almost 3 perplexity points. They compare it with about 1 point of perplexity variation in the base runs. The two numbers describe different comparisons: the former refers to a cleaning effect for XL on Wiki-40B, while the latter describes variation seen across base runs. The main conclusion is that the smaller training set could support better prediction on separately sourced text. The paper reports perplexity improvements of up to 10% in some cases.

All of the C4-trained XL systems also achieved perplexity below 35 on LM1B validation. The paper compares that threshold with 42.16 reported for the 1.5B GPT-2 with a vocabulary of the same size. This situates the XL results relative to a published system. The original-versus-cleaned C4 comparison isolates the data change more closely because it uses the same training setup. The GPT-2 figure describes a separate system trained in a different setting.

How much generated text matches training

For open-ended text generation the authors use top-k sampling with k = 50. At each position, this restricts the random choice to a set of tokens given the highest probabilities. The authors generate 100,000 unprompted samples, each at most 512 tokens long. They count a generated token as memorized when it lies inside a 50-token span that occurs verbatim in training. The result is a proportion of generated tokens. A sampled sequence can contain a matching span along with a substantial amount of other text, so the reported percentage has a different meaning from the percentage of samples with any copied material. Text generation

For the XL system trained on original C4, over 1% of unprompted output tokens satisfied that criterion. For the cleaned C4 conditions, the paper reports about 0.1%, a reduction of approximately 10×. Both cleaning methods therefore led to much less matching output by this test despite making different choices about what unit of text to remove. The authors show examples of generated substrings that appear repeatedly in C4. Advertisements feature prominently among the examples they discuss. That observation describes the material they inspected and leaves open how frequent particular kinds of copied content are across all samples.

The prompted experiment asks how closely a continuation resembles a particular source. The prompt is the first 32 tokens of an example. The remainder provides a reference continuation, and a generated continuation counts as a close reproduction when its edit similarity to that reference exceeds 0.8. The experiment draws prompts from four groups. Training prompts can come from examples with near duplicates or from examples identified as unique. Validation prompts can come from examples with an approximate training copy or from examples identified as unique across splits. The reference comparison can detect close reproduction even when the generated text contains edits, so it answers a different question from the exact-span test.

For prompts from duplicated training examples, the XL system trained on original C4 reproduced the reference continuation over 40% of the time by the edit criterion. The cleaned systems also reproduced continuations more frequently for duplicate-derived prompts than for unique ones. The result shows that the tendency can persist under prompting even after a substantial reduction in spontaneous copies. Knowledge of the prompt’s source matters for interpreting the rate. A prefix chosen because its example has training duplicates probes a different condition from generation with no prefix at all.

What the comparisons found in released systems

The authors examine existing systems to see whether the link between near duplication and validation perplexity also appears outside their own C4 runs. They evaluate Transformer-XL on LM1B and GROVER on RealNews, separating examples with training copies from examples classified as unique. For RealNews, the authors use the first 25k examples meeting each evaluation condition because of the split’s size. Transformer-XL’s perplexity on the near-duplicate portion is about half that on the unique portion. GROVER shows the same direction of difference at both evaluated sizes, with a smaller separation. These evaluations identify an association in already-trained systems. The intervention with different versions of C4 supplies the separate experiment in which the authors changed training exposure.

The authors also compare outputs from released systems with their training corpora. In the official collection of 25k GROVER-Mega outputs, 1.38% of the tokens are part of verbatim matches to RealNews of at least 50 tokens. In about 200k sequences from GPT-Neo 1.3B, more than 5% of the output tokens participate in 50-token training matches in the Pile. These results show that the matching phenomenon is observable with other corpora and systems. Each rate describes a different output collection. The controlled estimate of the effect of deduplication comes from the C4 comparison, where the authors set the sampling procedure themselves. The Pile

How much work cleaning and training took

The exact-match implementation ran on a cloud machine with 96 CPU cores and 768GB of memory. The authors report processing the Wiki-40B training set in 2.3 minutes of wall-clock time, corresponding to 2.1 CPU-hours of work in their accounting. For the 350GB C4 dataset, the suffix array took under 12 hours to build, representing approximately 1000 CPU-hours. After the array was available, the C4 removal pass finished in under an hour. The array for C4 occupied 1.5TB. These figures concern distinct operations and resources. The wall-clock time describes elapsed time on the available machine, CPU-hours describe work across cores, and the array size describes storage.

For approximate matching, the authors report about 41.5 kWh for processing English C4 with their distributed implementation. Its signature parameters were chosen to give high recall, meaning a high chance of putting true near duplicates through to verification. The authors discuss the possibility of using cheaper parameters. The reported energy expenditure applies to the implementation and settings they actually ran.

The training comparison fixes approximate passes through the data, so removing whole examples can directly reduce the number of steps. The appendix reports 152K steps for the original and exact-substring conditions and 146K for the approximate-document condition at a batch size of 4800. The latter dataset is reported as 3.9% smaller than the original in the energy discussion. The authors give the following approximate elapsed times for XL training on a 128-core TPU v3 pod slice.

XL training time across original and deduplicated C4

Removing near-duplicate documents shortened training over approximately equal passes through each version of C4.

XL training time across original and deduplicated C4Original C4: 131Original C4131C4 with exact substring removal: 131C4 with exact substring removal131C4 with approximate document removal (this paper): 126C4 with approximate document removal(this paper)126
The numbers
System or settinghours
Original C4131
C4 with exact substring removal131
C4 with approximate document removal (this paper)126

The exact-substring condition can lose tokens without reducing the example count enough to change the scheduled step total. The document-removal condition changes that total. For training energy the authors estimate 5.86 MWh for two epochs of each of the longer XL runs and 5.63 MWh for the shorter one. Those energy estimates use data from previous work and a common datacenter assumption, while the wall-clock figures describe the reported runs. The practical efficiency argument combines this smaller training workload with the finding that validation perplexity on unique or separately sourced text was comparable or better. Carbon Emissions and Large Neural Network Training

What the ablations show

Removing spans and removing examples test different interventions

The paper’s central controlled comparison changes the C4 training corpus while keeping the training recipe and the size of the system comparable. Exact substring removal reduces repeated exposures locally. Approximate matching takes a more extensive action on each example it removes, deleting the whole record even where some of its text was distinct. Each intervention changes both the quantity and composition of the training material. Their common outcome is a large decline in unprompted exact copying. That agreement supports the role of repeated exposure without making the precise unit of removal the sole explanation.

The detectors also select substantially overlapping material. Among C4 training examples removed by approximate matching, 77% have at least one verbatim match of length 50 under the exact detector. A large fraction of the documents judged redundant as a whole therefore contain the type of long shared passage that the exact index is designed to find. The rest of the approximate removals show why the two procedures are complementary. A document can contain the same template with enough substitutions to interrupt the long runs while retaining substantial overall overlap. Conversely, a long repeated section can occur inside examples whose remaining content is sufficiently distinct that the full documents fail the approximate check.

The difference is especially clear for LM1B. The paper reports that 90% of its examples are under 50 tokens, and the exact procedure removes 8× less data than the approximate one there. A perfectly identical sentence below the cutoff is ineligible for the span search. The smaller amount removed by EXACTSUBSTR is therefore explained in part by the shape of this dataset and the threshold. The corpus is a case where the two interventions can have markedly different reach even though both are intended to address duplication. This comparison also shows why the share detected in a corpus needs to be read alongside the units in which examples are stored.

The threshold checks explain what each detector was tuned to find

For exact matching the authors compare match frequencies across substring lengths and manually inspect examples of shorter matches before choosing the experimental cutoff. Common short stretches are a poor indicator of copying because ordinary language reuses many sequences of words and word parts. The inspection of length-25 matches supplies a qualitative check above the 10-token bend in the frequency curves. The choice of 50 builds in additional margin. The paper thereby gives an empirical rationale for the threshold alongside a clear class of omissions, namely copies whose uninterrupted exact stretches are too short.

For approximate matching, the authors try another configuration with a Jaccard threshold of at least 0.9 and an edit similarity threshold of at least 0.9. They use b = 20, r = 40 and k = 800 for that configuration. They plot the Jaccard and edit similarities for colliding document pairs under the two configurations. The authors compare the low-similarity portions of the distributions to judge whether the candidate search is likely to be missing a large share of qualifying pairs. They interpret the behavior of the tails as evidence of good recall for the chosen setup.

This comparison probes sensitivity in the detection stage. It changes the thresholds and signature parameters together, so its evidence comes from how the two configurations populate the similarity distributions. There is no corresponding training comparison in which each parameter is independently varied. Neither distribution includes pairs that both searches missed. The check supports the authors’ choice of a practical configuration while leaving its absolute recall unmeasured.

Splitting validation by overlap localizes the prediction advantage

The C4 experiment varies two things across comparisons. One is what the system saw during training. The other is which validation subset the authors score. For C4 Unique, the question is whether cleaning has changed prediction on examples with no detected near copy. For C4 Duplicates, the question is what happens where the original training corpus has material similar to the evaluation text. Separate scores matter because a similar aggregate can conceal different effects concentrated on different examples.

The systems trained on cleaned C4 look similar to the original on unique examples but lose the original’s advantage on duplicates. Consider the interpretation if only the duplicate subset had been used. Original C4 would have appeared especially effective as training data because it yielded stronger prediction on the material that overlapped. Consider instead the result on previously unseen wording as approximated by C4 Unique. The case for preferring the original training corpus largely disappears. The comparison makes the scoring issue experimentally visible and ties it to exposure, since the original and cleaned runs use the same evaluation subsets.

The Wiki-40B and LM1B evaluations put another constraint on the interpretation. Improvement on those validation sets shows that the effect is compatible with improved prediction under a change of source, in spite of less total training text. A shift in scores on C4 Duplicates alone could establish that removal changed familiarity with particular passages. A favorable result on a separately sourced validation set shows that the cleaned data can also serve the wider language prediction task. Since the C4 cleaning rules also change which examples are represented, the experiment leaves room for several explanations of the improvement, including changed exposure to repeated templates and a changed balance of source text.

The base repetitions estimate how variable the perplexity result is across training initializations. The appendix presents the median and range across the three base runs for each training condition. XL supplies evidence at a larger size with the same broad direction of effect across the C4 subsets. The base runs provide the direct estimate of variation. The agreement across sizes is evidence that the central observation survives the tested change in capacity.

Prompts test which kind of exposure brings copying back

Unprompted generation measures what appears under a sampling procedure without giving the system a piece of the desired passage. Prompted generation instead hands it a real prefix, then measures how often the output approaches one particular continuation. Within that experiment, the duplicate and unique groups give a way to test whether the remaining tendency to copy is evenly distributed over prompts. It is concentrated more heavily on prompts drawn from repeated examples, including after cleaning.

The validation groups show why merely labeling a prompt as held out can be misleading. A validation prefix can point to material that occurred in a slightly different version in training. The repeated training group checks a more direct exposure. The unique groups supply a comparison where the matching procedure found no comparable example. These categories describe how examples were selected, and the differences in continuation rates are evidence about those categories under the authors’ detector and sampling setup.

The two generation measures also address different points along the same process. Counting exact matched tokens makes the unprompted outcome interpretable as a share of text. Comparing a continuation’s edit similarity to its reference lets the prompted outcome include close reproductions with minor changes. Together they show that deduplication reduces the tendency to reproduce training text spontaneously while targeted prompts from repetitive regions of the data can still elicit familiar wording. The measured effect of cleaning depends on what the user supplies and on how copying is defined.

Limitations

Limits the authors identify

The experiments cover English training text. The Wiki-40B collection is multilingual, but the paper uses its English portion. The authors expect similar duplication problems in other languages. A result for another language would depend on its collection sources, the distribution of example lengths and the behavior of tokenization and space splitting on that text. The paper also restricts the training intervention to decoder-only Transformers for open-ended generation. Its direct evidence about changes in behavior comes from that family and the sizes trained.

The authors distinguish evaluation on a corpus’s own held-out text from evaluation on external tasks after pretraining. They measure perplexity and reproduction of training strings. They leave the question of downstream benchmark performance for separate investigation. Relatedly, they identify document retrieval and closed-book question answering as cases where retention of details from training may be useful. The study does not measure how those uses respond to removing repeated text. A change in perplexity or copy rate cannot establish the balance of advantages for an application whose users need reliable recall.

The authors also raise the possibility of removing attribution. A credit can recur across many otherwise different documents. Exact span removal could reduce how often the credit occurs while the associated passage remains elsewhere in the dataset. The study does not quantify this effect or examine whether deduplication changes a system’s propensity to attribute wording correctly. The example illustrates a general issue with a rule driven by textual recurrence. The content that is easy to identify as repetitive can play a different role from the content around it.

The privacy analysis is bounded by the definition of copying used in the experiments. A generated span can be a mundane advertisement, a well-known quotation or private information. The authors count matches together, and the qualitative observations about examples provide no systematic classification of sensitivity. They discuss privacy in the broader sense of how much a system reveals about the particular dataset used to train it. Reducing long verbatim output addresses one way such information can be revealed. The same analysis leaves open cases involving a sensitive record that occurs only once and other behavior outside the matching definition. The paper treats the privacy implications of the surviving matches as a subject for further study. Membership Inference Attacks against Machine Learning Models

The authors make a related distinction about whose language appears in large corpora. Automatically generated templates and standard notices may be overrepresented because of how webpages are produced. Other language varieties and groups may be underrepresented because collection favors established public forums and content that passes existing filters. Removing structural duplicates addresses one source of excessive frequency. Representation of people and communities follows from which material enters and survives the collection process, a question the experiments leave open. Bias, fairness & safety

Limits of the comparisons

The detection rules define the overlap that the paper can see. An exact match must persist for 50 BPE tokens. The approximate method requires candidate retrieval, sufficient overlap of space-based 5-grams and strong sequence agreement. Semantic overlap between passages with substantially different wording falls outside these definitions. So can shorter copied strings and material scattered through an otherwise different document. The term unique in the evaluation is best understood as unique under the detector and thresholds used. A fresh split could contain related material that escapes both searches.

Near-duplicate clusters add a further distinction between pairwise similarity and the effect of removal. The connected component can contain examples joined through intermediate cases. A series of edits across a chain can separate the ends considerably. From the experiment one can infer the effect of deduplicating with this clustering policy, including that transitivity. The study does not separately measure the effect of retaining additional versions in a large cluster or choosing representatives using other criteria. It also does not establish how to attach a value to the pieces of individually distinct text discarded along with an approximate duplicate.

The comparisons at approximately equal epochs combine changes in exposure with changes in the amount of work. The approximate C4 run takes fewer steps, and both cleaned corpora present a different mixture of tokens from the original. This is directly relevant to the practical experiment of cleaning a corpus and training on it, but it leaves finer causal questions open. A comparison at fixed token budget, for example, could spend the freed budget taking more passes through the cleaned data. An experiment that kept the budget fixed by replacing removed examples with other text would ask a different question again. The present paper’s results apply to its actual training schedule and choice of retained material.

The perplexity subset analysis is stronger when the systems are compared on the same examples. Duplicate and unique subsets can differ in formatting and subject matter as well as frequency. Templates can be easy to predict because of their structure, and content with little regularity may be more difficult. In the pre-existing system evaluations, differences between subsets can reflect such properties along with prior exposure. The C4 intervention helps separate these explanations because it changes what the systems see in training while scoring them on the same examples. Even there, perplexity is evidence about prediction of text and copying is evidence about reproduction under specified conditions. Their combination does not supply a direct measure of general reasoning, task accuracy or factual reliability.

The efficiency estimates likewise refer to the scale, hardware and configuration tested. The exact procedure needs fast access to the underlying sequence, and C4’s suffix array requires substantial disk space. The approximate method’s verification workload varies with candidate frequency and document length. Elapsed training time varies with how the training schedule uses examples after cleaning. The reported cost savings show that preprocessing can be worthwhile in the tested setup. The bounds and measurements describe the circumstances under which those particular gains were obtained.

What came after

Corpus construction as a research subject

The work’s citation trail includes projects whose subject is the collection used for pretraining. FineWeb is concerned with producing a web text dataset at scale. Its connection to this paper is the question of what a collection procedure leaves in the resulting corpus. Lee and colleagues made that question concrete by comparing the original C4 collection with versions that removed different forms of repetition, then using behavior after training as evidence about the change. FineWeb’s title places the preparation of web data itself at the center of the work. The citation establishes that connection without establishing which of the earlier paper’s algorithms or thresholds FineWeb used. The FineWeb Datasets

Dolma puts the emphasis on an open corpus for language model pretraining research. A corpus is an object that can be inspected, and the deduplication study shows the kinds of questions inspection can answer. An investigation can distinguish repeated passages from repeated documents, compare the balance of examples and tokens and identify material shared across splits. Dolma’s stated focus is the corpus available for that research. Its citation connects this focus to the earlier demonstration that data properties can be measured independently of the final training run and then related to what the trained system does. Dolma

RedPajama likewise concerns an open dataset, with training large language models as its stated purpose. Its relevance is to the data side of training comparisons. The earlier C4 experiments show why a description of a training set benefits from explaining what counts as an example and what repetition persists under the construction process. Two collections can differ in their learning value even when they come from similar sources or look comparable by example count. RedPajama belongs to the cited line of work that makes the training dataset a visible research object in its own right. The citation alone leaves its specific treatment of duplicate passages and documents undetermined. RedPajama

Measuring overlap where performance is reported

NLP Evaluation in trouble puts the emphasis on measuring contamination for each benchmark. This extends the evaluation question from a language-modeling corpus’s own split to the particular benchmarks on which a system is assessed. In the deduplication paper, C4 Unique and C4 Duplicates give different views of the same trained systems because exposure differs between the subsets. An evaluation benchmark has its own examples and its own opportunity for overlap with pretraining. The connection is the need to treat that overlap as part of interpreting the benchmark’s result. The cited work’s title specifies the unit at which it asks for measurement, the individual benchmark. NLP Evaluation in trouble

From repeated wording to rarely encountered knowledge

Large Language Models Struggle to Learn Long-Tail Knowledge asks about the other end of the exposure problem. The deduplication paper studies cases where some wording occurs very frequently and measures how removal affects later reproduction. The later paper’s stated subject is knowledge in the long tail, where the pertinent material is comparatively rare. The relationship is a distinction between what outcomes count as successful learning. For open-ended generation, repeatedly producing a copied passage can be undesirable. When evaluating access to rarely encountered knowledge, recovering what was learned from limited exposure can be the capability under study. The citation ties together work on the consequences of uneven exposure while the titles and research questions identify different outcomes. Large Language Models Struggle to Learn Long-Tail Knowledge

Cite

Cite as Katherine Lee, Daphne Ippolito, Andrew Nystrom, Chiyuan Zhang, Douglas Eck, Chris Callison-Burch and Nicholas Carlini. 2022. Deduplicating Training Data Makes Language Models Better. Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2022.acl-long.577 · arXiv 2107.06499

@inproceedings{lee2022deduplicating,
  title = {{Deduplicating Training Data Makes Language Models Better}},
  author = {Katherine Lee, Daphne Ippolito, Andrew Nystrom, Chiyuan Zhang, Douglas Eck, Chris Callison-Burch and Nicholas Carlini},
  booktitle = {Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.577},
  eprint = {2107.06499},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.18653/v1/2022.acl-long.577}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/lee-2022-deduplicating-training-data-makes-language/

References

50 references, from the paper's own bibliography.

  1. Miltiadis Allamanis. 2019. The adverse effects of code duplication in machine learning models of code. In Proceedings of the 2019 ACM SIGPLAN International Symposium on New Ideas, New Paradigms, and Reflections on Programming and Software, pages 143–153. our card
  2. Devansh Arpit, Stanisław Jastrzębski, Nicolas Ballas, David Krueger, Emmanuel Bengio, Maxinder S Kanwal, Tegan Maharaj, Asja Fischer, Aaron Courville, Yoshua Bengio, et al. 2017. A closer look at memorization in deep networks. In International Conference on Machine Learning, pages 233–242. PMLR. OpenAlex ↗ · Scholar ↗
  3. Jack Bandy and Nicholas Vincent. 2021. Addressing "documentation debt" in machine learning research: A retrospective datasheet for bookcorpus (http://arxiv.org/abs/2105.05241). OpenAlex ↗ · Scholar ↗
  4. Emily M. Bender and Batya Friedman. 2018. Data statements for natural language processing: Toward mitigating system bias and enabling better science (https://doi.org/10.1162/tacl_a_00041). Transactions of the Association for Computational Linguistics, 6:587–604. OpenAlex ↗ · Scholar ↗
  5. Emily M. Bender, Timnit Gebru, Angelina McMillan-Major, and Shmargaret Shmitchell. 2021. On the dangers of stochastic parrots: Can language models be too big? (https://doi.org/10.1145/3442188.3445922). In Proceedings of the 2021 ACM Conference on Fairness, Accountability, and Transparency, FAccT '21, page 610–623, New York, NY, USA. Association for Computing Machinery. OpenAlex ↗ · Scholar ↗
  6. Sid Black, Leo Gao, Phil Wang, Connor Leahy, and Stella Biderman. 2021. GPT-Neo: Large scale autoregressive language modeling with mesh-tensorflow (http://github.com/eleutherai/gpt-neo). OpenAlex ↗ · Scholar ↗
  7. Burton H Bloom. 1970. Space/time trade-offs in hash coding with allowable errors. Communications of the ACM, 13(7):422–426. OpenAlex ↗ · Scholar ↗
  8. Andrei Z Broder. 1997. On the resemblance and containment of documents. In Proceedings. Compression and Complexity of SEQUENCES 1997 (Cat. No. 97TB100171), pages 21–29. IEEE. OpenAlex ↗ · Scholar ↗
  9. Hannah Brown, Katherine Lee, Fatemehsadat Mireshghallah, Reza Shokri, and Florian Tramèr. 2022. What does it mean for a language model to preserve privacy? arXiv preprint. OpenAlex ↗ · Scholar ↗
  10. Tom B Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. 2020. Language models are few-shot learners. In Advances in Neural Information Processing Systems 33. our card
  11. Nicholas Carlini, Florian Tramer, Eric Wallace, Matthew Jagielski, Ariel Herbert-Voss, Katherine Lee, Adam Roberts, Tom Brown, Dawn Song, Ulfar Erlingsson, Alina Oprea, and Colin Raffel. 2020. Extracting training data from large language models (http://arxiv.org/abs/2012.07805). our card
  12. Ciprian Chelba, Tomas Mikolov, Mike Schuster, Qi Ge, Thorsten Brants, Phillipp Koehn, and Tony Robinson. 2013. One billion word benchmark for measuring progress in statistical language modeling. arXiv preprint arXiv:1312.3005. our card
  13. Hung Chim and Xiaotie Deng. 2007. A new suffix tree similarity measure for document clustering (https://doi.org/10.1145/1242572.1242590). In Proceedings of the 16th International Conference on World Wide Web, WWW '07, page 121–130, New York, NY, USA. Association for Computing Machinery. OpenAlex ↗ · Scholar ↗
  14. Edith Cohen. 2016. Min-hash sketches: A brief survey (http://www.cohenwang.com/edith/Surveys/minhash.pdf). OpenAlex ↗ · Scholar ↗
  15. Zihang Dai, Zhilin Yang, Yiming Yang, Jaime Carbonell, Quoc V Le, and Ruslan Salakhutdinov. 2019. Transformer-xl: Attentive language models beyond a fixed-length context. arXiv preprint arXiv:1901.02860. OpenAlex ↗ · Scholar ↗
  16. Jesse Dodge, Maarten Sap, Ana Marasovic, William Agnew, Gabriel Ilharco, Dirk Groeneveld, and Matt Gardner. 2021a. Documenting the english colossal clean crawled corpus (http://arxiv.org/abs/2104.08758). OpenAlex ↗ · Scholar ↗
  17. Jesse Dodge, Maarten Sap, Ana Marasovic, William Agnew, Gabriel Ilharco, Dirk Groeneveld, and Matt Gardner. 2021b. Documenting the english colossal clean crawled corpus (http://arxiv.org/abs/2104.08758). arXiv preprint arXiv:2104.08758. OpenAlex ↗ · Scholar ↗
  18. Vitaly Feldman and Chiyuan Zhang. 2020. What neural networks memorize and why: Discovering the long tail via influence estimation. In Advances in Neural Information Processing Systems. our card
  19. Rodney A. Gabriel, Tsung-Ting Kuo, Julian McAuley, and Chun-Nan Hsu. 2018. Identifying and characterizing highly similar notes in big clinical note datasets (https://doi.org/https://doi.org/10.1016/j.jbi.2018.04.009). Journal of Biomedical Informatics, 82:63–69. OpenAlex ↗ · Scholar ↗
  20. Leo Gao, Stella Biderman, Sid Black, Laurence Golding, Travis Hoppe, Charles Foster, Jason Phang, Horace He, Anish Thite, Noa Nabeshima, Shawn Presser, and Connor Leahy. 2020. The Pile: An 800gb dataset of diverse text for language modeling. arXiv preprint arXiv:2101.00027. our card
  21. Timnit Gebru, Jamie Morgenstern, Briana Vecchione, Jennifer Wortman Vaughan, Hanna Wallach, Hal Daumé III au2, and Kate Crawford. 2020. Datasheets for datasets (http://arxiv.org/abs/1803.09010). OpenAlex ↗ · Scholar ↗
  22. David Graff, Junbo Kong, Ke Chen, and Kazuaki Maeda. 2003. English gigaword. Linguistic Data Consortium, Philadelphia, 4(1):34. OpenAlex ↗ · Scholar ↗
  23. Mandy Guo, Zihang Dai, Denny Vrandecic, and Rami Al-Rfou. 2020. Wiki-40b: Multilingual language model dataset (http://www.lrec-conf.org/proceedings/lrec2020/pdf/2020.lrec-1.296.pdf). In LREC 2020. OpenAlex ↗ · Scholar ↗
  24. Bikash Gyawali, Lucas Anastasiou, and Petr Knoth. 2020. Deduplication of scholarly documents using locality sensitive hashing and word embeddings. In Proceedings of the 12th Language Resources and Evaluation Conference, pages 901–910. OpenAlex ↗ · Scholar ↗
  25. Paul Jaccard. 1912. The distribution of the flora in the alpine zone. New phytologist, 11(2):37–50. OpenAlex ↗ · Scholar ↗
  26. Juha Kärkkäinen and Peter Sanders. 2003. Simple linear work suffix array construction. In International colloquium on automata, languages, and programming, pages 943–955. Springer. OpenAlex ↗ · Scholar ↗
  27. Pang Ko and Srinivas Aluru. 2003. Space efficient linear time construction of suffix arrays. In Annual Symposium on Combinatorial Pattern Matching, pages 200–210. Springer. OpenAlex ↗ · Scholar ↗
  28. Udi Manber and Gene Myers. 1993. Suffix arrays: a new method for on-line string searches. siam Journal on Computing, 22(5):935–948. OpenAlex ↗ · Scholar ↗
  29. Ge Nong, Sen Zhang, and Wai Hong Chan. 2009. Linear suffix array construction by almost pure induced-sorting. In 2009 data compression conference, pages 193–202. IEEE. OpenAlex ↗ · Scholar ↗
  30. David Patterson, Joseph Gonzalez, Quoc Le, Chen Liang, Lluis-Miquel Munguia, Daniel Rothchild, David So, Maud Texier, and Jeff Dean. 2021. Carbon emissions and large neural network training (http://arxiv.org/abs/2104.10350). our card
  31. Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. 2019. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9. OpenAlex ↗ · Scholar ↗
  32. Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer (http://jmlr.org/papers/v21/20-074.html). Journal of Machine Learning Research, 21(140):1–67. our card
  33. Noam Shazeer and Mitchell Stern. 2018. Adafactor: Adaptive learning rates with sublinear memory cost. In International Conference on Machine Learning, pages 4596–4604. PMLR. OpenAlex ↗ · Scholar ↗
  34. Emily Sheng, Kai-Wei Chang, Premkumar Natarajan, and Nanyun Peng. 2020. Towards controllable biases in language generation. arXiv preprint arXiv:2005.00268. our card
  35. Reza Shokri, Marco Stronati, Congzheng Song, and Vitaly Shmatikov. 2017. Membership inference attacks against machine learning models. In 2017 IEEE Symposium on Security and Privacy (SP), pages 3–18. IEEE. our card
  36. Cory Stephenson, Suchismita Padhy, Abhinav Ganesh, Yue Hui, Hanlin Tang, and SueYeon Chung. 2021. On the geometry of generalization and memorization in deep neural networks. In International Conference on Learning Representations. OpenAlex ↗ · Scholar ↗
  37. Emma Strubell, Ananya Ganesh, and Andrew McCallum. 2019. Energy and policy considerations for deep learning in nlp (http://arxiv.org/abs/1906.02243). our card
  38. Piotr Teterwak, Chiyuan Zhang, Dilip Krishnan, and Michael C Mozer. 2021. Understanding invariance via feedforward inversion of discriminatively trained classifiers. In International Conference on Machine Learning, pages 10225–10235. PMLR. OpenAlex ↗ · Scholar ↗
  39. Trieu H Trinh and Quoc V Le. 2018. A simple method for commonsense reasoning. arXiv preprint arXiv:1806.02847. our card
  40. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. arXiv preprint arXiv:1706.03762. our card
  41. Yannick Versley and Yana Panchenko. 2012. Not just bigger: Towards better-quality web corpora. In Proceedings of the seventh Web as Corpus Workshop (WAC7), pages 44–52. OpenAlex ↗ · Scholar ↗
  42. Eric Wallace, Shi Feng, Nikhil Kandpal, Matt Gardner, and Sameer Singh. 2019. Universal adversarial triggers for attacking and analyzing nlp. arXiv preprint arXiv:1908.07125. our card
  43. Ryan Webster, Julien Rabin, Loïc Simon, and Frédéric Jurie. 2019. Detecting overfitting of deep generative networks via latent recovery (https://doi.org/10.1109/CVPR.2019.01153). In 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 11265–11274. OpenAlex ↗ · Scholar ↗
  44. Peter Weiner. 1973. Linear pattern matching algorithms. In 14th Annual Symposium on Switching and Automata Theory (swat 1973), pages 1–11. IEEE. OpenAlex ↗ · Scholar ↗
  45. Linting Xue, Noah Constant, Adam Roberts, Mihir Kale, Rami Al-Rfou, Aditya Siddhant, Aditya Barua, and Colin Raffel. 2020. mt5: A massively multilingual pre-trained text-to-text transformer. arXiv preprint arXiv:2010.11934. our card
  46. Mikio Yamamoto and Kenneth W Church. 2001. Using suffix arrays to compute term frequency and document frequency for all substrings in a corpus. Computational Linguistics, 27(1):1–30. our card
  47. Rowan Zellers, Ari Holtzman, Hannah Rashkin, Yonatan Bisk, Ali Farhadi, Franziska Roesner, and Yejin Choi. 2019. Defending against neural fake news. arXiv preprint arXiv:1905.12616. our card
  48. Wei Zeng, Xiaozhe Ren, Teng Su, Hui Wang, Yi Liao, Zhiwei Wang, Xin Jiang, ZhenZhang Yang, Kaisheng Wang, Xiaoda Zhang, Chen Li, Ziyan Gong, Yifan Yao, Xinjing Huang, Jun Wang, Jianfeng Yu, Qi Guo, Yue Yu, Yan Zhang, Jin Wang, Hengtao Tao, Dasen Yan, Zexuan Yi, Fang Peng, Fangqing Jiang, Han Zhang, Lingfeng Deng, Yehong Zhang, Zhe Lin, Chao Zhang, Shaojie Zhang, Mingyue Guo, Shanzhi Gu, Gaojun Fan, Yaowei Wang, Xuefeng Jin, Qun Liu, and Yonghong Tian. 2021. Pangu-$\alpha$: Large-scale autoregressive pretrained chinese language models with auto-parallel computation. arXiv preprint arXiv:2104.12369. our card
  49. Yukun Zhu, Ryan Kiros, Rich Zemel, Ruslan Salakhutdinov, Raquel Urtasun, Antonio Torralba, and Sanja Fidler. 2015. Aligning books and movies: Towards story-like visual explanations by watching movies and reading books. In Proceedings of the IEEE international conference on computer vision, pages 19–27. our card
  50. Jakub Łącki, Vahab Mirrokni, and Michał Włodarczyk. 2018. Connected components at scale via local contractions (http://arxiv.org/abs/1807.10727). OpenAlex ↗ · Scholar ↗