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

Learning Complex Boolean Functions: Algorithms and Applications

Arlindo L. Oliveira, Alberto L. Sangiovanni-Vincentelli

Introduction

Most traditional neural network models rely on a massive number of floating-point operations. While powerful, these are "hardware-expensive": implementing them in digital circuitry requires significant area, power, and complexity. This paper proposes a shift away from traditional floating-point neural networks toward Boolean networks—systems of simple logic gates that are natively compatible with digital hardware.

Example of a multi-level Boolean network

The authors argue that the ability to learn and generalize isn't exclusive to floating-point models. If we could learn Boolean networks directly from data, we could leverage the speed and compactness of standard digital technologies like FPGAs or custom ASICs. However, finding the smallest Boolean network that fits a dataset is an NP-hard problem, requiring clever heuristic algorithms to make it practical. To address this, the authors introduce two new algorithms, Muesli and Fulfringe, which learn complex Boolean functions from examples.

Algorithmic Approaches: Muesli and Fulfringe

The paper introduces two distinct algorithmic approaches to "growing" Boolean networks:

1. Muesli

This algorithm uses an information-theoretic approach, performing a "gradient descent" in the space of mutual information. It maintains a list of candidate nodes (starting with primary inputs) and greedily combines them into new Boolean functions that maximize the information the network provides about the target output.

Muesli algorithm selecting a new node to maximize mutual information

Instead of traditional error backpropagation, Muesli shows that maximizing mutual information is a viable way to guide the construction of multi-level logic. By greedily minimizing the size of the network, it naturally improves the model's ability to generalize to unseen data.

2. Fulfringe

This approach is an evolution of decision tree learning. Standard decision trees often struggle with complex logic. Fulfringe works by building a tree, identifying specific patterns near the "fringes" (the leaves) that represent 2-variable Boolean functions (like XOR or AND), and collapsing those patterns into new, higher-level features. It then rebuilds the tree using these new features, iterating until the logic is compact. This demonstrates that the weaknesses of decision trees can be fixed by "reading" the bottom of the tree to discover complex features that the top missed.

Error-Correcting Output Codes

To handle multi-class problems (like identifying digits 0-9), the authors encode the outputs using Hadamard error-correcting codes. This makes the system robust; even if a few logic gates "misfire," the overall classification remains correct.

Evaluation and Key Results

The algorithms were evaluated on three types of data: synthetic Boolean functions, noisy image reconstruction (16-level gray-scale images corrupted with 5% random bit noise), and NIST handwritten characters.

  • Superior Accuracy on Synthetic Tasks: On a suite of 11 complex synthetic Boolean functions, Fulfringe achieved an average accuracy of 99.71%, significantly outperforming standard decision trees (85.35%) and the then-popular Cascade-Correlation neural networks (87.45%).
  • NIST Digit Recognition: The Muesli algorithm achieved 93.9% accuracy on the NIST handwritten character task (over 100,000 segmented digits normalized to a 16x16 binary grid). While not the "state of the art" at the time, it was highly competitive for a model with no domain-specific knowledge.
  • Hardware Efficiency: The resulting NIST recognizer was physically implemented using 0.8µ technology, occupying just 78.8 sq. mm. This proved that complex empirical learning could be distilled into a relatively small, purely digital footprint.

Limitations and Future Work

While promising, the proposed methods have limitations:

  • The XOR Trap: Muesli is a greedy algorithm, making it prone to getting stuck in local optima. It performed poorly on functions with many XOR components where the "path" to the solution isn't clear from local information.
  • Scalability: While Muesli is fast for large problems, Fulfringe’s runtime becomes prohibitively high as the complexity of the problem grows.

The authors suggest that the next step is incorporating domain-specific constraints (like spatial locality in images) to help the algorithms find compact networks even faster. Ultimately, by outputting a network of gates, this learning process effectively performs "logic synthesis," creating a design that can be directly mapped to a chip.

Summary updated

BibTeX
@inproceedings{oliveira1993learning,
  author = {Arlindo L. Oliveira and Alberto L. Sangiovanni-Vincentelli},
  title = {{Learning Complex Boolean Functions: Algorithms and Applications}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {1993},
}
Figure