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.
Reverse accumulation sums gradients over shared parameter uses
Statement
Let , let and be open, and let be a nonnegative integer. Suppose , for , and are continuously differentiable on open domains containing the trajectory at . A continuously differentiable map is totally differentiable at each point and has a derivative matrix continuous on its domain. Define , , and . Write and , with each partial derivative holding the other argument fixed. Set and, in descending order, . Then the backpropagation algorithm returns and
where the sum is empty when . The statement also applies when every primitive is evaluated on one fixed strict branch; it makes no assertion at a branch boundary.
Facts & Assumptions
Given: The finite recurrence, its open domains, the parameter , the fixed strict branch when maps are piecewise-, and the scalar objective .
Finite straight-line computational programs and real-arithmetic tapes: a finite topologically ordered program has a scalar output, and repeated parent slots are separate uses in its dependency graph.
Backpropagation through a finite shared-parameter recurrence: the forward pass computes ; the reverse pass initializes the loss cotangent, adds each transition's parameter pullback to the same parameter accumulator, propagates the state cotangent backward, and finally pulls back through .
Reverse mode computes the exact gradient of the real-arithmetic graph: on a finite program and fixed strict branch, reverse mode returns the exact derivative transpose of its scalar output.
The chain rule for total derivatives: : for totally differentiable finite-dimensional maps, the total derivative of a composition is the ordered composition of their total derivatives.
Proof
Since is finite, the initial map, transition evaluations, and scalar loss form a finite program whose one parameter input is used at each transition and at the loss. Each map is on an open domain containing the trajectory, so repeated application of [F4] makes differentiable there; on a fixed strict branch the same conclusion holds branchwise.
The algorithm's primal pass evaluates this unrolled program. Its reverse pass seeds the loss, visits transitions in descending order, and sends each transition's parameter pullback to the same input while sending its state pullback to ; the initial-state pullback is then added at . This is the reverse sweep on the finite graph in [F1], so [F3] gives the exact gradient of .
The terminal state's cotangent is . At transition , the chain rule gives the cotangent at as and adds to the derivative with respect to the shared parameter while is held fixed. Descending induction therefore gives the stated recurrence and sums one parameter contribution for each of the transition uses.
The loss's direct dependence on contributes , and the dependence of contributes . Adding these to the transition contributions from step 2.2 gives the displayed formula. If , there are no transition terms and the same chain rule reduces to the two remaining terms. This is exactly the algorithm's return value and gradient.
Depends on
Used by
- Exact tiled softmax attention with block-recomputed vector-Jacobian products Algorithm
- A wide tanh network stays lazy on a fixed time horizon Example
- Backpropagation through a two-layer network with a shared weight Example
- Finite-data fixed-time NTK stability under integrably bounded training directions Lemma
- Gradient descent induces an exact output Gram update with a Taylor remainder Lemma
- Parameter-ball control of the last-layer Gram and loss Hessian Lemma
- Exact stationary sensitivities and finite training derivatives are different Remark
- Exact merging and gradients for a low-rank adapter Theorem
- Tiled attention and its recomputed reverse pass are exact Theorem
- Wide fully connected networks converge geometrically to zero empirical training loss Theorem
- Wide residual networks converge geometrically to zero empirical loss with polynomial depth dependence Theorem
Dependency tree · two levels
11 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.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)