Lune

POPL2020Top-tier venue

Backpropagation in the simply typed lambda-calculus with linear negation

Aloïs Brunel, Damiano Mazza, Michele Pagani

Abstract

Backpropagation is a classic automatic differentiation algorithm computing the gradient of functions specified by a certain class of simple, first-order programs, called computational graphs. It is a fundamental tool in several fields, most notably machine learning, where it is the key for efficiently training (deep) neural networks. Recent years have witnessed the quick growth of a research field called differentiable programming, the aim of which is to express computational graphs more synthetically and modularly by resorting to actual programming languages endowed with control flow operators and higher-order combinators, such as map and fold. In this paper, we extend the backpropagation algorithm to a paradigmatic example of such a programming language: we define a compositional program transformation from the simply-typed lambda-calculus to itself augmented with a notion of linear negation, and prove that this computes the gradient of the source program with the same efficiency as first-order backpropagation. The transformation is completely effect-free and thus provides a purely logical understanding of the dynamics of backpropagation.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

13 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • You Only Linearize Once: Tangents Transpose to Gradients cites Provably correct, asymptotically efficient, higher-order reverse-mode automatic differentiation
  • You Only Linearize Once: Tangents Transpose to Gradients cites Automatic differentiation in PCF
  • Provably correct, asymptotically efficient, higher-order reverse-mode automatic differentiation cites Automatic differentiation in PCF
  • Efficient Dual-Numbers Reverse AD via Well-Known Program Transformations cites Provably correct, asymptotically efficient, higher-order reverse-mode automatic differentiation
  • Efficient Dual-Numbers Reverse AD via Well-Known Program Transformations cites Automatic differentiation in PCF
  • ADEV: Sound Automatic Differentiation of Expected Values of Probabilistic Programs cites Provably correct, asymptotically efficient, higher-order reverse-mode automatic differentiation
  • ADEV: Sound Automatic Differentiation of Expected Values of Probabilistic Programs cites Automatic differentiation in PCF
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers13

  1. Automatic differentiation in PCFDamiano Mazza, Michele PaganiPOPL 2021 · 47 citations
  2. Provably correct, asymptotically efficient, higher-order reverse-mode automatic differentiationFaustyna Krawiec, Simon Peyton Jones, Neel Krishnaswami, Tom Ellis et al.POPL 2022 · 27 citations
  3. ADEV: Sound Automatic Differentiation of Expected Values of Probabilistic ProgramsAlexander K. Lew, Mathieu Huot, Sam Staton, Vikash K. MansinghkaPOPL 2023 · 16 citations
  4. You Only Linearize Once: Tangents Transpose to GradientsAlexey Radul, Adam Paszke, Roy Frostig, Matthew J. Johnson et al.POPL 2023 · 13 citations
  5. Efficient Dual-Numbers Reverse AD via Well-Known Program TransformationsTom Smeding, Matthijs VákárPOPL 2023 · 10 citations

Related papers

  1. δ is for DialecticaMarie Morgane Kerjean, Pierre-Marie PédrotLICS 2024 · 1 citation
  2. A simple differentiable programming languageMartín Abadi, Gordon D. PlotkinPOPL 2020 · 49 citations
  3. Compositional Taylor expansion in cartesian differential categoriesAymeric WalchLICS 2025
  4. 𝜆ₛ: computable semantics for differentiable programming with higher-order functions and datatypesBenjamin Sherman, Jesse Michel, Michael CarbinPOPL 2021 · 11 citations
  5. JAX Autodiff from a Linear Logic PerspectiveGiulia Giusti, Michele PaganiPOPL 2026
Dusk over the sea between two cliffs drawn in fine vertical lines