How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Backpropagation through a finite shared-parameter recurrence
Definition
Let , let and be open, let be an integer, and fix . A map is continuously differentiable here when it is totally differentiable at every point of its open domain and its derivative matrix varies continuously there. A finite shared-parameter recurrence consists of an initial-state map , transition maps for , and a scalar loss , all continuously differentiable on open domains containing the evaluated inputs. Put , , and . A fixed collection of external inputs, such as the observations at successive time steps, may be built into the maps . The same parameter vector is supplied to every transition.
For each map, its registered local derivative is the total derivative with respect to the indicated variable while the other displayed variables are held fixed. Transposes are Euclidean adjoints for the stated coordinate inner products. Evaluate and store . If a map is undefined, return DOMAIN_ERROR. For piecewise- maps, use only the derivative on a unique strict active branch; if any evaluated input lies on a branch boundary or has ambiguous branch selection, return NONDIFFERENTIABLE and no gradient.
Initialize and . For , set , , then update
After the reverse sweep, set and return . For , the reverse loop is empty and the same initialization and final update apply. All derivative calculations in this procedure are real-arithmetic operations on the specified maps; no floating-point accuracy guarantee is asserted.
The diagram shows the finite unrolling: arrows point from an input value to the operation that uses it. The single node feeds each transition and the loss, so the reverse updates add all of those contributions into the same accumulator ; the cotangents flow from right to left. The diagram illustrates the algorithm, and no correctness proof relies on it.
Definition references
Remarks
This is a mathematical real-arithmetic procedure. A floating-point implementation may round its primal values and local derivatives; the definition supplies no numerical error estimate.
Depends on
- Finite straight-line computational programs and real-arithmetic tapes
- Continuously differentiable maps, local inverses, and local diffeomorphisms
- The total (Fréchet) derivative $Df(a)$ as the linear first-order approximation with $o(\|h\|_2)$ remainder
- Reverse-mode automatic differentiation for a scalar graph output
Used by
Dependency tree · two levels
10 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.
Sources
- Atılım Güneş Baydin, Barak A. Pearlmutter, Alexey Andreyevich Radul, and Jeffrey Mark Siskind, Automatic Differentiation in Machine Learning: a Survey, §§3.1–3.2 (standard reference, not scraped)
- MIT OpenCourseWare 18.S096, Matrix Calculus for Machine Learning and Beyond, Lecture 5 Part 3, §§8.3–8.4 (standard reference, not scraped)