arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.14441eess.SYcs.LGcs.SY
收藏

DMC4ML:机器学习的数据移动复杂度

DMC4ML: Data Movement Complexity for Machine Learning

Chen Ding, Christopher Kanan, Dylan McKellips, Toranosuke Ozawa, Arian Shahmirza, Wesley Smith

AI总结:

本文提出DMC4ML,通过抽象内存层次上的渐近符号分析,衡量Transformer、空间卷积和FFT的数据移动成本,并指导算法参数选择。

摘要:

当今计算的最大需求是机器学习。本文分析了三种机器学习算法:Transformer、空间卷积和FFT。该分析在三个方面具有新颖性。首先,它在抽象内存层次结构上衡量内存访问成本,而非传统的时间或空间复杂度。其次,该分析是渐近的,并识别了内存成本的主要来源。最后,结果是符号化的,可用于选择算法参数,例如针对任意维度大小和头数的分组查询注意力中的组大小,以及针对任意图像大小和核大小的批量卷积中的批大小。

英文摘要:

The greatest demand for today's computing is machine learning. This paper analyzes three machine learning algorithms: transformers, spatial convolution, and FFT. The analysis is novel in three aspects. First, it measures the cost of memory access on an abstract memory hierarchy, instead of traditional time or space complexity. Second, the analysis is asymptotic and identifies the primary sources of the memory cost. Finally, the result is symbolic, which can be used to select algorithmic parameters such as the group size in grouped query attention for any dimension size and number of heads and the batch size for batched convolution for any image size and kernel size.

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

↑