arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.01046cs.CL
收藏

SEDD: 一种基于GPU的可扩展且高效的去重数据集处理方法

SEDD: Scalable and Efficient Dataset Deduplication with GPUs

Graduate School of Data Science(数据科学研究生院);Department of Computer Science(计算机科学系);Seoul National University(首尔国立大学)

Youngjun Son, Chaewon Kim, Jaejin Lee

AI总结:

本文提出SEDD,一种基于GPU的高效去重框架,通过引入计算高效且部分可重用的哈希函数、高度优化的GPU内核和硬件感知的自动参数选择机制,显著减少了通信瓶颈,提升了去重效率,同时保持了高去重精度。

摘要:

数据集去重被广泛认可为一个关键的预处理步骤,能够提高数据质量和大型语言模型的性能。常用的去重方法是MinHash局部敏感哈希(LSH)算法。最近,NVIDIA NeMo Curator等GPU加速框架被引入以处理大规模语料库;然而,由于物理数据洗牌带来的高通信开销和GPU资源利用率低,这些框架仍然不够高效。在本文中,我们提出了SEDD,一种高性能的GPU加速去重框架,优化于分布式集群环境。SEDD引入了计算高效且部分可重用的哈希函数,以及高度优化的GPU内核和硬件感知的自动参数选择机制。通过将传统数据洗牌替换为流式处理方法,SEDD显著减轻了通信瓶颈。在处理3000万文档的节点上,我们的框架在CPU基础工具SlimPajama上性能提升高达158倍,在NVIDIA NeMo Curator的GPU基础工具上性能提升高达7.8倍。值得注意的是,SEDD大幅加速了之前耗时的MinHash签名生成阶段,相对于CPU基准,速度提升高达375倍。尽管在效率上有这些提升,SEDD仍保持了高去重精度,重复文档集的Jaccard相似度超过0.95,与标准MinHash算法识别的相似度相比。在大规模实验中,1.2万亿个标记的去重在8节点32 GPU V100集群上仅用3小时完成。相关代码已公开在GitHub(https://github.com/mcrl/SEDD)。

英文摘要:

Dataset deduplication is widely recognized as a crucial preprocessing step that enhances data quality and improves the performance of large language models. A commonly used method for this process is the MinHash Locality-Sensitive Hashing (LSH) algorithm. Recently, GPU-accelerated frameworks such as NVIDIA NeMo Curator have been introduced to handle large-scale corpora; however, they remain suboptimal due to high communication overhead from physical data shuffling and underutilization of GPU resources. In this paper, we propose SEDD, a high-performance GPU-accelerated deduplication framework optimized for distributed cluster environments. SEDD introduces a computationally efficient, partially reusable hash function, alongside highly optimized GPU kernels and a hardware-aware automatic parameter selection mechanism. By replacing traditional data shuffling with a streaming-based approach, SEDD significantly mitigates communication bottlenecks. Our framework outperforms the CPU-based deduplication tool in SlimPajama by up to 158$\times$ and the GPU-based tool in NVIDIA NeMo Curator by up to 7.8$\times$ when processing 30 million documents on a node with four GPUs. Notably, SEDD dramatically accelerates the previously time-consuming MinHash signature generation phase, achieving speedups of up to 375$\times$ over the CPU baseline. Despite these gains in efficiency, SEDD maintains high deduplication fidelity, with duplicate document sets achieving Jaccard similarities of over 0.95 compared to those identified by the standard MinHash algorithm. In large-scale experiments, the deduplication of 1.2 trillion tokens is completed in just 3 hours on an 8-node 32-GPU V100 cluster. The related code is publicly available on GitHub (https://github.com/mcrl/SEDD).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑