Second-Order Complexity of Neural ODE Inference
Yoshihiro Maruyama
Abstract
Neural ordinary differential equations replace a finite layer stack by the solution map of a learned dynamical system. Thus the machine-learning primitive evaluated at inference time is the flow endpoint generated by the learned vector field, computed to requested accuracy. We study the complexity of this global forward pass when the vector field has standard compactness and Lipschitz certificates. Using second-order complexity theory, we identify the exact operator-level complexity of this local-to-global computation: scalar Neural-ODE endpoint inference is second-order polynomial-time equivalent to the classical Lipschitz IVP solution operator and is thus $\mathsf{FPSPACE}_{2}$-complete in the worst case. A fixed three-dimensional autonomous block with polynomial-time computable $C^1$ dynamics realizes a $\mathsf{PSPACE}$-hard input-output map. At every finite smoothness level $C^k$ with $k\geq2$, such autonomous blocks can define counting-hierarchy-hard maps. One scalar readout-gradient query recovers the forward endpoint, so readout-gradient computation inherits this hardness. Uniformly constructible rational-ReLU families of size polynomial in precision, and compressed-depth tied ResNets, inherit the corresponding endpoint hardness. As a tractable counterpart, we consider fixed-dimensional fields with quantitative certificates of analytic or fixed-order Gevrey regularity. With efficient finite-jet access and certified state tubes, endpoint inference takes time polynomial in the precision parameter and the numerical certificate parameters. These results show, based on the rigorous framework of second-order complexity theory, that the computational reliability of continuous-depth learning systems depends jointly on global flow structure, representation certificates, and the cost of local network evaluations.
Successful Page Load