arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2305.01041math.CTcs.PL
收藏

字符串图的数据并行算法

Data-Parallel Algorithms for String Diagrams

Paul Wilson, Fabio Zanasi

AI总结:

本文提出以ACSet结构化余跨度表示字符串图的数据并行算法,支持多种图操作,可映射为光学图,还实现了基于反向导数的梯度学习器符号计算,适用于多类硬件与语言场景。

摘要:

我们提出了针对以ACSet的结构化余跨度表示的字符串图的并行算法。具体而言,我们给出了用于合成、张量积、从任意Σ-项构建图,以及将函子应用于图的线性(串行)时间算法和对数(并行)时间算法。我们的数据结构既能表示任意签名上的自由对称幺半范畴的态射,也能表示具有选定特殊弗罗贝尼乌斯结构的态射。我们展示了如何利用这种额外的(超图)结构将图映射为光学(optics)图。由此我们开展了一项案例研究,定义了一种基于反向导数高效计算基于梯度的学习器符号表示的算法。本文提出的工作旨在作为一种通用数据结构发挥作用。其实现仅需整数数组和成熟算法,且从构造上具备数据并行性。因此我们预计它可应用于广泛场景,包括嵌入式与并行硬件以及底层语言。

英文摘要:

We give parallel algorithms for string diagrams represented as structured cospans of ACSets. Specifically, we give linear (sequential) and logarithmic (parallel) time algorithms for composition, tensor product, construction of diagrams from arbitrary $Σ$-terms, and application of functors to diagrams. Our datastructure can represent morphisms of both the free symmetric monoidal category over an arbitrary signature as well as those with a chosen Special Frobenius structure. We show how this additional (hypergraph) structure can be used to map diagrams to diagrams of optics. This leads to a case study in which we define an algorithm for efficiently computing symbolic representations of gradient-based learners based on reverse derivatives. The work we present here is intended to be useful as a general purpose datastructure. Implementation requires only integer arrays and well-known algorithms, and is data-parallel by constuction. We therefore expect it to be applicable to a wide variety of settings, including embedded and parallel hardware and low-level languages.

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

↑