计算机科学 > 程序设计语言
[提交于 2023年10月6日]
标题:Reverse-Mode AD of Reduce-by-Index and Scan in Futhark
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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'').
提交历史
来自:Cosmin Oancea[v1] 2023年10月6日 星期五 00:00:00 UTC