机器学习算法中的缓存调度
Cache Bypassing for Machine Learning Algorithms
摘要:
图形处理单元(GPU)曾经仅用于图形计算任务,但随着机器学习应用的使用增加,在过去几年中,使用GPU来执行通用计算的情况有所增加。GPU采用大量线程来执行任务,这些线程反过来又实现了高并行度。虽然GPU具有很高的计算能力,但由于它们使用的SIMT模型,它们面临着缓存争用的问题。这个问题的解决方案称为"缓存旁路"。本文提出了一种预测模型,分析各种机器学习算法的访问模式,并确定是否应将某些数据存储在缓存中。它展示了每个模型在不同数据集上的表现,并展示了最小化每个模型的大小将如何影响其性能。大多数模型的性能都在90%左右,其中KNN表现最好,但不是最小的大小。我们通过将地址分割成4字节的块来进一步增加功能。我们观察到,这大大提高了神经网络的性能,并将三个神经元的准确率提高到99.9%。
英文摘要:
Graphics Processing Units (GPUs) were once used solely for graphical computation tasks but with the increase in the use of machine learning applications, the use of GPUs to perform general-purpose computing has increased in the last few years. GPUs employ a massive amount of threads, that in turn achieve a high amount of parallelism, to perform tasks. Though GPUs have a high amount of computation power, they face the problem of cache contention due to the SIMT model that they use. A solution to this problem is called "cache bypassing". This paper presents a predictive model that analyzes the access patterns of various machine learning algorithms and determines whether certain data should be stored in the cache or not. It presents insights on how well each model performs on different datasets and also shows how minimizing the size of each model will affect its performance The performance of most of the models were found to be around 90% with KNN performing the best but not with the smallest size. We further increase the features by splitting the addresses into chunks of 4 bytes. We observe that this increased the performance of the neural network substantially and increased the accuracy to 99.9% with three neurons.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。