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

Rose:面向交互式Web的可组合自动微分

Rose: Composable Autodiff for the Interactive Web

Sam Estep, Wode Ni, Raven Rothkopf, Joshua Sunshine

AI总结:

针对现有自动微分框架不适配Web环境的问题,本研究提出轻量级Web自动微分框架Rose,采用融合追踪与变换的混合反向模式自动微分方法,性能较现有Web端方案高出数个数量级,可支撑交互式可微计算场景。

摘要:

反向模式自动微分(autodiff)因深度学习得到广泛应用,但其计算梯度的能力在交互式场景中同样极具价值,例如双向计算机辅助设计、嵌入式物理模拟、因果推断可视化等。遗憾的是,现有自动微分框架难以适配Web环境:它们采用的自动微分策略在动态标量程序上表现不佳,且引入的依赖项过于庞大,会导致网页体积大到无法接受。本研究提出Rose——一款面向Web的轻量级自动微分框架,采用一种全新的反向模式自动微分混合方法,融合了传统的追踪与变换技术,既利用宿主语言实现元编程,又允许程序员显式定义可复用函数,以构成更大型的可微计算。我们通过移植两个可微物理模拟验证了Rose设计的价值,并在一款基于优化的绘图应用上评估了其性能,结果显示Rose的性能比当前最先进的Web端自动微分工具高出数个数量级。

英文摘要:

Reverse-mode automatic differentiation (autodiff) has been popularized by deep learning, but its ability to compute gradients is also valuable for interactive use cases such as bidirectional computer-aided design, embedded physics simulations, visualizing causal inference, and more. Unfortunately, the web is ill-served by existing autodiff frameworks, which use autodiff strategies that perform poorly on dynamic scalar programs, and pull in heavy dependencies that would result in unacceptable webpage sizes. This work introduces Rose, a lightweight autodiff framework for the web using a new hybrid approach to reverse-mode autodiff, blending conventional tracing and transformation techniques in a way that uses the host language for metaprogramming while also allowing the programmer to explicitly define reusable functions that comprise a larger differentiable computation. We demonstrate the value of the Rose design by porting two differentiable physics simulations, and evaluate its performance on an optimization-based diagramming application, showing Rose outperforming the state-of-the-art in web-based autodiff by multiple orders of magnitude.

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

↑