Backprop as Functor: Composing Learners Through Category Theory

Fong, Spivak, Tuyéras · 2017 arXiv, v3 May 2019 · LICS 2019 · structural paper, no experiments
arXiv 1711.10455 Interactive page

The learner: four parts

A learner A→B is (P, I, U, r). Click a part.

Composing two learners — step through

Functoriality: Para → Learn

Both routes land on the same learner. That is what "functor" means.

Theorem ingredients

Quadratic-error chain: request-based update vs chain ruleIllustrative values

Scalar layers I(p,a)=p·a and J(q,b)=q·b, error e=½(y−c)². Move the sliders; the numbers are computed live.

Cross-entropy: where the invertibility condition bites

Written form y·ln x + (1−y)·ln(1−x), derivative (y−x)/(x(1−x)). Computed from that formula, clipped at ±12 for display.

Coverage mapQualitative, from the episode

Color: 1 = covered, 0.5 = patched / partial, 0 = not covered. Gray = not stated.

Slips in the 2-2-1 worked example

Click a slip to locate it on the network (layer B: 2→2, layer C: 2→1).

Lens · Learner · Open game roles

Hover a row. The paper only sketches the embeddings.

Request vs difference target propagation

What the structure buys

References