Futhark中按索引归约(Reduce-by-Index)与扫描(Scan)的反向模式自动微分
Reverse-Mode AD of Reduce-by-Index and Scan in Futhark
AI总结:
该研究在Futhark中实现了并行编程基础模块的反向模式自动微分,推导通用算法并提出多种特化方案,经GPU实验验证了特化效果及高低层微分的优劣。
摘要:
我们提出并评估了Futhark中针对并行编程基础模块(归约、前缀和(扫描)、按索引归约)的反向模式自动微分(AD)实现。我们首先推导了通用情形下的算法,随后讨论了多种特化方案,这些方案能为大多数实际应用场景实现高效的微分计算。我们报告了一项在GPU执行场景下评估微分后代码性能的实验,阐明了所提特化方案的作用,以及高层微分与低层微分(即“对内存进行微分”)各自的优缺点。
英文摘要:
We present and evaluate the Futhark implementation of reverse-mode automatic differentiation (AD) for the basic blocks of parallel programming: reduce, prefix sum (scan), and reduce by index. We first present derivations of general-case algorithms and then discuss several specializations that result in efficient differentiation of most cases of practical interest. We report an experiment that evaluates the performance of the differentiated code in the context of GPU execution and highlights the impact of the proposed specializations as well as the strengths and weaknesses of differentiating at high level vs. low level (i.e., ``differentiating the memory'').
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。