Xorbits:为分布式数据科学自动化算子分块
Xorbits: Automating Operator Tiling for Distributed Data Science
AI总结:
针对单节点工具无法处理大规模数据及现有分布式系统易因分区不当导致OOM的问题,提出Xorbits框架,通过动态切换图构建与执行实现自动化算子分块,在保持高API兼容率的同时有效避免OOM与数据倾斜,并取得显著加速。
摘要:
数据科学流水线通常利用数据帧和数组操作来完成数据预处理、分析和机器学习等任务。这些任务最流行的工具是pandas和NumPy。然而,这些工具仅限于在单节点上执行,使其不适合处理大规模数据。一些系统试图将数据科学应用分发到集群,同时保持类似于单节点库的接口,使数据科学家能够毫不费力地扩展其工作负载。然而,现有系统在处理大型数据集时经常遇到困难,这是由于数据分区不当导致的内存不足(OOM)问题。为了克服这些挑战,我们开发了Xorbits,这是一个高性能、可扩展的数据科学框架,专门设计用于在集群中分发数据科学工作负载,同时保留熟悉的API。Xorbits的关键区别在于它能够在图构建和图执行之间动态切换。Xorbits已成功部署在拥有多达5k个CPU核心的生产环境中。其应用涵盖各个领域,包括电子商务领域的用户行为分析和推荐系统,以及金融行业的信用评估和风险管理。用户只需更改其pandas和NumPy代码的import行,即可轻松扩展其数据科学工作负载。我们的实验表明,Xorbits能够有效处理非常大的数据集,而不会遇到OOM或数据倾斜问题。与最快的最先进解决方案相比,Xorbits平均实现了2.66倍的加速。在API覆盖率方面,Xorbits达到了96.7%的兼容性,以60个百分点的巨大优势超越了最快的框架。Xorbits可在https://github.com/xorbitsai/xorbits获取。
英文摘要:
Data science pipelines commonly utilize dataframe and array operations for tasks such as data preprocessing, analysis, and machine learning. The most popular tools for these tasks are pandas and NumPy. However, these tools are limited to executing on a single node, making them unsuitable for processing large-scale data. Several systems have attempted to distribute data science applications to clusters while maintaining interfaces similar to single-node libraries, enabling data scientists to scale their workloads without significant effort. However, existing systems often struggle with processing large datasets due to Out-of-Memory (OOM) problems caused by poor data partitioning. To overcome these challenges, we develop Xorbits, a high-performance, scalable data science framework specifically designed to distribute data science workloads across clusters while retaining familiar APIs. The key differentiator of Xorbits is its ability to dynamically switch between graph construction and graph execution. Xorbits has been successfully deployed in production environments with up to 5k CPU cores. Its applications span various domains, including user behavior analysis and recommendation systems in the e-commerce sector, as well as credit assessment and risk management in the finance industry. Users can easily scale their data science workloads by simply changing the import line of their pandas and NumPy code. Our experiments demonstrate that Xorbits can effectively process very large datasets without encountering OOM or data-skewing problems. Over the fastest state-of-the-art solutions, Xorbits achieves an impressive 2.66* speedup on average. In terms of API coverage, Xorbits attains a compatibility rate of 96.7%, surpassing the fastest framework by an impressive margin of 60 percentage points. Xorbits is available at https://github.com/xorbitsai/xorbits.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。