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.
Adjoint hypergradient with a measured linear-solve residual
Definition
Input positive dimensions , open sets and , and scalar functions and , a point , and finite real-arithmetic computational graphs whose outputs equal and on open neighborhoods of the evaluated inputs. The graph primitives for are and those for are . Here means total differentiability with continuous derivative, means the derivative map is , and all graph evaluations must remain on one unique strict branch. Define , , , with held fixed, and ; all gradients are column vectors. Also input a tolerance , a positive integer solve budget , a number , and a valid certificate that the evaluated inner Hessian is symmetric and satisfies for every . Finally input a deterministic solver with the following contract: on a real symmetric positive-definite linear operator and a right-hand side, terminates within iterations and returns either a failure status or a vector and a report saying whether its own stopping test passed. The algorithm does not trust that report as an accuracy certificate; it recomputes the residual. All derivative and solver operations in this definition use exact real arithmetic.
If any graph evaluation is outside its declared domain, return DOMAIN_ERROR. If any piecewise primitive is at a branch boundary or has no unique strict active branch, return NONDIFFERENTIABLE and no gradient. Otherwise, use reverse mode on and take the state block of its returned gradient as the inner residual . Use reverse mode on and take its parameter and state blocks as and . In these expressions is the derivative with held fixed, and and are column vectors.
For any , apply forward-over-reverse Hessian-vector differentiation to at in direction . Let and denote projection onto the parameter and state coordinates of the returned vector. Define and . Hessian symmetry makes and .
Call on and right-hand side with tolerance and budget . If returns failure, return with no hypergradient. If it returns a vector , compute the actual linear residual and the reported hypergradient estimate . Return exactly when the solver reports its stopping test passed and ; otherwise return the same numerical values with status TOLERANCE_OR_BUDGET_NOT_MET. The procedure makes no floating-point accuracy claim.
Definition references
Stationarity residual, Hessian and mixed derivative, outer objective, and column-gradient convention
Finite C1 and C2 real-arithmetic graphs and strict-branch convention
Reverse-mode gradient procedure
Exact reverse-mode gradient on a fixed strict branch
Forward-over-reverse Hessian-vector procedure
Exact Hessian-vector products on a fixed strict branch
Coordinate definition by continuous iterated partial derivatives through order two
Remarks
The solver is a supplied finite procedure, so its termination contract is an input requirement. The algorithm verifies the residual even when the solver reports success. Its estimate is still returned with a non-success status when the solver produces a vector whose residual misses the requested tolerance.
Under this algorithm's derivative-map convention, is a map. Apply the total-derivative theorem to the coordinate representation of : each coordinate partial of is the corresponding entry of and varies continuously. The coordinates of are the first partials of , so this supplies the continuous second coordinate partials required by the coordinate- definition and the Hessian-symmetry corollary. That symmetry applies to the full Hessian of , hence its state block is and its parameter block in the state direction is , as used above.
Computation graph
The solid arrows show the vector data used for the adjoint estimate: the state derivative of the outer loss is solved against the transposed inner Hessian, then the mixed derivative maps the adjoint vector back to parameter space, where it is subtracted from the direct parameter derivative. The dashed arrows show the independently recomputed linear residual. The state-space vectors have dimension and the parameter-space vectors have dimension . This diagram summarizes the data flow; the derivative and error proofs do not rely on it.
diagram failed to render:
\begin{tikzpicture}[>=stealth]
\node[draw,align=center] (d) at (0,0) {$d=\nabla_w g$};
\node[draw,align=center] (solve) at (3.4,0) {solve $H^T\widetilde v=d$};
\node[draw,align=center] (cross) at (6.8,0) {$B^T\widetilde v$};
\node[draw,align=center] (out) at (10.4,0) {$\widehat h=c-B^T\widetilde v$};
\node[draw,align=center] (c) at (8.7,1.6) {$c=\partial_\theta g$};
\node[draw,align=center] (resid) at (3.4,-1.7) {$\rho=d-H^T\widetilde v$};
\draw[->] (d.east) -- (solve.west);
\draw[->] (solve.east) -- node[above] {$\widetilde v$} (cross.west);
\draw[->] (cross.east) -- node[above] {$-$} (out.west);
\draw[->] (c.east) -- node[right] {$+$} (out.north);
\draw[dashed,->] (d.south) to[bend right=18] (resid.west);
\draw[dashed,->] (solve.south) -- (resid.north);
\end{tikzpicture}Depends on
- Forward-over-reverse Hessian-vector products
- Reverse-mode automatic differentiation for a scalar graph output
- The Hessian of a $C^2$ scalar field is symmetric
- $C^k$ maps and multi-index derivative notation in Euclidean space
- Finite straight-line computational programs and real-arithmetic tapes
- Smooth bilevel stationary problems and their hypergradients
- Forward-over-reverse mode computes the Hessian-vector product
- Reverse mode computes the exact gradient of the real-arithmetic graph
- A total derivative computes every directional derivative, and its matrix is the Jacobian
Used by
Dependency tree · two levels
26 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
- MIT OpenCourseWare 18.S096, Matrix Calculus for Machine Learning and Beyond, Lecture 4 Part 2, §§6.3.1–6.3.2 (standard reference, not scraped)