Lune

POPL2026顶会

JAX Autodiff from a Linear Logic Perspective

Giulia Giusti, Michele Pagani

摘要

JAX Autodiff refers to the core of the automatic differentiation (AD) systems developed in projects like JAX and Dex. JAX Autodiff has recently been formalised in a linear typed calculus by Radul et al in POPL 2023. Although this formalisation suffices to express the main program transformations of AD, the calculus is very specific to this task, and it is not clear whether the type system yields a substructural logic that has interest on its own. We propose an encoding of JAX Autodiff into a linear λ- calculus that enjoys a Curry-Howard correspondence with Girard’s linear logic. We prove that the encoding is sound both qualitatively (the encoded terms are extensionally equivalent to the original ones) and quantitatively (the encoding preserves the original work cost as described by Radul et al. As a byproduct, we show that unzipping, one of the transformations used to implement backpropagation in JAX Autodiff, is, in fact, optional.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • You Only Linearize Once: Tangents Transpose to Gradients 引用了 Provably correct, asymptotically efficient, higher-order reverse-mode automatic differentiation
  • You Only Linearize Once: Tangents Transpose to Gradients 引用了 Automatic differentiation in PCF
  • You Only Linearize Once: Tangents Transpose to Gradients 引用了 Backpropagation in the simply typed lambda-calculus with linear negation
  • You Only Linearize Once: Tangents Transpose to Gradients 引用了 A simple differentiable programming language
  • Provably correct, asymptotically efficient, higher-order reverse-mode automatic differentiation 引用了 Automatic differentiation in PCF
  • Provably correct, asymptotically efficient, higher-order reverse-mode automatic differentiation 引用了 Backpropagation in the simply typed lambda-calculus with linear negation
  • Provably correct, asymptotically efficient, higher-order reverse-mode automatic differentiation 引用了 A simple differentiable programming language
  • Automatic differentiation in PCF 引用了 Backpropagation in the simply typed lambda-calculus with linear negation
  • Automatic differentiation in PCF 引用了 A simple differentiable programming language
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper8

  1. A simple differentiable programming languageMartín Abadi, Gordon D. PlotkinPOPL 2020 · 49 次引用
  2. Automatic differentiation in PCFDamiano Mazza, Michele PaganiPOPL 2021 · 47 次引用
  3. Provably correct, asymptotically efficient, higher-order reverse-mode automatic differentiationFaustyna Krawiec, Simon Peyton Jones, Neel Krishnaswami, Tom Ellis 等POPL 2022 · 27 次引用
  4. Backpropagation in the simply typed lambda-calculus with linear negationAloïs Brunel, Damiano Mazza, Michele PaganiPOPL 2020 · 24 次引用
  5. You Only Linearize Once: Tangents Transpose to GradientsAlexey Radul, Adam Paszke, Roy Frostig, Matthew J. Johnson 等POPL 2023 · 13 次引用

相关 Paper

  1. δ is for DialecticaMarie Morgane Kerjean, Pierre-Marie PédrotLICS 2024 · 1 次引用
  2. Automatic Functional Differentiation in JAXMin LinICLR 2024 · 5 次引用
  3. A Simple and Efficient Tensor CalculusSören Laue, Matthias Mitterreiter, Joachim GiesenAAAI 2020 · 40 次引用
  4. Compositional Taylor expansion in cartesian differential categoriesAymeric WalchLICS 2025
  5. Fuzzing Automatic Differentiation in Deep-Learning LibrariesChenyuan Yang, Yinlin Deng, Jiayi Yao, Yuxing Tu 等ICSE 2023 · 34 次引用
黄昏的海面,两侧是细线勾勒的悬崖