LSHBloom: Memory-efficient, Extreme-scale Document Deduplication
Not on the map. Why?
Abstract (arXiv)
Contemporary large language model (LLM) training pipelines require the assembly of internet-scale databases full of text data from a variety of sources (e.g., web, academic, and publishers). Preprocessing these datasets via deduplication -- detecting and eliminating additional instances of the same content -- is a major focus for assembling and curating training datasets for LLMs. Unrestrained, duplicates in the training dataset increase training costs and lead to undesirable properties such as memorization in trained models or cheating on evaluation. Unfortunately, contemporary approaches to document-level deduplication are either unreliable at accurately identifying duplicate documents or extremely expensive in terms of both runtime and memory. We propose LSHBloom, an extension to MinhashLSH, which replaces the expensive LSHIndex with lightweight Bloom filters. LSHBloom demonstrates the same state-of-the-art deduplication performance as MinhashLSH, with only a marginal increase in false positives (near zero in our experiments), while boasting competitive runtime (12× faster than MinhashLSH on peS2o) and, crucially, using 18× less disk space than MinhashLSH (as measured on peS2o). Based on extrapolation, we show that this advantage in space and runtime remains even at the extreme scale of several billion documents. LSHBloom allows practitioners to access the deduplication quality of MinHashLSH at scales that are normally only tractable for less sophisticated, heuristic solutions. As a result, LSHBloom promises to enable scaling high-quality document deduplication to internet-scale text datasets.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 29 of its 85 references that are in the map. First posted on arXiv 6 Nov 2024.
Builds on
29 of 85 references.
References · 29
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,202
- 2024Gemma: Open Models Based on Gemini Research and Technologycited by 916
- 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 861
- 2023StarCoder: may the source be with you!cited by 799
- 2021Deduplicating Training Data Makes Language Models Bettercited by 714
- 2019CCNet: Extracting High Quality Monolingual Datasets from Web Crawl Datacited by 548
17 more
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
- 2024Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Researchcited by 483
- 2024DataComp-LM: In search of the next generation of training sets for language modelscited by 398
- 2023SemDeDup: Data-efficient learning at web-scale through semantic deduplicationcited by 303
- 2023Nougat: Neural Optical Understanding for Academic Documentscited by 245
- 2024A Comprehensive Survey of Scientific Large Language Models and Their Applications in Scientific Discoverycited by 96
- 2024Reuse, Don't Retrain: A Recipe for Continued Pretraining of Language Modelscited by 72
- 2023A Comprehensive Survey on Vector Database: Storage and Retrieval Technique, Challengecited by 55
- 2018Approximate Nearest Neighbor Search in High Dimensionscited by 47
- 2023UniSeg: A Prompt-driven Universal Segmentation Model as well as A Strong Representation Learnercited by 47
- 2019Parsl: Pervasive Parallel Programming in Pythoncited by 36
- 2023Smaller Language Models are Better Black-box Machine-Generated Text Detectorscited by 35
- 2024Evading Data Contamination Detection for Language Models is (too) Easycited by 30
- 2016LSH Ensemble: Internet-Scale Domain Searchcited by 24
- 2024TRUCE: Private Benchmarking to Prevent Contamination and Improve Comparative Evaluation of LLMscited by 24
- 20241.5-Pints Technical Report: Pretraining in Days, Not Months -- Your Language Model Thrives on Quality Datacited by 6
- 2021On the Optimal Time/Space Tradeoff for Hash Tablescited by 2
Built on by
Citing papers per year: 2024: 1; 2025: 1; 2026: 3.
5 papers.
- 2025A Survey of LLM × DATAcited by 4
- 2026Byte-Exact Deduplication in Retrieval-Augmented Generation: A Three-Regime Empirical Analysis Across Public Benchmarkscited by 4
- 2026Merlin: Deterministic Byte-Exact Deduplication for Lossless Context Optimization in Large Language Model Inferencecited by 2
- 2024LP Data Pipeline: Lightweight, Purpose-driven Data Pipeline for Large Language Modelscited by 1
- 2026PUFFER: Incremental Fuzzy Deduplication for Continuously Evolving Corporacited by 0
- 2026PUFFER: Incremental Fuzzy Deduplication for Continuously Evolving Corpora29 Jul 2026
- 2026Merlin: Deterministic Byte-Exact Deduplication for Lossless Context Optimization in Large Language Model Inference11 May 2026
- 2026Byte-Exact Deduplication in Retrieval-Augmented Generation: A Three-Regime Empirical Analysis Across Public Benchmarks10 May 2026
- 2025A Survey of LLM × DATA24 May 2025
- 2024LP Data Pipeline: Lightweight, Purpose-driven Data Pipeline for Large Language Models18 Nov 2024