FlashR:使用SSD的R编程并行和可扩展机器学习
FlashR: R-Programmed Parallel and Scalable Machine Learning using SSDs
摘要:
R是统计和机器学习最流行的程序设计语言之一,但R框架相对较慢,无法扩展到大型数据集。加速R实现的一般方法是用C或FORTRAN实现算法,并提供R包装器。FlashR采用了不同的方法:它并行执行R代码,并通过自动利用固态驱动器(SSD)来扩展代码,使其超出内存容量。它提供了少量的广义操作(GenOps),我们在R基础包中重新实现了大量的矩阵函数。因此,FlashR并行化和扩展现有的R代码,几乎没有修改。为了减少CPU和SSD之间的数据移动,FlashR延迟评估矩阵操作,在运行时融合操作,并使用缓存感知的两级矩阵分区。我们在各种机器学习和统计算法上对FlashR进行了评估,这些算法的输入高达40亿个数据点。FlashR out-of-core紧密跟踪FlashR in-memory的性能。在FlashR中执行的用于机器学习算法的R代码的性能比H2O和Spark MLlib的内存执行高出2-10倍,比Revolution R Open高出一个数量级以上。
英文摘要:
R is one of the most popular programming languages for statistics and machine learning, but the R framework is relatively slow and unable to scale to large datasets. The general approach for speeding up an implementation in R is to implement the algorithms in C or FORTRAN and provide an R wrapper. FlashR takes a different approach: it executes R code in parallel and scales the code beyond memory capacity by utilizing solid-state drives (SSDs) automatically. It provides a small number of generalized operations (GenOps) upon which we reimplement a large number of matrix functions in the R base package. As such, FlashR parallelizes and scales existing R code with little/no modification. To reduce data movement between CPU and SSDs, FlashR evaluates matrix operations lazily, fuses operations at runtime, and uses cache-aware, two-level matrix partitioning. We evaluate FlashR on a variety of machine learning and statistics algorithms on inputs of up to four billion data points. FlashR out-of-core tracks closely the performance of FlashR in-memory. The R code for machine learning algorithms executed in FlashR outperforms the in-memory execution of H2O and Spark MLlib by a factor of 2-10 and outperforms Revolution R Open by more than an order of magnitude.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。