Expectation Backpropagation: Parameter-Free Training of Multilayer Neural Networks with Continuous or Discrete Weights

Daniel Soudry, Itay Hubara, Ron Meir

Overview

Expectation Backpropagation (EBP) is a novel Bayesian learning algorithm that allows for "parameter-free" training of neural networks, effectively eliminating the need to tune learning rates. Crucially, EBP enables the use of discrete, binary weights. This capability paves the way for high-performance AI on low-power, precision-limited hardware while simultaneously outperforming standard Backpropagation on several text classification benchmarks.

The Problem with Standard Backpropagation

Training deep neural networks typically relies on Backpropagation (BP) and gradient descent. While undeniably effective, BP has two major drawbacks that this research seeks to solve:

  1. Hyperparameter Sensitivity: BP requires careful tuning of learning rates and regularization constants. In large-scale systems, finding the "optimal" parameters is a massive, time-consuming computational drain.
  2. Weight Constraints: Standard BP assumes weights are continuous and differentiable. However, for specialized hardware (like mobile chips or edge devices), using discrete or binary weights ($\pm 1$) would drastically improve energy efficiency and speed. BP cannot be directly applied to these discrete values because they lack meaningful gradients.

While Bayesian methods like Expectation Propagation (EP) have existed for years to handle uncertainty and discrete variables, they were previously considered too complex or computationally expensive to scale beyond single-layer networks.

Methods: The EBP Algorithm

The authors derive Expectation Backpropagation by treating neural network training as an online Bayesian inference problem. Instead of finding a single "best" set of weights, the algorithm maintains a distribution (a posterior) over the weights.

Multilayer neural network architecture with sign activation functions

Key technical components of EBP include:

  • Mean-Field Approximation: To keep the math tractable, the authors assume the posterior distribution of the weights can be factorized (treated as independent).
  • The Central Limit Theorem (CLT) Trick: By assuming neurons have a "large fan-in" (many incoming connections), the authors use the CLT to approximate the total input to any neuron as a Gaussian distribution. This allows them to calculate the "expected" output of a layer analytically.
  • Forward and Backward Passes: Much like standard BP, EBP consists of a forward pass (propagating means and variances through the layers) and a backward pass (updating the weight distributions based on the prediction error).
  • Two Output Modes: The paper introduces EBP-D (Deterministic), which uses the most likely weights, and EBP-P (Probabilistic), which effectively averages the outputs of many networks sampled from the weight distribution.

Key Insights

  • Truly Parameter-Free: Once the network architecture and the initial prior are set, EBP requires no learning rate tuning. It naturally adapts its update step based on the current uncertainty in the weights.
  • Amplitude Invariance: Because EBP normalizes neuron inputs by their standard deviation during the forward pass, the algorithm is inherently robust to changes in the scale of input data. This eliminates a common headache in standard deep learning that usually requires manual pre-processing.
  • Efficiency: Despite its Bayesian roots, EBP has a computational complexity of $O(|W|)$, making it just as efficient per update as standard Backpropagation.

Key Results

The researchers evaluated EBP on eight high-dimensional binary text classification tasks derived from four popular datasets: Amazon (Book and DVD reviews), 20 Newsgroups, Reuters, and Spam or Ham.

They compared EBP against standard BP (with optimized learning rates) and AROW, a previous state-of-the-art algorithm for these specific tasks.

Error rates across eight text classification datasets comparing EBP to baselines

In all eight text classification tasks, EBP-P outperformed both standard BP and the previous state-of-the-art (AROW).

  • Binary is Better: One of the most surprising findings is that EBP-trained networks with binary weights often outperformed those with continuous weights, provided the Probabilistic (EBP-P) output method was used. For example, in the "20News group elec vs med" task, Binary EBP-P hit a 2.08% error, while Real (continuous) EBP-P was slightly behind at 3.15%.
  • Spam Detection: On the "Spam or ham d0" task, Binary EBP-P achieved a 0.76% error rate, significantly better than AROW (1.12%) and standard BP (1.32%).
  • Hardware Potential: The authors highlight that a chip using binary weights could perform $10^{12}$ operations per second with only 1mW of power, making EBP a vital tool for the future of "AI on the edge."

Limitations and Future Work

While highly promising, EBP currently has a few limitations:

  • Architecture Scope: The experiments focused primarily on shallow architectures (2-3 layers) and binary classification. Deep architectures might require additional techniques like unsupervised pre-training or momentum, which are not yet integrated into EBP.
  • Large Fan-in Assumption: The mathematical derivation relies on neurons having many inputs. While this holds for the tested text datasets, the approximation might degrade in very sparse or narrow networks.
  • Multi-class and Regression: The current framework is optimized for binary outputs (sign functions). Extending this to multi-class problems (using Softmax) or regression (linear outputs) is noted as a straightforward but necessary next step for broader adoption.

Summary updated

BibTeX
@inproceedings{soudry2014expectation,
  author = {Daniel Soudry and Itay Hubara and Ron Meir},
  title = {{Expectation Backpropagation: Parameter-Free Training of Multilayer Neural Networks with Continuous or Discrete Weights}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2014},
}
Figure