WARP Logic Neural Networks
Lino Gerlach, Thore Gerlach, Liv Våge, Elliott Kauffman, Isobel Ojalvo
TL;DR
WARP-LNNs introduce a Walsh–Hadamard-based, differentiable, and parameter-efficient framework for learning Boolean functions, addressing the inefficiencies and discretization gaps of prior logic neural networks. By combining stochastic smoothing (Gumbel-Sigmoid), residual initialization, and learnable thresholding, WARP achieves fast convergence and scalable expressivity to higher-arity LUTs. The WH-based parametrization provides a minimal representation with $2^n$ parameters per neuron while remaining fully expressive, and the framework unifies and subsumes previous approaches as special cases. Empirical results show faster training, effective higher-arity convolutional blocks, and strong scaling relative to state-of-the-art n-LUT methods, signaling practical potential for hardware-native, multiplication-free inference.
Abstract
Fast and efficient AI inference is increasingly important, and recent models that directly learn low-level logic operations have achieved state-of-the-art performance. However, existing logic neural networks incur high training costs, introduce redundancy or rely on approximate gradients, which limits scalability. To overcome these limitations, we introduce WAlsh Relaxation for Probabilistic (WARP) logic neural networks -- a novel gradient-based framework that efficiently learns combinations of hardware-native logic blocks. We show that WARP yields the most parameter-efficient representation for exactly learning Boolean functions and that several prior approaches arise as restricted special cases. Training is improved by introducing learnable thresholding and residual initialization, while we bridge the gap between relaxed training and discrete logic inference through stochastic smoothing. Experiments demonstrate faster convergence than state-of-the-art baselines, while scaling effectively to deeper architectures and logic functions with higher input arity.
