2026-11-26 | | Total: 2
Gradient-based training of a parametric model is the motion of a damped particle in the potential set by the loss. Using the Bateman-Galley doubling of the degrees of freedom, which gives dissipative systems an action principle, we write gradient flow, the heavy-ball method and Nesterov's accelerated gradient method as Hamiltonian systems. We show that, within this Hamiltonian description, backpropagation is Dirac evolution. The activations of a feed-forward network are treated as coordinates of phase space, and the layer equations as constraints. These constraints are second class for every architecture, and Hamilton's equations with the resulting Dirac bracket reproduce training with the exact gradient of the loss, although the Hamiltonian contains only the cost of the network output. The Dirac bracket of an activation with the momenta of the parameters is its Jacobian, the inverse of the constraint matrix contains both the forward and the reverse modes of automatic differentiation, and the errors propagated by backpropagation are the Lagrange multipliers of the layer constraints: the constraint forces of a kinematic chain under the load of the cost. These results hold in the full doubled phase space, not only in the physical limit. The network's part of the constraint algebra is the same for every optimizer, Nesterov's look-ahead adds one layer of momentum-dependent constraints that couple the two copies of the doubled system, and gradient flow is obtained by constructing the Dirac bracket in stages. We confirm these statements numerically to machine precision and train a network by integrating the Dirac flow of its constraints, with no backward pass in the computation.
We develop a high-order Fourier-Taylor graph-parameterization method for computing local invariant manifolds attached to reducible quasi-periodic invariant tori of discrete dynamical systems, with particular emphasis on Poincaré maps. Assuming that the invariant torus and its Floquet reduction are known, we represent the manifold as a graph over a selected spectral subspace and compute its coefficients recursively through jet transport and cohomological equations on the torus. The formulation accommodates stable, unstable, and center spectral selections. For center manifolds, it simultaneously determines the nonlinear reduced dynamics, providing a low-dimensional representation from which nearby invariant objects can be lifted to the original phase space. For real systems with complex-conjugate Floquet multipliers, we derive an equivalent real formulation based on Hermitian symmetry and Krawtchouk transformations. This allows real-valued jet transport while retaining the advantages of complex spectral coordinates in the cohomological solver. The implementation also incorporates inverse dynamics for stable directions, multiple shooting, coordinate scaling, and a posteriori validation tests. Numerical experiments with a quasi-periodically forced pendulum, an oscillating solar sail in the Earth-Moon system, and a simplified solar system model illustrate the construction and its computational properties. In the solar-sail benchmark, the real formulation reduces computation time by approximately a factor of 2.2 compared with the complex implementation.