LSHBloom: 高效内存使用,超大规模文档去重
LSHBloom: Memory-efficient, Extreme-scale Document Deduplication
AI总结:
LSHBloom通过轻量级Bloom过滤器替代传统LSH索引,实现高效内存使用和超大规模文档去重,提升去重性能并降低运行时间和空间消耗。
摘要:
当前大型语言模型(LLM)训练管道需要组装包含大量文本数据的互联网级数据库,这些数据来自各种来源(例如网络、学术和出版商)。通过去重(检测和消除相同内容的额外实例)预处理这些数据集是组装和整理LLM训练数据集的主要关注点。如果没有限制,训练数据集中的重复项会增加训练成本,并导致训练模型出现记忆化或在评估中作弊等不良属性。不幸的是,当前的文档级去重方法要么在准确识别重复文档方面不可靠,要么在运行时间和内存使用上都非常昂贵。我们提出LSHBloom,这是MinhashLSH的扩展,它用轻量级的Bloom过滤器替换了昂贵的LSH索引。LSHBloom在去重性能上与MinhashLSH相同,仅在假阳性上略有增加(在我们的实验中接近零),同时具有竞争性的运行时间(在peS2o上比MinhashLSH快12倍),并且关键的是,比MinhashLSH使用18倍少的磁盘空间(在peS2o上测量)。基于外推,我们表明在几亿文档的极端规模下,这种在空间和运行时间上的优势仍然存在。LSHBloom使从业者能够访问MinHashLSH的去重质量,这种质量通常只能通过更简单、启发式的解决方案实现。因此,LSHBloom有望使高质量的文档去重扩展到互联网级文本数据集。
英文摘要:
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$\times$ faster than MinhashLSH on peS2o) and, crucially, using 18$\times$ 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。