Lagrangian-based Equilibrium Propagation: generalisation to arbitrary boundary conditions & equivalence with Hamiltonian Echo Learning

Guillaume Pourcel, Debabrota Basu, Maxence Ernoult, Aditya GilraarXiv 2025 · DOI

Modern deep learning relies almost exclusively on backpropagation (BP). While BP is incredibly effective on digital hardware like GPUs, it faces a "hardware lottery" problem: it is difficult to implement directly in the analog or biological systems that might offer massive energy savings. BP requires a separate "backward" pass and a dedicated network to propagate error derivatives—a requirement often called the "weight transport problem."

Equilibrium Propagation (EP) offers an alternative by using a system's own physical dynamics to compute gradients. However, standard EP is designed for static inputs (like classifying a single image). Extending it to time-varying inputs (like processing video or audio) has been a major challenge. This paper provides a significant theoretical bridge between EP and Hamiltonian Echo Learning (HEL) by introducing a generalized framework that addresses these temporal challenges.

Generalized Lagrangian Equilibrium Propagation (GLEP)

The authors tackle the limitations of static EP by moving from "vector space" (static points) to "functional space" (entire trajectories). They define a learning objective based on the "Action"—an integral of energy over time—rather than just instantaneous energy.

Conceptual transition from static Equilibrium Propagation (A) to temporal trajectories (B, C) in the GLEP framework.

In this framework, the learning process involves finding the trajectory that minimizes the Action. As shown in Figure 1, this generalizes the concept of finding an energy minimum in static EP to finding an optimal path over a finite time interval $[0, T]$.

The Secret Sauce: Boundary Conditions

A major hurdle in previous attempts at "Lagrangian-based EP" was the emergence of "boundary residuals"—complex mathematical terms at the start and end of time sequences that are nearly impossible to compute efficiently in hardware. The authors analyze different ways to constrain the start and end of a system's trajectory to solve this.

  1. Constrained Initial Value Problem (CIVP): Fixing only the starting point leads to the problematic boundary residuals.
  2. Parametric Final Value Problem (PFVP): By assuming the physical system is time-reversible and carefully choosing how to parameterize the end of the trajectory, the authors show that these mathematical terms cancel out.
Comparison of Initial Value (CIVP) and Boundary Point (CBPVP) problems. In CBPVP (B), trajectories are constrained at both ends, which is key to canceling boundary residuals.

As illustrated in Figure 3, the choice of boundary conditions fundamentally changes the trajectory dynamics. The PFVP (related to the CBPVP shown in 3B) is the rare exception that makes the mathematics work for practical hardware implementation.

Equivalence with Hamiltonian Echo Learning

Using the Legendre transformation—a classic tool from physics—the authors prove that their Lagrangian-based PFVP formulation is mathematically equivalent to Hamiltonian Echo Learning (HEL). This provides a "first principles" derivation for HEL using the variational methods of EP.

One of the most striking insights is that the "echo" phase in Hamiltonian learning—where a system's momentum is flipped to retrace its steps—is actually a physical way to solve a variational optimization problem. This unification means that EP (for static data) and HEL (for temporal data) are part of the same broader family of Lagrangian learning rules.

Key Results and Future Work

The paper establishes three core theorems:

  • Theorem 2 (GLEP): Derives a general gradient formula for any choice of boundary conditions.
  • Theorem 4 (Residual Cancellation): Proves that for time-reversible systems, the PFVP formulation causes boundary residuals to cancel, leaving a clean, implementable learning rule.
  • Theorem 5 (Equivalence): Formally establishes the mathematical equivalence between GLEP and Recurrent HEL.

While the current framework requires time-reversibility (dissipative-free systems) and involves an "echo" delay, it paves the way for "forward-only" learning that scales efficiently regardless of model size. Future work aims to extend this to non-reversible systems and develop online variants that can learn on the fly.

Summary updated

BibTeX
@misc{pourcel2025lagrangian,
  author = {Guillaume Pourcel and Debabrota Basu and Maxence Ernoult and Aditya Gilra},
  title = {{Lagrangian-based Equilibrium Propagation: generalisation to arbitrary boundary conditions \& equivalence with Hamiltonian Echo Learning}},
  year = {2025},
  eprint = {2506.06248},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.06248},
}
Figure