Beyond Backpropagation: Bilevel Optimization Through Implicit Differentiation and Equilibrium Propagation

Nicolas Zucchet, João Sacramento

TL;DR

This paper tackles the challenge of training complex systems where the learning process itself is implicitly defined, going beyond standard backpropagation. It introduces and compares two powerful gradient-based methods, implicit differentiation and equilibrium propagation, offering a more flexible and potentially more efficient way to optimize these systems.

What Problem Does This Paper Address?

Traditional machine learning, particularly deep learning, relies heavily on backpropagation to compute gradients and update model parameters. This works beautifully for explicitly defined computational graphs, like feedforward neural networks. However, many real-world systems and advanced machine learning models are implicitly defined. Think of algorithmic solvers that find optimal solutions, learning processes that iteratively refine their own parameters, or even physical systems that reach a steady state. In these cases, the direct sequence of computations isn't explicitly known or easily differentiable. Backpropagation breaks down here. Bilevel optimization provides a framework to model these systems by defining an "inner" optimization process (what the system does) and an "outer" loss function (how well the system performs). The core problem is how to efficiently compute gradients for the outer loss with respect to the outer parameters, given this implicit inner optimization.

Methods

The paper focuses on two main gradient-based approaches for bilevel optimization:

  • Implicit Differentiation: This method leverages the implicit function theorem. The core idea is to analytically derive the gradient of the outer loss with respect to the outer parameters by differentiating through the implicit function that defines the inner optimization's solution. This involves computing Hessians and their inverses, which can be computationally expensive. The paper discusses approximations to make this practical, such as using conjugate gradients or recurrent backpropagation.
  • Equilibrium Propagation (EP): This is presented as a novel approach for this setting. EP reformulates the outer gradient by introducing an "augmented loss" that mixes the inner and outer losses. By analyzing the stationary points of this augmented loss, EP provides an alternative way to estimate the outer gradient. This method avoids explicit Hessian inversion and can be more robust to certain violations of assumptions.

The paper also contrasts these with alternative methods like backpropagation through time (BPTT) and black-box optimization, highlighting scenarios where implicit methods are superior.

Datasets

Not discussed in the paper. The paper focuses on theoretical frameworks and algorithmic approaches rather than empirical evaluation on specific datasets.

Key Insights and Ideas

  • Bilevel Optimization as a General Framework: The paper convincingly argues that bilevel optimization is a powerful lens through which to view many advanced machine learning problems, from hyperparameter optimization and meta-learning to generative models and reinforcement learning. It unifies seemingly disparate problems under a common mathematical structure.
  • Implicit Functions are Key: The implicit function theorem is the mathematical bedrock for implicit differentiation. Understanding its implications for the existence and differentiability of solutions to implicitly defined systems is crucial.
  • Equilibrium Propagation Offers a New Perspective: EP provides a fresh way to tackle the gradient estimation problem by reformulating it through an augmented loss. This bypasses some of the computational bottlenecks of implicit differentiation and offers different robustness properties.
  • Trade-offs Between Methods: There isn't a single "best" method. Implicit differentiation can be more theoretically sensitive to approximations, while EP might be more robust to certain issues but can be more sensitive to the choice of parameters like the "nudging strength" β.
  • The Importance of Approximations: Directly computing the exact outer gradient is often intractable. The paper emphasizes the need for and comparison of various approximation strategies, highlighting the trade-offs between computational cost, accuracy, and robustness.

Key Results

  • The paper provides a detailed mathematical derivation of the outer gradient for bilevel optimization using both implicit differentiation and equilibrium propagation.
  • It presents theoretical bounds on the error of gradient estimation for both implicit differentiation methods and equilibrium propagation, analyzing their robustness to approximations in the inner optimization.
  • A comparative analysis (Table 1 and Figure 3) is offered, outlining the efficiency, robustness, and simplicity of different methods, including first-order approximations, recurrent backpropagation, conjugate gradients, and equilibrium propagation.

Limitations and Future Work

  • Computational Cost: While the paper presents methods to tackle implicitly defined systems, computing Hessians and their inverses (in implicit differentiation) or solving augmented loss functions (in EP) can still be computationally demanding, especially for high-dimensional problems.
  • Approximation Errors: The theoretical bounds highlight that errors in approximating the inner optimization's solution propagate to the outer gradient estimation. The paper discusses how to bound these errors but acknowledges that practical performance depends on careful tuning and problem-specific considerations.
  • Robustness to Non-Optimality: While the paper explores robustness when the inner optimization is not perfectly solved, the practical implications and performance across various scenarios require further empirical investigation.
  • Future Work: The authors suggest that more work is needed to fully understand the conditions under which each method shines and to develop more efficient and robust implementations. They also hint at the potential of these methods for developing biological theories of learning and next-generation learning machines.

Summary updated

BibTeX
@article{zucchet2022beyond,
  author = {Nicolas Zucchet and João Sacramento},
  title = {{Beyond Backpropagation: Bilevel Optimization Through Implicit Differentiation and Equilibrium Propagation}},
  journal = {Neural Computation},
  year = {2022},
  url = {https://openreview.net/forum?id=7h2FCUz3gs9},
}
Figure