arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.02682cs.DC
收藏

EinDecomp:声明式指定的机器学习与数值计算面向并行执行的分解

EinDecomp: Decomposition of Declaratively-Specified Machine Learning and Numerical Computations for Parallel Execution

Daniel Bourgeois, Zhimin Ding, Dimitrije Jankov, Jiehui Li, Mahmoud Sleem, Yuxin Tang, Jiawen Yao, Xinyu Yao, Chris Jermaine

AI总结:

本文提出基于扩展爱因斯坦求和记法的声明式编程抽象,将张量计算重写为张量关系计算以统一数据并行与模型并行,并研究最优分解算法,通过实验验证其价值。

摘要:

我们考虑自动分解张量或数组上的运算,使其能够在多个设备上并行执行的问题。我们处理两个密切相关的问题。首先,基于张量的计算系统应提供何种编程抽象以支持此类分解?其次,在给定该抽象的情况下,此类系统应如何自动分解基于张量的计算?我们主张,基于张量的系统应提供一种基于扩展爱因斯坦求和记法的编程抽象,该记法是对张量计算的完全声明式数学规范。我们证明,任何以爱因斯坦求和记法指定的计算都可以重写为等价的张量关系计算,并且这种重写推广了现有的张量并行表示,例如“数据并行”和“模型并行”。我们考虑在扩展爱因斯坦求和记法指定的运算图上最优计算张量关系分解的算法问题,并通过实验展示了我们所开发算法的价值。

英文摘要:

We consider the problem of automatically decomposing operations over tensors or arrays so that they can be executed in parallel on multiple devices. We address two, closely-linked questions. First, what programming abstraction should systems for tensor-based computing offer to enable such decompositions? Second, given that abstraction, how should such systems automatically decompose a tensor-based computation? We assert that tensor-based systems should offer a programming abstraction based on an extended Einstein summation notation, which is a fully declarative, mathematical specification for tensor computations. We show that any computation specified in the Einstein summation notation can be re-written into an equivalent tensor-relational computation, and this re-write generalizes existing notations of tensor parallelism such as "data parallel'' and "model parallel.'' We consider the algorithmic problem of optimally computing a tensor-relational decomposition of a graph of operations specified in our extended Einstein summation notation, and we experimentally show the value of the algorithm that we develop.

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

↑