Bilevel Programming and Deep Learning: A Unifying View on Inference Learning Methods

Christopher ZacharXiv 2021

Bilevel Programming and Deep Learning: A Unifying View on Inference Learning Methods

Abstract

This work establishes a unified mathematical framework for various neural network training algorithms, such as Contrastive Hebbian Learning (CHL) and Predictive Coding, by reformulating them as bilevel optimization problems. By viewing training as a nested optimization task, we introduce Fenchel Back-propagation (FenBP). Unlike standard back-propagation, which relies on infinitesimal gradients, FenBP utilizes finite "targets" derived from Fenchel-Young inequalities, enabling robust learning even in the presence of vanishing gradients and non-differentiable activations.

Introduction

Standard error back-propagation (BP) remains the cornerstone of deep learning but faces significant hurdles, including vanishing gradients, difficulties with non-differentiable activations, and biological implausibility (the "weight transport" problem). Alternative "inference learning" methods like Equilibrium Propagation, Lifted Neural Networks, and Predictive Coding have been proposed to address these issues. However, these methods often lack a unified theoretical foundation. This paper bridges this gap by demonstrating that these disparate approaches are specific instances of a single mathematical structure: nested bilevel optimization.

A Unified Bilevel Framework

The core proposal is to frame neural network training as a deeply nested optimization problem where each layer minimizes its own energy function ($E_k$) subject to constraints from adjacent layers. The author identifies two primary "expansion directions" for unrolling these nested layers:

  1. Bottom-Up Expansion: Leads to global contrastive methods such as Contrastive Hebbian Learning (CHL).
  2. Top-Down Expansion: Leads to local, layer-wise methods like Predictive Coding Networks (PCN) and the Method of Auxiliary Coordinates (MAC).
Table 1: Comparison of various inference learning methods within the proposed bilevel optimization framework.

The framework introduces Contrastive Surrogates, which compare a "clamped" phase (where the network sees the target output) to a "free" phase. By applying a linearized version of this surrogate top-down and utilizing Fenchel-Young inequalities, the author derives Fenchel Back-propagation (FenBP). As shown in the table above, FenBP utilizes a top-down direction and a linearized outer loss to achieve a closed-form inference step.

Key Insights and Experimental Results

A profound theoretical insight is that standard BP is the limit case of these inference methods as a spacing parameter ($\beta$) approaches zero. This implies that alternative methods essentially approximate BP in standard regimes but offer distinct advantages in challenging settings.

  • Finite Signals vs. Infinitesimal Gradients: Standard BP relies on the derivative of activation functions. If the derivative is zero (vanishing gradient), learning stops. Because FenBP uses finite targets (a "step" in a specific direction rather than an infinitely small nudge), it can "jump" over regions where the gradient is zero.
  • Handling Non-Differentiability: The framework naturally handles functions like ReLU or Hard-Sigmoid without needing manual sub-gradient definitions; the bilevel formulation provides a sensible derivative even at non-differentiable points.

Empirical validation on MNIST using a 4-layer MLP highlights FenBP's robustness. In a "stress test" with all-negative weight initialization—a scenario where standard BP fails immediately due to vanishing gradients (~88.6% error)—FenBP successfully trained the model, achieving 1.7% training error. This demonstrates the power of using finite signals to navigate poor initializations.

Conclusion and Future Work

While currently demonstrated on MLPs, the bilevel framework provides a "Rosetta Stone" for understanding non-standard training methods. Future research will focus on scaling FenBP to larger architectures like Transformers and deep ResNets. Additionally, the author suggests exploring the intrinsic parallelism of these methods, as layer-wise local contrastive objectives are significantly easier to parallelize across hardware than the sequential chain of standard back-propagation.

Summary updated

Abstract

In this work we unify a number of inference learning methods, that are proposed in the literature as alternative training algorithms to the ones based on regular error back-propagation. These inference learning methods were developed with very diverse motivations, mainly aiming to enhance the biological plausibility of deep neural networks and to improve the intrinsic parallelism of training methods. We show that these superficially very different methods can all be obtained by successively applying a particular reformulation of bilevel optimization programs. As a by-product it becomes also evident that all considered inference learning methods include back-propagation as a special case, and therefore at least approximate error back-propagation in typical settings. Finally, we propose Fenchel back-propagation, that replaces the propagation of infinitesimal corrections performed in standard back-propagation with finite targets as the learning signal. Fenchel back-propagation can therefore be seen as an instance of learning via explicit target propagation.
BibTeX
@misc{zach2021bilevel,
  author = {Christopher Zach},
  title = {{Bilevel Programming and Deep Learning: A Unifying View on Inference Learning Methods}},
  year = {2021},
  eprint = {2105.07231},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.07231},
}
Figure