about
Backpropagation in the Simply Typed Lambda-Calculus with Linear Negation (arxiv.org)
3 points by headalgorithm on Oct 3, 2019 | hide | past | pdf | discuss on HN

In plain words: Backpropagation is extended to a higher-order language with functions like map and fold: each program is rewritten to compute its gradient, pairing every value with its sensitivity. The rewrite runs as fast as standard backpropagation on first-order graphs and uses no side effects.

Abstract · Backpropagation in the Simply Typed Lambda-calculus with Linear Negation

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.

Alois Brunel, Damiano Mazza, Michele Pagani
arXiv:1909.13768 · cs.LO, cs.LG, cs.PL · submitted Sep 27, 2019 · updated Nov 6, 2019
abstract · pdf · html · 27 pages

add comment on HN
Also discussed: Nov 2019 (2 points, 1 comment)