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:
- Bottom-Up Expansion: Leads to global contrastive methods such as Contrastive Hebbian Learning (CHL).
- Top-Down Expansion: Leads to local, layer-wise methods like Predictive Coding Networks (PCN) and the Method of Auxiliary Coordinates (MAC).
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