NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

BEP: A Binary Error Propagation Algorithm for Binary Neural Networks Training

Luca Colombo, Fabrizio Pittorino, Daniele Zambon, Carlo Baldassi, Manuel Roveri, Cesare Alippi

TL;DR

Binary Error Propagation (BEP) is the first training algorithm to establish a principled, fully discrete analog of the backpropagation chain rule. By operating entirely with bitwise operations and integer weights, BEP enables efficient end-to-end training for both Multi-Layer Perceptrons (MLPs) and Recurrent Neural Networks (RNNs), significantly outperforming traditional quantization-aware methods.

What Problem Does This Paper Address?

Binary Neural Networks (BNNs) are the "holy grail" for edge computing. By constraining weights and activations to just two values (typically $\pm 1$), they replace expensive floating-point multiplications with lightning-fast XNOR and Popcount operations. This leads to massive savings in energy and memory.

However, there is a catch: training them is a nightmare. Because binary functions are step-functions (non-differentiable), you can't use standard calculus-based backpropagation. The current industry standard, Quantization-Aware Training (QAT), "cheats" by keeping a secret set of full-precision weights and using floating-point math during the backward pass. This means you only get the efficiency benefits during inference, not during training.

Alternative "local" learning rules exist that avoid floating-point math, but they can't propagate error signals across many layers. This makes them useless for complex architectures like Recurrent Neural Networks (RNNs), where credit for an error must be assigned across many steps in time.

Methods

The authors introduce Binary Error Propagation (BEP), a learning algorithm that stays entirely within the binary domain for both the forward and backward passes.

Illustration of Binary Error Propagation in a Multi-Layer Perceptron.
  • The Binary Chain Rule: Instead of calculating gradients (real numbers), BEP propagates "desired activations" (binary vectors) backward through the network. It asks: "If I want the output to be X, what should the previous layer have looked like?"
  • Backward Gating: To mimic the way derivatives work in standard neural networks, BEP uses a gating mechanism. It only propagates error signals through neurons that are "undecided"—those whose internal sums are close to the zero threshold. This prevents "saturated" neurons from causing instability.
  • Synaptic Inertia: While the "visible" weights are binary, the algorithm maintains "hidden" integer weights. These act as a form of memory (metaplasticity), allowing the network to accumulate small updates over time without flipping the binary weight immediately.
  • BEP-TT: The authors extend this to Binary Backpropagation Through Time, allowing RNNs to be trained end-to-end using only bitwise logic.

Datasets

The researchers evaluated BEP across a wide range of benchmarks:

  • MLP Tasks: Random Prototypes, FashionMNIST, CIFAR-10, and Imagenette (using AlexNet-derived features).
  • RNN Tasks: Sequential MNIST (S-MNIST) and a massive suite of 30 real-world time-series datasets from the UCR Archive (covering everything from medical ECGs to gesture recognition).

Key Insights and Ideas

  • Global Credit Assignment is Possible without Floats: The biggest "aha" moment is proving that a discrete analog of the chain rule actually works. You don't need 32-bit floating-point gradients to tell a layer five steps back how to improve.
  • Gating is the Secret Sauce: The paper shows that filtering the backward signal is crucial. If you try to update every neuron every time, the binary signal becomes "noisy" and the network fails to converge. Focusing on the "amenable" neurons (those near the decision boundary) provides the necessary stability.
  • Hardware-Friendly Training: Because the algorithm relies on XNOR, Popcount, and simple increment/decrement operations, it is theoretically possible to build hardware that trains BNNs with roughly 1,000x less computational complexity (in terms of Boolean gates) than standard floating-point training.

Key Results

BEP doesn't just match existing binary training methods; it often beats them:

Test accuracy versus the number of parameters, comparing BEP against QAT and other baselines.
  • Accuracy Gains: On MLPs, BEP showed gains of up to +6.89% in test accuracy over previous state-of-the-art local learning rules.
  • RNN Breakthrough: On the 30 UCR time-series datasets, BEP-TT outperformed the standard QAT baseline by an average of +10.57%.
  • Efficiency: Compared to standard QAT, BEP achieves a 2x reduction in memory for weights and a staggering 32x reduction for error signals and updates.

Limitations and Future Work

While a major step forward, BEP is still in its early stages:

  • Architectural Scope: The current work focuses on MLPs and RNNs. Extending this to Convolutional Neural Networks (CNNs) or Transformers will require new ways to handle weight sharing and attention mechanisms in a purely binary way.
  • Task Diversity: The experiments were limited to classification. Applying BEP to regression or image segmentation would require rethinking how the "desired" output is encoded.
  • Scaling: While tested on mid-scale datasets like CIFAR-10, the "final boss" will be scaling these purely binary updates to massive, ImageNet-level models.

The authors have released the code as an open-source repository, inviting the community to help bring fully binary training to the next generation of edge AI hardware.

Summary updated

BibTeX
@inproceedings{colombo2026bep,
  author = {Luca Colombo and Fabrizio Pittorino and Daniele Zambon and Carlo Baldassi and Manuel Roveri and Cesare Alippi},
  title = {{BEP: A Binary Error Propagation Algorithm for Binary Neural Networks Training}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=jxtCMoZIu8},
}
Figure