Backpropagation as Physical Relaxation: Exact Gradients in Finite Time
Antonino Emanuele Scurria
TL;DR
This work reframes backpropagation as the exact finite-time trace of a continuous physical relaxation, addressing the mismatch between symbolic gradient computation and physical dynamics. It introduces Dyadic Backpropagation (DBP), a variational framework that doubles the state space and uses a global energy on $(\boldsymbol{x},\boldsymbol{z})$ to encode forward and gradient information, enabled by a strictly lower-triangular, nilpotent weight structure. The authors prove that unit-step Euler discretization recovers standard backpropagation exactly in $2L$ steps for an $L$-layer network, without requiring weight symmetry or asymptotic limits, and demonstrate robust gradient fidelity and identical learning dynamics on CIFAR-10 across multiple step sizes. The approach has practical impact for analog and neuromorphic substrates where continuous dynamics are native and provides a theoretical bridge between physical relaxation processes and exact gradient computation, with potential connections to multi-compartment cortical models.
Abstract
Backpropagation, the foundational algorithm for training neural networks, is typically understood as a symbolic computation that recursively applies the chain rule. We show it emerges exactly as the finite-time relaxation of a physical dynamical system. By formulating feedforward inference as a continuous-time process and applying Lagrangian theory of non-conservative systems to handle asymmetric interactions, we derive a global energy functional on a doubled state space encoding both activations and sensitivities. The saddle-point dynamics of this energy perform inference and credit assignment simultaneously through local interactions. We term this framework ''Dyadic Backpropagation''. Crucially, we prove that unit-step Euler discretization, the natural timescale of layer transitions, recovers standard backpropagation exactly in precisely 2L steps for an L-layer network, with no approximations. Unlike prior energy-based methods requiring symmetric weights, asymptotic convergence, or vanishing perturbations, our framework guarantees exact gradients in finite time. This establishes backpropagation as the digitally optimized shadow of a continuous physical relaxation, providing a rigorous foundation for exact gradient computation in analog and neuromorphic substrates where continuous dynamics are native.
