Overcoming Kernel Redundancy for Scaling Logic Gate Networks

Sejin Park, Hongjae Lee, Changwoo Han, Seung-Won JungNeurIPS 2026

TL;DR

What happens if you replace every floating-point neuron in a deep network with pure Boolean logic gates like AND, OR, and XOR? You get lightning-fast, ultra-low-energy hardware inference—until you try to scale the model up, at which point accuracy weirdly hits a wall. This paper uncovers why wider logic gate networks stall out (spoiler: the gates all end up doing the exact same thing) and introduces a clever, all-Boolean routing mechanism that lets these networks actually benefit from getting bigger.

What Problem Does This Paper Address?

In standard deep learning, making a network wider or deeper is a reliable recipe for better accuracy. Recently, differentiable logic gate networks have emerged as an ultra-efficient alternative: during training, gates are relaxed into continuous probabilities so gradients can flow, and at test time, they snap into discrete Boolean operators. Composed into hierarchical trees called "logic kernels" (analogous to convolutional filters), they run natively on silicon in nanoseconds.

However, scaling them is notoriously tricky. Prior work showed that making them deeper causes vanishing gradients and discretization errors. What about making them wider by adding more parallel logic kernels? When the authors tested this, they found that naive width scaling quickly hits a plateau. Adding millions of extra parameters barely budges accuracy. The central mystery: why isn't extra capacity helping?

Figure 1: Accuracy under width scaling on the CIFAR-10 dataset.

Methods

First, to diagnose the plateau, the authors needed a way to measure whether different logic kernels were actually learning different things. Standard Tree Edit Distance treats all gate swaps equally, missing functional nuances. So, the authors designed a function-aware distance metric that compares aligned gates across trees by counting truth-table mismatches—for instance, XOR differs from OR on 1 input pair, while differing from AND on 3.

Figure 2: Function-aware distance be- tween two aligned logic gates.

Armed with this metric, they confirmed that naive width scaling causes kernels to converge to redundant functions. To fix this, they propose two routing architectures that force kernels to specialize:

  1. Dynamic Logic Kernel (DLK): Instead of applying all kernels to every input, kernels are divided into $G$ candidate groups. A lightweight Boolean router (built from logic layers and global spatial OR-pooling) inspects the input and outputs routing bits. During training, a temperature-scaled softmax blends group outputs; at inference, a simple bit-count (argmax) picks a single group. Crucially, there are no floating-point gating modules—everything stays strictly in the Boolean domain.
  2. Early-stage Dynamic Logic Kernel (EDLK): Analyzing tree levels revealed that redundancy is overwhelmingly concentrated at the very first gate level. Instead of duplicating and routing entire trees, EDLK dynamically routes only the first-level Boolean gate groups, feeding the winner into shared upper tree levels.
Early-stage Dynamic Logic Kernel (EDLK) routes inputs among specialized first-level gate groups before passing them to shared upper tree levels.

Datasets

The authors evaluate image classification across six standard vision benchmarks (using multi-threshold input binarization):

  • CIFAR-10 (primary benchmark for scaling and ablations) and CIFAR-100
  • MNIST and SVHN
  • Flowers-102 and Tiny-ImageNet

No new datasets were introduced.

Key Insights and Ideas

  • More width = less diversity in static logic nets: Counterintuitively, as you widen a standard logic gate network from 128 to 512 kernels, pairwise functional diversity steadily drops (from 3.05 down to 1.86). The extra capacity collapses into redundant circuits.
  • Redundancy is an early-stage bottleneck: Decomposing diversity level-by-level inside the logic trees revealed a massive diversity gap at the first gate level, while deeper levels in the tree looked nearly identical between static and dynamic models. Fixing the bottom of the tree fixes almost the whole problem.
  • Routing itself can be pure logic: Dynamic neural networks usually rely on real-valued MLPs to compute routing weights, which would ruin the hardware purity of a logic network. Counting Boolean evidence bits via OR-pooling keeps the entire inference path discrete.

Key Results

  • Breaking the width ceiling: On CIFAR-10, static baselines flatten out around ~68% accuracy as width scales from 256 to 768, whereas EDLK scales steadily up to nearly 72%.
  • Across-the-board accuracy gains: At a matched width of 576, EDLK beats both standard Logic Kernels and the recent IWP baseline on every dataset—for example, jumping from 58.44% (Logic Kernel) to 62.46% on CIFAR-100, and 10.55% to 13.35% on Tiny-ImageNet.
  • Parameter savings with EDLK: Compared to routing whole trees (DLK), routing only the first level (EDLK) cuts conv4 logic-kernel parameters by 21.4% to 32.1% with negligible accuracy difference ($\le 0.15\%$).
  • Tiny hardware footprint: Synthesized on TSMC N5 technology and tested on an FPGA for MNIST (including the full circuit, all candidate groups, and the Boolean router), a 22K-parameter EDLK hits 97.29% accuracy in 23.64 ns using 4.37 pJ—outperforming a 2x wider 42K-parameter static baseline (96.11%) while using less energy, area, and latency. Against recent efficient LUT/weightless models (TTNet, DWN, NeuralLUT), EDLK (G=4) reaches 98.25% accuracy with roughly 7x fewer bit-operations (11K BOPs) and ~7x lower energy (6.88 pJ).

Limitations and Future Work

  • Depth scaling is still unsolved: When testing deeper networks, accuracy still saturates or dips even with EDLK. Dynamic routing solves width redundancy, not the vanishing gradients and discretization gaps of deep logic chains.
  • Scale and task scope: Logic gate networks still trail mature CNNs and Transformers in raw accuracy, have only been tested here on image classification (leaving dense tasks like segmentation or restoration open), and aren't yet ready for LLM-scale architectures.
  • Future directions: The authors suspect redundancy stems from three root causes—unstable optimization, sparse/local receptive fields, and rigid binary input encodings—pointing toward better training dynamics and spatial designs next.

Summary updated

Abstract

Differentiable logic gate networks, which operate using only logic gates, have recently attracted attention as an efficient alternative to conventional neural networks. However, despite their efficiency, the scaling behavior of logic gate networks remains underexplored. By contrast, scaling model capacity is a central design principle in deep neural networks and typically leads to improved performance. This discrepancy raises a key question: Can similar scaling benefits also be achieved in logic gate networks? In this work, we focus on width as a primary scaling axis and conduct a systematic analysis of its behavior in logic gate networks. We observe that naive width scaling often introduces redundancy among logic kernels, limiting the effective use of additional kernels and leading to performance saturation. To address this limitation, we propose a dynamic logic kernel framework that reorganizes kernel utilization by promoting specialization across kernel groups. This enables the network to better utilize increased width via input-dependent kernel routing, while ensuring that both routing and computation are implemented entirely with gate-level Boolean operations at inference time. We further find that kernel redundancy is most pronounced at the first gate level, motivating an early-stage dynamic logic kernel strategy that concentrates adaptation at this level. Experimental results demonstrate that our approach improves kernel utilization and increases kernel diversity, leading to higher accuracy with improved parameter efficiency.
BibTeX
@inproceedings{park2026overcoming,
  author = {Sejin Park and Hongjae Lee and Changwoo Han and Seung-Won Jung},
  title = {{Overcoming Kernel Redundancy for Scaling Logic Gate Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=pBQwXLxijA},
}
Figure