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

BOLD: Boolean Logic Deep Learning

Van Minh Nguyen, Cristian Ocampo-Blandon, Aymen Askri, Louis Leconte, Ba-Hien Tran

TL;DR

The BOLD (Boolean Logic Deep Learning) framework introduces a new mathematical principle called "Boolean variation," allowing deep neural networks to be trained natively in the Boolean domain. By eliminating the need for full-precision latent weights and real-valued gradients, BOLD achieves state-of-the-art performance across vision and language tasks while drastically reducing energy consumption during both training and inference.

The Bottleneck of Current Binarized Networks

Deep learning is notoriously resource-hungry. While Binarized Neural Networks (BNNs) were designed to solve this by using 1-bit weights and activations, they harbor a "dirty secret": they still rely on full-precision (FP) "latent" weights during training. To update these weights, researchers use the Straight-Through Estimator (STE)—essentially a mathematical "hack" to differentiate through non-differentiable binary functions.

This creates two major bottlenecks:

  1. Computational Intensity: Training still requires high-precision hardware and significant memory to store latent weights.
  2. Performance Loss: The arbitrary approximations used in gradient descent for BNNs often lead to significant accuracy drops compared to full-precision models.
Comparison of Binarized Training Methods

The authors of BOLD ask a fundamental question: Can we ditch the real-valued math entirely and train models using pure logic?

Methods: Enter Boolean Variation

The core innovation of this paper is Boolean Variation, a novel calculus for discrete logic.

  • Boolean Calculus: The authors define a "variation" for logic gates (like AND, OR, XOR, XNOR) that behaves remarkably like a continuous derivative, complete with its own Chain Rule. This allows "signals" to be backpropagated through a network of logic gates exactly, rather than through approximations.
  • Native Boolean Training: Instead of the standard gradient descent formula, BOLD uses a Boolean Optimizer. Weights are updated by flipping their bits based on the Boolean variation signal, completely removing the need for FP latent weights.
  • XNOR-based Neurons: The architecture replaces standard multiply-accumulate (MAC) operations with XNOR gates and bit-counting (popcount).
  • Analytical Regularization: To prevent signals from exploding or vanishing (a common issue in deep networks), the authors derived closed-form scaling factors based on the layer's dimensions. This ensures stable training without needing to track batch statistics.

Key Insights

  • The Chain Rule is Universal: Perhaps the most surprising insight is that the fundamental engine of deep learning—the chain rule—can be mathematically mapped onto Boolean logic. This proves that "gradients" aren't exclusive to continuous space.
  • Ditching Latent Weights: By training directly on Boolean weights, the memory footprint during training is slashed. You no longer need to store a 32-bit "shadow" weight for every 1-bit weight in the model.
  • Energy as the True North: The paper argues that FLOPS (Floating Point Operations) are a poor metric for efficiency. By analyzing data movement and bitwise logic, they show that BOLD's true advantage lies in its massive reduction in energy consumption, which is the primary constraint for edge devices.

Results & Efficiency

The authors rigorously tested BOLD across several domains, including image classification (ImageNet-1K, CIFAR), image super-resolution, semantic segmentation, and natural language understanding (GLUE benchmark via a binarized BERT model).

BOLD demonstrates that you don't have to trade performance for efficiency:

  • ImageNet: Achieved 70.0% Top-1 accuracy (ResNet-18 base), matching or exceeding many state-of-the-art BNNs that still use full-precision training.
  • Segmentation: Surpassed previous SOTA binarized models on CITYSCAPES, reaching 67.4% mIoU, nearing the full-precision baseline of 70.7%.
  • Extreme Compression & Energy Efficiency: On a VGG-Small model (CIFAR-10), BOLD consumed only 2.78% to 3.71% of the energy required by a full-precision model on a Tesla V100 GPU. The method achieves up to 36x energy reduction compared to FP baselines and 15x reduction compared to traditional BNNs like BinaryNet.
Accuracy vs. Relative Energy Consumption

Limitations and Future Work

The primary limitation is hardware mismatch. Modern GPUs and CPUs are optimized for floating-point arithmetic, not bitwise logic. While BOLD is mathematically more efficient, it won't reach its full potential until "Boolean accelerators"—hardware specifically designed for native logic processing—become widely available.

Additionally, while the authors provide a convergence proof, the approximation capacity of Boolean networks compared to real-valued networks remains an open theoretical question. Future work involves exploring how this framework scales to even larger models, such as Large Language Models (LLMs), where the energy savings could be transformative.

Summary updated

BibTeX
@inproceedings{nguyen2024bold,
  author = {Van Minh Nguyen and Cristian Ocampo-Blandon and Aymen Askri and Louis Leconte and Ba-Hien Tran},
  title = {{BOLD: Boolean Logic Deep Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=DO9wPZOPjk},
}
Figure