Exploring weightless neural networks: From logic gates to convolutional lookup tables

Stephen Wormald, Tianyu Pan, Damon L. Woodard, Domenic ForteOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

This paper presents the first comprehensive benchmark of Differentiable Weightless Neural Networks (DWNNs), comparing logic-gate and look-up table architectures against standard deep learning models. While introducing a new, faster-training convolutional variant (LTCNN), the authors uncover a sobering "scaling wall": unlike standard CNNs, larger weightless models actually become more brittle to noise, highlighting a critical need for new training strategies for edge AI.

What Problem Does This Paper Address?

As we push AI toward the "edge"—think smart glasses, medical implants, and IoT sensors—traditional Deep Neural Networks (DNNs) become a liability. Their heavy reliance on floating-point matrix multiplications consumes too much power and memory for tiny devices.

Weightless Neural Networks (WNNs) offer a radical alternative. Instead of weights, they use combinatorial logic gates or Look-Up Tables (LUTs) to process information. Recently, "differentiable" versions (DWNNs) have emerged, allowing these models to be trained using standard backpropagation. However, the field has lacked a rigorous comparison. We didn't know how these models truly scaled, how robust they were to real-world noise, or how they compared to standard MLPs and CNNs when parameter counts were equal. This paper fills that gap, benchmarking over 4,000 model variations.

Methods

The researchers focused on two primary DWNN flavors:

  1. Logic Gate Networks (LGN): These use trees of 2-input logic gates (like AND, OR, XOR).
  2. Look-Up Table Networks (LTN): These use $n$-input tables, which are more flexible and map better to modern FPGA hardware.

The Innovation: LTCNN The authors introduce the Look-Up Table Convolutional Network (LTCNN). Prior work on convolutional logic networks (LGCNNs) used very deep binary trees that were slow to train. By using $n$-input LUTs, the LTCNN creates shallower, more expressive kernels that significantly speed up the training process.

To ensure a fair fight, the authors used an evolutionary architecture search to generate models across five target sizes (from $10^4$ to $10^6$ parameters). They also conducted four specific sub-studies:

  • $\Delta S$ (Scaling): How performance changes as models get bigger.
  • $\Delta D$ (Data Augmentation): Whether DWNNs benefit from standard training tricks like adding noise.
  • $\Delta B$ & $\Delta E$ (Encoding): Testing how different ways of turning pixels into bits (quantization vs. thermometer encoding) affect accuracy.
  • $\Delta M$ (Learnable Mappings): Evaluating the cost/benefit of letting the network learn its own internal "wiring."

Datasets

The benchmark utilized three standard image classification datasets:

  • MNIST: Handwritten digits (the "Hello World" of CV).
  • FashionMNIST: Clothing items (slightly more complex).
  • CIFAR10: Low-resolution color images (the current ceiling for DWNN performance).

Key Insights and Ideas

  • The Brittleness Paradox: In standard deep learning, bigger models usually generalize better and handle noise more gracefully. The authors found the opposite for DWNNs: as parameter counts increased, the models became more sensitive to environmental noise (like salt-and-pepper noise or occlusions). They essentially start "memorizing" specific bit patterns rather than learning robust features.
  • The Depth Trap: LGCNNs suffer from "vanishing gradients" because their logic trees are too deep. By increasing the "arity" (number of inputs) of the nodes in the LTCNN, the authors halved the path length, which is why it trains so much faster.
  • The Bandwidth Tax: Thermometer encoding (a way of representing values that preserves order) significantly boosts DWNN accuracy. However, it comes with a massive "tax"—increasing data size by up to 32x. This creates a dilemma for edge devices where memory bandwidth is a bottleneck.
  • Learnable Wiring is Expensive: Letting a model learn its own interconnects improves accuracy by 6–20%, but it can increase training time by 3x and drastically increase the parameter count.

Key Results

  • Training Speedup: The new LTCNN reduces training time by 2–4X compared to the previous state-of-the-art LGCNN while maintaining or improving accuracy.
  • Accuracy Gaps: On simple tasks like MNIST, DWNNs are highly competitive. However, on CIFAR10, there is a significant gap; standard MLPs can achieve similar accuracy to DWNNs while using only ~3–48% of the parameters.
  • Robustness: LGNs showed superior resistance to salt-and-pepper noise compared to other models, likely because they learn to look for "class average" patterns rather than individual pixel values. However, they struggle significantly with occlusions (blocks of missing pixels).

Limitations and Future Work

The biggest limitation is scalability to complex data. DWNNs currently struggle with datasets like CIFAR100 or ImageNet. The authors note that simply mimicking CNN architectures isn't enough; the field needs "noise-aware" learning mechanisms and regularization techniques specifically designed for discrete, logic-based manifolds.

Future Directions: * Adaptive Embeddings: Replacing heavy thermometer encodings with learnable layers that find the most efficient bit-representation for each pixel. * Sparse Initialization: Finding ways to use learnable interconnects without the massive computational overhead. * Saliency Mapping: Using explainability tools to identify which logic gates are "brittle" and retraining them to improve overall network robustness.

Summary updated

Abstract

Miniaturizing Machine Learning (ML) models to operate accurately in resource-constrained environments may improve the intelligence of everyday objects. Applications abound across the Internet of Things (IoT), for personal medical devices, and for consumer electronics such as smartphones and augmented reality glasses. Differentiable Weightless Neural Networks (DWNN), such as differentiable Logic Gate Networks (LGN) and Look Up Table networks (LTN), represent a class of models which accelerate ML inference by orders of magnitude while retaining high predictive accuracy. While small-scale LGNs and LTNs already expedite model inference and reduce resource usage, performance and robustness benchmarks are not well reported which hinders the development of large architectures suitable for real-world applications. This paper fills this gap by comparing LGNs, LTNs, Multi-Layer Perceptrons (MLPs), and their convolutional counterparts on the basis of test accuracy, training time, and robustness to noise across key model and training variations. We introduce the Look-Up Table Convolutional Network (LTCNN), which reduces training time by 2–4X compared to prior logic-based convolutions. By benchmarking over 4,000 models, we identify critical scaling limitations: unlike standard CNNs, increasing DWNN parameter counts tends to exacerbate brittleness to environmental noise rather than improving generalization. Furthermore, while employing learnable interconnects improves accuracy by 6–20\%, it incurs a 3X computational penalty. These results quantify the distinct trade-offs of weightless architectures, highlighting the need for training strategies to scale DWNNs for real-world applications.
BibTeX
@misc{wormald2026exploring,
  author = {Stephen Wormald and Tianyu Pan and Damon L. Woodard and Domenic Forte},
  title = {{Exploring weightless neural networks: From logic gates to convolutional lookup tables}},
  year = {2026},
  url = {https://openreview.net/forum?id=BCif1Uo8Is},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}

Loading related content...

Figure