Pullbacks of higher model derivatives #
The public reverse transform seeds input directions while holding model state constant, runs the checked reverse pass, and returns state and input gradients. The proof connects that complete IO call to the adjoint derivative of a higher input derivative. It uses the existing flattened context only at the calculus boundary; callers still receive the usual typed state and tensor.
Successful recording and execution are explicit hypotheses, separate from the first-order graph certificate, higher-order jet laws, and smoothness needed to interchange derivatives. No theorem here identifies rounded floating-point execution with exact real differentiation.
Validation and a successful checked graph execution determine the public VJP result.
This execution equation works with every runtime scalar context. It preserves the existing state/input split and makes no claim that the graph's backward rules are analytic derivatives.
The public higher-order VJP returns the pullback of the requested iterated input derivative.
The context includes state and input entries. Directions have zero state components, but the final adjoint differentiates with respect to all entries, giving both parameter and input gradients. The output cotangent and directions are fixed, including when directions repeat.