Backpropagation as Dirac-bracket dynamics of dissipative training
Abstract
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.
Related
- From forward-backward sweep to backpropagation for optimal control in tumor-immune dynamics.
- Hamiltonian Metric Learning and Energy-Based Training: A Dissipative Geometric Framework for Optimization
- Pullback dynamics and statistical solutions for semi-dissipative nonlinear Schrödinger equations
- Long-time dynamics of partially dissipative hyperbolic systems with non-autonomous coefficients
- An Energy-Based Conservative-Dissipative Latent Neural Evolution Operator for Magnetization Dynamics
BibTeX
@misc{holanda2026backpropagation,
title = {{Backpropagation as Dirac-bracket dynamics of dissipative training}},
author = {Nicolaus Linneu Holanda and Ivan Eugenio Cunha},
howpublished = {arXiv},
year = {2026},
month = nov,
doi = {10.48550/arxiv.2611.34479},
eprint = {2611.34479},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.34479},
}
RIS
TY - UNPB
TI - Backpropagation as Dirac-bracket dynamics of dissipative training
AU - Nicolaus Linneu Holanda
AU - Ivan Eugenio Cunha
PY - 2026
DA - 2026/11/25
PB - arXiv
DO - 10.48550/arxiv.2611.34479
UR - https://arxiv.org/abs/2611.34479
AB - 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.
ER -