MSLGSESep 25, 2021

AbstractDifferentiation.jl: Backend-Agnostic Differentiable Programming in Julia

arXiv:2109.12449v25 citations
AI Analysis

This addresses a domain-specific issue for Julia programmers working with AD, offering an incremental improvement in usability and development efficiency.

The paper tackles the problem of switching and composing Automatic Differentiation (AD) systems in Julia by presenting AbstractDifferentiation.jl, which automates the generation of a unified API, reducing boilerplate code for developers and enabling easy AD system selection for users.

No single Automatic Differentiation (AD) system is the optimal choice for all problems. This means informed selection of an AD system and combinations can be a problem-specific variable that can greatly impact performance. In the Julia programming language, the major AD systems target the same input and thus in theory can compose. Hitherto, switching between AD packages in the Julia Language required end-users to familiarize themselves with the user-facing API of the respective packages. Furthermore, implementing a new, usable AD package required AD package developers to write boilerplate code to define convenience API functions for end-users. As a response to these issues, we present AbstractDifferentiation.jl for the automatized generation of an extensive, unified, user-facing API for any AD package. By splitting the complexity between AD users and AD developers, AD package developers only need to implement one or two primitive definitions to support various utilities for AD users like Jacobians, Hessians and lazy product operators from native primitives such as pullbacks or pushforwards, thus removing tedious -- but so far inevitable -- boilerplate code, and enabling the easy switching and composing between AD implementations for end-users.

Code Implementations3 repos
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes