Abstract
Learned Differentiable Boolean Logic Networks (DBNs) already deliver efficient inference on resource-constrained hardware. We extend them with a trainable, differentiable interconnect whose parameter count remains constant as input width grows, allowing DBNs to scale to far wider layers than earlier learnable-interconnect designs while preserving their advantageous accuracy. To further reduce model size, we propose two complementary pruning stages: an SAT-based logic equivalence pass that removes redundant gates without affecting performance, and a similarity-based, data-driven pass that outperforms a magnitude-style greedy baseline and offers a superior compression-accuracy trade-off.
Introduction
Standard deep learning architectures rely heavily on Multiply-Accumulate (MAC) operations, which are computationally expensive and energy-intensive for edge devices like industrial sensors or wearables. Differentiable Logic Networks (DLNs) offer a compelling alternative by utilizing binary logic gates (AND, OR, XOR) for inference. These networks can be mapped directly onto FPGAs or ASICs, enabling ultra-fast, low-power execution. However, a significant bottleneck in scaling these networks has been the interconnect. Previous state-of-the-art methods utilized dense weight matrices to learn connections, leading to quadratic scaling ($O(G \times I)$) that makes training wide networks for high-resolution data computationally prohibitive.
Scalable Interconnect Learning
To address the scaling bottleneck, we propose a sparse interconnect learning strategy. Instead of evaluating every possible connection between gates and inputs, each gate is restricted to a small subset of $C$ candidate inputs. This shifts the parameter complexity to $O(G)$, scaling linearly with the number of gates rather than the product of gates and inputs. For a typical 12,000-gate layer, this reduces the memory footprint from approximately 3 GB to just 1.5 MB.
To prevent the network from converging on suboptimal initial wirings, we implement a periodic "refresh" of the candidate sets. We evaluated two primary strategies:
- Random Sampling: Periodically replacing poorly performing candidates with random new ones.
- Gradient-Guided Sampling: Utilizing surrogate gradients to identify and select inputs most likely to minimize the loss function.
Empirical Performance
Evaluations on the CIFAR-10 dataset demonstrate that these scalable interconnects achieve competitive accuracy (~57.5%) while significantly reducing training time. By focusing on a sparse set of candidates, the model converges faster in terms of wall-clock time compared to dense interconnect baselines.
As shown in the figure above, both Gradient-Guided and Random Sampling methods reach higher test accuracy levels significantly faster than the Full-Interconnect baseline, which suffers from the overhead of managing a massive parameter space.
Advanced Pruning Techniques
Boolean networks offer unique opportunities for formal optimization. We introduce two distinct pruning stages to further compress the learned circuits:
- Logic Equivalence Pruning: By employing SAT solvers, we identify gates that are functionally identical for all possible inputs. One gate can be safely removed and its connections rerouted without any impact on network performance—a "sound" pruning method unique to logic-based architectures.
- Similarity-Based Pruning: For gates that are not logically identical but behave similarly on training data, we use Spearman correlation to merge them. This data-driven approach allows for aggressive compression with minimal accuracy loss.
Experimental results indicate that similarity-based pruning consistently outperforms standard greedy baselines, maintaining higher accuracy at higher compression ratios across various network depths ($L=1, 2, 3$).
Conclusion
By reimagining the interconnect as a sparse, learnable structure and leveraging formal logic tools for pruning, we have demonstrated that Differentiable Boolean Networks can scale to handle complex tasks with a fraction of the memory and energy required by traditional neural networks. Future work will focus on applying these scalable architectures to larger datasets like ImageNet and developing better regularization to mitigate overfitting in deeper logic layers.
Summary updated