Backpropagation in the Simply Typed Lambda-calculus with Linear Negation
Alois Brunel, Damiano Mazza, Michele Pagani

TL;DR
This paper extends backpropagation to a lambda-calculus with linear negation, providing a logical, effect-free framework for automatic differentiation in differentiable programming languages.
Contribution
It introduces a compositional program transformation for the simply-typed lambda-calculus with linear negation that computes gradients efficiently and effect-free, offering a logical perspective on backpropagation.
Findings
The transformation computes gradients with the same efficiency as traditional backpropagation.
It is effect-free and purely logical, enhancing theoretical understanding.
The approach bridges differentiable programming with formal logical systems.
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Graph Neural Networks · Computability, Logic, AI Algorithms · Logic, programming, and type systems
