vix.ing · top · new · best · stats · spec

Backpropagation in the simply typed lambda-calculus with linear negation

2019/09/27 by Alois Brunel, Aloïs Brunel, Damiano Mazza +1 · 2 voices
Computer Science · #Advanced Graph Neural Networks #Computability, Logic, AI Algorithms #Logic, programming, and type systems #cs.LG #cs.LO #cs.PL

paper · pdf · doi:10.1145/3371132

arxiv published 2019/09/27 · openalex created_date 2019/10/03 · arxiv updated 2019/11/06 · openalex publication_date 2019/12/20 · openalex updated_date 2026/07/28

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.

Citations

Discussions

Related