Nature-Inspired Local Propagation

Alessandro Betti, Marco Gori

Introduction

Modern machine learning is dominated by the Backpropagation (BP) algorithm, a powerful tool that has enabled the current revolution in artificial intelligence. However, BP remains fundamentally detached from biological reality. It suffers from two primary limitations: a heavy dependency on static, massive datasets and a lack of locality. In biological systems, neurons learn from continuous streams of data (temporal locality) and only have access to information from their immediate synaptic neighbors (spatial locality). Backpropagation, by contrast, requires a global "backward pass" that pauses the forward flow of information to propagate errors.

This research proposes a "pre-algorithmic" framework that moves away from discrete weight-update rules toward a continuous physical model of learning. By framing neural training as a problem of Optimal Control and Theoretical Physics, the authors demonstrate that learning can be treated as a dynamical process governed by the laws of Hamiltonian mechanics.

The Framework: Learning as Optimal Control

Rather than treating a neural network as a static mathematical function, this framework views it as a dynamical system. The authors define a "functional"—a mathematical description of the system's total energy or cost—that accounts for both the network's output error and the "effort" or kinetic energy required to change the weights.

Hamiltonian Mechanics and Locality

Using Hamiltonian equations, which physicists use to describe the motion of particles, the authors derive "laws of learning." This approach naturally supports spatio-temporal locality. In this model, each neuron's state and weight updates depend only on its immediate "parents" and "children" within the network graph. This removes the need for a global coordinator or a distinct, non-causal backward phase.

The Hamiltonian Sign Flip (HSF)

A significant challenge in applying optimal control to real-time learning is the "boundary condition" problem: the mathematics often requires knowledge of the future to optimize the present. To overcome this and ensure the system remains causal (forward-only in time), the authors introduce the Hamiltonian Sign Flip (HSF). This strategy involves periodically flipping the signs of the dynamical equations to stabilize the system. This mechanism acts as a "focus of attention," keeping the learning process on a stable "Hamiltonian Track" and preventing the system's energy from diverging or exploding.

Bridging Physics and Backpropagation

One of the most profound theoretical insights of this work is the unification of physics-based learning and standard deep learning. The authors mathematically demonstrate that Backpropagation is not a separate entity but rather a limiting case of this local propagation framework. Specifically, if the "speed of propagation" within the physical system is allowed to reach infinity, the local equations simplify exactly into the standard Backpropagation algorithm. This suggests that BP is a simplified, idealized version of a more complex, physically grounded reality.

Experimental Validation

To prove the core mechanics of the theory, the authors conducted experiments using Linear Quadratic Tracking (LQT) tasks. Using a small recurrent neural network (RNN) consisting of only five neurons, the system was tasked with tracking:

  1. Sinusoidal Signals: Simple, predictable periodic waves.
  2. Hard-to-Predict Signals: Complex signals composed of patched intervals of different cosine functions and constants.

Despite the minimal size of the network, the Hamiltonian approach successfully tracked these unpredictable signals in real-time. The HSF strategy proved essential, keeping the system's internal energy (Lagrangian and Hamiltonian terms) bounded and stable throughout the continuous learning process.

Conclusion and Future Outlook

This research provides a theoretical bridge between the principles of physics and the practice of deep learning. By showing that Backpropagation is a special case of a more general physical process, it opens the door to truly local, online learning systems that operate more like biological brains.

While the current results are limited to small-scale synthetic tasks, the implications are significant. Future work will focus on scaling this "Hamiltonian Track" approach to massive architectures like Transformers and exploring whether the "Sign Flip" mechanism has a direct biological analogue in how brains manage attention and error correction. By looking for the "laws of learning" in differential equations before writing the code, we may move closer to AI that learns as fluidly as nature itself.

Summary updated

BibTeX
@inproceedings{betti2024nature,
  author = {Alessandro Betti and Marco Gori},
  title = {{Nature-Inspired Local Propagation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=ds6xMV3yVV},
}
Figure