Rose: Composable Autodiff for the Interactive Web (Artifact)

Authors Sam Estep , Wode Ni , Raven Rothkopf , Joshua Sunshine



PDF
Thumbnail PDF

Artifact Description

DARTS.10.2.7.pdf
  • Filesize: 0.49 MB
  • 4 pages

Document Identifiers

Author Details

Sam Estep
  • Software and Societal Systems Department, Carnegie Mellon University, Pittsburgh, PA, USA
Wode Ni
  • Software and Societal Systems Department, Carnegie Mellon University, Pittsburgh, PA, USA
Raven Rothkopf
  • Barnard College, Columbia University, New York, NY, USA
Joshua Sunshine
  • Software and Societal Systems Department, Carnegie Mellon University, Pittsburgh, PA, USA

Cite AsGet BibTex

Sam Estep, Wode Ni, Raven Rothkopf, and Joshua Sunshine. Rose: Composable Autodiff for the Interactive Web (Artifact). In Special Issue of the 38th European Conference on Object-Oriented Programming (ECOOP 2024). Dagstuhl Artifacts Series (DARTS), Volume 10, Issue 2, pp. 7:1-7:4, Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2024)
https://doi.org/10.4230/DARTS.10.2.7

Artifact

Artifact Evaluation Policy

The artifact has been evaluated as described in the ECOOP 2024 Call for Artifacts and the ACM Artifact Review and Badging Policy.

Abstract

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 document accompanies the research paper introducing 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.

Subject Classification

ACM Subject Classification
  • Software and its engineering → Compilers
  • Information systems → Web applications
  • Software and its engineering → Domain specific languages
  • Computing methodologies → Symbolic and algebraic manipulation
  • Software and its engineering → Formal language definitions
  • General and reference → Performance
  • Computing methodologies → Neural networks
Keywords
  • Automatic differentiation
  • differentiable programming
  • compilers
  • web

Metrics

Questions / Remarks / Feedback
X

Feedback for Dagstuhl Publishing


Thanks for your feedback!

Feedback submitted

Could not send message

Please try again later or send an E-mail