Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Text mining›Text Deduplication — Near-Duplicate Detection
Process / pipeline

Text Deduplication — Near-Duplicate Detection

Text Deduplication (Near-Duplicate Detection) · Also known as: near-duplicate detection, document deduplication, corpus deduplication, Metin Tekilleştirme (Near-Duplicate Detection)

Text deduplication is a corpus-quality pipeline that identifies and removes exact and near-duplicate documents from large text collections. Grounded in Andrei Broder's 1997 resemblance theory, it is widely used to improve dataset quality for machine learning model training, search engine indexing, and any downstream NLP task that assumes a non-redundant corpus.

ScholarGate
  1. Process / pipeline
  2. v1
  3. 2 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Text Deduplication
BERT EmbeddingsSentiment AnalysisText ClassificationTF-IDFTopic Modeling

When to use it

Text deduplication applies whenever you are working with a large text collection — crawled web data, scraped corpora, academic archives, or user-generated content — where redundant or near-identical documents are expected. It is a prerequisite step before training language models, building search indices, or running any analysis that assumes document independence. Two assumptions must hold: a similarity threshold must be defined by the researcher before processing, and for large-scale collections (tens of thousands of documents or more) the MinHash–LSH approach must be used because exact pairwise comparison is computationally infeasible. A minimum corpus size of around 50 documents is reasonable for any deduplication run; below that, the problem is typically solved by manual inspection.

Strengths & limitations

Strengths
  • Scales to very large corpora: MinHash–LSH reduces the computational cost from quadratic to near-linear, making it practical for millions of documents.
  • Catches near-duplicates as well as exact copies, handling minor edits, reformatted content, and mirrored pages that byte-level hashing would miss.
  • Directly improves downstream model quality: Lee et al. (2022) demonstrated that deduplicating training data produces better language models with less memorisation of repeated content.
Limitations
  • Requires a user-defined similarity threshold; the right value depends on the corpus and the downstream task, and a poor choice either over-removes distinct documents or leaves too many near-duplicates.
  • MinHash operates on token sets (bag-of-words), so it does not capture word order or semantic similarity — two documents with the same words in different arrangements receive the same fingerprint.
  • For very small corpora (under ~50 documents) the overhead of building an LSH index is unnecessary; simpler exact matching or manual review is more appropriate.

Frequently asked

What is Jaccard similarity and why does it matter for deduplication?

Jaccard similarity measures the overlap between two sets — in this context, the sets of token shingles of two documents. It equals the size of the intersection divided by the size of the union. Two documents with Jaccard similarity above the chosen threshold are treated as near-duplicates. MinHash provides an unbiased estimator of Jaccard similarity without comparing the full token sets, which is what makes large-scale deduplication tractable.

How do I choose the similarity threshold?

There is no universally correct value. A common starting point for web text is 0.5 (50% token overlap), but the right threshold depends on your corpus and task. Inspect a sample of document pairs at candidate threshold values — pairs that a human judge considers duplicates should fall above the threshold, and genuinely distinct documents should fall below it. Adjust until the false-positive and false-negative rates are acceptable for your use case.

Does deduplication remove all copies or keep one?

Deduplication identifies clusters of near-duplicate documents and retains one canonical representative per cluster, discarding or tagging the rest. Which copy is kept — the longest, the earliest, the highest-quality — depends on the resolution policy you define. The pipeline flags duplicates; the retention decision is yours.

Is deduplication only relevant for language model training?

No. Deduplication improves data quality for any downstream NLP task that assumes document independence — sentiment analysis, topic modelling, information retrieval, and corpus statistics all benefit from a non-redundant corpus. The importance for language model training was highlighted by Lee et al. (2022), but the problem predates that work by decades.

Sources

  1. Broder, A.Z. (1997). On the Resemblance and Containment of Documents. Compression and Complexity of SEQUENCES. link ↗
  2. Lee, K. et al. (2022). Deduplicating Training Data Makes Language Models Better. ACL 2022. link ↗

How to cite this page

ScholarGate. (2026, June 1). Text Deduplication (Near-Duplicate Detection). ScholarGate. https://scholargate.app/en/text-mining/text-deduplication

Related methods

BERT EmbeddingsSentiment AnalysisText ClassificationTF-IDFTopic Modeling

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • BERT EmbeddingsText mining↔ compare
  • Sentiment AnalysisText mining↔ compare
  • Text ClassificationText mining↔ compare
  • TF-IDFText mining↔ compare
  • Topic ModelingDeep learning↔ compare
Compare side by side →

Similar methods

Paraphrase DetectionSemantic SimilarityDocument ClusteringKeyword ExtractionText ClassificationText Frequency AnalysisSentence EmbeddingsTF-IDF

Related reference concepts

Text ClusteringDocument Representation and WeightingCorpus Linguistics and Web CorporaText ClassificationCorpus Building and CurationLatent Semantic and Topic Models

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Text Deduplication (Text Deduplication (Near-Duplicate Detection)). Retrieved 2026-07-21 from https://scholargate.app/en/text-mining/text-deduplication · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Andrei Z. Broder (MinHash / Resemblance theory, 1997)
Year
1997
Type
Text preprocessing / corpus quality pipeline
CoreTechnique
MinHash + Locality-Sensitive Hashing (LSH)
SimilarityThreshold
User-defined (e.g., Jaccard ≥ 0.5)
MinimumCorpusSize
50 documents (LSH recommended for large collections)
Related methods
BERT EmbeddingsSentiment AnalysisText ClassificationTF-IDFTopic Modeling
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account