跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 数学软件

arXiv:2010.01709 (cs)
[提交于 2022年8月5日]

标题:Instead of Rewriting Foreign Code for Machine Learning, Automatically Synthesize Fast Gradients

作者:William S. Moses, Valentin Churavy
查看论文《Instead of Rewriting Foreign Code for Machine Learning, Automatically Synthesize Fast Gradients》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Applying differentiable programming techniques and machine learning algorithms to foreign programs requires developers to either rewrite their code in a machine learning framework, or otherwise provide derivatives of the foreign code. This paper presents Enzyme, a high-performance automatic differentiation (AD) compiler plugin for the LLVM compiler framework capable of synthesizing gradients of statically analyzable programs expressed in the LLVM intermediate representation (IR). Enzyme synthesizes gradients for programs written in any language whose compiler targets LLVM IR including C, C++, Fortran, Julia, Rust, Swift, MLIR, etc., thereby providing native AD capabilities in these languages. Unlike traditional source-to-source and operator-overloading tools, Enzyme performs AD on optimized IR. On a machine-learning focused benchmark suite including Microsoft's ADBench, AD on optimized IR achieves a geometric mean speedup of 4.5x over AD on IR before optimization allowing Enzyme to achieve state-of-the-art performance. Packaging Enzyme for PyTorch and TensorFlow provides convenient access to gradients of foreign code with state-of-the art performance, enabling foreign code to be directly incorporated into existing machine learning workflows.
评论: To be published in NeurIPS 2020
主题: 数学软件 (cs.MS); 人工智能 (cs.AI); 机器学习 (cs.LG); 性能 (cs.PF); 程序设计语言 (cs.PL)
引用方式: arXiv:2010.01709 [cs.MS]
  (或者 arXiv:2010.01709v1 [cs.MS] 对于此版本)
  https://doi.org/10.48550/arXiv.2010.01709
相关 DOI: https://doi.org/10.5555/3495724.3496770

提交历史

来自:William S. Moses
[v1] 2022年8月5日 星期五 00:00:00 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.MS
< 上一篇   |   下一篇 >
最新 | 近期 | 2022-08
切换浏览方式为:
cs
cs.AI
cs.LG
cs.PF
cs.PL

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站