# Reverse-mode automatic differentiation

Date: 1970 · Era: I · Foundations · Category: theory · Significance: 3/5
People: Seppo Linnainmaa
Organisations: University of Helsinki

Canonical: https://shapeofintelligence.com/timeline/1970-linnainmaa-backprop/ · Dataset and text CC BY 4.0

> Seppo Linnainmaa's master's thesis gives the algorithm for computing all the derivatives of a nested function in one backward sweep, the mathematics of backpropagation.

## What had to happen

A root. Nothing in the archive precedes it.

In 1970 a Finnish master's student, Seppo Linnainmaa, was studying how rounding errors accumulate through a long computation. To track them he needed the derivative of the final result with respect to every intermediate value, and he found that all of them could be obtained by a single pass backwards through the computation, applying the chain rule in reverse. The cost was about the same as running the computation forwards once, however many inputs there were.

He was not thinking about neural networks and the thesis, in Finnish, was not read by anyone who was. But the reverse mode of automatic differentiation is exactly the algorithm that a network needs to learn: propagate the error backwards from the output, and each weight receives the derivative of the loss with respect to itself. Paul Werbos applied the idea to networks in 1974. Rumelhart, Hinton and Williams made it famous in 1986.

Every deep learning framework, from Theano to PyTorch, is at bottom an implementation of Linnainmaa's backward sweep over an arbitrary graph of operations. The word autograd is his idea with a shorter name. He received little credit for decades; Andreas Griewank's 2012 history of the question is titled with it.

## What it led to

98 events downstream, through 2026.

Built on it directly:

- [1974 · Werbos applies backpropagation to neural networks](https://shapeofintelligence.com/md/timeline/1974-werbos-backprop/)
- [1986 · Backpropagation](https://shapeofintelligence.com/md/timeline/1986-backpropagation/)

And, through them, by era:

- II · Connection: 2 events
- W2 · The second winter: 6 events
- III · Statistics and data: 9 events
- IV · Deep learning: 18 events
- V · Transformers: 18 events
- VI · Everyone: 29 events
- VII · Agents: 14 events

## Sources

- [Taylor expansion of the accumulated rounding error (BIT Numerical Mathematics, 1976)](https://doi.org/10.1007/BF01931367) — paper
- [Who invented the reverse mode of differentiation? (Griewank, Documenta Mathematica, 2012)](https://www.math.uni-bielefeld.de/documenta/vol-ismp/52_griewank-andreas-b.pdf) — paper

---

The Shape of Intelligence by Jamie McKaye (https://jamiemckaye.com) · Markdown mirror of https://shapeofintelligence.com/timeline/1970-linnainmaa-backprop/

Before: [1969 · Perceptrons](https://shapeofintelligence.com/md/timeline/1969-perceptrons-book/) · After: [1971 · SHRDLU understands a world of blocks](https://shapeofintelligence.com/md/timeline/1971-shrdlu/)
